From 8f3ea42b3fe5c41d78f730617c033e206c2b43a9 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Sat, 28 Dec 2013 14:20:11 -0500 Subject: [PATCH] [test suite] update fko-wrapper to use constants from fko.h --- test/fko-wrapper/fko_wrapper.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/test/fko-wrapper/fko_wrapper.c b/test/fko-wrapper/fko_wrapper.c index 05307cf0..511939ce 100644 --- a/test/fko-wrapper/fko_wrapper.c +++ b/test/fko-wrapper/fko_wrapper.c @@ -11,6 +11,7 @@ #define ENABLE_GPG_TESTS 0 #define FCN_CALLS 5 +#define F_INT 100 #define CTX_DESTROY 0 #define NO_CTX_DESTROY 1 #define NEW_CTX 0 @@ -55,15 +56,16 @@ test_loop(int new_ctx_flag, int destroy_ctx_flag) printf("fko_new(): %s\n", fko_errstr(fko_new(&ctx))); spa_func_exec_int(&ctx, "fko_set_spa_client_timeout", - &fko_set_spa_client_timeout, -100, 100, 10, + &fko_set_spa_client_timeout, -F_INT, F_INT, 10, new_ctx_flag, destroy_ctx_flag); spa_func_exec_short(&ctx, "fko_set_spa_message_type", - &fko_set_spa_message_type, -100, 100, FKO_ACCESS_MSG, + &fko_set_spa_message_type, FKO_COMMAND_MSG-F_INT, + FKO_LAST_MSG_TYPE+F_INT, FKO_ACCESS_MSG, new_ctx_flag, destroy_ctx_flag); spa_func_exec_int(&ctx, "fko_set_timestamp", - &fko_set_spa_client_timeout, -100, 100, 10, + &fko_set_spa_client_timeout, -F_INT, F_INT, 10, new_ctx_flag, destroy_ctx_flag); for (i=0; i