tests: make ecore timeout special casing dependent on check version
authorMike Blumenkrantz <zmike@samsung.com>
Tue, 12 Jun 2018 17:57:01 +0000 (13:57 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 13 Jun 2018 23:50:59 +0000 (08:50 +0900)
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

src/tests/ecore/ecore_suite.c

index 0e67fea..a331cbf 100644 (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;