summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/vfork.cc
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-04-14 13:31:22 +0000
committerRenato Golin <renato.golin@linaro.org>2016-04-14 13:31:22 +0000
commit37e64f352cfa9f3ab48f81181b9385694d090235 (patch)
tree02fa8eb4641efe5b4a15b3c494a18ad30f24a446 /compiler-rt/test/tsan/vfork.cc
parentee741cfa5f9c8f38dbbc0aacd2a24c439bf294bc (diff)
downloadbcm5719-llvm-37e64f352cfa9f3ab48f81181b9385694d090235.tar.gz
bcm5719-llvm-37e64f352cfa9f3ab48f81181b9385694d090235.zip
Revert "Make tsan tests more portable (take 2)"
This reverts commit r266294, as it broke some buildbots again. :/ llvm-svn: 266300
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 2d669b305a9..5ae1dd1abab 100644
--- a/compiler-rt/test/tsan/vfork.cc
+++ b/compiler-rt/test/tsan/vfork.cc
@@ -26,7 +26,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
@@ -43,7 +43,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