source: mod_gnutls/debian/patches/0003-Test-suite-Log-if-a-process-to-be-stopped-by-PID-fil.patch @ 36663ec

debian/masterdebian/stretch-backports
Last change on this file since 36663ec was 36663ec, checked in by Thomas Klute <thomas2.klute@…>, 22 months ago

Add test suite and compatibility patches from master

Added 0002-Test-suite-Run-flock-with-verbose-to-log-timeouts.patch: test suite fix
Added 0005-Check-if-flock-supports-verbose.patch: test suite fix
Added 0004-Test-suite-Make-timeouts-for-server-locks-and-HTTPS-.patch: test suite fix
Added 0006-Test-suite-Do-not-explicitly-set-the-mutex-type-to-d.patch: test suite fix
Added 0007-Do-not-treat-warnings-about-deprecated-declarations-.patch: GnuTLS 3.5.9 compatibility
Added 0003-Test-suite-Log-if-a-process-to-be-stopped-by-PID-fil.patch: test suite logging

  • Property mode set to 100644
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() 
    8888        local pid=$(cat "${pidfile}")
    8989        if [ -n "${pid}" ] && ps -p "${pid}"; then
    9090            kill "${pid}"
     91        else
     92            echo "No running process with PID ${pid} (${pidfile})."
    9193        fi
    9294        rm "${pidfile}"
    9395    fi
Note: See TracBrowser for help on using the repository browser.