From: Simon Ruderich Date: Sat, 7 Dec 2013 21:33:52 +0000 (+0100) Subject: Fix tests on OpenBSD. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=0897a092b265edc0cb6496c7f29a6ffabb282f7d;p=tlsproxy%2Ftlsproxy.git Fix tests on OpenBSD. --- diff --git a/tests/tests-normal.sh b/tests/tests-normal.sh index 056780f..c16de51 100755 --- a/tests/tests-normal.sh +++ b/tests/tests-normal.sh @@ -70,6 +70,7 @@ test_no_invalid_certificate # Stop server and try a "MITM" with a bad certificate. echo kill $pid_server || echo 'failed to kill gnutls-serv' +sleep 3 # necessary on some systems like OpenBSD server_background --x509certfile "$srcdir/server-bad.pem" \ --x509keyfile "$srcdir/server-key.pem" wait_for_ports 4712 diff --git a/tests/tests-passthrough.sh b/tests/tests-passthrough.sh index c2351d9..1a94f38 100755 --- a/tests/tests-passthrough.sh +++ b/tests/tests-passthrough.sh @@ -72,6 +72,7 @@ test_no_invalid_certificate # Stop server and try a "MITM" with a bad certificate. echo kill $pid_server || echo 'failed to kill gnutls-serv' +sleep 3 # necessary on some systems like OpenBSD server_background --x509certfile "$srcdir/server-bad.pem" \ --x509keyfile "$srcdir/server-key.pem" wait_for_ports 4712