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
+Mon Dec 9 15:57:55 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * 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 <tlyu@mit.edu>
* configure.in: Add AC_CANONICAL_HOST to deal with new pre.in.
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
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