TEST-21-DFUZZER: skip test when no sanitizer is enabled

This commit is contained in:
Yu Watanabe
2025-05-14 02:28:22 +09:00
parent 5884fafcd7
commit 59dd650501
3 changed files with 13 additions and 8 deletions
+5
View File
@@ -9,6 +9,11 @@ if ! command -v dfuzzer &>/dev/null; then
exit 77
fi
if [[ ! -v ASAN_OPTIONS && ! -v UBSAN_OPTIONS && "${TEST_RUN_DFUZZER:-0}" == "0" ]]; then
echo "no sanitizer is enabled, skipping. (Hint: set TEST_RUN_DFUZZER=1 to run test forcibly)."
exit 77
fi
# Save the end.service state before we start fuzzing, as it might get changed
# on the fly by one of the fuzzers
systemctl list-jobs | grep -F 'end.service' && SHUTDOWN_AT_EXIT=1 || SHUTDOWN_AT_EXIT=0