summaryrefslogtreecommitdiffstats
path: root/src/lib/rpc/unit-test/config
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2009-02-05 19:02:29 +0000
committerEzra Peisach <epeisach@mit.edu>2009-02-05 19:02:29 +0000
commit39de88d9867b18f99c19a650aa1bfffb908614f5 (patch)
treecf978a3a1d920a8012ddd3173541df549011b9bb /src/lib/rpc/unit-test/config
parent3b28f0b8ea6ada7789432073c3faf5ef3ec9dca2 (diff)
Detect failure to register with rpcbind/portmap due to security
restrictons and not bomb out in tests. ticket: 6349 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21895 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc/unit-test/config')
-rw-r--r--src/lib/rpc/unit-test/config/unix.exp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/rpc/unit-test/config/unix.exp b/src/lib/rpc/unit-test/config/unix.exp
index 824d46341..f02116e1d 100644
--- a/src/lib/rpc/unit-test/config/unix.exp
+++ b/src/lib/rpc/unit-test/config/unix.exp
@@ -112,6 +112,10 @@ proc rpc_test_exit {} {
global server_started
global kill
+ if { [info exists server_started] && $server_started == 0 } {
+ return
+ }
+
if {[catch {
expect {
-i $server_id
@@ -143,6 +147,7 @@ proc rpc_test_start { } {
verbose "% $SERVER" 1
set server_pid [spawn $SERVER $PROT]
set server_id $spawn_id
+ set server_started 1
unset env(KRB5_KTNAME)
@@ -150,6 +155,18 @@ proc rpc_test_start { } {
expect {
"running" { }
+ "Cannot register service" {
+ send_error "Server cannot register with portmap/rpcbind!!\n"
+ note "+++"
+ note "+++ These tests require the ability to register with portmap/rpcbind"
+ note "+++ Either the server is not running or it does not"
+ note "+++ allow registration using a loopback connection"
+ note "+++"
+ verbose $expect_out(buffer) 1
+ set server_started 0
+ unsupported "Server registration"
+ return
+ }
eof {
send_error "server exited!"
verbose $expect_out(buffer) 1