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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/helgrind/tests/tc20_verifywrap.c b/helgrind/tests/tc20_verifywrap.c
index 0a1f7d6..667aafa 100644
--- a/helgrind/tests/tc20_verifywrap.c
+++ b/helgrind/tests/tc20_verifywrap.c
@@ -241,8 +241,8 @@
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");