summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-28 15:03:28 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-31 09:58:50 -0400
commit71a52060f5a407e0cfc0dc8e8e0c6971258da32d (patch)
tree43342231853bc22e91aaa76343ddc51ca79473f0
parentb1fe7f99b5347d3f037be1803193b5f54f734a6a (diff)
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
-rw-r--r--src/tests/ecore/ecore_suite.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_suite.c b/src/tests/ecore/ecore_suite.c
index 53c6bbb3bf..b9248a814a 100644
--- a/src/tests/ecore/ecore_suite.c
+++ b/src/tests/ecore/ecore_suite.c
@@ -60,6 +60,9 @@ SUITE_INIT(ecore)
60{ 60{
61 timeout_reached = 0; 61 timeout_reached = 0;
62 ck_assert_int_eq(ecore_init(), 1); 62 ck_assert_int_eq(ecore_init(), 1);
63#ifdef HAVE_FORK
64 if (eina_streq(getenv("CK_FORK"), "no")) return;
65#endif
63 timeout = ecore_timer_add(5.0, timeout_cb, NULL); 66 timeout = ecore_timer_add(5.0, timeout_cb, NULL);
64 ck_assert_msg(!!timeout, "timeout timer creation failed!"); 67 ck_assert_msg(!!timeout, "timeout timer creation failed!");
65} 68}