mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
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:
parent
cd8ef39ca8
commit
eae26ca31c
@ -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");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user