richardphibel / rpms / systemd

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