]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
tests: Fix socat hang in ppp-over-tls
authorBen Walsh <ben@jubnut.com>
Tue, 11 Mar 2025 19:17:52 +0000 (19:17 +0000)
committerBen Walsh <ben@jubnut.com>
Tue, 11 Mar 2025 19:17:52 +0000 (19:17 +0000)
socat can hang if sent a SIGTERM while it is already shutting
down. This was causing the ppp-over-tls test to hang during "wait".

Fix by adding a sleep to allow socat to exit cleanly.

Signed-off-by: Ben Walsh <ben@jubnut.com>
tests/ppp-over-tls

index 9dd789b92b9bf39b1d76f54dcb29bcd293d7d7a7..95bc10c5c095bf18f79cf1e8fc5b28a6254c624c 100755 (executable)
@@ -129,6 +129,8 @@ else
     fail "$PID" "Did not negotiate IP6CP successfully."
 fi
 
+sleep 3  # pppd exited with idle timeout. Give socat time to exit too.
+
 cleanup
 
 exit 0