diff options
author | anton <> | 2023-10-18 19:14:32 +0000 |
---|---|---|
committer | anton <> | 2023-10-18 19:14:32 +0000 |
commit | 53c83f513b5b016f099c9512cbf4f91abd4dfb2f (patch) | |
tree | 793d424f72d0fa2a82aac4cb9bb700248d7357fa | |
parent | 6f7516128c835a3d46b21b808e916aa84117bc7c (diff) | |
download | openbsd-53c83f513b5b016f099c9512cbf4f91abd4dfb2f.tar.gz openbsd-53c83f513b5b016f099c9512cbf4f91abd4dfb2f.tar.bz2 openbsd-53c83f513b5b016f099c9512cbf4f91abd4dfb2f.zip |
Make libssl interop server/client tests less flaky by ensuring the
server has terminated before examining the outcome.
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libssl/interop/Makefile.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/interop/Makefile.inc b/src/regress/lib/libssl/interop/Makefile.inc index ed5fe26147..4a66390cbd 100644 --- a/src/regress/lib/libssl/interop/Makefile.inc +++ b/src/regress/lib/libssl/interop/Makefile.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile.inc,v 1.8 2020/12/17 00:51:11 bluhm Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.9 2023/10/18 19:14:32 anton Exp $ |
2 | 2 | ||
3 | .PATH: ${.CURDIR}/.. | 3 | .PATH: ${.CURDIR}/.. |
4 | 4 | ||
@@ -23,6 +23,8 @@ run-self-client-server: client server 127.0.0.1.crt | |||
23 | LD_LIBRARY_PATH=${LD_LIBRARY_PATH} \ | 23 | LD_LIBRARY_PATH=${LD_LIBRARY_PATH} \ |
24 | ./client >client-self.out \ | 24 | ./client >client-self.out \ |
25 | `sed -n 's/listen sock: //p' server-self.out` | 25 | `sed -n 's/listen sock: //p' server-self.out` |
26 | # wait for server to terminate | ||
27 | -sed -n 's/listen sock: //p' server-self.out | xargs nc 2>/dev/null | ||
26 | # check that the client run successfully to the end | 28 | # check that the client run successfully to the end |
27 | grep -q '^success$$' client-self.out | 29 | grep -q '^success$$' client-self.out |
28 | # client must have read server greeting | 30 | # client must have read server greeting |