forked from enlightenment/efl
tests/ecore: do not create global test timeout timer if running unforked
this is a pita for debugging Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10546
This commit is contained in:
parent
9e313f18ac
commit
7b374754cb
|
@ -60,6 +60,9 @@ SUITE_INIT(ecore)
|
||||||
{
|
{
|
||||||
timeout_reached = 0;
|
timeout_reached = 0;
|
||||||
ck_assert_int_eq(ecore_init(), 1);
|
ck_assert_int_eq(ecore_init(), 1);
|
||||||
|
#ifdef HAVE_FORK
|
||||||
|
if (eina_streq(getenv("CK_FORK"), "no")) return;
|
||||||
|
#endif
|
||||||
timeout = ecore_timer_add(5.0, timeout_cb, NULL);
|
timeout = ecore_timer_add(5.0, timeout_cb, NULL);
|
||||||
ck_assert_msg(!!timeout, "timeout timer creation failed!");
|
ck_assert_msg(!!timeout, "timeout timer creation failed!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue