Index: compiler-rt/trunk/test/tsan/atomic_free3.cc =================================================================== --- compiler-rt/trunk/test/tsan/atomic_free3.cc +++ compiler-rt/trunk/test/tsan/atomic_free3.cc @@ -13,7 +13,7 @@ pthread_t t; pthread_create(&t, 0, Thread, a); while (__atomic_load_n(a, __ATOMIC_RELAXED) == 0) - pthread_yield(); + sched_yield(); delete a; pthread_join(t, 0); } Index: compiler-rt/trunk/test/tsan/real_deadlock_detector_stress_test.cc =================================================================== --- compiler-rt/trunk/test/tsan/real_deadlock_detector_stress_test.cc +++ compiler-rt/trunk/test/tsan/real_deadlock_detector_stress_test.cc @@ -59,7 +59,7 @@ for (;;) { int old = __atomic_load_n(&m->state, __ATOMIC_RELAXED); if (old == kStateLocked) { - pthread_yield(); + sched_yield(); continue; } int newv = old + 1; Index: compiler-rt/trunk/test/tsan/signal_errno.cc =================================================================== --- compiler-rt/trunk/test/tsan/signal_errno.cc +++ compiler-rt/trunk/test/tsan/signal_errno.cc @@ -24,7 +24,7 @@ volatile char *p = (char*)malloc(1); p[0] = 0; free((void*)p); - pthread_yield(); + sched_yield(); } }