]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't clean the system test temporary files if sanitizer reports were found inside
authorOndřej Surý <ondrej@isc.org>
Tue, 26 Nov 2019 17:03:33 +0000 (18:03 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 28 Nov 2019 21:39:20 +0000 (21:39 +0000)
bin/tests/system/run.sh

index 85afc56c5b632392cb03c145a5d951b62ab71356..a627c39ca2a7e6e1519597ecded9889fbe1f5174 100755 (executable)
@@ -191,6 +191,7 @@ if [ $status != 0 ]; then
 else
     core_dumps="$(find $systest/ -name 'core*' -or -name '*.core' | sort | tr '\n' ' ')"
     assertion_failures=$(find $systest/ -name named.run | xargs grep "assertion failure" | wc -l)
+    sanitizer_summaries=$(grep -r "SUMMARY: .*Sanitizer" $systest/ | wc -l)
     if [ -n "$core_dumps" ]; then
         echoinfo "I:$systest:Test claims success despite crashes: $core_dumps"
         echofail "R:$systest:FAIL"
@@ -211,6 +212,9 @@ else
         echoinfo "I:$systest:Test claims success despite $assertion_failures assertion failure(s)"
         echofail "R:$systest:FAIL"
         # Do not clean up - we need the evidence.
+    elif [ $sanitizer_summaries -ne 0 ]; then
+        echoinfo "I:$systest:Test claims success despite $sanitizer_summaries sanitizer reports(s)"
+        echofail "R:$systest:FAIL"
     else
         echopass "R:$systest:PASS"
         if $clean