Author: sewardj
Date: 2007-10-30 01:18:24 +0000 (Tue, 30 Oct 2007)
New Revision: 7054
Log:
Make "Unlocking a totally bogus lock" fail more reliably.
Modified:
branches/THRCHECK/thrcheck/tests/tc09_bad_unlock.c
Modified: branches/THRCHECK/thrcheck/tests/tc09_bad_unlock.c
===================================================================
--- branches/THRCHECK/thrcheck/tests/tc09_bad_unlock.c 2007-10-29 21:04:42 UTC
(rev 7053)
+++ branches/THRCHECK/thrcheck/tests/tc09_bad_unlock.c 2007-10-30 01:18:24 UTC
(rev 7054)
@@ -16,10 +16,10 @@
{
pthread_t child;
pthread_mutex_t mx1, mx2;
- int bogus[100];
-
+ int bogus[100], i;
+ /* fill bogus with values which will cause glibc's pth_mx_unlock to fail */
+ for (i = 0; i < 100; i++) bogus[i] = 0xFFFFFFFF;
/* Unlocking a lock that is already unlocked */
-
pthread_mutex_init( &mx1, NULL );
pthread_mutex_lock( &mx1 );
pthread_mutex_unlock( &mx1 );
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers