int
testbench_mutex()
{
    tu_suite_set_init_cb(testbench_mutex_init, NULL);

    testbench_mutex_suite();

    return tu_any_failed;
}
Beispiel #2
0
void
tu_suite_complete(void)
{
    tu_suite_set_init_cb(NULL, NULL);
    tu_suite_set_pre_test_cb(NULL, NULL);
    tu_suite_set_post_test_cb(NULL, NULL);
    if (ts_config.ts_suite_complete_cb != NULL) {
        ts_config.ts_suite_complete_cb(ts_config.ts_suite_complete_arg);
    }
}
int
main(int argc, char **argv)
{
    ts_config.ts_print_results = 1;
    tu_init();

    tu_suite_set_init_cb(fcb_ts_init, NULL);
    fcb_test_all();

    return tu_any_failed;
}