* api.2/init-v2.exp (test150, test151, test153): Don't try to set KRB5CCNAME;
authorKen Raeburn <raeburn@mit.edu>
Thu, 19 Dec 2002 01:56:45 +0000 (01:56 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 19 Dec 2002 01:56:45 +0000 (01:56 +0000)
only the fact that it wasn't being done correctly prevented it from causing
test failures.

* lib/lib.t (kinit): If kinit reports a problem initializing the credentials
cache, raise an error.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15056 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/unit-test/ChangeLog
src/lib/kadm5/unit-test/api.2/init-v2.exp
src/lib/kadm5/unit-test/lib/lib.t

index 81bfb13f8f69c493c62e9c358737700fc2532aa5..6f353a05a47af8880719d911a9f1b2f8b981f39f 100644 (file)
@@ -1,3 +1,12 @@
+2002-12-18  Ken Raeburn  <raeburn@mit.edu>
+
+       * api.2/init-v2.exp (test150, test151, test153): Don't try to set
+       KRB5CCNAME; only the fact that it wasn't being done correctly
+       prevented it from causing test failures.
+
+       * lib/lib.t (kinit): If kinit reports a problem initializing the
+       credentials cache, raise an error.
+
 2002-10-18  Tom Yu  <tlyu@mit.edu>
 
        * api.2/init-v2.exp (test106): Make regexp more forgiving of
index 0e3359b193f51b4c0a0d4bdc6d85481dfbf73822..58fe1a8b9ae9b580450f6f37cd6f356a2115b369 100644 (file)
@@ -570,7 +570,6 @@ test "init 150"
 proc test150 {} {
     global test KADM5_ADMIN_SERVICE
 
-    set env(KRB5CCNAME) /tmp/krb5cc_kadm5_init_v2
     kdestroy
     kinit testuser notathena "-S $KADM5_ADMIN_SERVICE"
     one_line_succeed_test {
@@ -586,7 +585,6 @@ test "init 151"
 proc test151 {} {
     global test KADM5_CHANGEPW_SERVICE
 
-    set env(KRB5CCNAME) /tmp/krb5cc_kadm5_init_v2
     kdestroy
     kinit testuser notathena "-S $KADM5_CHANGEPW_SERVICE"
     one_line_succeed_test {
@@ -615,7 +613,6 @@ test "init 153"
 proc test153 {} {
     global test KADM5_ADMIN_SERVICE
 
-    set env(KRB5CCNAME) /tmp/krb5cc_kadm5_init_v2
     kinit testuser notathena
     one_line_fail_test {
        kadm5_init_with_creds testuser null $KADM5_ADMIN_SERVICE \
index d1730d9a496b05979345cf1d81820ff019cffc4c..20277942c41dd801584b478678ea2cf0cc00f86e 100644 (file)
@@ -246,6 +246,7 @@ proc kinit { princ pass {opts ""} } {
        # the parent, which is us, to read pending data.
 
        expect {
+               "when initializing cache" { error "kinit failed: $expect_out(buffer)" }
                eof {}
        }
        wait