From a56c2ad5943cc46ac67baf3d1bf4e0113fc50fa9 Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Tue, 2 Aug 2016 14:41:03 +0000 Subject: [PATCH] Follow-up for r277458: Update the tsan_mman_test.cc unit test. llvm-svn: 277463 --- compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc b/compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc index 609141c..60dea3d 100644 --- a/compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc +++ b/compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc @@ -53,9 +53,9 @@ TEST(Mman, UserRealloc) { uptr pc = 0; { void *p = user_realloc(thr, pc, 0, 0); - // Strictly saying this is incorrect, realloc(NULL, N) is equivalent to - // malloc(N), thus must return non-NULL pointer. - EXPECT_EQ(p, (void*)0); + // Realloc(NULL, N) is equivalent to malloc(N), thus must return + // non-NULL pointer. + EXPECT_NE(p, (void*)0); } { void *p = user_realloc(thr, pc, 0, 100); @@ -68,7 +68,7 @@ TEST(Mman, UserRealloc) { EXPECT_NE(p, (void*)0); memset(p, 0xde, 100); void *p2 = user_realloc(thr, pc, p, 0); - EXPECT_EQ(p2, (void*)0); + EXPECT_NE(p2, (void*)0); } { void *p = user_realloc(thr, pc, 0, 100); -- 2.7.4