[scudo] Fix memtag tests.
authorChristopher Ferris <cferris@google.com>
Tue, 18 Jul 2023 02:33:16 +0000 (19:33 -0700)
committerChristopher Ferris <cferris@google.com>
Tue, 18 Jul 2023 20:52:16 +0000 (13:52 -0700)
commit902c41fc800290076a107fc8c1e6d8da688bc1ae
tree864beee164b005a1abc68259b30416f27366dd27
parent729ffb5cdf3ee09e8e89cdd122084a9563ee0717
[scudo] Fix memtag tests.

A few memtag tests were using EXPECT_DEBUG_DEATH which executes the
statement unless NDEBUG is set. This meant the statement would
cause an abort, but the EXPECT_DEATH part was not done. Change these
to simply EXPECT_DEATH, these tests already verify that SCUDO_DEBUG
is set before checking for DEATH.

Reviewed By: Chia-hungDuan

Differential Revision: https://reviews.llvm.org/D155538
compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp