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
b1fe7f99b5
commit
71a52060f5
|
@ -60,6 +60,9 @@ SUITE_INIT(ecore)
|
|||
{
|
||||
timeout_reached = 0;
|
||||
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);
|
||||
ck_assert_msg(!!timeout, "timeout timer creation failed!");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue