forked from enlightenment/efl
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
This commit is contained in:
parent
7aeab74e41
commit
407d89f29b
|
@ -41,6 +41,7 @@ int timeout_reached = 0;
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
timeout_cb()
|
timeout_cb()
|
||||||
{
|
{
|
||||||
|
#if CHECK_MINOR_VERSION >= 11
|
||||||
const char *tcname = tcase_name();
|
const char *tcname = tcase_name();
|
||||||
|
|
||||||
timeout_reached = 1;
|
timeout_reached = 1;
|
||||||
|
@ -51,6 +52,7 @@ timeout_cb()
|
||||||
ecore_main_loop_quit();
|
ecore_main_loop_quit();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
ck_abort_msg("test timeout reached!");
|
ck_abort_msg("test timeout reached!");
|
||||||
timeout = NULL;
|
timeout = NULL;
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue