summaryrefslogtreecommitdiff
path: root/src/tests/ecore
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-12 13:57:01 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-12 13:57:01 -0400
commit407d89f29b00f9ea52fce074916ab879289aa67b (patch)
tree26ea260ad761a054d03b93ff415269fb1c6c8dd9 /src/tests/ecore
parent7aeab74e417598049b65f41e97eb1db43cbf92db (diff)
tests: make ecore timeout special casing dependent on check version
Summary: tcase_name() was added in 0.11.0 (2016), which is still not widely enough distributed to rely upon without version checks Reviewers: stefan_schmidt, ManMower, devilhorns Reviewed By: ManMower Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6260
Diffstat (limited to 'src/tests/ecore')
-rw-r--r--src/tests/ecore/ecore_suite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_suite.c b/src/tests/ecore/ecore_suite.c
index 0e67feafa7..a331cbf581 100644
--- a/src/tests/ecore/ecore_suite.c
+++ b/src/tests/ecore/ecore_suite.c
@@ -41,6 +41,7 @@ int timeout_reached = 0;
41static Eina_Bool 41static Eina_Bool
42timeout_cb() 42timeout_cb()
43{ 43{
44#if CHECK_MINOR_VERSION >= 11
44 const char *tcname = tcase_name(); 45 const char *tcname = tcase_name();
45 46
46 timeout_reached = 1; 47 timeout_reached = 1;
@@ -51,6 +52,7 @@ timeout_cb()
51 ecore_main_loop_quit(); 52 ecore_main_loop_quit();
52 } 53 }
53 else 54 else
55#endif
54 ck_abort_msg("test timeout reached!"); 56 ck_abort_msg("test timeout reached!");
55 timeout = NULL; 57 timeout = NULL;
56 return EINA_FALSE; 58 return EINA_FALSE;