From: Bart Van Assche Date: Wed, 27 Feb 2008 15:38:10 +0000 (+0000) Subject: Make sure tc20_verifywrap does not trigger an assertion failure in combination with... X-Git-Tag: svn/VALGRIND_3_4_0~1021 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eae26ca31c1b9522f2271182d294bfc16aa52272;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/helgrind/tests/tc20_verifywrap.c b/helgrind/tests/tc20_verifywrap.c index 0a1f7d6122..667aafa447 100644 --- a/helgrind/tests/tc20_verifywrap.c +++ b/helgrind/tests/tc20_verifywrap.c @@ -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");