]> granicus.if.org Git - graphviz/commitdiff
CI: make UBSan errors in compiled test cases fail the test
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Nov 2022 05:26:51 +0000 (21:26 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Nov 2022 15:49:43 +0000 (07:49 -0800)
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

.gitlab-ci.yml

index ea843e1a5fbe7c32d40d35204f73250f9b94cbce..fde01d34b5ffaf1fed08cdfe3142a84b0bf0e33b 100644 (file)
@@ -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"