Skip to content

Commit

Permalink
tests/pty.sh: Rewrite test (re: 129614b, e08defc)
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Mar 17, 2021
1 parent e08defc commit aacf0d0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/cmd/ksh93/tests/pty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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$
!

# ======
Expand Down

0 comments on commit aacf0d0

Please sign in to comment.