[sanitizer] Fix test build on Windows

This commit is contained in:
Vitaly Buka 2021-07-16 15:28:26 -07:00
parent 1f71bcabb7
commit c14f26846e
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ TEST(SanitizerCommon, Semaphore) {
SemaphoreData data = {&sem, false};
pthread_t thread;
PTHREAD_CREATE(&thread, nullptr, SemaphoreThread, &data);
sleep(1);
internal_sleep(1);
CHECK(!data.done);
sem.Post(1);
PTHREAD_JOIN(thread, nullptr);