Ignore potential memory leaks in a test module
Bug: 259995529
Test: make tidy-system_subset
Change-Id: I8dc5abc9792f490662c089707b53f15a72104ce0
diff --git a/Android.bp b/Android.bp
index 5a788b7..43e1dd8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -87,7 +87,11 @@
"tests/HeapWalker_test.cpp",
"tests/LeakFolding_test.cpp",
],
-
+ tidy_checks: [
+ // Ignore memory leaks after ASSERT_NE in DisableMalloc_test.cpp.
+ "-clang-analyzer-cplusplus.NewDeleteLeaks",
+ "-clang-analyzer-unix.Malloc",
+ ],
target: {
android: {
srcs: [