[scudo] Clean up tests.
authorChristopher Ferris <cferris@google.com>
Wed, 19 Jul 2023 20:26:38 +0000 (13:26 -0700)
committerChristopher Ferris <cferris@google.com>
Thu, 20 Jul 2023 21:02:40 +0000 (14:02 -0700)
commitaf41f79f40f454374f63747d4b53afde296189fe
tree0a55c91ceb9e83630c40728a878ef3baf4db7927
parent2f34288b2476339e532a59fc43723b6de1a9ef08
[scudo] Clean up tests.

Modify the tests so that all clang warnings can be turned up to high.

Fix all places flagged by -Wconversion.

Fix a few unused variables not marked with UNUSED.

For the memtag testing, only compile some tests for 64 bit since
compiling them on 32 bit leads to warnings/errors. All of the tests
are already skipped on 32 bit OSes, so this will not affect any
real tests.

Reviewed By: Chia-hungDuan

Differential Revision: https://reviews.llvm.org/D155749
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
compiler-rt/lib/scudo/standalone/tests/release_test.cpp
compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
compiler-rt/lib/scudo/standalone/tests/tsd_test.cpp
compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp