From 5529d13d28440a35fde28e9d1700ef36503f9c2f Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Sat, 13 Feb 2021 14:30:18 +0000 Subject: [PATCH] tests/pty.sh: avoid typeahead: add 10ms delay (re: 5c389035) We can't actually check for the typeahead effects as they are timing-dependent and do not work on the slower GitHub runners. --- src/cmd/ksh93/tests/pty.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/ksh93/tests/pty.sh b/src/cmd/ksh93/tests/pty.sh index a36e06bb2..7014e4951 100755 --- a/src/cmd/ksh93/tests/pty.sh +++ b/src/cmd/ksh93/tests/pty.sh @@ -606,9 +606,9 @@ EOF tst $LINENO <<"!" L test -t 1 inside command substitution p :test-1: +d 10 w . ./test_t.sh r ^:test-1: \. \./test_t\.sh\r\n$ -r ^\. \./test_t\.sh\r\n$ r ^OK0\r\n$ r ^OK1\r\n$ r ^OK2\r\n$ @@ -629,9 +629,9 @@ L race condition while launching external commands # See discussion at: https://github.com/ksh93/ksh/issues/79 p :test-1: +d 10 w printf '%s\\n' 1 2 3 4 5 | while read; do ls /dev/null; done r ^:test-1: printf '%s\\n' 1 2 3 4 5 | while read; do ls /dev/null; done\r\n$ -r ^printf '%s\\n' 1 2 3 4 5 | while read; do ls /dev/null; done\r\n$ r ^/dev/null\r\n$ r ^/dev/null\r\n$ r ^/dev/null\r\n$