check_if
check_if(this_time <= *last_time, "change time didn't increase when expected");
check_if(this_time > *last_time, "last default time isn't as expected");
check_if(err != ccErrCCacheNotFound, "destroyed ccache was actually released instead");
check_if(!(!err || err == ccErrCredentialsNotFound || ccErrInvalidCredentials), "credentials in destination not removed as promised");
check_if(strcmp(src_principal->data, dst_principal->data), "destination principal not overwritten by source");
check_if(err != ccErrInvalidCCache, "source ccache was not invalidated after move");
check_if(actually_equal != *equal, "equal ccaches not considered equal");
check_if(actually_equal != *equal, "non-equal ccaches considered equal");
check_if(*time_offset != expected_offset, "kdc time offset doesn't match expected value");
check_if(time_offset != stored_offset, "kdc time offset doesn't match expected value");
check_if(err != ccErrTimeOffsetNotSet, "time offset not cleared");
check_if(strcmp(name->data, default_name->data), NULL);
check_if(1, "cc_ccache_get_name failed");
check_if(stored_cred_vers != expected_cred_vers, NULL);
check_if(strcmp(stored_name->data, expected_name), NULL);
check_if(strcmp(stored_principal->data, expected_principal), "expected princ == \"%s\" stored princ == \"%s\"", expected_principal, stored_principal->data);
check_if(strcmp(stored_principal->data, in_principal), "expected princ == \"%s\" stored princ == \"%s\"", in_principal, stored_principal->data);
check_if(err == ccErrCCacheNotFound, "released ccache was actually destroyed instead");
check_if((creds != NULL), "stored credentials not found in ccache");
check_if((creds != NULL), "credentials not removed from ccache");
check_if(a != b, NULL)
check_if(!(expression), format, ## __VA_ARGS__)
check_if(err != expected_err, "unexpected error %s (%d), expected %s (%d)", translate_ccapi_error(err), err, translate_ccapi_error(expected_err), expected_err); \
check_if(current_change_time <= last_change_time, "context change time did not increase when it was supposed to (%d <= %d)", current_change_time, last_change_time);
check_if(*ccache == NULL, NULL);
check_if(strcmp(stored_name->data, name), NULL);
check_if(*ccache == NULL, NULL);
check_if(strcmp(given_name->data, default_name->data), "name of ccache returned by cc_context_open_default_ccache doesn't match name returned by cc_context_get_default_ccache_name");
check_if(context == NULL, NULL);
check_if(context != NULL, NULL);
check_if(*ccache == NULL, NULL);
if (!err) { check_if(strcmp(stored_name->data, name), NULL); }
if (!err) { check_if(stored_creds_vers != cred_vers, NULL); }
if (!err) { check_if(strcmp(stored_principal->data, principal), NULL); }
if (ccache) { check_if(*ccache == NULL, NULL); }
if (!err) { check_if(stored_creds_vers != cred_vers, NULL); }
if (!err) { check_if(strcmp(stored_principal->data, principal), NULL); }
if (ccache) { check_if(*ccache == NULL, NULL); }
check_if(strcmp(stored_name->data, name->data), "new ccache does not have name of default");
check_if((strcmp(stored_name->data, name->data) == 0), "new cache has name of default");
if (!err) { check_if(stored_creds_vers != cred_vers, NULL); }
if (!err) { check_if(strcmp(stored_principal->data, principal), NULL); }
check_if(actual_count != expected_count, "iterator didn't iterate over all ccaches");
check_if(actual_count != expected_count, "iterator didn't iterate over all ccaches");
check_if(found, "stored credentials not found in ccache");
check_if(found, "credentials not removed from ccache");
check_if(actual_count != expected_count, "iterator didn't iterate over all ccaches");
check_if(strncmp(info[actual_count]->name, expected_name_prefix, strlen(expected_name_prefix)), "got incorrect ccache name");
check_if(strcmp(info[actual_count]->principal, expected_principal), "got incorrect principal name");
check_if(info[actual_count]->vers != expected_version, "got incorrect cred version");
check_if(actual_count != expected_count, "NC info didn't list all ccaches");
check_if(actual_count != expected_count, "iterator didn't iterate over all ccaches");
check_if(current_change_time <= last_change_time, "context change time did not increase when it was supposed to (%d <= %d)", current_change_time, last_change_time);
check_if(*ccache == NULL, NULL);
check_if(strcmp(stored_name, name), NULL);
check_if(*ccache == NULL, NULL);
if (!err) { check_if(strcmp(stored_name, name), NULL); }
if (!err) { check_if(stored_creds_vers != cred_vers, NULL); }
if (!err) { check_if(strcmp(stored_principal, principal), NULL); }
check_if(err == CC_NO_EXIST, "released ccache was actually destroyed instead");
check_if(err != CC_NOERROR, "released ccache cannot be opened");
check_if(err != CC_NO_EXIST, "destroyed ccache was actually released instead");
check_if(stored_cred_vers != expected_cred_vers, NULL);
check_if(strcmp(stored_name, expected_name), NULL);
check_if(strcmp(stored_principal, expected_principal), "expected princ == \"%s\" stored princ == \"%s\"", expected_principal, stored_principal);
check_if(strcmp(stored_principal, in_principal), "expected princ == \"%s\" stored princ == \"%s\"", in_principal, stored_principal);