From: Bart Van Assche Date: Thu, 28 Jul 2011 15:01:01 +0000 (+0000) Subject: Make test 1 output independent of scheduler variations. X-Git-Tag: svn/VALGRIND_3_7_0~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce3207562035d6434d2cd39961802a1f792e8c1;p=thirdparty%2Fvalgrind.git Make test 1 output independent of scheduler variations. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11928 --- diff --git a/drd/tests/tsan_unittest.cpp b/drd/tests/tsan_unittest.cpp index 1ff34b72cc..956a17e627 100644 --- a/drd/tests/tsan_unittest.cpp +++ b/drd/tests/tsan_unittest.cpp @@ -335,6 +335,8 @@ void Worker() { void Parent() { MyThread t(Worker); t.Start(); + const timespec delay = { 0, 100 * 1000 * 1000 }; + nanosleep(&delay, 0); GLOB = 2; t.Join(); }