From 20b3f46e04d4d0104dc971d22793011f20f2e51c Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Mon, 9 Dec 1996 20:59:13 +0000 Subject: [PATCH] * api.0/init.exp, api.2/init.exp: use spawn/expect instead of exec so tests don't fail when kadmin.local produces output git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9630 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/unit-test/ChangeLog | 5 +++++ src/lib/kadm5/unit-test/api.0/init.exp | 4 +++- src/lib/kadm5/unit-test/api.2/init.exp | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/lib/kadm5/unit-test/ChangeLog b/src/lib/kadm5/unit-test/ChangeLog index aba10a90e..0f95d8138 100644 --- a/src/lib/kadm5/unit-test/ChangeLog +++ b/src/lib/kadm5/unit-test/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 9 15:57:55 1996 Barry Jaspan + + * api.0/init.exp, api.2/init.exp: use spawn/expect instead of exec + so tests don't fail when kadmin.local produces output + Mon Nov 11 20:51:27 1996 Tom Yu * configure.in: Add AC_CANONICAL_HOST to deal with new pre.in. diff --git a/src/lib/kadm5/unit-test/api.0/init.exp b/src/lib/kadm5/unit-test/api.0/init.exp index eec097ea1..594b62f44 100644 --- a/src/lib/kadm5/unit-test/api.0/init.exp +++ b/src/lib/kadm5/unit-test/api.0/init.exp @@ -699,7 +699,9 @@ proc test45_46 {service} { server_handle}] "SECURE_PRINC_MISSING" # this leaves the keytab with an incorrect entry - exec $kadmin_local -q "ank -randkey $service" + spawn $kadmin_local -q "ank -randkey $service" + expect eof + wait # restart the api so it gets a new ccache api_exit diff --git a/src/lib/kadm5/unit-test/api.2/init.exp b/src/lib/kadm5/unit-test/api.2/init.exp index 79efcee15..86d07389b 100644 --- a/src/lib/kadm5/unit-test/api.2/init.exp +++ b/src/lib/kadm5/unit-test/api.2/init.exp @@ -703,7 +703,9 @@ proc test45_46 {service} { server_handle}] "SECURE_PRINC_MISSING" # this leaves the keytab with an incorrect entry - exec $kadmin_local -q "ank -randkey $service" + spawn $kadmin_local -q "ank -randkey $service" + expect eof + wait # restart the api so it gets a new ccache api_exit -- 2.26.2