diff options
Diffstat (limited to 'src/ccapi/test/test_ccapi_v2.c')
-rw-r--r-- | src/ccapi/test/test_ccapi_v2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ccapi/test/test_ccapi_v2.c b/src/ccapi/test/test_ccapi_v2.c index 20e09f2c4..054d216e6 100644 --- a/src/ccapi/test/test_ccapi_v2.c +++ b/src/ccapi/test/test_ccapi_v2.c @@ -1,4 +1,5 @@ #include <string.h> +#include "k5-platform.h" /* pull in asprintf decl/defn */
#include "test_ccapi_v2.h" #include <limits.h> #include <time.h> @@ -1482,8 +1483,6 @@ int check_cc_seq_fetch_NCs_next(void) { cc_result check_once_cc_seq_fetch_NCs_next(apiCB *context, ccache_cit *iterator, cc_uint32 expected_count, cc_result expected_err, const char *description) { cc_result err = CC_NOERROR; - BEGIN_CHECK_ONCE(description); - cc_result possible_return_values[5] = { CC_NOERROR, CC_END, @@ -1496,6 +1495,8 @@ cc_result check_once_cc_seq_fetch_NCs_next(apiCB *context, ccache_cit *iterator, ccache_p *ccache = NULL; cc_uint32 actual_count = 0; + BEGIN_CHECK_ONCE(description); + while (!err) { err = cc_seq_fetch_NCs_next(context, &ccache, iterator); if (ccache) { @@ -1588,8 +1589,6 @@ cc_result check_once_cc_get_NC_info(apiCB *context, cc_result err = CC_NOERROR; infoNC **info = NULL; - BEGIN_CHECK_ONCE(description); - cc_result possible_return_values[4] = { CC_NOERROR, CC_BAD_PARM, @@ -1600,6 +1599,8 @@ cc_result check_once_cc_get_NC_info(apiCB *context, cc_uint32 actual_count = 0; + BEGIN_CHECK_ONCE(description); + err = cc_get_NC_info(context, &info); for (actual_count = 0; !err && info[actual_count]; actual_count++) { |