[msan] pthread_join() returns int, not void*

pthread_join() returns an error code, not the result of the
pthread_create() function like I thought.

llvm-svn: 176554
This commit is contained in:
Reid Kleckner 2013-03-06 15:41:35 +00:00
parent 49fe6388b6
commit c193da57b8
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ TEST(Allocator, AllocatorCacheDeallocNewThread) {
params->class_id = class_id;
pthread_t t;
EXPECT_EQ(0, pthread_create(&t, 0, DeallocNewThreadWorker, params));
EXPECT_EQ(NULL, pthread_join(t, 0));
EXPECT_EQ(0, pthread_join(t, 0));
}
#endif