Make sure tc20_verifywrap does not trigger an assertion failure in combination with glibc 2.7.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7488
This commit is contained in:
Bart Van Assche 2008-02-27 15:38:10 +00:00
parent cd8ef39ca8
commit eae26ca31c

View File

@ -241,8 +241,8 @@ int main ( void )
memset(&s1, 0x55, sizeof(s1));
r= sem_wait(&s1); /* assert(r != 0); */
/* this really ought to fail, but it doesn't. */
r= sem_post(&s1); assert(!r);
/* this only fails with glibc 2.7 or later. */
r= sem_post(&s1);
fprintf(stderr, "\nFIXME: can't figure out how to verify wrap of "
"sem_post\n\n");