diff options
Diffstat (limited to 'utils/expect_get.c')
-rw-r--r-- | utils/expect_get.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/utils/expect_get.c b/utils/expect_get.c index b9518bc..cda5a3b 100644 --- a/utils/expect_get.c +++ b/utils/expect_get.c @@ -54,10 +54,13 @@ int main() nfexp_callback_register(h, NFCT_T_ALL, cb, NULL); ret = nfexp_query(h, NFCT_Q_GET, exp); - printf("TEST: get expectation (%d)(%s)\n", ret, strerror(errno)); - + printf("TEST: get expectation "); if (ret == -1) - exit(EXIT_FAILURE); + printf("(%d)(%s)\n", ret, strerror(errno)); + else + printf("(OK)\n"); + + nfct_close(h); - exit(EXIT_SUCCESS); + ret == -1 ? exit(EXIT_FAILURE) : exit(EXIT_SUCCESS); } |