4 * test macros and headers
17 /* Test function type. */
18 typedef void (*test_fn)(void);
20 /* Run test function f in another process. */
21 void run_as_child_process(test_fn f);
24 * uncommend EXIT_IF_FAIL macro in order to stop test execution
25 * at first failed test
28 /*#define EXIT_IF_FAIL 1*/
30 #if defined (EXIT_IF_FAIL)
31 #define test_do_fail() \
37 #define test_do_fail() \
41 #define test_do_pass() \
49 printf("%s", __FUNCTION__); \
52 for (i = 0; i < 60 - strlen(__FUNCTION__); i++) \
63 #define start_suite() \
65 printf("\n==== Starting %s ====\n", __FUNCTION__); \