From 0259ff58e13d94ee497d07072505c94ee8144a42 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Mon, 21 Sep 2020 17:59:06 +0200 Subject: Exclude sanitizer on unit tests involving json-c due to a bug in the lib --- tests/do.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/do.sh b/tests/do.sh index 3598146a5..5ec8384e6 100755 --- a/tests/do.sh +++ b/tests/do.sh @@ -47,6 +47,18 @@ check_results() { } check_unit() { + + case "$CXXFLAGS" in + # Skipping tests with sanitizer enabled due to use-of-uninitialized-value in json-c + *sanitize* ) + echo "Skipping unit tests for this environment" + return + ;; + * ) + echo "Running unit tests.." + ;; + esac + $UNIT UNIT_RC=$? if [ $UNIT_RC -ne 0 ]; then -- cgit v1.2.3