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: Rewrite test (re: 129614b9, e08defc2)

This commit is contained in:
Martijn Dekker 2021-03-17 09:23:52 +00:00
parent e08defc233
commit aacf0d0b66

View file

@ -95,6 +95,7 @@ if ! pty $bintrue < /dev/null
then err_exit pty command hangs on $bintrue -- tests skipped
exit 0
fi
# err_exit #
tst $LINENO <<"!"
L POSIX sh 026(C)
@ -740,14 +741,17 @@ L crash after switching from emacs to vi mode
# trigger a memory fault: https://bugzilla.opensuse.org/show_bug.cgi?id=179917
d 15
w exec $SHELL -o emacs
u emacs
p :test-1:
w exec "$SHELL" -o emacs
r ^:test-1: exec "\$SHELL" -o emacs\r\n$
p :test-1:
w set -o vi
u set -o vi
r ^:test-1: set -o vi\r\n$
p :test-2:
c \Erri
w echo Success
u echo
r Success\r?\n$
r ^:test-2: echo Success\r\n$
r ^Success\r\n$
!
# ======