+2000-02-07 Tom Yu <tlyu@mit.edu>
+
+ * config/unix.exp: Call send_error instead of fail to prevent
+ referencing variables not yet set up by the test framework.
+
+ * lib/helpers.exp: Call kinit and kdestroy with the -5 flag to
+ deal with new program behavior. Also call perror rather than
+ error to avoid spewing a stack trace.
+
1999-10-26 Tom Yu <tlyu@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
expect {
"running" { }
eof {
- fail "server exited!"
+ send_error "server exited!"
verbose $expect_out(buffer) 1
}
timeout {
- fail "server didn't start in $timeout seconds"
+ send_error "server didn't start in $timeout seconds"
verbose $expect_out(buffer) 1
}
}
global kinit
global wait_error_index wait_errno_index wait_status_index
- spawn -noecho $kinit -l $lifetime $princ
+ spawn -noecho $kinit -5 -l $lifetime $princ
expect {
-re "Password for $princ.*: " { send "$pass\n" }
- timeout { error "Timeout waiting for kinit"; close }
+ timeout { perror "Timeout waiting for kinit"; close }
}
expect { eof {} }
set ret [wait]
if {[lindex $ret $wait_error_index] == -1} {
- error \
+ perror \
"wait(kinit $princ) returned error [lindex $ret $wait_errno_index]"
} else {
if {[lindex $ret $wait_status_index] != 0} {
- error \
+ perror \
"kinit $princ failed with [lindex $ret $wait_status_index]"
}
}
}
set env(KRB5CCNAME) FILE:/tmp/krb5cc_rpc_test_$ccname
- if {[catch "exec $kdestroy"] != 0} {
+ if {[catch "exec $kdestroy -5"] != 0} {
error "$testname: cannot destroy client $ccname ccache"
}