void
_elm2_suite_init(void)
{
- if (getpid() != main_pid)
+ if (is_forked())
{
if (abort_on_warnings)
fail_on_errors_setup();
/* verify that ecore was de-initialized completely */
ck_assert_int_eq(ecore_init(), 1);
/* avoid slowdowns in fork mode */
- if (getpid() != main_pid) return;
+ if (is_forked()) return;
ck_assert_int_eq(ecore_shutdown(), 0);
}
evas_font_path_global_append(TEST_FONT_DIR);
font_path = EINA_TRUE;
}
- if (getpid() != main_pid)
+ if (is_forked())
{
if (global_win) return global_win;
}
{
Evas_Object *win;
- if (getpid() != main_pid)
+ if (is_forked())
{
if (global_win) return global_win;
}
return win;
}
+Eina_Bool
+is_forked(void)
+{
+ return getpid() != main_pid;
+}
+
int
suite_setup(Eina_Bool legacy)
{
void *real_timer_add(double in, Ecore_Task_Cb cb, void *data);
void fail_on_errors_teardown(void);
void fail_on_errors_setup(void);
+Eina_Bool is_forked(void);
void get_me_to_those_events(Eo *obj);
void click_object(Eo *obj);