]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check config.log for ASAN errors
authorMichal Nowak <mnowak@isc.org>
Fri, 5 Feb 2021 11:12:41 +0000 (12:12 +0100)
committerMichal Nowak <mnowak@isc.org>
Tue, 9 Feb 2021 10:56:08 +0000 (11:56 +0100)
./configure checks might produce a false negative error due to ASAN
errors and thus disable some options.

.gitlab-ci.yml

index 4d0138780a1c073fc004c0338c62d206c2318505..98d800490d213a16e8c17f90a635398ee13fa8b6 100644 (file)
@@ -251,6 +251,7 @@ stages:
     - make -j${BUILD_PARALLEL_JOBS:-1} -k all V=1
     - test -z "${RUN_MAKE_INSTALL}" || make install
     - test -z "${RUN_MAKE_INSTALL}" || sh util/check-make-install
+    - if [[ "${CFLAGS}" == *"-fsanitize=address"* ]]; then ( ! grep -F AddressSanitizer config.log ); fi
     - if test -z "${OUT_OF_TREE_WORKSPACE}" && test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
   after_script:
     - test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"