summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/unit-test/api.2
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/kadm5/unit-test/api.2')
-rw-r--r--src/lib/kadm5/unit-test/api.2/init-v2.exp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/kadm5/unit-test/api.2/init-v2.exp b/src/lib/kadm5/unit-test/api.2/init-v2.exp
index fe0721494a..6be880dd02 100644
--- a/src/lib/kadm5/unit-test/api.2/init-v2.exp
+++ b/src/lib/kadm5/unit-test/api.2/init-v2.exp
@@ -197,6 +197,17 @@ proc test109 {} {
return;
}
send "puts \$p\n"
+ expect {
+ -re "$prompt" { }
+ timeout {
+ error_and_restart "$test: timeout getting prompt"
+ return
+ }
+ eof {
+ error_and_restart "$test: eof getting prompt"
+ return
+ }
+ }
send "lindex \$p 4\n"
expect {
-re "(\[0-9\]+)\n$prompt" {set max_life $expect_out(1,string) }