[sanitizer] Fix test build on Windows
authorVitaly Buka <vitalybuka@google.com>
Fri, 16 Jul 2021 22:28:26 +0000 (15:28 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 16 Jul 2021 22:28:51 +0000 (15:28 -0700)
compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp

index 33e0bf7..beaad9c 100644 (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);