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:
George Burgess IV 2017-10-31 11:22:47 -07:00
parent 9fe034b7bb
commit 0086fc813e
3 changed files with 4 additions and 4 deletions

View File

@ -221,7 +221,7 @@ cc_test_library {
], ],
// Ignore that we don't have ASAN symbols linked in. // Ignore that we don't have ASAN symbols linked in.
allow_undefined_symbols: true, 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: // 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_FORTIFY_SOURCE=2",
"-D__clang_analyzer__", "-D__clang_analyzer__",
], ],
srcs: ["fortify_compilation_test.cpp"], srcs: ["fortify_filecheck_diagnostics_test.cpp"],
} }
cc_test_library { cc_test_library {

View File

@ -78,7 +78,7 @@ LOCAL_MODULE := bionic-compile-time-tests-g++
LOCAL_CPPFLAGS := -Wall LOCAL_CPPFLAGS := -Wall
# Disable color diagnostics so the warnings output matches the source # Disable color diagnostics so the warnings output matches the source
LOCAL_CPPFLAGS += -fdiagnostics-color=never 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 $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS) include $(CLEAR_VARS)
@ -96,7 +96,7 @@ LOCAL_CLANG := true
LOCAL_MODULE := bionic-compile-time-tests-clang++ LOCAL_MODULE := bionic-compile-time-tests-clang++
LOCAL_CPPFLAGS := -Wall LOCAL_CPPFLAGS := -Wall
LOCAL_CPPFLAGS += -fno-color-diagnostics -ferror-limit=10000 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) include $(BUILD_STATIC_LIBRARY)
endif # linux-x86 endif # linux-x86