summaryrefslogtreecommitdiffstats
path: root/src/ccapi/test
diff options
context:
space:
mode:
authorJustin Anderson <jander@mit.edu>2007-07-12 17:57:37 +0000
committerJustin Anderson <jander@mit.edu>2007-07-12 17:57:37 +0000
commite253ff21f4d321519870c93460c9b3178b21a9f9 (patch)
treebf6d5f343f73b01a7aed47ab58fd01236289d92a /src/ccapi/test
parent8de81bb90c731801d9013f770c0a1fbca7474e6f (diff)
downloadkrb5-e253ff21f4d321519870c93460c9b3178b21a9f9.tar.gz
krb5-e253ff21f4d321519870c93460c9b3178b21a9f9.tar.xz
krb5-e253ff21f4d321519870c93460c9b3178b21a9f9.zip
Filled in dummy descriptions. Also, no longer errors out of test with ccIteratorEnd
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19701 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/test')
-rw-r--r--src/ccapi/test/test_ccapi_ccache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ccapi/test/test_ccapi_ccache.c b/src/ccapi/test/test_ccapi_ccache.c
index bb599f9f6b..892f270ba1 100644
--- a/src/ccapi/test/test_ccapi_ccache.c
+++ b/src/ccapi/test/test_ccapi_ccache.c
@@ -577,7 +577,7 @@ int check_cc_ccache_get_principal() {
err = cc_context_create_new_ccache(context, cc_credentials_v5, "foo/BAR@BAZ.ORG", &ccache);
}
if (!err) {
- check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, "foo/BAR@BAZ.ORG", ccNoError, "Description 1");
+ check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, "foo/BAR@BAZ.ORG", ccNoError, "trying to get krb5 princ for krb5 ccache");
}
else {
log_error("cc_context_create_new_ccache failed, can't complete test");
@@ -593,7 +593,7 @@ int check_cc_ccache_get_principal() {
err = cc_context_create_new_ccache(context, cc_credentials_v4, "foo.BAR@BAZ.ORG", &ccache);
}
if (!err) {
- check_once_cc_ccache_get_principal(ccache, cc_credentials_v4, "foo.BAR@BAZ.ORG", ccNoError, "Description 2");
+ check_once_cc_ccache_get_principal(ccache, cc_credentials_v4, "foo.BAR@BAZ.ORG", ccNoError, "trying to get krb4 princ for krb4 ccache");
}
else {
log_error("cc_context_create_new_ccache failed, can't complete test");
@@ -606,7 +606,7 @@ int check_cc_ccache_get_principal() {
check_once_cc_ccache_get_principal(ccache, cc_credentials_v4_v5, "foo.BAR@BAZ.ORG",
ccErrBadCredentialsVersion,
"passing cc_credentials_v4_v5 (shouldn't be allowed)");
- check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, NULL, ccErrBadParam, "Description 3");
+ check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, NULL, ccErrBadParam, "passed null out param");
}
if (ccache) {
@@ -1610,7 +1610,7 @@ cc_int32 check_once_cc_ccache_move(cc_ccache_t source, cc_ccache_t destination,
}
}
if (err == ccIteratorEnd) {
- !err;
+ err = ccNoError;
}
if (cred_iterator) {
cc_credentials_iterator_release(cred_iterator);