]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make sure tc20_verifywrap does not trigger an assertion failure in combination with...
authorBart Van Assche <bvanassche@acm.org>
Wed, 27 Feb 2008 15:38:10 +0000 (15:38 +0000)
committerBart Van Assche <bvanassche@acm.org>
Wed, 27 Feb 2008 15:38:10 +0000 (15:38 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7488

helgrind/tests/tc20_verifywrap.c

index 0a1f7d612268d23d9935dd41ad7ac816ca76c802..667aafa4476b966b17eb56a1a5028a5545cce7fa 100644 (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");