Index: compiler-rt/trunk/test/tsan/fork_deadlock.cc =================================================================== --- compiler-rt/trunk/test/tsan/fork_deadlock.cc +++ compiler-rt/trunk/test/tsan/fork_deadlock.cc @@ -12,18 +12,10 @@ return 0; } -static void *watchdog(void *p) { - sleep(100); // is not intended to exit - fprintf(stderr, "timed out after 100 seconds\n"); - exit(1); - return 0; -} - int main() { barrier_init(&barrier, 2); - pthread_t th1, th2; + pthread_t th1; pthread_create(&th1, 0, incrementer, 0); - pthread_create(&th2, 0, watchdog, 0); for (int i = 0; i < 10; i++) { switch (fork()) { default: // parent Index: compiler-rt/trunk/test/tsan/fork_multithreaded.cc =================================================================== --- compiler-rt/trunk/test/tsan/fork_multithreaded.cc +++ compiler-rt/trunk/test/tsan/fork_multithreaded.cc @@ -6,7 +6,7 @@ #include static void *sleeper(void *p) { - sleep(10); // not intended to exit during test + sleep(1000); // not intended to exit during test return 0; }