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:
Mike Blumenkrantz 2019-10-28 15:03:28 -04:00
parent b1fe7f99b5
commit 71a52060f5
1 changed files with 3 additions and 0 deletions

View File

@ -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!");
}