From: Matthew Fernandez Date: Wed, 16 Nov 2022 05:26:51 +0000 (-0800) Subject: CI: make UBSan errors in compiled test cases fail the test X-Git-Tag: 7.0.2~7^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f70072bc91fe5b3de9d9e4852ba4719a02fb6f64;p=graphviz CI: make UBSan errors in compiled test cases fail the test 0d0c20797a0cf2937886945f3aecc4e8a9a55e8c adjusted this for the build job, but not for the test job. It is useful to have this enabled for the test job as well because some test cases involve compiling C code, for which we want full ASan and UBSan enabled too. Gitlab: #2200 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea843e1a5..fde01d34b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1171,9 +1171,9 @@ ubuntu-22.10-cmake-ASan-test-including-ctest: <<: *linux_test_definition_including_ctest before_script: - export build_system="cmake" - - export CFLAGS=" -g -fsanitize=address,undefined" - - export CXXFLAGS=" -g -fsanitize=address,undefined" - - export LDFLAGS=" -g -fsanitize=address,undefined" + - export CFLAGS="-g -fsanitize=address,undefined -fno-sanitize-recover=address,undefined" + - export CXXFLAGS="-g -fsanitize=address,undefined -fno-sanitize-recover=address,undefined" + - export LDFLAGS="-g -fsanitize=address,undefined -fno-sanitize-recover=address,undefined" - python3 gen_version.py --output GRAPHVIZ_VERSION needs: - job: "ubuntu-22.10-cmake-ASan-build-for-ctest"