void test_run (void) { GError *error = NULL; process = gcut_process_new(cuttest_echo_path, "XXX", NULL); setup_process(process); gcut_assert_equal_pid(0, gcut_process_get_pid(process)); gcut_process_run(process, &error); gcut_assert_error(error); gcut_assert_not_equal_pid(0, gcut_process_get_pid(process)); wait_exited(); cut_assert_equal_string("XXX\n", output_string->str); cut_assert_equal_string("", error_string->str); }
static void stub_not_equal_pid (void) { gcut_assert_not_equal_pid(0, (GPid)100); MARK_FAIL(gcut_assert_not_equal_pid(0, 0)); }