diff options
author | Greg Hudson <ghudson@mit.edu> | 2010-01-19 17:20:45 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2010-01-19 17:20:45 +0000 |
commit | 7ad685d8ab901f3794b4a2a48b0d3a15fd4068ee (patch) | |
tree | 4fd4507653bd0be4f9df1932d6fc775e523777dc /src/tests | |
parent | 0414815956dacfb0976c8c51070b6b8adedc9597 (diff) | |
download | krb5-7ad685d8ab901f3794b4a2a48b0d3a15fd4068ee.tar.gz krb5-7ad685d8ab901f3794b4a2a48b0d3a15fd4068ee.tar.xz krb5-7ad685d8ab901f3794b4a2a48b0d3a15fd4068ee.zip |
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
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/dejagnu/config/default.exp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp index 7e18f7a723..487a9b4ab3 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" } |