From: Greg Hudson Date: Fri, 5 Dec 2008 18:30:18 +0000 (+0000) Subject: In the rlogin tests, expect to see /bin/sh echoed back after sending X-Git-Tag: krb5-1.7-alpha1~180 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c597cfdc560e1ab84c8b7d55543cce7de7fe9973;p=krb5.git 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 --- 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.