[compiler-rt] 7acd180 - [Sanitizer] Modify test to avoid bot timeouts
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 21 18:47:34 PDT 2021
Author: Teresa Johnson
Date: 2021-09-21T18:47:16-07:00
New Revision: 7acd1807dd6899441cff9e1246155379971352fb
URL: https://github.com/llvm/llvm-project/commit/7acd1807dd6899441cff9e1246155379971352fb
DIFF: https://github.com/llvm/llvm-project/commit/7acd1807dd6899441cff9e1246155379971352fb.diff
LOG: [Sanitizer] Modify test to avoid bot timeouts
Change the mutex type to one that initializes on construction and
hopefully avoid what appear to be deadlock failures in the new test
on a couple bots, e.g.:
https://green.lab.llvm.org/green/job/clang-stage1-RA/24140/testReport/SanitizerCommon-Unit/__Sanitizer-x86_64-Test/SanitizerCommon_ReportFile/
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
index 97737e2a1fc2c..15612bb3b2cfd 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp
@@ -328,7 +328,7 @@ TEST(SanitizerCommon, InternalMmapWithOffset) {
#endif
TEST(SanitizerCommon, ReportFile) {
- StaticSpinMutex report_file_mu;
+ SpinMutex report_file_mu;
ReportFile report_file = {&report_file_mu, kStderrFd, "", "", 0};
char tmpfile[128];
temp_file_name(tmpfile, sizeof(tmpfile),
More information about the llvm-commits
mailing list