summaryrefslogtreecommitdiff
path: root/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
commit2d5eb7163c0c720f7f6b61cf422c23d92a53635c (patch)
treeddf6639a18546aafef37cedac7ead5e75ea116ed /test/tsan/malloc_overflow.cc
parent0f9d2c5fef1ad3d92f6153570477ada540056b58 (diff)
Revert "Make tsan tests more portable (take 2)"
This reverts commit r266294, as it broke some buildbots again. :/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/malloc_overflow.cc')
-rw-r--r--test/tsan/malloc_overflow.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/tsan/malloc_overflow.cc b/test/tsan/malloc_overflow.cc
index 3db412978..b2f9b0f57 100644
--- a/test/tsan/malloc_overflow.cc
+++ b/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