From 16ebd647896afee66882a61d7572d4aaca7ffe7e Mon Sep 17 00:00:00 2001 From: ComixHe Date: Tue, 29 Aug 2023 18:42:35 +0800 Subject: [PATCH] build: remove asan when running ut Signed-off-by: ComixHe --- tests/CMakeLists.txt | 7 ------- tests/main.cpp | 2 -- 2 files changed, 9 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fa386b5..e8581dd 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -20,13 +20,6 @@ target_link_libraries(${BIN_NAME} PRIVATE target_compile_options(${BIN_NAME} PRIVATE -fno-access-control - -fsanitize=undefined - -fsanitize=address -) - -target_link_options(${BIN_NAME} PRIVATE - -fsanitize=undefined - -fsanitize=address ) add_test( diff --git a/tests/main.cpp b/tests/main.cpp index 44b8e27..09e9540 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -5,7 +5,6 @@ #include #include #include -#include int main(int argc, char **argv) { @@ -16,7 +15,6 @@ int main(int argc, char **argv) ret = RUN_ALL_TESTS(); QCoreApplication::quit(); }); - __sanitizer_set_report_path("asan_am.log"); QCoreApplication::exec(); return ret; }