From c597cfdc560e1ab84c8b7d55543cce7de7fe9973 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 5 Dec 2008 18:30:18 +0000 Subject: [PATCH] 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 --- src/tests/dejagnu/krb-root/rlogin.exp | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.26.2