summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tests/dejagnu/config/default.exp12
1 files changed, 11 insertions, 1 deletions
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"
}