forked from OSchip/llvm-project
[sanitizer] Fix test build on Windows
This commit is contained in:
parent
1f71bcabb7
commit
c14f26846e
|
@ -157,7 +157,7 @@ TEST(SanitizerCommon, Semaphore) {
|
||||||
SemaphoreData data = {&sem, false};
|
SemaphoreData data = {&sem, false};
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
PTHREAD_CREATE(&thread, nullptr, SemaphoreThread, &data);
|
PTHREAD_CREATE(&thread, nullptr, SemaphoreThread, &data);
|
||||||
sleep(1);
|
internal_sleep(1);
|
||||||
CHECK(!data.done);
|
CHECK(!data.done);
|
||||||
sem.Post(1);
|
sem.Post(1);
|
||||||
PTHREAD_JOIN(thread, nullptr);
|
PTHREAD_JOIN(thread, nullptr);
|
||||||
|
|
Loading…
Reference in New Issue