tests: fix a build error on the 0.12.0 check

Summary:
(1) EFL_START_TEST(TEST_NAME) is defined as follows if you are using
    the 0.12.0 check:

  START_TEST(TEST_NAME) \
  _timing_start();

(2) START_TEST(__testname) is defined as follows
    (To make it simple I am using 'blah-blah' here):

static void __testname_fn (blah-blah);\
static const TTest __testname_ttest = { blah-blah };\
static const TTest * __testname = & __testname_ttest;\
static void __testname_fn (blah-blah)

For example we are using as follows in a test case:

EFL_START_TEST(evas_object_smart_paragraph_direction)
{
   ...
}
EFL_END_TEST

This made a build error.

Test Plan: make check

Reviewers: Hermet, zmike

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6969
This commit is contained in:
Shinwoo Kim 2018-09-04 14:58:10 +09:00 committed by Hermet Park
parent 7655a0d267
commit f84408e325
3 changed files with 5 additions and 1 deletions

View File

@ -207,10 +207,12 @@ _timing_end(void)
# define EFL_START_TEST(TEST_NAME) \
START_TEST(TEST_NAME) \
{ \
_timing_start();
# define EFL_END_TEST \
_timing_end(); \
} \
END_TEST
#else

View File

@ -10,6 +10,8 @@
#include <Efreet.h>
EFL_START_TEST(eio_init_test)
{
}
EFL_END_TEST
static void

View File

@ -184,7 +184,7 @@ EFL_START_TEST (elm_code_indent_tab_matching_braces)
elm_code_free(code);
elm_shutdown();
}
END_TEST
EFL_END_TEST
EFL_START_TEST (elm_code_indent_startswith_keyword)
{