1 #ifndef _test_common_h_
2 #define _test_common_h_
7 * Common functions for test.
10 #define test_result(val) \
13 fprintf(stderr, "Test \"%s\" failed!\n", ""#val); \
18 #define gammu_test_result(error, text) \
20 if (error != ERR_NONE) {\
21 fprintf(stderr, "%s\n", GSM_ErrorString(error)); \
22 fprintf(stderr, "Test \"%s\" failed!\n", text); \
27 #define gammu_test_result_code(error, text, expect) \
29 if (error != expect) {\
30 fprintf(stderr, "%s\n", GSM_ErrorString(error)); \
31 fprintf(stderr, "Test \"%s\" failed!\n", text); \