ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
8d419f
From e5291b4fb0d9adfc9da510f4acc7330d57e3e415 Mon Sep 17 00:00:00 2001
8d419f
From: Frantisek Sumsal <frantisek@sumsal.cz>
8d419f
Date: Tue, 21 Jun 2022 10:13:48 +0200
8d419f
Subject: [PATCH] test: drop the at_exit() coredump check
8d419f
8d419f
since we don't truncate the journal anymore.
8d419f
8d419f
(cherry picked from commit 5309b56505dfccf9111cb5fe6461047725429e79)
8d419f
8d419f
Related: #2087652
8d419f
---
8d419f
 test/units/testsuite-21.sh | 12 +-----------
8d419f
 1 file changed, 1 insertion(+), 11 deletions(-)
8d419f
8d419f
diff --git a/test/units/testsuite-21.sh b/test/units/testsuite-21.sh
8d419f
index 604bf145ca..053d571a90 100755
8d419f
--- a/test/units/testsuite-21.sh
8d419f
+++ b/test/units/testsuite-21.sh
8d419f
@@ -8,17 +8,7 @@ set -o pipefail
8d419f
 systemctl list-jobs | grep -F 'end.service' && SHUTDOWN_AT_EXIT=1 || SHUTDOWN_AT_EXIT=0
8d419f
 
8d419f
 at_exit() {
8d419f
-    # "Safety net" - check for any coredumps which might have not caused dfuzzer
8d419f
-    # to stop & return an error (we need to do this now before truncating the
8d419f
-    # journal)
8d419f
-    # TODO: check fo ASan/UBSan errors
8d419f
-    local found_cd=0
8d419f
-    while read -r exe; do
8d419f
-        coredumctl info "$exe"
8d419f
-        found_cd=1
8d419f
-    done < <(coredumpctl -F COREDUMP_EXE | sort -u)
8d419f
-    [[ $found_cd -eq 0 ]] || exit 1
8d419f
-
8d419f
+    set +e
8d419f
     # We have to call the end.service explicitly even if it's specified on
8d419f
     # the kernel cmdline via systemd.wants=end.service, since dfuzzer calls
8d419f
     # org.freedesktop.systemd1.Manager.ClearJobs() which drops the service