[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/
This commit is contained in:
Teresa Johnson 2021-09-21 18:32:26 -07:00
parent da93829b44
commit 7acd1807dd
1 changed files with 1 additions and 1 deletions

View File

@ -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),