From a8f874e4ab2c6ddb4472db34c46aa1a63e87b472 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 20 Feb 2024 20:26:37 -0500 Subject: [PATCH] test --- test/lwt/output_echo.expected | 2 +- test/lwt/output_hash.expected | 2 +- test/lwt/run_echo.sh | 3 +++ test/lwt/run_hash.sh | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test/lwt/output_echo.expected b/test/lwt/output_echo.expected index 746ebae5..ddfd1845 100644 --- a/test/lwt/output_echo.expected +++ b/test/lwt/output_echo.expected @@ -1,5 +1,5 @@ -run echo client -p 1235 -n 10 --n-conn=2 -j=4 listening on port 1235 +run echo client -p 1235 -n 10 --n-conn=2 -j=4 all done connecting to port 1235 read: hello 1 diff --git a/test/lwt/output_hash.expected b/test/lwt/output_hash.expected index f1bab218..9f47651f 100644 --- a/test/lwt/output_hash.expected +++ b/test/lwt/output_hash.expected @@ -1,5 +1,5 @@ -run hash client -p 1234 -d ../../src --n-conn=2 -j=4 --ext .ml listening on port 1234 +run hash client -p 1234 -d ../../src --n-conn=2 -j=4 --ext .ml ../../src/core/background_thread.ml: 6d5c624dac304cf82ffa6f738516ec9a97aba297 ../../src/core/background_thread.ml: 6d5c624dac304cf82ffa6f738516ec9a97aba297 ../../src/core/background_thread.pp.ml: 6d5c624dac304cf82ffa6f738516ec9a97aba297 diff --git a/test/lwt/run_echo.sh b/test/lwt/run_echo.sh index 9c8fa687..de476edf 100755 --- a/test/lwt/run_echo.sh +++ b/test/lwt/run_echo.sh @@ -2,7 +2,10 @@ PORT=1235 ./echo_server.exe -p $PORT & +if [ "x$?" != x0 ]; then exit 1 ; fi + +sleep 0.9 echo "run echo client -p $PORT $@" export LC_LANG=C diff --git a/test/lwt/run_hash.sh b/test/lwt/run_hash.sh index 7a14bf47..0adefd75 100755 --- a/test/lwt/run_hash.sh +++ b/test/lwt/run_hash.sh @@ -2,7 +2,9 @@ PORT=1234 ./hash_server.exe -p $PORT & +if [ "x$?" != x0 ]; then exit 1 ; fi +sleep 0.9 echo "run hash client -p $PORT $@" export LC_LANG=C