From 7ad685d8ab901f3794b4a2a48b0d3a15fd4068ee Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 19 Jan 2010 17:20:45 +0000 Subject: [PATCH] In kinit_anonymous, fail out if we receive a password request from kinit, instead of hanging. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23661 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/dejagnu/config/default.exp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp index 7e18f7a72..487a9b4ab 100644 --- a/src/tests/dejagnu/config/default.exp +++ b/src/tests/dejagnu/config/default.exp @@ -2270,7 +2270,17 @@ proc kinit_anonymous { name } { # Use kinit to get a ticket. # spawn $KINIT -5 -f -n $name@$REALMNAME - expect eof + expect { + "Password for $name@$REALMNAME:" { + fail "kinit_anonymous (password requested)" + return 0 + } + timeout { + fail "kinit_anonymous (timeout)" + return 0 + } + eof { } + } if ![check_exit_status kinit] { fail "kinit anonymous" } -- 2.26.2