Do not run clang-tidy with fortify tests.
* When clang-tidy is called, its checks
gave different diagnostic messages.
Bug: 178534530
Test: mm with WITH_TIDY=1
Change-Id: I5eec8239d5531f88caefca3c4032f9764deb9e09
diff --git a/tests/Android.bp b/tests/Android.bp
index 678eae8..a6a930e 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -559,6 +559,7 @@
"-U_FORTIFY_SOURCE",
],
srcs: ["fortify_test_main.cpp"],
+ tidy: false,
target: {
host: {
clang_cflags: ["-D__clang__"],
@@ -597,6 +598,7 @@
"-D__clang_analyzer__",
],
srcs: ["clang_fortify_tests.cpp"],
+ tidy: false,
}
cc_test_library {
@@ -638,6 +640,7 @@
"-U_FORTIFY_SOURCE",
],
srcs: ["clang_fortify_tests.cpp"],
+ tidy: false,
target: {
host: {
clang_cflags: ["-D__clang__"],
diff --git a/tests/make_fortify_compile_test.mk b/tests/make_fortify_compile_test.mk
index 8270f29..c36dfdd 100644
--- a/tests/make_fortify_compile_test.mk
+++ b/tests/make_fortify_compile_test.mk
@@ -9,6 +9,7 @@
LOCAL_CLANG := true
LOCAL_MODULE := bionic-compile-time-tests$(FORTIFY_LEVEL)-clang++
+LOCAL_TIDY := false
LOCAL_CPPFLAGS := -Wall -Wno-error
LOCAL_CPPFLAGS += -fno-color-diagnostics -ferror-limit=10000 -Xclang -verify
LOCAL_CPPFLAGS += -DCOMPILATION_TESTS=1 -Wformat-nonliteral