forked from enlightenment/efl
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:
parent
7655a0d267
commit
f84408e325
|
@ -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
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#include <Efreet.h>
|
||||
|
||||
EFL_START_TEST(eio_init_test)
|
||||
{
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
||||
static void
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue