]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
Fix tests on OpenBSD.
authorSimon Ruderich <simon@ruderich.org>
Sat, 7 Dec 2013 21:33:52 +0000 (22:33 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 7 Dec 2013 21:33:52 +0000 (22:33 +0100)
tests/tests-normal.sh
tests/tests-passthrough.sh

index 056780fd2ca2f5711e763ebe365b1c1735cf2edb..c16de5144b9bc0d75b9064a80a03b8ca0859565a 100755 (executable)
@@ -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
index c2351d9a98ae679f13dbc8d543905ebb40306a01..1a94f387f1f6ab73ff73b2e2591cebfaaab09d1d 100755 (executable)
@@ -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