[compiler-rt] c14f268 - [sanitizer] Fix test build on Windows
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 16 15:28:59 PDT 2021
Author: Vitaly Buka
Date: 2021-07-16T15:28:51-07:00
New Revision: c14f26846e75fa851edcb1ecd9ecc66e22442e36
URL: https://github.com/llvm/llvm-project/commit/c14f26846e75fa851edcb1ecd9ecc66e22442e36
DIFF: https://github.com/llvm/llvm-project/commit/c14f26846e75fa851edcb1ecd9ecc66e22442e36.diff
LOG: [sanitizer] Fix test build on Windows
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp
index 33e0bf742f40b..beaad9c19345b 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_mutex_test.cpp
@@ -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);
More information about the llvm-commits
mailing list