source:
mod_gnutls/debian/patches/0003-Test-suite-Log-if-a-process-to-be-stopped-by-PID-fil.patch
@
36663ec
Last change on this file since 36663ec was 36663ec, checked in by , 2 years ago | |
---|---|
|
|
File size: 954 bytes |
-
test/runtests
From: Thomas Klute <thomas2.klute@uni-dortmund.de> Date: Mon, 6 Feb 2017 17:11:47 +0100 Subject: Test suite: Log if a process to be stopped by PID file is not running The runtests script calls "sleep ${TEST_QUERY_DELAY}" to keep the input pipeline for gnutls-cli open, effectively creating a timeout of TEST_QUERY_DELAY seconds for the HTTPS request. Normally the sleep process is killed after the request completes to avoid stalling the test suite. The sleep process no longer running at that point indicates that the request timed out. --- test/runtests | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/runtests b/test/runtests index 0020fb4..9e98b8d 100755
a b function kill_by_pidfile() 88 88 local pid=$(cat "${pidfile}") 89 89 if [ -n "${pid}" ] && ps -p "${pid}"; then 90 90 kill "${pid}" 91 else 92 echo "No running process with PID ${pid} (${pidfile})." 91 93 fi 92 94 rm "${pidfile}" 93 95 fi
Note: See TracBrowser
for help on using the repository browser.