summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/malloc_overflow.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/malloc_overflow.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/malloc_overflow.cc')
-rw-r--r--compiler-rt/test/tsan/malloc_overflow.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/test/tsan/malloc_overflow.cc b/compiler-rt/test/tsan/malloc_overflow.cc
index 3db412978d0..b2f9b0f5779 100644
--- a/compiler-rt/test/tsan/malloc_overflow.cc
+++ b/compiler-rt/test/tsan/malloc_overflow.cc
@@ -6,17 +6,17 @@
int main() {
void *p = malloc((size_t)-1);
if (p != 0)
- fprintf(stderr, "FAIL malloc(-1) = %p\n", p);
+ printf("FAIL malloc(-1) = %p\n", p);
p = malloc((size_t)-1 / 2);
if (p != 0)
- fprintf(stderr, "FAIL malloc(-1/2) = %p\n", p);
+ printf("FAIL malloc(-1/2) = %p\n", p);
p = calloc((size_t)-1, (size_t)-1);
if (p != 0)
- fprintf(stderr, "FAIL calloc(-1, -1) = %p\n", p);
+ printf("FAIL calloc(-1, -1) = %p\n", p);
p = calloc((size_t)-1 / 2, (size_t)-1 / 2);
if (p != 0)
- fprintf(stderr, "FAIL calloc(-1/2, -1/2) = %p\n", p);
- fprintf(stderr, "OK\n");
+ printf("FAIL calloc(-1/2, -1/2) = %p\n", p);
+ printf("OK\n");
}
// CHECK-NOT: FAIL
OpenPOWER on IntegriCloud