]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make test 1 output independent of scheduler variations.
authorBart Van Assche <bvanassche@acm.org>
Thu, 28 Jul 2011 15:01:01 +0000 (15:01 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 28 Jul 2011 15:01:01 +0000 (15:01 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11928

drd/tests/tsan_unittest.cpp

index 1ff34b72cc26dcee2ca452e8cc7fe91d420093b4..956a17e627e0715d1528eca3f9ba8506ec694f87 100644 (file)
@@ -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();
 }