[Sanitizer] Modify test to avoid bot timeouts
authorTeresa Johnson <tejohnson@google.com>
Wed, 22 Sep 2021 01:32:26 +0000 (18:32 -0700)
committerTeresa Johnson <tejohnson@google.com>
Wed, 22 Sep 2021 01:47:16 +0000 (18:47 -0700)
commit7acd1807dd6899441cff9e1246155379971352fb
tree6a1d3cee47f21f1ea54085d312aa0511d6d1cc42
parentda93829b441525fd82a23c710290328907dde756
[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/
compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp