Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit fb4b87b

Browse files
committed
Disable hwasan tests on zero checking tests.
The malloc.zeroed_allocations_{small_medium_sizes,large_sizes,realloc} tests are meant to test the system allocator. They appear to be failing on hwasan under some circumstances, so simply disable them for hwasan since it doesn't make sense to test the hwasan allocator. Bug: 356555231 Test: Ran on hwasan and verified tests are skipped. Change-Id: I46db7451ac412d6cc8d907a8d08d95337a9382d1
1 parent 8232cb9 commit fb4b87b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/malloc_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,7 @@ TEST(malloc, zeroed_allocations_small_medium_sizes) {
16271627
#if !defined(__BIONIC__)
16281628
GTEST_SKIP() << "Only valid on bionic";
16291629
#endif
1630+
SKIP_WITH_HWASAN << "Only test system allocator, not hwasan allocator.";
16301631

16311632
if (IsLowRamDevice()) {
16321633
GTEST_SKIP() << "Skipped on low memory devices.";
@@ -1657,6 +1658,7 @@ TEST(malloc, zeroed_allocations_large_sizes) {
16571658
#if !defined(__BIONIC__)
16581659
GTEST_SKIP() << "Only valid on bionic";
16591660
#endif
1661+
SKIP_WITH_HWASAN << "Only test system allocator, not hwasan allocator.";
16601662

16611663
if (IsLowRamDevice()) {
16621664
GTEST_SKIP() << "Skipped on low memory devices.";
@@ -1687,6 +1689,7 @@ TEST(malloc, zeroed_allocations_realloc) {
16871689
#if !defined(__BIONIC__)
16881690
GTEST_SKIP() << "Only valid on bionic";
16891691
#endif
1692+
SKIP_WITH_HWASAN << "Only test system allocator, not hwasan allocator.";
16901693

16911694
if (IsLowRamDevice()) {
16921695
GTEST_SKIP() << "Skipped on low memory devices.";

0 commit comments

Comments
 (0)