forked from OSchip/llvm-project
[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:
parent
49fe6388b6
commit
c193da57b8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue