Skip to content

Commit

Permalink
[asan] EXPECT_EQ => ASSERT_EQ around pthread_create/pthread_join calls
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169121 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
kcc committed Dec 3, 2012
1 parent 2697687 commit e277062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/asan/tests/asan_test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e277062

Please sign in to comment.