|
From: <sv...@va...> - 2011-07-26 19:32:18
|
Author: bart
Date: 2011-07-26 20:27:29 +0100 (Tue, 26 Jul 2011)
New Revision: 11916
Log:
helgrind/tests/tc08_hbl2: Reduce scheduler sensitivity
Modified:
trunk/helgrind/tests/tc08_hbl2.c
Modified: trunk/helgrind/tests/tc08_hbl2.c
===================================================================
--- trunk/helgrind/tests/tc08_hbl2.c 2011-07-26 18:10:35 UTC (rev 11915)
+++ trunk/helgrind/tests/tc08_hbl2.c 2011-07-26 19:27:29 UTC (rev 11916)
@@ -121,6 +121,7 @@
int main ( void )
{
+ struct timespec delay = { 0, 100 * 1000 * 1000 };
pthread_t child;
int i;
@@ -129,6 +130,8 @@
exit(1);
}
+ nanosleep(&delay, 0);
+
for (i = 0; i < LIMIT; i++) {
INC(x, "main");
if (i == 5) sleep(1); /* make sure child doesn't starve */
|