diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-02-09 15:52:35 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-02-09 15:52:35 +0000 |
commit | 07f854e726f1b91c7ee5b9ed5f3ff303a40268d0 (patch) | |
tree | 5641209ead06ac71c8ad0faae34691f65c68384a | |
parent | 4f28e50dc8e4a99c3a66837594668129d3eee6f1 (diff) | |
download | bcm5719-llvm-07f854e726f1b91c7ee5b9ed5f3ff303a40268d0.tar.gz bcm5719-llvm-07f854e726f1b91c7ee5b9ed5f3ff303a40268d0.zip |
[sanitizer_common] Add suffix to lit testsuite name to distinguish subtargets.
Summary:
This fixes duplicate test names in the test results, so:
PASS: SanitizerCommon-asan :: fopen_nullptr.c (304 of 431)
PASS: SanitizerCommon-asan :: fopen_nullptr.c (305 of 431)
is now:
PASS: SanitizerCommon-asan-i386-Linux :: fopen_nullptr.c (282 of 431)
PASS: SanitizerCommon-asan-x86_64-Linux :: fopen_nullptr.c (316 of 431)
Reviewers: samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D16850
llvm-svn: 260227
-rw-r--r-- | compiler-rt/test/sanitizer_common/CMakeLists.txt | 1 | ||||
-rw-r--r-- | compiler-rt/test/sanitizer_common/lit.common.cfg | 2 | ||||
-rw-r--r-- | compiler-rt/test/sanitizer_common/lit.site.cfg.in | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/test/sanitizer_common/CMakeLists.txt b/compiler-rt/test/sanitizer_common/CMakeLists.txt index 54b9135278c..748547adfe7 100644 --- a/compiler-rt/test/sanitizer_common/CMakeLists.txt +++ b/compiler-rt/test/sanitizer_common/CMakeLists.txt @@ -36,6 +36,7 @@ foreach(tool ${SUPPORTED_TOOLS}) string(REPLACE ";" " " SANITIZER_COMMON_TEST_TARGET_CFLAGS "${SANITIZER_COMMON_TEST_TARGET_CFLAGS}") endif() set(CONFIG_NAME ${tool}-${arch}-${OS_NAME}) + set(SANITIZER_COMMON_TEST_CONFIG_SUFFIX "-${arch}-${OS_NAME}") configure_lit_site_cfg( ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg) diff --git a/compiler-rt/test/sanitizer_common/lit.common.cfg b/compiler-rt/test/sanitizer_common/lit.common.cfg index 7abbfc2d3c3..621bf1f56d1 100644 --- a/compiler-rt/test/sanitizer_common/lit.common.cfg +++ b/compiler-rt/test/sanitizer_common/lit.common.cfg @@ -3,7 +3,7 @@ # Setup source root. config.test_source_root = os.path.join(os.path.dirname(__file__), "TestCases") -config.name = "SanitizerCommon-" + config.tool_name +config.name = "SanitizerCommon-" + config.tool_name + config.name_suffix default_tool_options = [] if config.tool_name == "asan": diff --git a/compiler-rt/test/sanitizer_common/lit.site.cfg.in b/compiler-rt/test/sanitizer_common/lit.site.cfg.in index 64a3edf6c68..80279772795 100644 --- a/compiler-rt/test/sanitizer_common/lit.site.cfg.in +++ b/compiler-rt/test/sanitizer_common/lit.site.cfg.in @@ -2,6 +2,7 @@ lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured") # Tool-specific config options. +config.name_suffix = "@SANITIZER_COMMON_TEST_CONFIG_SUFFIX@" config.tool_name = "@SANITIZER_COMMON_LIT_TEST_MODE@" config.target_cflags = "@SANITIZER_COMMON_TEST_TARGET_CFLAGS@" config.target_arch = "@SANITIZER_COMMON_TEST_TARGET_ARCH@" |