From 852f9b067348d015345ef945fdf7e4935e8865d9 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 2 Jun 2023 16:34:28 -0700 Subject: [PATCH] Modify how the malloc debug tests run. This will, hopefully, reduce the number of flaky runs of this test. Add skipping xml files for the notice file parser. Bug: 280572235 Test: atest malloc_debug_system_tests Change-Id: I6fb76287f55d0cff5b695dce09cc2b7a69b62874 --- libc/malloc_debug/Android.bp | 1 + libc/malloc_debug/tests/AndroidTest.xml | 42 +++++++++++++++++++++++++ libc/tools/generate_notice.py | 1 + 3 files changed, 44 insertions(+) create mode 100644 libc/malloc_debug/tests/AndroidTest.xml diff --git a/libc/malloc_debug/Android.bp b/libc/malloc_debug/Android.bp index 373d49754..24bb18a40 100644 --- a/libc/malloc_debug/Android.bp +++ b/libc/malloc_debug/Android.bp @@ -197,4 +197,5 @@ cc_test { "-O0", ], test_suites: ["general-tests"], + test_config: "tests/AndroidTest.xml", } diff --git a/libc/malloc_debug/tests/AndroidTest.xml b/libc/malloc_debug/tests/AndroidTest.xml new file mode 100644 index 000000000..c89cbb5bc --- /dev/null +++ b/libc/malloc_debug/tests/AndroidTest.xml @@ -0,0 +1,42 @@ + + + + diff --git a/libc/tools/generate_notice.py b/libc/tools/generate_notice.py index e004d74e9..505708a76 100755 --- a/libc/tools/generate_notice.py +++ b/libc/tools/generate_notice.py @@ -33,6 +33,7 @@ def is_interesting(path_str: str) -> bool: ".pyc", ".swp", ".txt", + ".xml", ] if path.suffix in uninteresting_extensions: return False