Merge branch '3980-add-timeouts-to-unit-tests-9.18' into 'bind-9.18'

[9.18] Use SIGABRT rather than SIGKILL for long running unit test

See merge request isc-projects/bind9!7892
This commit is contained in:
Michał Kępień 2023-05-05 12:26:53 +00:00
commit 9ae821b70e

View file

@ -35,8 +35,8 @@ while [ ${TIMEOUT} -gt 0 ]; do
TIMEOUT=$((TIMEOUT - 1))
done
if [ ${TIMEOUT} -eq 0 ]; then
echo "PID ${TEST_PROGRAM_PID} exceeded run time limit, sending SIGKILL" >&2
kill -KILL "${TEST_PROGRAM_PID}" 2>/dev/null
echo "PID ${TEST_PROGRAM_PID} exceeded run time limit, sending SIGABRT" >&2
kill -ABRT "${TEST_PROGRAM_PID}" 2>/dev/null
fi
TEST_PROGRAM_NAME=$(basename "${TEST_PROGRAM}")