summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2008-12-05 18:30:18 +0000
committerGreg Hudson <ghudson@mit.edu>2008-12-05 18:30:18 +0000
commitc597cfdc560e1ab84c8b7d55543cce7de7fe9973 (patch)
treeea7d4c24bbe349843746b51f0313db9faf09e8ca /src
parent19820508f9b1888867f6d6b261ed9dc569711e9f (diff)
downloadkrb5-c597cfdc560e1ab84c8b7d55543cce7de7fe9973.tar.gz
krb5-c597cfdc560e1ab84c8b7d55543cce7de7fe9973.tar.xz
krb5-c597cfdc560e1ab84c8b7d55543cce7de7fe9973.zip
In the rlogin tests, expect to see /bin/sh echoed back after sending
/bin/sh. If we just look for a shell prompt, we can get out of sync if the login shell decides to clear the line and redisplay the prompt. (I see bash redisplaying the prompt in 30-50% of test runs; I don't know what it's thinking.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21288 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/tests/dejagnu/krb-root/rlogin.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/dejagnu/krb-root/rlogin.exp b/src/tests/dejagnu/krb-root/rlogin.exp
index bc4056467..a0e8e4ff5 100644
--- a/src/tests/dejagnu/krb-root/rlogin.exp
+++ b/src/tests/dejagnu/krb-root/rlogin.exp
@@ -174,6 +174,7 @@ proc rlogin_test { } {
# prompt.
set testname "shell"
send "$BINSH\r"
+ expect "$BINSH"
expect -re "$SHELL_PROMPT"
set testname "date"
@@ -249,6 +250,7 @@ proc rlogin_test { } {
# prompt.
set testname "shell"
send "$BINSH\r"
+ expect "$BINSH"
expect -re "$SHELL_PROMPT"
# Make sure the encryption is not destroying the text.