1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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.
This commit is contained in:
Martijn Dekker 2021-02-13 14:30:18 +00:00
parent d790731a80
commit 5529d13d28

View file

@ -606,9 +606,9 @@ EOF
tst $LINENO <<"!" tst $LINENO <<"!"
L test -t 1 inside command substitution L test -t 1 inside command substitution
p :test-1: p :test-1:
d 10
w . ./test_t.sh w . ./test_t.sh
r ^:test-1: \. \./test_t\.sh\r\n$ r ^:test-1: \. \./test_t\.sh\r\n$
r ^\. \./test_t\.sh\r\n$
r ^OK0\r\n$ r ^OK0\r\n$
r ^OK1\r\n$ r ^OK1\r\n$
r ^OK2\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 # See discussion at: https://github.com/ksh93/ksh/issues/79
p :test-1: p :test-1:
d 10
w printf '%s\\n' 1 2 3 4 5 | while read; do ls /dev/null; done 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 ^: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$ r ^/dev/null\r\n$
r ^/dev/null\r\n$ r ^/dev/null\r\n$