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:
Mike Blumenkrantz 2018-06-12 13:57:01 -04:00
parent 7aeab74e41
commit 407d89f29b
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ int timeout_reached = 0;
static Eina_Bool
timeout_cb()
{
#if CHECK_MINOR_VERSION >= 11
const char *tcname = tcase_name();
timeout_reached = 1;
@ -51,6 +52,7 @@ timeout_cb()
ecore_main_loop_quit();
}
else
#endif
ck_abort_msg("test timeout reached!");
timeout = NULL;
return EINA_FALSE;