Rename the fortify compile-time diags test
Following up on comments from I40c66ff9e638b306878ada006bc2c98f2346e77a. My best attempt at a name that conveys "a test that fails to compile in N different ways with FORTIFY enabled, and is intended to be used with either FileCheck, or as a cheap way to check that FORTIFY is getting properly disabled given some set of flags." Bug: None Test: mma. Change-Id: I6d62875bd1cabc5d01b10ae0f03accd5ee5c8c0a
This commit is contained in:
parent
9fe034b7bb
commit
0086fc813e
|
@ -221,7 +221,7 @@ cc_test_library {
|
|||
],
|
||||
// Ignore that we don't have ASAN symbols linked in.
|
||||
allow_undefined_symbols: true,
|
||||
srcs: ["fortify_compilation_test.cpp"],
|
||||
srcs: ["fortify_filecheck_diagnostics_test.cpp"],
|
||||
}
|
||||
|
||||
// Ensure we don't use FORTIFY'ed functions with the static analyzer/clang-tidy:
|
||||
|
@ -235,7 +235,7 @@ cc_test_library {
|
|||
"-D_FORTIFY_SOURCE=2",
|
||||
"-D__clang_analyzer__",
|
||||
],
|
||||
srcs: ["fortify_compilation_test.cpp"],
|
||||
srcs: ["fortify_filecheck_diagnostics_test.cpp"],
|
||||
}
|
||||
|
||||
cc_test_library {
|
||||
|
|
|
@ -78,7 +78,7 @@ LOCAL_MODULE := bionic-compile-time-tests-g++
|
|||
LOCAL_CPPFLAGS := -Wall
|
||||
# Disable color diagnostics so the warnings output matches the source
|
||||
LOCAL_CPPFLAGS += -fdiagnostics-color=never
|
||||
LOCAL_SRC_FILES := fortify_compilation_test.cpp
|
||||
LOCAL_SRC_FILES := fortify_filecheck_diagnostics_test.cpp
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
@ -96,7 +96,7 @@ LOCAL_CLANG := true
|
|||
LOCAL_MODULE := bionic-compile-time-tests-clang++
|
||||
LOCAL_CPPFLAGS := -Wall
|
||||
LOCAL_CPPFLAGS += -fno-color-diagnostics -ferror-limit=10000
|
||||
LOCAL_SRC_FILES := fortify_compilation_test.cpp
|
||||
LOCAL_SRC_FILES := fortify_filecheck_diagnostics_test.cpp
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
endif # linux-x86
|
||||
|
|
Loading…
Reference in New Issue