summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-06 16:34:18 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-06 16:58:32 +0200
commit5e8e7dd4ebb4b501555d1fd62cc93bece76d04ce (patch)
treef6cf32453a9102532ef9e7823fb8131370544ac9
parent793db3af32b5d7d06e85f69e78fcb43e3ae90611 (diff)
downloadgnutls-linger0.tar.gz
tests: use --linger0 when running gnutls-servlinger0
This will reduce the number of failed tests due to port re-use.
-rw-r--r--tests/scripts/common.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index b338201cb2..32e3827376 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -37,7 +37,7 @@ fail() {
launch_server() {
PARENT="$1"
shift
- ${SERV} ${DEBUG} -p "${PORT}" $* >/dev/null 2>&1 &
+ ${SERV} ${DEBUG} -p "${PORT}" --linger0 $* >/dev/null 2>&1 &
LOCALPID="$!"
trap "[ ! -z \"${LOCALPID}\" ] && kill ${LOCALPID};" 15
wait "${LOCALPID}"
@@ -54,7 +54,7 @@ launch_pkcs11_server() {
shift
PROVIDER="$1"
shift
- ${VALGRIND} ${SERV} ${PROVIDER} ${DEBUG} -p "${PORT}" $* &
+ ${VALGRIND} ${SERV} ${PROVIDER} ${DEBUG} -p "${PORT}" --linger0 $* &
LOCALPID="$!"
trap "[ ! -z \"${LOCALPID}\" ] && kill ${LOCALPID};" 15
wait "${LOCALPID}"
@@ -69,7 +69,7 @@ launch_pkcs11_server() {
launch_bare_server() {
PARENT="$1"
shift
- ${SERV} $* >/dev/null 2>&1 &
+ ${SERV} --linger0 $* >/dev/null 2>&1 &
LOCALPID="$!"
trap "[ ! -z \"${LOCALPID}\" ] && kill ${LOCALPID};" 15
wait "${LOCALPID}"