From: Ondřej Surý Date: Fri, 22 Nov 2019 10:52:16 +0000 (+0100) Subject: Detect cores on FreeBSD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cff65624e0bb952ae44884b1ec4688d836e34a36;p=thirdparty%2Fbind9.git Detect cores on FreeBSD --- diff --git a/bin/tests/system/run.sh b/bin/tests/system/run.sh index 7eada691a16..85afc56c5b6 100755 --- a/bin/tests/system/run.sh +++ b/bin/tests/system/run.sh @@ -189,13 +189,13 @@ if [ $status != 0 ]; then echofail "R:$systest:FAIL" # Do not clean up - we need the evidence. else - core_dumps="$(find $systest/ -name 'core*' | sort | tr '\n' ' ')" + core_dumps="$(find $systest/ -name 'core*' -or -name '*.core' | sort | tr '\n' ' ')" assertion_failures=$(find $systest/ -name named.run | xargs grep "assertion failure" | wc -l) if [ -n "$core_dumps" ]; then echoinfo "I:$systest:Test claims success despite crashes: $core_dumps" echofail "R:$systest:FAIL" # Do not clean up - we need the evidence. - find "$systest/" -name 'core*' | while read -r coredump; do + find "$systest/" -name 'core*' -or -name '*.core' | while read -r coredump; do SYSTESTDIR="$systest" echoinfo "D:$systest:backtrace from $coredump start" binary=$(gdb --batch --core="$coredump" | sed -ne "s/Core was generated by \`//;s/ .*'.$//p;")