[GWP-ASan] Remove thread clamping in tests.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Thu, 2 Feb 2023 23:37:33 +0000 (15:37 -0800)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Thu, 2 Feb 2023 23:40:07 +0000 (15:40 -0800)
commit10939d1d580b9d3c9c2f3539c6bdb39f408179c0
treea38b741faaff4f54cda3e49c8eed8e92d5459775
parentd7259bb7c9b07f5499321bb233ca09ae149f45cb
[GWP-ASan] Remove thread clamping in tests.

It's better and easier for us to just have threads contend against each
other in the tests if it's more than the maximum supported number of
hardware threads available.

Specifically, the recoverable test fails on Android because the
GTEST_SKIP in a called function, and it only properly works from the
TEST_* harness function. Android tests run on cuttlefish, which can be a
single core with two hyperthreads.

Reviewed By: fmayer

Differential Revision: https://reviews.llvm.org/D143221
compiler-rt/lib/gwp_asan/tests/recoverable.cpp
compiler-rt/lib/gwp_asan/tests/thread_contention.cpp