From: anton Date: Wed, 18 Oct 2023 19:14:32 +0000 (+0000) Subject: Make libssl interop server/client tests less flaky by ensuring the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ee130188927d18f71836d6126268fcc0b02b5e0a;p=openbsd Make libssl interop server/client tests less flaky by ensuring the server has terminated before examining the outcome. --- diff --git a/regress/lib/libssl/interop/Makefile.inc b/regress/lib/libssl/interop/Makefile.inc index ed5fe26147b..4a66390cbd8 100644 --- a/regress/lib/libssl/interop/Makefile.inc +++ b/regress/lib/libssl/interop/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.8 2020/12/17 00:51:11 bluhm Exp $ +# $OpenBSD: Makefile.inc,v 1.9 2023/10/18 19:14:32 anton Exp $ .PATH: ${.CURDIR}/.. @@ -23,6 +23,8 @@ run-self-client-server: client server 127.0.0.1.crt LD_LIBRARY_PATH=${LD_LIBRARY_PATH} \ ./client >client-self.out \ `sed -n 's/listen sock: //p' server-self.out` + # wait for server to terminate + -sed -n 's/listen sock: //p' server-self.out | xargs nc 2>/dev/null # check that the client run successfully to the end grep -q '^success$$' client-self.out # client must have read server greeting