summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/vfork.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/tsan/vfork.cc')
-rw-r--r--compiler-rt/test/tsan/vfork.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/tsan/vfork.cc b/compiler-rt/test/tsan/vfork.cc
index fe83b2d20d8..98a82623ee6 100644
--- a/compiler-rt/test/tsan/vfork.cc
+++ b/compiler-rt/test/tsan/vfork.cc
@@ -27,7 +27,7 @@ int main() {
pipe(fds);
int pid = vfork();
if (pid < 0) {
- fprintf(stderr, "FAIL to vfork\n");
+ printf("FAIL to vfork\n");
exit(1);
}
if (pid == 0) { // child
@@ -44,7 +44,7 @@ int main() {
pthread_create(&t[1], NULL, Thread2, NULL);
pthread_join(t[0], NULL);
pthread_join(t[1], NULL);
- fprintf(stderr, "DONE\n");
+ printf("DONE\n");
}
// CHECK-NOT: WARNING: ThreadSanitizer: data race
OpenPOWER on IntegriCloud