From 8356fbed4d986717a1c51b66094f332c6db03918 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 6 Apr 2026 16:45:08 -0400 Subject: ASAN: Keep it simple * Write once, use many --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a5576f..ec43348 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,10 +8,11 @@ set(CMAKE_C_STANDARD 99) find_package(LibXml2) find_package(CURL) -option(ASAN OFF) +option(ASAN "Address Analyzer" OFF) +set(ASAN_OPTIONS "-fsanitize=address,leak,null,undefined") if (ASAN) - add_compile_options(-fsanitize=address) - add_link_options(-fsanitize=address) + add_compile_options(${ASAN_OPTIONS} -g -O0) + add_link_options(${ASAN_OPTIONS}) endif() pkg_check_modules(ZIP libzip) -- cgit From 955757b00984912afd7092653e7553cf55555a92 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 7 Apr 2026 09:30:01 -0400 Subject: ASAN: Keep frame pointer --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec43348..bd214ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ find_package(CURL) option(ASAN "Address Analyzer" OFF) set(ASAN_OPTIONS "-fsanitize=address,leak,null,undefined") if (ASAN) - add_compile_options(${ASAN_OPTIONS} -g -O0) + add_compile_options(${ASAN_OPTIONS} -fno-omit-frame-pointer -g -O0) add_link_options(${ASAN_OPTIONS}) endif() -- cgit From 4a0e2c286e3cdab17b5312877cb8985222ac15b9 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Apr 2026 08:18:17 -0400 Subject: tests: Increase timeout to 10 minutes --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 08ef833..dd68231 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -44,7 +44,7 @@ foreach(source_file ${source_files}) add_test(${test_executable} ${test_executable}) set_tests_properties(${test_executable} PROPERTIES - TIMEOUT 240) + TIMEOUT 600) set_tests_properties(${test_executable} PROPERTIES SKIP_RETURN_CODE 127) -- cgit From 18a86918d03ccd6b34ede7c4ea67b6d794ee155f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Apr 2026 08:43:01 -0400 Subject: Only show output from failed suites --- .github/workflows/cmake-multi-platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 85255c4..c4e361f 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -77,6 +77,6 @@ jobs: - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }} - run: ctest -V --build-config ${{ matrix.build_type }} --output-junit results.xml --test-output-size-passed 65536 --test-output-size-failed 65536 + run: ctest --build-config ${{ matrix.build_type }} --output-on-failure --output-junit results.xml --test-output-size-passed 65536 --test-output-size-failed 65536 env: STASIS_SYSCONFDIR: ../../.. -- cgit