1From fedff5ac77c945fc0c5df534074163a784bfa5b3 Mon Sep 17 00:00:00 2001 2From: Florian Weimer <fweimer@redhat.com> 3Date: Wed, 7 Sep 2022 14:01:36 +0200 4Subject: [PATCH] tests/run-coredump-unwind: Skip test if no coredump has been 5 created 6 7In some build environments, coredumps are not created even if the 8corresponding ulimit is positive. This change skips the test if 9the coredump is missing. 10--- 11 tests/run-coredump-unwind | 4 ++++ 12 1 file changed, 4 insertions(+) 13 14diff --git a/tests/run-coredump-unwind b/tests/run-coredump-unwind 15index 8d07742..0c2b28c 100755 16--- a/tests/run-coredump-unwind 17+++ b/tests/run-coredump-unwind 18@@ -48,6 +48,10 @@ fi 19 ./crasher backing_files 20 ) 2>/dev/null 21 COREFILE=$TEMPDIR/core* 22+if ! test -f "$COREFILE"; then 23+ echo "crasher process did not produce coredump, test skipped" 24+ exit 77 25+fi 26 27 # magic option -testcase enables checking for the specific contents of the stack 28 ./test-coredump-unwind $COREFILE -testcase `cat $TEMPDIR/backing_files` 29-- 302.33.0 31 32