summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-06-05 23:43:30 +0000
committerKen Raeburn <raeburn@mit.edu>2003-06-05 23:43:30 +0000
commit8f52968d9757173dff3ecb72fb8daeb00791f738 (patch)
tree752d57f1b35c0df2cf54ae3c10a22caf289ee102 /src
parent96b3711db60ef2af1efdc4c4010311a4c021dd17 (diff)
downloadkrb5-8f52968d9757173dff3ecb72fb8daeb00791f738.tar.gz
krb5-8f52968d9757173dff3ecb72fb8daeb00791f738.tar.xz
krb5-8f52968d9757173dff3ecb72fb8daeb00791f738.zip
be more flexible in handling failures getting root access in test suite
* default.exp (setup_root_shell): Check for "not authorized". Map eof to unsupported. ticket: new target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15582 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/tests/dejagnu/config/ChangeLog5
-rw-r--r--src/tests/dejagnu/config/default.exp7
2 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/dejagnu/config/ChangeLog b/src/tests/dejagnu/config/ChangeLog
index c7f21da60d..beabe48b8f 100644
--- a/src/tests/dejagnu/config/ChangeLog
+++ b/src/tests/dejagnu/config/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-05 Ken Raeburn <raeburn@mit.edu>
+
+ * default.exp (setup_root_shell): Check for "not authorized". Map
+ eof to unsupported.
+
2003-06-04 Tom Yu <tlyu@mit.edu>
* default.exp (setup_root_shell): Don't try to use the procedure
diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp
index dee8509ee6..5f4b5924d8 100644
--- a/src/tests/dejagnu/config/default.exp
+++ b/src/tests/dejagnu/config/default.exp
@@ -2223,7 +2223,7 @@ proc setup_root_shell { testname } {
set got_refused 1
exp_continue
}
- -re "word:|erberos rlogin failed|ection refused|ection reset by peer" {
+ -re "word:|erberos rlogin failed|ection refused|ection reset by peer|not authorized" {
note "$testname test requires ability to rlogin as root"
unsupported "$testname"
set timeout $old_timeout
@@ -2260,7 +2260,10 @@ proc setup_root_shell { testname } {
unsupported $testname
} else {
# unknown problem?
- perror "eof from rlogin $hostname -l root"
+# perror "eof from rlogin $hostname -l root"
+ note "eof (and unrecognized messages?) from rlogin $hostname -l root"
+ note "$testname test requires ability to log in as root"
+ unsupported $testname
}
stop_root_shell
set timeout $old_timeout