From f1abee33655e414e7a1fca09640f98a1cb4f8b3d Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 11 Apr 2020 10:11:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 5 ----- tests/CMakeLists.txt | 27 +++++++++------------------ 2 files changed, 9 insertions(+), 23 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d249a4d..5fd171e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,6 @@ # 2015 RWTH Aachen University, Federal Republic of Germany # - # # project information # @@ -35,15 +34,11 @@ cmake_minimum_required(VERSION 2.8) # project name project("CMake-sanitizers") - - # # cmake configuration # set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) - - # # add tests # diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8553e63..9f32cd8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -26,24 +26,22 @@ # Function to add testcases. function(add_testcase TESTNAME SOURCEFILES) - # remove ${TESTNAME} from ${ARGV} to use ${ARGV} as ${SOURCEFILES} - list(REMOVE_AT ARGV 0) + # remove ${TESTNAME} from ${ARGV} to use ${ARGV} as ${SOURCEFILES} + list(REMOVE_AT ARGV 0) - # add a new executable - add_executable(${TESTNAME} ${ARGV}) + # add a new executable + add_executable(${TESTNAME} ${ARGV}) - # add a testcase for executable - add_test(${TESTNAME} ${TESTNAME}) + # add a testcase for executable + add_test(${TESTNAME} ${TESTNAME}) endfunction(add_testcase) # Function to add testcases with asan enabled. function(add_sanitized_testcase TESTNAME SOURCEFILES) - add_testcase(${TESTNAME} ${SOURCEFILES}) - add_sanitizers(${TESTNAME}) + add_testcase(${TESTNAME} ${SOURCEFILES}) + add_sanitizers(${TESTNAME}) endfunction(add_sanitized_testcase) - - set(SANITIZE_ADDRESS TRUE) # @@ -51,17 +49,10 @@ set(SANITIZE_ADDRESS TRUE) # find_package(Sanitizers) - # # add testcases # add_sanitized_testcase("asan_test_cpp" asan_test.cpp) add_sanitized_testcase("shortest_ext_test_cpp" shortest.ext.test.cpp) -set_tests_properties( - "asan_test_cpp" - "shortest_ext_test_cpp" -PROPERTIES - WILL_FAIL TRUE -) - +set_tests_properties("asan_test_cpp" "shortest_ext_test_cpp" PROPERTIES WILL_FAIL TRUE)