summaryrefslogtreecommitdiffstats
path: root/src/tests/dejagnu/krb-standalone
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-10-10 13:11:46 -0400
committerGreg Hudson <ghudson@mit.edu>2012-10-10 13:14:15 -0400
commitfd243aa274c6ba315280703aac9bd653f76197c4 (patch)
treec23139c84010b91355b94830ce770d6e54b0acc4 /src/tests/dejagnu/krb-standalone
parent3fe2761dbe83583c217a2e4663fadfe4eb3d3bfc (diff)
downloadkrb5-fd243aa274c6ba315280703aac9bd653f76197c4.tar.gz
krb5-fd243aa274c6ba315280703aac9bd653f76197c4.tar.xz
krb5-fd243aa274c6ba315280703aac9bd653f76197c4.zip
Fix slow kprop dejagnu test
Fix kpropd -S -t to actually exit after processing one connection (it was breaking out of the switch statement, not the while loop). Use the -t when invoking kpropd from the dejagnu test framework; previously it was unnecessary because kpropd -S -d exited after one connection. Clear up some confusion in the kprop.exp comments about whether kpropd is expected to exit.
Diffstat (limited to 'src/tests/dejagnu/krb-standalone')
-rw-r--r--src/tests/dejagnu/krb-standalone/kprop.exp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tests/dejagnu/krb-standalone/kprop.exp b/src/tests/dejagnu/krb-standalone/kprop.exp
index ed7ed684f9..cc1a26a287 100644
--- a/src/tests/dejagnu/krb-standalone/kprop.exp
+++ b/src/tests/dejagnu/krb-standalone/kprop.exp
@@ -24,13 +24,11 @@ proc setup_slave {} {
proc scan_kpropd_output {} {
global kpropd_spawn_id kpropd_pid
- # See if kpropd logged anything.
+ # See if kpropd logged anything. It should exit after processing
+ # one kprop connection.
expect {
-i $kpropd_spawn_id
eof {
- # I think kpropd is supposed to run a loop in standalone
- # mode, but exiting seems to be normal behavior.
-# fail "kprop (server exited)"
wait -i $kpropd_spawn_id
unset kpropd_spawn_id kpropd_pid
}