* api.0/init.exp, api.2/init.exp: use spawn/expect instead of exec
authorBarry Jaspan <bjaspan@mit.edu>
Mon, 9 Dec 1996 20:59:13 +0000 (20:59 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Mon, 9 Dec 1996 20:59:13 +0000 (20:59 +0000)
  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
src/lib/kadm5/unit-test/api.0/init.exp
src/lib/kadm5/unit-test/api.2/init.exp

index aba10a90e9adcc094508ca0fbca7b8fd61a78aa4..0f95d8138756ac0f34ece34450a0399fa4b44d70 100644 (file)
@@ -1,3 +1,8 @@
+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.
index eec097ea1506da63c37d7b4b91e3e1b2e1b23471..594b62f446fae86aa6dbfc641ee5fb45fec7a454 100644 (file)
@@ -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
index 79efcee150a66778e58aeae8f8bcade07e4bfca8..86d07389bcfc52f50cf16a219e95941442cc6c9d 100644 (file)
@@ -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