[scudo] Use portable TEST_SKIP macro (#188045)

Which expands to ZXTEST_SKIP on Fuchsia.
This commit is contained in:
Fabio D'Urso 2026-03-25 11:46:52 +01:00 committed by GitHub
parent 5f49ce5eaf
commit 1d2f14f625
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -1829,7 +1829,7 @@ TEST(ScudoCombinedDeathTest, AlignMismatch) {
// Pointer is guaranteed to not be aligned to 2 * page size.
void *AlignedPtr = getMinAlignedPointer<AllocatorT>(Allocator.get());
if (AlignedPtr == nullptr) {
GTEST_SKIP() << "Cannot allocate aligned pointer for test.";
TEST_SKIP("Cannot allocate aligned pointer for test.");
}
scudo::uptr Alignment = 2 * scudo::getPageSizeCached();

View File

@ -23,7 +23,7 @@ namespace scudo {
TEST(ScudoCommonTest, VerifyGetResidentPages) {
if (!SCUDO_LINUX)
GTEST_SKIP() << "Only valid on linux systems.";
TEST_SKIP("Only valid on linux systems.");
constexpr uptr NumPages = 512;
const uptr SizeBytes = NumPages * getPageSizeCached();
@ -67,7 +67,7 @@ TEST(ScudoCommonTest, VerifyGetResidentPages) {
TEST(ScudoCommonTest, VerifyReleasePagesToOS) {
if (!SCUDO_LINUX)
GTEST_SKIP() << "Only valid on linux systems.";
TEST_SKIP("Only valid on linux systems.");
constexpr uptr NumPages = 1000;
const uptr SizeBytes = NumPages * getPageSizeCached();