14 teardown(void *user_data
)
20 test_foo(void *user_data
)
22 int *data
= (int *)user_data
;
31 test_fail(void *user_data
)
38 test_pass(void *user_data
)
45 test_long(void *user_data
)
53 main(int argc
, char *argv
[])
55 int ret
= EXIT_SUCCESS
;
58 struct harness_cfg cfg
= {
64 if (harness_init(&cfg
) == 1) {
65 return (EXIT_FAILURE
);
67 harness_add_test("bar", "test_foo", test_foo
, (void *)&argc
);
68 harness_add_test("bar", "test_fail", test_fail
, NULL
);
69 harness_add_test("baz", "test_foo", test_foo
, (void *)&argc
);
70 harness_add_test("baz", "test_pass", test_pass
, NULL
);
71 harness_add_test("bar", "test_pass", test_pass
, NULL
);
72 harness_add_test("baz", "test_fail", test_fail
, NULL
);
73 harness_add_test("baz", "test_long", test_long
, NULL
);
74 harness_add_test("bar", "test_long", test_long
, NULL
);
75 ret
= harness_run(NULL
);
76 harness_destroy(&cfg
);