Author: bart
Date: 2008-02-27 15:38:10 +0000 (Wed, 27 Feb 2008)
New Revision: 7488
Log:
Make sure tc20_verifywrap does not trigger an assertion failure in combination
with glibc 2.7.
Modified:
trunk/helgrind/tests/tc20_verifywrap.c
Modified: trunk/helgrind/tests/tc20_verifywrap.c
===================================================================
--- trunk/helgrind/tests/tc20_verifywrap.c 2008-02-27 02:04:05 UTC (rev
7487)
+++ trunk/helgrind/tests/tc20_verifywrap.c 2008-02-27 15:38:10 UTC (rev
7488)
@@ -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");
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers