1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

tests/pty.sh: fix two failures due to typeahead on Debian Bullseye

As the (original AT&T) comment at the top says, "the trickiest part
of the tests is avoiding typeahead in the pty dialogue".

Two tests failed to [p]eek at the prompt before they started
'typing'. This causes unpredictable results. On Debian Bullseye
this triggers typeahead, which produces unwanted echo to the
terminal, killing the tests.

src/cmd/ksh93/tests/pty.sh:
- Add missing 'p' commands for the first prompt to the tests
  'nobackslashctrl in emacs' and 'emacs backslash escaping'.

Resolves: https://github.com/ksh93/ksh/issues/332
This commit is contained in:
Martijn Dekker 2021-11-17 23:00:46 +01:00
parent 77c7de7cc7
commit 1e96013367

View file

@ -628,6 +628,7 @@ r ^:test-2:
L nobackslashctrl in emacs
d 15
p :test-1:
w set -o emacs --nobackslashctrl
# --nobackslashctrl shouldn't be ignored by reverse search
@ -641,6 +642,7 @@ r ^:test-2: \r\n$
L emacs backslash escaping
d 15
p :test-1:
w set -o emacs
# Test for too many backslash deletions in reverse-search mode