ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
8d419f
From 8f848593293b69f293734e07ec975ee76a3e6df5 Mon Sep 17 00:00:00 2001
8d419f
From: Frantisek Sumsal <frantisek@sumsal.cz>
8d419f
Date: Sun, 19 Jun 2022 10:39:12 +0200
8d419f
Subject: [PATCH] test: skip TEST-21-DFUZZER without ASan
8d419f
8d419f
as the test is quite time consuming and it yields more useful reports
8d419f
when the target app is built with sanitizers.
8d419f
8d419f
(cherry picked from commit d768243a95c33e73afe9a7e487acf329884e03c1)
8d419f
8d419f
Related: #2087652
8d419f
---
8d419f
 test/TEST-21-DFUZZER/test.sh | 5 +++++
8d419f
 1 file changed, 5 insertions(+)
8d419f
8d419f
diff --git a/test/TEST-21-DFUZZER/test.sh b/test/TEST-21-DFUZZER/test.sh
8d419f
index ecc04e368c..42e37c8a9c 100755
8d419f
--- a/test/TEST-21-DFUZZER/test.sh
8d419f
+++ b/test/TEST-21-DFUZZER/test.sh
8d419f
@@ -12,6 +12,11 @@ QEMU_TIMEOUT="${QEMU_TIMEOUT:-1800}"
8d419f
 
8d419f
 command -v dfuzzer >/dev/null || exit 0
8d419f
 
8d419f
+if ! get_bool "$IS_BUILT_WITH_ASAN"; then
8d419f
+    echo "systemd is built without ASan, skipping..."
8d419f
+    exit 0
8d419f
+fi
8d419f
+
8d419f
 test_append_files() {
8d419f
     local workspace="${1:?}"
8d419f