diff --git a/compiler-rt/test/tsan/signal_cond.cc b/compiler-rt/test/tsan/signal_cond.cc index beb2e0266e50..6c20dd8f2e39 100644 --- a/compiler-rt/test/tsan/signal_cond.cc +++ b/compiler-rt/test/tsan/signal_cond.cc @@ -14,7 +14,7 @@ pthread_cond_t cond; void sig_handler(int sig) { (void)sig; - write(1, "SIGNAL\n", sizeof("SIGNAL\n") - 1); + write(2, "SIGNAL\n", sizeof("SIGNAL\n") - 1); barrier_wait(&barrier); }