static gboolean run (void) { gboolean success; run_context = CUT_RUN_CONTEXT(cut_test_runner_new()); test_context = cut_test_context_new(run_context, NULL, NULL, NULL, test); cut_test_context_current_push(test_context); success = cut_test_runner_run_test(CUT_TEST_RUNNER(run_context), test, test_context); cut_test_context_current_pop(); return success; }
static gboolean run (void) { gboolean success; test_context = cut_test_context_new(run_context, NULL, test_case, NULL, test); cut_test_context_current_push(test_context); success = cut_test_runner_run_test(CUT_TEST_RUNNER(run_context), test, test_context); cut_test_context_current_pop(); g_object_unref(test_context); test_context = NULL; return success; }
static gboolean run (void) { gboolean success; CutTestContext *test_context; CutTest *test; test = CUT_TEST(test_iterator); connect_signals(test); test_context = cut_test_context_new(run_context, NULL, test_case, NULL, NULL); cut_test_context_current_push(test_context); success = cut_test_runner_run_test_iterator(CUT_TEST_RUNNER(run_context), test_iterator, test_context); cut_test_context_current_pop(); disconnect_signals(test); g_object_unref(test_context); return success; }