[test suite] minor addition to fko-wrapper to call fko_errstr() across valid and invalid values

This commit is contained in:
Michael Rash
2013-11-16 20:36:39 -05:00
parent 196fef65b6
commit cd15502bf1
+6
View File
@@ -18,10 +18,16 @@ static void display_ctx(fko_ctx_t ctx);
static void test_loop(int destroy_ctx_flag);
int main(void) {
int i;
test_loop(NO_CTX_DESTROY);
test_loop(CTX_DESTROY);
/* call fko_errstr() across valid and invalid values
*/
for (i=-5; i < FKO_LAST_ERROR+5; i++)
printf("libfko error (%d): %s\n", i, fko_errstr(i));
return 0;
}