Make test work again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18810 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -466,6 +466,7 @@ main(int argc, char **argv)
|
||||
krb5_context context;
|
||||
krb5_error_code ret;
|
||||
int optidx = 0;
|
||||
krb5_ccache id1, id2;
|
||||
|
||||
setprogname(argv[0]);
|
||||
|
||||
@@ -496,15 +497,12 @@ main(int argc, char **argv)
|
||||
test_def_cc_name(context);
|
||||
test_cache_iter(context, "MEMORY", 0);
|
||||
{
|
||||
krb5_ccache id1, id2;
|
||||
krb5_principal p;
|
||||
krb5_cc_new_unique(context, "MEMORY", "bar", &id1);
|
||||
krb5_cc_new_unique(context, "MEMORY", "baz", &id2);
|
||||
krb5_parse_name(context, "lha@SU.SE", &p);
|
||||
krb5_cc_initialize(context, id1, p);
|
||||
krb5_free_principal(context, p);
|
||||
krb5_cc_destroy(context, id1);
|
||||
krb5_cc_destroy(context, id2);
|
||||
}
|
||||
|
||||
test_cache_find(context, "MEMORY", "lha@SU.SE", 1);
|
||||
@@ -527,6 +525,9 @@ main(int argc, char **argv)
|
||||
test_prefix_ops(context, "MEMORY:foo", &krb5_mcc_ops);
|
||||
test_prefix_ops(context, "/tmp/kaka", &krb5_fcc_ops);
|
||||
|
||||
krb5_cc_destroy(context, id1);
|
||||
krb5_cc_destroy(context, id2);
|
||||
|
||||
krb5_free_context(context);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user