* default.exp: Add (disabled) debugging code for catching leaking
ptys. expect eof from the correct spawn_ids when killing kdc and
kadmind to avoid leaking ptys.
+ (do_klist, v4klist, v4klist_none): Check for eof to avoid leaking
+ ptys.
2002-10-07 Tom Yu <tlyu@mit.edu>
}
}
- expect {
- "\r" { }
- eof { }
- }
+ expect eof
if ![check_exit_status $testname] {
return 0
}
# We can't use check_exit_status, because we expect an exit status
# of 1.
+ catch "expect eof"
set status_list [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $status_list ($testname)"
if { [lindex $status_list 2] != 0 } {
}
}
- expect {
- "\r" { }
- eof { }
- }
+ expect eof
if ![check_exit_status $testname] {
return 0
}
# We can't use check_exit_status, because we expect an exit status
# of 1.
+ expect eof
set status_list [wait -i $spawn_id]
verbose "wait -i $spawn_id returned $status_list (v4klist)"
if { [lindex $status_list 2] != 0 } {