]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: drop the at_exit() coredump check
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 21 Jun 2022 08:13:48 +0000 (10:13 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 21 Jun 2022 08:13:48 +0000 (10:13 +0200)
since we don't truncate the journal anymore.

test/units/testsuite-21.sh

index 604bf145cac2e8bb30e2f2adf9efff945fce48b0..053d571a90f1f5e52307c7ba662540cdda6a2e98 100755 (executable)
@@ -8,17 +8,7 @@ set -o pipefail
 systemctl list-jobs | grep -F 'end.service' && SHUTDOWN_AT_EXIT=1 || SHUTDOWN_AT_EXIT=0
 
 at_exit() {
-    # "Safety net" - check for any coredumps which might have not caused dfuzzer
-    # to stop & return an error (we need to do this now before truncating the
-    # journal)
-    # TODO: check fo ASan/UBSan errors
-    local found_cd=0
-    while read -r exe; do
-        coredumctl info "$exe"
-        found_cd=1
-    done < <(coredumpctl -F COREDUMP_EXE | sort -u)
-    [[ $found_cd -eq 0 ]] || exit 1
-
+    set +e
     # We have to call the end.service explicitly even if it's specified on
     # the kernel cmdline via systemd.wants=end.service, since dfuzzer calls
     # org.freedesktop.systemd1.Manager.ClearJobs() which drops the service