From a960b2c6da626d932fec33619575c365b60e2035 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 3 Dec 2012 11:37:03 +0000 Subject: [PATCH] [asan] EXPECT_EQ => ASSERT_EQ around pthread_create/pthread_join calls llvm-svn: 169121 --- compiler-rt/lib/asan/tests/asan_test_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/asan/tests/asan_test_utils.h b/compiler-rt/lib/asan/tests/asan_test_utils.h index 06ef40e..be7820e 100644 --- a/compiler-rt/lib/asan/tests/asan_test_utils.h +++ b/compiler-rt/lib/asan/tests/asan_test_utils.h @@ -69,7 +69,7 @@ static T Ident(T t) { } // Check that pthread_create/pthread_join return success. -#define PTHREAD_CREATE(a, b, c, d) EXPECT_EQ(0, pthread_create(a, b, c, d)) -#define PTHREAD_JOIN(a, b) EXPECT_EQ(0, pthread_join(a, b)) +#define PTHREAD_CREATE(a, b, c, d) ASSERT_EQ(0, pthread_create(a, b, c, d)) +#define PTHREAD_JOIN(a, b) ASSERT_EQ(0, pthread_join(a, b)) #endif // ASAN_TEST_UTILS_H -- 2.7.4