tests: add instrumentation to existing tests to find slow tests

efl_check.h must be included and the EFL_START/END_TEST macros must be
used in place of normal START/END_TEST macros

timing is enabled when TIMING_ENABLED is set
https://phab.enlightenment.org/w/improve_tests/

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
This commit is contained in:
Mike Blumenkrantz 2018-03-26 14:19:28 -04:00 committed by Stefan Schmidt
parent b340b5e49c
commit adc601aca2
256 changed files with 2278 additions and 2197 deletions

View File

@ -2,7 +2,7 @@
#define _ECORE_SUITE_H #define _ECORE_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void ecore_test_ecore(TCase *tc); void ecore_test_ecore(TCase *tc);
void ecore_test_ecore_x(TCase *tc); void ecore_test_ecore_x(TCase *tc);
void ecore_test_ecore_imf(TCase *tc); void ecore_test_ecore_imf(TCase *tc);

View File

@ -21,7 +21,7 @@ static Eina_Bool _anim_cb(void *data EINA_UNUSED, double pos)
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(ecore_test_animators) EFL_START_TEST(ecore_test_animators)
{ {
Ecore_Animator *animator; Ecore_Animator *animator;
double interval1 = 0.02; double interval1 = 0.02;
@ -46,7 +46,7 @@ START_TEST(ecore_test_animators)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
Eina_Bool test_pos(Ecore_Pos_Map posmap, double v1, double v2, double (*testmap)(double val, double v1, double v2)) Eina_Bool test_pos(Ecore_Pos_Map posmap, double v1, double v2, double (*testmap)(double val, double v1, double v2))
{ {
@ -88,14 +88,14 @@ double _sinusoidal(double val, double v1 EINA_UNUSED, double v2 EINA_UNUSED)
return (1 - cos(val * M_PI)) / 2; return (1 - cos(val * M_PI)) / 2;
} }
START_TEST(ecore_test_pos_map) EFL_START_TEST(ecore_test_pos_map)
{ {
fail_if(!test_pos(ECORE_POS_MAP_LINEAR, 0, 0, _linear)); fail_if(!test_pos(ECORE_POS_MAP_LINEAR, 0, 0, _linear));
fail_if(!test_pos(ECORE_POS_MAP_ACCELERATE, 0, 0, _accel)); fail_if(!test_pos(ECORE_POS_MAP_ACCELERATE, 0, 0, _accel));
fail_if(!test_pos(ECORE_POS_MAP_DECELERATE, 0, 0, _decel)); fail_if(!test_pos(ECORE_POS_MAP_DECELERATE, 0, 0, _decel));
fail_if(!test_pos(ECORE_POS_MAP_SINUSOIDAL, 0, 0, _sinusoidal)); fail_if(!test_pos(ECORE_POS_MAP_SINUSOIDAL, 0, 0, _sinusoidal));
} }
END_TEST EFL_END_TEST
static void _animator_called_cb(void *data) static void _animator_called_cb(void *data)
{ {
@ -124,7 +124,7 @@ static Eina_Bool _quit_cb(void* data EINA_UNUSED)
return ECORE_CALLBACK_CANCEL; return ECORE_CALLBACK_CANCEL;
} }
START_TEST(ecore_test_begin_end_tick) EFL_START_TEST(ecore_test_begin_end_tick)
{ {
Ecore_Timer *timer1, *timer2; Ecore_Timer *timer1, *timer2;
Ecore_Animator *animator; Ecore_Animator *animator;
@ -156,7 +156,7 @@ START_TEST(ecore_test_begin_end_tick)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_animator(TCase *tc) void ecore_test_animator(TCase *tc)
{ {

View File

@ -24,7 +24,7 @@ _cb_args1(void *data EINA_UNUSED, const Efl_Event *event)
ecore_main_loop_quit(); ecore_main_loop_quit();
} }
START_TEST(ecore_test_args1) EFL_START_TEST(ecore_test_args1)
{ {
ecore_init(); ecore_init();
efl_event_callback_add(efl_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_event_callback_add(efl_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS,
@ -33,7 +33,7 @@ START_TEST(ecore_test_args1)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_cb_args2(void *data EINA_UNUSED, const Efl_Event *event) _cb_args2(void *data EINA_UNUSED, const Efl_Event *event)
@ -45,7 +45,7 @@ _cb_args2(void *data EINA_UNUSED, const Efl_Event *event)
ecore_main_loop_quit(); ecore_main_loop_quit();
} }
START_TEST(ecore_test_args2) EFL_START_TEST(ecore_test_args2)
{ {
const char *simple_args[] = { const char *simple_args[] = {
"hello world" "hello world"
@ -58,7 +58,7 @@ START_TEST(ecore_test_args2)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_cb_args3(void *data EINA_UNUSED, const Efl_Event *event) _cb_args3(void *data EINA_UNUSED, const Efl_Event *event)
@ -69,7 +69,7 @@ _cb_args3(void *data EINA_UNUSED, const Efl_Event *event)
ecore_main_loop_quit(); ecore_main_loop_quit();
} }
START_TEST(ecore_test_args3) EFL_START_TEST(ecore_test_args3)
{ {
ecore_init(); ecore_init();
efl_event_callback_add(efl_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_event_callback_add(efl_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS,
@ -78,7 +78,7 @@ START_TEST(ecore_test_args3)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_args(TCase *tc) void ecore_test_ecore_args(TCase *tc)
{ {

View File

@ -31,7 +31,7 @@ _dummy_cb(void *data)
return !!data; return !!data;
} }
START_TEST(ecore_test_ecore_init) EFL_START_TEST(ecore_test_ecore_init)
{ {
int ret; int ret;
@ -41,9 +41,9 @@ START_TEST(ecore_test_ecore_init)
ret = ecore_shutdown(); ret = ecore_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop) EFL_START_TEST(ecore_test_ecore_main_loop)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Timer *timer; Ecore_Timer *timer;
@ -61,9 +61,9 @@ START_TEST(ecore_test_ecore_main_loop)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop_idler) EFL_START_TEST(ecore_test_ecore_main_loop_idler)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Idler *idler; Ecore_Idler *idler;
@ -81,9 +81,9 @@ START_TEST(ecore_test_ecore_main_loop_idler)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop_idle_enterer) EFL_START_TEST(ecore_test_ecore_main_loop_idle_enterer)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Idle_Enterer *idle_enterer; Ecore_Idle_Enterer *idle_enterer;
@ -101,9 +101,9 @@ START_TEST(ecore_test_ecore_main_loop_idle_enterer)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop_idle_before_enterer) EFL_START_TEST(ecore_test_ecore_main_loop_idle_before_enterer)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Idle_Enterer *idle_enterer; Ecore_Idle_Enterer *idle_enterer;
@ -121,9 +121,9 @@ START_TEST(ecore_test_ecore_main_loop_idle_before_enterer)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop_idle_exiter) EFL_START_TEST(ecore_test_ecore_main_loop_idle_exiter)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Timer *timer; Ecore_Timer *timer;
@ -146,9 +146,9 @@ START_TEST(ecore_test_ecore_main_loop_idle_exiter)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop_timer) EFL_START_TEST(ecore_test_ecore_main_loop_timer)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Timer *timer; Ecore_Timer *timer;
@ -172,7 +172,7 @@ START_TEST(ecore_test_ecore_main_loop_timer)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
// Disabled tests: inner main loops are not supposed to work! // Disabled tests: inner main loops are not supposed to work!
#if 0 #if 0
@ -204,7 +204,7 @@ static Eina_Bool _timer1(void *data)
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(ecore_test_ecore_main_loop_timer_inner) EFL_START_TEST(ecore_test_ecore_main_loop_timer_inner)
{ {
Ecore_Timer *timer; Ecore_Timer *timer;
int ret; int ret;
@ -224,7 +224,7 @@ START_TEST(ecore_test_ecore_main_loop_timer_inner)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
static Eina_Bool static Eina_Bool
@ -238,7 +238,7 @@ _fd_handler_cb(void *data, Ecore_Fd_Handler *handler EINA_UNUSED)
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(ecore_test_ecore_main_loop_fd_handler) EFL_START_TEST(ecore_test_ecore_main_loop_fd_handler)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Fd_Handler *fd_handler; Ecore_Fd_Handler *fd_handler;
@ -267,9 +267,9 @@ START_TEST(ecore_test_ecore_main_loop_fd_handler)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop_fd_handler_valid_flags) EFL_START_TEST(ecore_test_ecore_main_loop_fd_handler_valid_flags)
{ {
Ecore_Fd_Handler *fd_handler; Ecore_Fd_Handler *fd_handler;
int comm[2]; int comm[2];
@ -293,7 +293,7 @@ START_TEST(ecore_test_ecore_main_loop_fd_handler_valid_flags)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_eo_read_cb(void *data, const Efl_Event *info EINA_UNUSED) _eo_read_cb(void *data, const Efl_Event *info EINA_UNUSED)
@ -304,7 +304,7 @@ _eo_read_cb(void *data, const Efl_Event *info EINA_UNUSED)
ecore_main_loop_quit(); ecore_main_loop_quit();
} }
START_TEST(ecore_test_efl_loop_fd) EFL_START_TEST(ecore_test_efl_loop_fd)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Eo *fd; Eo *fd;
@ -334,7 +334,7 @@ START_TEST(ecore_test_efl_loop_fd)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_efl_del_cb(void *data, const Efl_Event *ev EINA_UNUSED) _efl_del_cb(void *data, const Efl_Event *ev EINA_UNUSED)
@ -344,7 +344,7 @@ _efl_del_cb(void *data, const Efl_Event *ev EINA_UNUSED)
*dead = EINA_TRUE; *dead = EINA_TRUE;
} }
START_TEST(ecore_test_efl_loop_fd_lifecycle) EFL_START_TEST(ecore_test_efl_loop_fd_lifecycle)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Eina_Bool dead = EINA_FALSE; Eina_Bool dead = EINA_FALSE;
@ -385,9 +385,9 @@ START_TEST(ecore_test_efl_loop_fd_lifecycle)
efl_object_shutdown(); efl_object_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_main_loop_fd_handler_activate_modify) EFL_START_TEST(ecore_test_ecore_main_loop_fd_handler_activate_modify)
{ {
Eina_Bool did = EINA_FALSE; Eina_Bool did = EINA_FALSE;
Ecore_Fd_Handler *fd_handler; Ecore_Fd_Handler *fd_handler;
@ -418,7 +418,7 @@ START_TEST(ecore_test_ecore_main_loop_fd_handler_activate_modify)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
_event_handler_cb(void *data, int type, void *event) _event_handler_cb(void *data, int type, void *event)
@ -526,7 +526,7 @@ _filter_end(void *user_data, void *func_data EINA_UNUSED)
(*fdid)++; (*fdid)++;
} }
START_TEST(ecore_test_ecore_main_loop_event) EFL_START_TEST(ecore_test_ecore_main_loop_event)
{ {
Ecore_Event_Handler *handler, *handler2, *handler3; Ecore_Event_Handler *handler, *handler2, *handler3;
Ecore_Event_Filter *filter_handler; Ecore_Event_Filter *filter_handler;
@ -630,7 +630,7 @@ START_TEST(ecore_test_ecore_main_loop_event)
res_counter = ecore_shutdown(); res_counter = ecore_shutdown();
} }
END_TEST EFL_END_TEST
#if 0 #if 0
static int _log_dom; static int _log_dom;
@ -670,7 +670,7 @@ _event_recursive_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EI
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(ecore_test_ecore_main_loop_event_recursive) EFL_START_TEST(ecore_test_ecore_main_loop_event_recursive)
{ {
/* This test tests if the event handlers are really called only once when /* This test tests if the event handlers are really called only once when
* recursive main loops are used and any number of events may have occurred * recursive main loops are used and any number of events may have occurred
@ -698,10 +698,10 @@ START_TEST(ecore_test_ecore_main_loop_event_recursive)
INF("main: end"); INF("main: end");
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
START_TEST(ecore_test_ecore_app) EFL_START_TEST(ecore_test_ecore_app)
{ {
int ret; int ret;
@ -726,7 +726,7 @@ START_TEST(ecore_test_ecore_app)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
Eina_Bool _poller_cb(void *data) Eina_Bool _poller_cb(void *data)
{ {
@ -735,7 +735,7 @@ Eina_Bool _poller_cb(void *data)
return ECORE_CALLBACK_RENEW; return ECORE_CALLBACK_RENEW;
} }
START_TEST(ecore_test_ecore_main_loop_poller) EFL_START_TEST(ecore_test_ecore_main_loop_poller)
{ {
int ret; int ret;
@ -791,7 +791,7 @@ START_TEST(ecore_test_ecore_main_loop_poller)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
Eina_Bool _poller_handler(void *data) Eina_Bool _poller_handler(void *data)
{ {
@ -826,7 +826,7 @@ Eina_Bool _poller_loop(void *data)
return ECORE_CALLBACK_RENEW; return ECORE_CALLBACK_RENEW;
} }
START_TEST(ecore_test_ecore_main_loop_poller_add_del) EFL_START_TEST(ecore_test_ecore_main_loop_poller_add_del)
{ {
int ret, count_res = 0; int ret, count_res = 0;
@ -855,7 +855,7 @@ START_TEST(ecore_test_ecore_main_loop_poller_add_del)
ret = ecore_shutdown(); ret = ecore_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_ecore(TCase *tc) void ecore_test_ecore(TCase *tc)
{ {

View File

@ -51,7 +51,7 @@ _seek_vol(void *data)
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(ecore_test_ecore_audio_obj_pulse) EFL_START_TEST(ecore_test_ecore_audio_obj_pulse)
{ {
Eo *in, *out; Eo *in, *out;
Eina_Bool ret = EINA_FALSE; Eina_Bool ret = EINA_FALSE;
@ -81,7 +81,7 @@ START_TEST(ecore_test_ecore_audio_obj_pulse)
efl_del(out); efl_del(out);
efl_del(in); efl_del(in);
} }
END_TEST EFL_END_TEST
#endif #endif
#endif #endif
@ -102,7 +102,7 @@ _idle_del(void *data)
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(ecore_test_ecore_audio_cleanup) EFL_START_TEST(ecore_test_ecore_audio_cleanup)
{ {
Eo *in, *out; Eo *in, *out;
int freq = 1000; int freq = 1000;
@ -130,9 +130,9 @@ START_TEST(ecore_test_ecore_audio_cleanup)
ecore_file_remove(TESTS_BUILD_DIR"/tmp.ogg"); ecore_file_remove(TESTS_BUILD_DIR"/tmp.ogg");
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_audio_obj_tone) EFL_START_TEST(ecore_test_ecore_audio_obj_tone)
{ {
Eo *in, *out; Eo *in, *out;
double len; double len;
@ -221,9 +221,9 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
//TODO: Compare and fail //TODO: Compare and fail
ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav"); ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav");
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_audio_obj_sndfile) EFL_START_TEST(ecore_test_ecore_audio_obj_sndfile)
{ {
Eo *in, *out; Eo *in, *out;
double len, rem; double len, rem;
@ -311,9 +311,9 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile)
//TODO: Compare and fail //TODO: Compare and fail
ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav"); ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav");
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_audio_obj_in_out) EFL_START_TEST(ecore_test_ecore_audio_obj_in_out)
{ {
Eo *out2; Eo *out2;
Eina_List *in3; Eina_List *in3;
@ -373,7 +373,7 @@ START_TEST(ecore_test_ecore_audio_obj_in_out)
efl_del(in); efl_del(in);
} }
END_TEST EFL_END_TEST
static int read_cb(void *data EINA_UNUSED, Eo *eo_obj EINA_UNUSED, void *buffer, int len) static int read_cb(void *data EINA_UNUSED, Eo *eo_obj EINA_UNUSED, void *buffer, int len)
{ {
@ -413,7 +413,7 @@ Ecore_Audio_Vio out_vio = {
.write = write_cb, .write = write_cb,
}; };
START_TEST(ecore_test_ecore_audio_obj_vio) EFL_START_TEST(ecore_test_ecore_audio_obj_vio)
{ {
Eo *in, *out; Eo *in, *out;
@ -433,7 +433,7 @@ START_TEST(ecore_test_ecore_audio_obj_vio)
efl_del(out); efl_del(out);
efl_del(in); efl_del(in);
} }
END_TEST EFL_END_TEST
static void _myfree(void *data) static void _myfree(void *data)
{ {
@ -442,7 +442,7 @@ static void _myfree(void *data)
*freed = EINA_TRUE; *freed = EINA_TRUE;
} }
START_TEST(ecore_test_ecore_audio_obj_in) EFL_START_TEST(ecore_test_ecore_audio_obj_in)
{ {
int i; int i;
double speed, length; double speed, length;
@ -532,9 +532,9 @@ START_TEST(ecore_test_ecore_audio_obj_in)
efl_del(in); efl_del(in);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_audio_obj) EFL_START_TEST(ecore_test_ecore_audio_obj)
{ {
int i; int i;
const char *name; const char *name;
@ -582,9 +582,9 @@ START_TEST(ecore_test_ecore_audio_obj)
} }
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_audio_init) EFL_START_TEST(ecore_test_ecore_audio_init)
{ {
int ret; int ret;
@ -595,7 +595,7 @@ START_TEST(ecore_test_ecore_audio_init)
ck_assert_int_eq(ret, 1); ck_assert_int_eq(ret, 1);
} }
END_TEST EFL_END_TEST
void setup(void) void setup(void)
{ {

View File

@ -11,7 +11,7 @@
#define MAX_ITER 10 #define MAX_ITER 10
START_TEST(ecore_test_ecore_drm_shutdown_bef_init) EFL_START_TEST(ecore_test_ecore_drm_shutdown_bef_init)
{ {
int ret = 0; int ret = 0;
@ -27,9 +27,9 @@ START_TEST(ecore_test_ecore_drm_shutdown_bef_init)
fprintf(stderr, "Calling ecore_drm_shutdown after ecore_drm_init.\n"); fprintf(stderr, "Calling ecore_drm_shutdown after ecore_drm_init.\n");
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_drm_init) EFL_START_TEST(ecore_test_ecore_drm_init)
{ {
int ret, i, j; int ret, i, j;
@ -47,7 +47,7 @@ START_TEST(ecore_test_ecore_drm_init)
fail_if(ret != j); fail_if(ret != j);
} }
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_drm(TCase *tc) void ecore_test_ecore_drm(TCase *tc)
{ {

View File

@ -9,7 +9,7 @@
#define WINDOW_HEIGHT 200 #define WINDOW_HEIGHT 200
#define WINDOW_WIDTH 200 #define WINDOW_WIDTH 200
START_TEST(ecore_test_ecore_evas_associate) EFL_START_TEST(ecore_test_ecore_evas_associate)
{ {
Ecore_Evas *ee; Ecore_Evas *ee;
Evas *canvas; Evas *canvas;
@ -34,9 +34,9 @@ START_TEST(ecore_test_ecore_evas_associate)
ret = ecore_evas_shutdown(); ret = ecore_evas_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_evas_cocoa) EFL_START_TEST(ecore_test_ecore_evas_cocoa)
{ {
int ret; int ret;
Ecore_Evas *ee; Ecore_Evas *ee;
@ -68,7 +68,7 @@ START_TEST(ecore_test_ecore_evas_cocoa)
ret = ecore_evas_shutdown(); ret = ecore_evas_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_evas(TCase *tc) void ecore_test_ecore_evas(TCase *tc)
{ {

View File

@ -11,7 +11,7 @@
#define MAX_ITER 10 #define MAX_ITER 10
START_TEST(ecore_test_ecore_fb_init) EFL_START_TEST(ecore_test_ecore_fb_init)
{ {
// SKIP fb test as all it tests is init and shutdown and nothing else // SKIP fb test as all it tests is init and shutdown and nothing else
// and these require basically a linux box with root or special // and these require basically a linux box with root or special
@ -36,7 +36,7 @@ START_TEST(ecore_test_ecore_fb_init)
} }
*/ */
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_fb(TCase *tc) void ecore_test_ecore_fb(TCase *tc)
{ {

View File

@ -115,7 +115,7 @@ progress_cb(void *data EINA_UNUSED, const char *file EINA_UNUSED,
return ECORE_FILE_PROGRESS_CONTINUE; return ECORE_FILE_PROGRESS_CONTINUE;
} }
START_TEST(ecore_test_ecore_file_init) EFL_START_TEST(ecore_test_ecore_file_init)
{ {
int ret; int ret;
@ -125,9 +125,9 @@ START_TEST(ecore_test_ecore_file_init)
ret = ecore_file_shutdown(); ret = ecore_file_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_file_operations) EFL_START_TEST(ecore_test_ecore_file_operations)
{ {
const char* dirs[] = {"b", "b/c", "b/c/d", "d", 0}; const char* dirs[] = {"b", "b/c", "b/c/d", "d", 0};
char *dirs2[] = {"a2", "b2", "c2", 0}; char *dirs2[] = {"a2", "b2", "c2", 0};
@ -355,9 +355,9 @@ START_TEST(ecore_test_ecore_file_operations)
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_file_path) EFL_START_TEST(ecore_test_ecore_file_path)
{ {
const char *src_dir, *src_file, *dest_file; const char *src_dir, *src_file, *dest_file;
char *dup_dir, *path; char *dup_dir, *path;
@ -418,9 +418,9 @@ START_TEST(ecore_test_ecore_file_path)
ret = ecore_file_shutdown(); ret = ecore_file_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_file_monitor) EFL_START_TEST(ecore_test_ecore_file_monitor)
{ {
Ecore_File_Monitor *mon; Ecore_File_Monitor *mon;
const char *src_dir; const char *src_dir;
@ -473,9 +473,9 @@ START_TEST(ecore_test_ecore_file_monitor)
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_file_download) EFL_START_TEST(ecore_test_ecore_file_download)
{ {
const char *download_dir; const char *download_dir;
const char *download_file; const char *download_file;
@ -538,7 +538,7 @@ START_TEST(ecore_test_ecore_file_download)
ret = ecore_file_shutdown(); ret = ecore_file_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_file(TCase *tc) void ecore_test_ecore_file(TCase *tc)
{ {

View File

@ -6,12 +6,12 @@
#include "ecore_suite.h" #include "ecore_suite.h"
START_TEST(ecore_test_ecore_imf_init) EFL_START_TEST(ecore_test_ecore_imf_init)
{ {
ecore_imf_init(); ecore_imf_init();
ecore_imf_shutdown(); ecore_imf_shutdown();
} }
END_TEST EFL_END_TEST
static const char *built_modules[] = { static const char *built_modules[] = {
#ifdef ENABLE_XIM #ifdef ENABLE_XIM
@ -42,7 +42,7 @@ _find_list(const Eina_List *lst, const char *item)
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(ecore_test_ecore_imf_modules) EFL_START_TEST(ecore_test_ecore_imf_modules)
{ {
Eina_List *modules; Eina_List *modules;
const char **itr; const char **itr;
@ -61,9 +61,9 @@ START_TEST(ecore_test_ecore_imf_modules)
eina_list_free(modules); eina_list_free(modules);
ecore_imf_shutdown(); ecore_imf_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_imf_modules_load) EFL_START_TEST(ecore_test_ecore_imf_modules_load)
{ {
const char **itr; const char **itr;
@ -78,7 +78,7 @@ START_TEST(ecore_test_ecore_imf_modules_load)
ecore_imf_shutdown(); ecore_imf_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_imf(TCase *tc) void ecore_test_ecore_imf(TCase *tc)
{ {

View File

@ -11,7 +11,7 @@
#define MAX_ITER 10 #define MAX_ITER 10
START_TEST(ecore_test_ecore_input_init) EFL_START_TEST(ecore_test_ecore_input_init)
{ {
int ret, i, j; int ret, i, j;
@ -29,7 +29,7 @@ START_TEST(ecore_test_ecore_input_init)
fail_if(ret != j); fail_if(ret != j);
} }
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_input(TCase *tc) void ecore_test_ecore_input(TCase *tc)
{ {

View File

@ -69,7 +69,7 @@ th2_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED)
} }
} }
START_TEST(ecore_test_ecore_thread_eina_thread_queue_t1) EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t1)
{ {
int val = 99; int val = 99;
@ -104,7 +104,7 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t1)
ecore_shutdown(); ecore_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
typedef struct typedef struct
@ -137,7 +137,7 @@ thspeed2_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED)
} }
} }
START_TEST(ecore_test_ecore_thread_eina_thread_queue_t2) EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t2)
{ {
Msg2 *msg; Msg2 *msg;
void *ref; void *ref;
@ -169,7 +169,7 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t2)
ecore_shutdown(); ecore_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
typedef struct typedef struct
@ -216,7 +216,7 @@ th32_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED)
} }
} }
START_TEST(ecore_test_ecore_thread_eina_thread_queue_t3) EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t3)
{ {
int val1 = 99, val2 = 99, cnt = 0; int val1 = 99, val2 = 99, cnt = 0;
Eina_Thread_Queue *parent; Eina_Thread_Queue *parent;
@ -285,7 +285,7 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t3)
ecore_shutdown(); ecore_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
typedef struct typedef struct
@ -331,7 +331,7 @@ th42_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED)
} }
START_TEST(ecore_test_ecore_thread_eina_thread_queue_t4) EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t4)
{ {
int cnt = 0; int cnt = 0;
int val1 = 99, val2 = 9999; int val1 = 99, val2 = 9999;
@ -375,7 +375,7 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t4)
ecore_shutdown(); ecore_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
typedef struct typedef struct
@ -435,7 +435,7 @@ th52_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED)
} }
START_TEST(ecore_test_ecore_thread_eina_thread_queue_t5) EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t5)
{ {
int val = 99; int val = 99;
@ -484,7 +484,7 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t5)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
typedef struct typedef struct
@ -579,7 +579,7 @@ th63_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED)
if (DEBUG) printf("%s: message reading done!\n", __FUNCTION__); if (DEBUG) printf("%s: message reading done!\n", __FUNCTION__);
} }
START_TEST(ecore_test_ecore_thread_eina_thread_queue_t6) EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t6)
{ {
Ecore_Thread *t1, *t2, *t3; Ecore_Thread *t1, *t2, *t3;
int do_break = 0; int do_break = 0;
@ -631,7 +631,7 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t6)
ecore_shutdown(); ecore_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
typedef struct typedef struct
@ -656,7 +656,7 @@ thspeed7_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED)
} }
} }
START_TEST(ecore_test_ecore_thread_eina_thread_queue_t7) EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t7)
{ {
Msg7 *msg; Msg7 *msg;
void *ref; void *ref;
@ -697,7 +697,7 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t7)
ecore_shutdown(); ecore_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_thread_eina_thread_queue(TCase *tc EINA_UNUSED) void ecore_test_ecore_thread_eina_thread_queue(TCase *tc EINA_UNUSED)
{ {

View File

@ -15,7 +15,7 @@
#include <Ecore_X.h> #include <Ecore_X.h>
START_TEST(ecore_test_ecore_x_init) EFL_START_TEST(ecore_test_ecore_x_init)
{ {
int ret; int ret;
@ -25,9 +25,9 @@ START_TEST(ecore_test_ecore_x_init)
ret = ecore_x_shutdown(); ret = ecore_x_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_x_bell) EFL_START_TEST(ecore_test_ecore_x_bell)
{ {
int i; int i;
int ret; int ret;
@ -46,7 +46,7 @@ START_TEST(ecore_test_ecore_x_bell)
ecore_x_shutdown(); ecore_x_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif

View File

@ -14,7 +14,7 @@ _ecore_quit(void *data)
ecore_main_loop_quit(); ecore_main_loop_quit();
} }
START_TEST(ecore_test_job) EFL_START_TEST(ecore_test_job)
{ {
Eina_Bool bob = EINA_FALSE; Eina_Bool bob = EINA_FALSE;
Ecore_Job *job; Ecore_Job *job;
@ -30,7 +30,7 @@ START_TEST(ecore_test_job)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_job(TCase *tc) void ecore_test_ecore_job(TCase *tc)
{ {

View File

@ -55,7 +55,7 @@ _death(void *data, const Efl_Event *ev EINA_UNUSED)
} }
// Test value set after then // Test value set after then
START_TEST(efl_test_promise_future_success) EFL_START_TEST(efl_test_promise_future_success)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -93,10 +93,10 @@ START_TEST(efl_test_promise_future_success)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
// Test value set before future_get // Test value set before future_get
START_TEST(efl_test_promise_future_success_before_get) EFL_START_TEST(efl_test_promise_future_success_before_get)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -133,9 +133,9 @@ START_TEST(efl_test_promise_future_success_before_get)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_cancel) EFL_START_TEST(efl_test_promise_future_cancel)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -177,10 +177,10 @@ START_TEST(efl_test_promise_future_cancel)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
// Test value set before then // Test value set before then
START_TEST(efl_test_promise_before_future_success) EFL_START_TEST(efl_test_promise_before_future_success)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -216,9 +216,9 @@ START_TEST(efl_test_promise_before_future_success)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_before_future_cancel) EFL_START_TEST(efl_test_promise_before_future_cancel)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -259,7 +259,7 @@ START_TEST(efl_test_promise_before_future_cancel)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_chain_then(void *data, const Efl_Event *ev) _chain_then(void *data, const Efl_Event *ev)
@ -298,7 +298,7 @@ _chain_progress(void *data, const Efl_Event *ev)
} }
// Test chained then // Test chained then
START_TEST(efl_test_promise_future_chain_success) EFL_START_TEST(efl_test_promise_future_chain_success)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f1, *f2; Efl_Future *f1, *f2;
@ -343,9 +343,9 @@ START_TEST(efl_test_promise_future_chain_success)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_chain_cancel) EFL_START_TEST(efl_test_promise_future_chain_cancel)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f1, *f2; Efl_Future *f1, *f2;
@ -394,10 +394,10 @@ START_TEST(efl_test_promise_future_chain_cancel)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
// Test value set after multi then // Test value set after multi then
START_TEST(efl_test_promise_future_multi_success) EFL_START_TEST(efl_test_promise_future_multi_success)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -440,9 +440,9 @@ START_TEST(efl_test_promise_future_multi_success)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_multi_success_noref) EFL_START_TEST(efl_test_promise_future_multi_success_noref)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -483,9 +483,9 @@ START_TEST(efl_test_promise_future_multi_success_noref)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_multi_cancel) EFL_START_TEST(efl_test_promise_future_multi_cancel)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -530,10 +530,10 @@ START_TEST(efl_test_promise_future_multi_cancel)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
// Test value set before multi then // Test value set before multi then
START_TEST(efl_test_promise_before_future_multi_success) EFL_START_TEST(efl_test_promise_before_future_multi_success)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -574,9 +574,9 @@ START_TEST(efl_test_promise_before_future_multi_success)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_before_future_multi_success_noref) EFL_START_TEST(efl_test_promise_before_future_multi_success_noref)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -615,9 +615,9 @@ START_TEST(efl_test_promise_before_future_multi_success_noref)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_before_future_multi_cancel) EFL_START_TEST(efl_test_promise_before_future_multi_cancel)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -667,9 +667,9 @@ START_TEST(efl_test_promise_before_future_multi_cancel)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_before_future_multi_cancel_noref) EFL_START_TEST(efl_test_promise_before_future_multi_cancel_noref)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -719,7 +719,7 @@ START_TEST(efl_test_promise_before_future_multi_cancel_noref)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Bool cleanup = EINA_FALSE; static Eina_Bool cleanup = EINA_FALSE;
@ -730,7 +730,7 @@ _cleanup_called(void *s EINA_UNUSED)
} }
// Test optional value set without then // Test optional value set without then
START_TEST(efl_test_promise_future_optional_success) EFL_START_TEST(efl_test_promise_future_optional_success)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -768,9 +768,9 @@ START_TEST(efl_test_promise_future_optional_success)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_optional_cancel) EFL_START_TEST(efl_test_promise_future_optional_cancel)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -812,7 +812,7 @@ START_TEST(efl_test_promise_future_optional_cancel)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static int value[] = { 42, 7, 3 }; static int value[] = { 42, 7, 3 };
@ -834,7 +834,7 @@ _then_all(void *data, const Efl_Event *ev)
fo->then = EINA_TRUE; fo->then = EINA_TRUE;
} }
START_TEST(efl_test_promise_all) EFL_START_TEST(efl_test_promise_all)
{ {
Efl_Promise *p1, *p2, *p3; Efl_Promise *p1, *p2, *p3;
Efl_Future *all = NULL, *f1; Efl_Future *all = NULL, *f1;
@ -883,9 +883,9 @@ START_TEST(efl_test_promise_all)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_all_after_value_set) EFL_START_TEST(efl_test_promise_all_after_value_set)
{ {
Efl_Promise *p1, *p2, *p3; Efl_Promise *p1, *p2, *p3;
Efl_Future *all = NULL, *f1, *f2, *f3; Efl_Future *all = NULL, *f1, *f2, *f3;
@ -927,7 +927,7 @@ START_TEST(efl_test_promise_all_after_value_set)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_then_race(void *data, const Efl_Event *ev) _then_race(void *data, const Efl_Event *ev)
@ -942,7 +942,7 @@ _then_race(void *data, const Efl_Event *ev)
fo->then = EINA_TRUE; fo->then = EINA_TRUE;
} }
START_TEST(efl_test_promise_race) EFL_START_TEST(efl_test_promise_race)
{ {
Efl_Promise *p1, *p2, *p3; Efl_Promise *p1, *p2, *p3;
Efl_Future *race = NULL, *f1; Efl_Future *race = NULL, *f1;
@ -979,9 +979,9 @@ START_TEST(efl_test_promise_race)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_future_link) EFL_START_TEST(efl_test_future_link)
{ {
Efl_Promise *p; Efl_Promise *p;
Efl_Future *f; Efl_Future *f;
@ -1009,7 +1009,7 @@ START_TEST(efl_test_future_link)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static Efl_Future *recursive_future = NULL; static Efl_Future *recursive_future = NULL;
@ -1019,7 +1019,7 @@ _then_cleanup(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
efl_future_cancel(recursive_future); efl_future_cancel(recursive_future);
} }
START_TEST(efl_test_recursive_mess) EFL_START_TEST(efl_test_recursive_mess)
{ {
Efl_Promise *p; Efl_Promise *p;
Future_Ok done = { EINA_FALSE, EINA_FALSE, EINA_FALSE }; Future_Ok done = { EINA_FALSE, EINA_FALSE, EINA_FALSE };
@ -1038,7 +1038,7 @@ START_TEST(efl_test_recursive_mess)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_ecore_promise(TCase *tc) void ecore_test_ecore_promise(TCase *tc)
{ {

View File

@ -484,7 +484,7 @@ _promise_empty_done(void *data, const Eina_Value value, const Eina_Future *dead_
return value; return value;
} }
START_TEST(efl_test_timeout) EFL_START_TEST(efl_test_timeout)
{ {
Eina_Future *f; Eina_Future *f;
Eina_Bool done = EINA_FALSE; Eina_Bool done = EINA_FALSE;
@ -498,9 +498,9 @@ START_TEST(efl_test_timeout)
fail_unless(done); fail_unless(done);
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_job) EFL_START_TEST(efl_test_job)
{ {
Eina_Future *f; Eina_Future *f;
Eina_Bool done = EINA_FALSE; Eina_Bool done = EINA_FALSE;
@ -514,9 +514,9 @@ START_TEST(efl_test_job)
fail_unless(done); fail_unless(done);
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_idle) EFL_START_TEST(efl_test_idle)
{ {
Eina_Future *f; Eina_Future *f;
Eina_Bool done = EINA_FALSE; Eina_Bool done = EINA_FALSE;
@ -530,10 +530,10 @@ START_TEST(efl_test_idle)
fail_unless(done); fail_unless(done);
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_success) EFL_START_TEST(efl_test_promise_future_success)
{ {
Eina_Future *f; Eina_Future *f;
fail_if(!ecore_init()); fail_if(!ecore_init());
@ -543,9 +543,9 @@ START_TEST(efl_test_promise_future_success)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_failure) EFL_START_TEST(efl_test_promise_future_failure)
{ {
Eina_Future *f; Eina_Future *f;
fail_if(!ecore_init()); fail_if(!ecore_init());
@ -555,9 +555,9 @@ START_TEST(efl_test_promise_future_failure)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_chain_no_error) EFL_START_TEST(efl_test_promise_future_chain_no_error)
{ {
Eina_Future *f; Eina_Future *f;
static int i = 0; static int i = 0;
@ -572,9 +572,9 @@ START_TEST(efl_test_promise_future_chain_no_error)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_chain_error) EFL_START_TEST(efl_test_promise_future_chain_error)
{ {
Eina_Future *f; Eina_Future *f;
static int i = 0; static int i = 0;
@ -589,9 +589,9 @@ START_TEST(efl_test_promise_future_chain_error)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_cancel) EFL_START_TEST(efl_test_promise_future_cancel)
{ {
fail_if(!ecore_init()); fail_if(!ecore_init());
int i; int i;
@ -638,9 +638,9 @@ START_TEST(efl_test_promise_future_cancel)
} }
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_inner_promise) EFL_START_TEST(efl_test_promise_future_inner_promise)
{ {
Eina_Future *f; Eina_Future *f;
@ -652,9 +652,9 @@ START_TEST(efl_test_promise_future_inner_promise)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_inner_promise_fail) EFL_START_TEST(efl_test_promise_future_inner_promise_fail)
{ {
Eina_Future *f; Eina_Future *f;
void *data =(void *) 0x01; void *data =(void *) 0x01;
@ -667,9 +667,9 @@ START_TEST(efl_test_promise_future_inner_promise_fail)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_implicit_cancel) EFL_START_TEST(efl_test_promise_future_implicit_cancel)
{ {
Eina_Promise *p; Eina_Promise *p;
Eina_Future *f; Eina_Future *f;
@ -699,9 +699,9 @@ START_TEST(efl_test_promise_future_implicit_cancel)
//Cancel should not be called, since we called eina_promise_resolve() //Cancel should not be called, since we called eina_promise_resolve()
fail_if(cancel_called); fail_if(cancel_called);
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_convert) EFL_START_TEST(efl_test_promise_future_convert)
{ {
Eina_Future *f; Eina_Future *f;
@ -714,9 +714,9 @@ START_TEST(efl_test_promise_future_convert)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_easy) EFL_START_TEST(efl_test_promise_future_easy)
{ {
Eina_Future *f; Eina_Future *f;
Easy_Ctx easy1 = { 0 }; Easy_Ctx easy1 = { 0 };
@ -744,9 +744,9 @@ START_TEST(efl_test_promise_future_easy)
fail_if(!(easy2.success_called && !easy2.error_called && easy2.free_called)); fail_if(!(easy2.success_called && !easy2.error_called && easy2.free_called));
fail_if(!(!easy3.success_called && easy3.error_called && easy3.free_called)); fail_if(!(!easy3.success_called && easy3.error_called && easy3.free_called));
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_all) EFL_START_TEST(efl_test_promise_future_all)
{ {
Eina_Future *futures[11]; Eina_Future *futures[11];
unsigned int i, futures_called = 0, len = EINA_C_ARRAY_LENGTH(futures); unsigned int i, futures_called = 0, len = EINA_C_ARRAY_LENGTH(futures);
@ -770,9 +770,9 @@ START_TEST(efl_test_promise_future_all)
ecore_shutdown(); ecore_shutdown();
fail_if(futures_called != len); fail_if(futures_called != len);
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_future_race) EFL_START_TEST(efl_test_promise_future_race)
{ {
Race_Ctx ctx = { 0 }; Race_Ctx ctx = { 0 };
Eina_Future *futures[11]; Eina_Future *futures[11];
@ -804,7 +804,7 @@ START_TEST(efl_test_promise_future_race)
fail_if(ctx.success != 1); fail_if(ctx.success != 1);
fail_if(ctx.failed != (len - 1)); fail_if(ctx.failed != (len - 1));
} }
END_TEST EFL_END_TEST
static Eina_Value static Eina_Value
_eo_future1_ok(Eo *eo EINA_UNUSED, const Eina_Value v) _eo_future1_ok(Eo *eo EINA_UNUSED, const Eina_Value v)
@ -861,7 +861,7 @@ _eo_chain_stop(void *data EINA_UNUSED, const Eina_Value v, const Eina_Future *de
return v; return v;
} }
START_TEST(efl_test_promise_eo) EFL_START_TEST(efl_test_promise_eo)
{ {
Eina_Future *f; Eina_Future *f;
Eo *obj; Eo *obj;
@ -886,7 +886,7 @@ START_TEST(efl_test_promise_eo)
efl_object_shutdown(); efl_object_shutdown();
ck_assert_int_eq(free_called, 2); ck_assert_int_eq(free_called, 2);
} }
END_TEST EFL_END_TEST
static Eina_Value static Eina_Value
_eo_future_link_success(Eo *eo EINA_UNUSED, const Eina_Value v) _eo_future_link_success(Eo *eo EINA_UNUSED, const Eina_Value v)
@ -920,7 +920,7 @@ _eo_link_chain_end(void *data EINA_UNUSED, const Eina_Value v, const Eina_Future
return v; return v;
} }
START_TEST(efl_test_promise_eo_link) EFL_START_TEST(efl_test_promise_eo_link)
{ {
Eina_Future *f; Eina_Future *f;
Eo *obj; Eo *obj;
@ -952,7 +952,7 @@ START_TEST(efl_test_promise_eo_link)
efl_object_shutdown(); efl_object_shutdown();
ck_assert_int_eq(err_called, 6); ck_assert_int_eq(err_called, 6);
} }
END_TEST EFL_END_TEST
static Eina_Value static Eina_Value
_err_ignored(void *data EINA_UNUSED, const Eina_Value v, const Eina_Future *f EINA_UNUSED) _err_ignored(void *data EINA_UNUSED, const Eina_Value v, const Eina_Future *f EINA_UNUSED)
@ -963,7 +963,7 @@ _err_ignored(void *data EINA_UNUSED, const Eina_Value v, const Eina_Future *f EI
return v; return v;
} }
START_TEST(efl_test_promise_future_ignore_error) EFL_START_TEST(efl_test_promise_future_ignore_error)
{ {
Eina_Future *f; Eina_Future *f;
@ -975,7 +975,7 @@ START_TEST(efl_test_promise_future_ignore_error)
ecore_main_loop_begin(); ecore_main_loop_begin();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
#define PROMISE_LOG_DOMAIN_STR ("promise_test_domain") #define PROMISE_LOG_DOMAIN_STR ("promise_test_domain")
@ -1059,7 +1059,7 @@ _log_test(const Eina_Log_Domain *d,
*log_ok = EINA_TRUE; *log_ok = EINA_TRUE;
} }
START_TEST(efl_test_promise_log) EFL_START_TEST(efl_test_promise_log)
{ {
Promise_Log_Ctx ctx = { 0 }; Promise_Log_Ctx ctx = { 0 };
Eina_Future *f; Eina_Future *f;
@ -1103,7 +1103,7 @@ START_TEST(efl_test_promise_log)
fail_if(!ctx.err_log_ok); fail_if(!ctx.err_log_ok);
fail_if(!ctx.info_log_ok); fail_if(!ctx.info_log_ok);
} }
END_TEST EFL_END_TEST
#ifdef EINA_SAFETY_CHECKS #ifdef EINA_SAFETY_CHECKS
@ -1112,7 +1112,7 @@ _dummy_cancel(void *data EINA_UNUSED, const Eina_Promise *dead EINA_UNUSED)
{ {
} }
START_TEST(efl_test_promise_null) EFL_START_TEST(efl_test_promise_null)
{ {
Log_Ctx ctx = { 0 }; Log_Ctx ctx = { 0 };
Eina_Promise *p; Eina_Promise *p;
@ -1132,9 +1132,9 @@ START_TEST(efl_test_promise_null)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_promise_reject_resolve_null) EFL_START_TEST(efl_test_promise_reject_resolve_null)
{ {
Log_Ctx ctx = { 0 }; Log_Ctx ctx = { 0 };
Eina_Value v; Eina_Value v;
@ -1153,7 +1153,7 @@ START_TEST(efl_test_promise_reject_resolve_null)
fail_unless(ctx.did); fail_unless(ctx.did);
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Value static Eina_Value
_future_null_cb(void *data, const Eina_Value v, const Eina_Future *dead) _future_null_cb(void *data, const Eina_Value v, const Eina_Future *dead)
@ -1194,7 +1194,7 @@ _future_easy_null_free(void *data, const Eina_Future *dead)
(*cb_called)++; (*cb_called)++;
} }
START_TEST(efl_test_future_null) EFL_START_TEST(efl_test_future_null)
{ {
Eina_Future *f; Eina_Future *f;
Log_Ctx ctx = { 0 }; Log_Ctx ctx = { 0 };
@ -1237,7 +1237,7 @@ START_TEST(efl_test_future_null)
ck_assert_int_eq(easy_cb_calls, 2); ck_assert_int_eq(easy_cb_calls, 2);
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Value static Eina_Value
_future_race_all_null_cb(void *data, const Eina_Value v, const Eina_Future *dead EINA_UNUSED) _future_race_all_null_cb(void *data, const Eina_Value v, const Eina_Future *dead EINA_UNUSED)
@ -1252,7 +1252,7 @@ _future_race_all_null_cb(void *data, const Eina_Value v, const Eina_Future *dead
return v; return v;
} }
START_TEST(efl_test_future_all_null) EFL_START_TEST(efl_test_future_all_null)
{ {
Log_Ctx ctx = { 0 }; Log_Ctx ctx = { 0 };
unsigned i, len; unsigned i, len;
@ -1281,9 +1281,9 @@ START_TEST(efl_test_future_all_null)
ecore_shutdown(); ecore_shutdown();
ck_assert_int_eq(cb_called, len); ck_assert_int_eq(cb_called, len);
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_future_race_null) EFL_START_TEST(efl_test_future_race_null)
{ {
Log_Ctx ctx = { 0 }; Log_Ctx ctx = { 0 };
unsigned i, len; unsigned i, len;
@ -1312,7 +1312,7 @@ START_TEST(efl_test_future_race_null)
ecore_shutdown(); ecore_shutdown();
ck_assert_int_eq(cb_called, len); ck_assert_int_eq(cb_called, len);
} }
END_TEST EFL_END_TEST
#endif #endif

View File

@ -152,7 +152,7 @@ _timer5_cb(void *data)
Timer 5 finishes testing. Timer 5 finishes testing.
*/ */
START_TEST(ecore_test_timers) EFL_START_TEST(ecore_test_timers)
{ {
struct _timers timer = \ struct _timers timer = \
{ {
@ -189,7 +189,7 @@ START_TEST(ecore_test_timers)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
typedef struct _Test_Inside_Call typedef struct _Test_Inside_Call
{ {
@ -212,7 +212,7 @@ _timeri_cb(void *data)
return it != 0; return it != 0;
} }
START_TEST(ecore_test_timer_inside_call) EFL_START_TEST(ecore_test_timer_inside_call)
{ {
Test_Inside_Call c; Test_Inside_Call c;
@ -228,7 +228,7 @@ START_TEST(ecore_test_timer_inside_call)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
_test_time_cb(void *data) _test_time_cb(void *data)
@ -254,7 +254,7 @@ _test_run_cb(void *data, const Efl_Event *ev EINA_UNUSED)
_test_time_cb(data); _test_time_cb(data);
} }
START_TEST(ecore_test_timer_lifecycle) EFL_START_TEST(ecore_test_timer_lifecycle)
{ {
Eina_Bool rl = EINA_FALSE, re = EINA_FALSE; Eina_Bool rl = EINA_FALSE, re = EINA_FALSE;
Eina_Bool dl = EINA_FALSE, de = EINA_FALSE; Eina_Bool dl = EINA_FALSE, de = EINA_FALSE;
@ -284,17 +284,17 @@ START_TEST(ecore_test_timer_lifecycle)
efl_object_shutdown(); efl_object_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_timer_valid_callbackfunc) EFL_START_TEST(ecore_test_timer_valid_callbackfunc)
{ {
fail_if(!ecore_init(), "ERROR: Cannot init Ecore!\n"); fail_if(!ecore_init(), "ERROR: Cannot init Ecore!\n");
Ecore_Timer *t = NULL; Ecore_Timer *t = NULL;
fail_if((t = ecore_timer_add(0.5, NULL, NULL)), "ERROR: Invalid callback func!\n"); fail_if((t = ecore_timer_add(0.5, NULL, NULL)), "ERROR: Invalid callback func!\n");
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_test_timer(TCase *tc) void ecore_test_timer(TCase *tc)
{ {

View File

@ -10,7 +10,7 @@
#include "efl_app_suite.h" #include "efl_app_suite.h"
#include "../efl_check.h" #include "../efl_check.h"
START_TEST(efl_app_test_efl_loop_register) EFL_START_TEST(efl_app_test_efl_loop_register)
{ {
Efl_Object *t, *n; Efl_Object *t, *n;
@ -41,9 +41,9 @@ START_TEST(efl_app_test_efl_loop_register)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_app_test_efl_build_version) EFL_START_TEST(efl_app_test_efl_build_version)
{ {
const Efl_Version *ver; const Efl_Version *ver;
Eo *app; Eo *app;
@ -70,7 +70,7 @@ START_TEST(efl_app_test_efl_build_version)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void efl_test_efl_app(TCase *tc) void efl_test_efl_app(TCase *tc)
{ {

View File

@ -2,7 +2,7 @@
#define _EFL_APP_SUITE_H #define _EFL_APP_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void efl_app_test_efl_app(TCase *tc); void efl_app_test_efl_app(TCase *tc);
#endif /* _EFL_APP_SUITE_H */ #endif /* _EFL_APP_SUITE_H */

View File

@ -2,7 +2,7 @@
#define _ECORE_CON_SUITE_H #define _ECORE_CON_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void ecore_con_test_ecore_con(TCase *tc); void ecore_con_test_ecore_con(TCase *tc);
void ecore_con_test_ecore_con_url(TCase *tc); void ecore_con_test_ecore_con_url(TCase *tc);
void ecore_con_test_ecore_con_eet(TCase *tc); void ecore_con_test_ecore_con_eet(TCase *tc);

View File

@ -322,13 +322,13 @@ void _ecore_con_server_client_tests(Ecore_Con_Type compl_type, const char *name,
ret = eina_shutdown(); ret = eina_shutdown();
} }
START_TEST(ecore_test_ecore_con_local_user) EFL_START_TEST(ecore_test_ecore_con_local_user)
{ {
_ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_sock", EINA_FALSE, 12345); _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_sock", EINA_FALSE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_user_home) EFL_START_TEST(ecore_test_ecore_con_local_user_home)
{ {
const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR"); const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
@ -336,9 +336,9 @@ START_TEST(ecore_test_ecore_con_local_user_home)
_ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_soc", EINA_FALSE, 12345); _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_soc", EINA_FALSE, 12345);
if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_user_tmp) EFL_START_TEST(ecore_test_ecore_con_local_user_tmp)
{ {
const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR"); const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
const char *homedir = getenv("HOME"); const char *homedir = getenv("HOME");
@ -349,9 +349,9 @@ START_TEST(ecore_test_ecore_con_local_user_tmp)
if (homedir) setenv("HOME", homedir, 1); if (homedir) setenv("HOME", homedir, 1);
if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_user_none) EFL_START_TEST(ecore_test_ecore_con_local_user_none)
{ {
const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR"); const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
const char *homedir = getenv("HOME"); const char *homedir = getenv("HOME");
@ -365,99 +365,99 @@ START_TEST(ecore_test_ecore_con_local_user_none)
if (homedir) setenv("HOME", homedir, 1); if (homedir) setenv("HOME", homedir, 1);
if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_system) EFL_START_TEST(ecore_test_ecore_con_local_system)
{ {
_ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, 12345); _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_system_fullpath) EFL_START_TEST(ecore_test_ecore_con_local_system_fullpath)
{ {
_ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, 12345); _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_system_negport) EFL_START_TEST(ecore_test_ecore_con_local_system_negport)
{ {
_ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, -6); _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, -6);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_system_negport_fullpath) EFL_START_TEST(ecore_test_ecore_con_local_system_negport_fullpath)
{ {
_ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, -6); _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, -6);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_local_abstract) EFL_START_TEST(ecore_test_ecore_con_local_abstract)
{ {
_ecore_con_server_client_tests(ECORE_CON_LOCAL_ABSTRACT, "test_sock", EINA_FALSE, 12345); _ecore_con_server_client_tests(ECORE_CON_LOCAL_ABSTRACT, "test_sock", EINA_FALSE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_tcp) EFL_START_TEST(ecore_test_ecore_con_remote_tcp)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP, "127.0.0.1", EINA_FALSE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP, "127.0.0.1", EINA_FALSE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_nodelay) EFL_START_TEST(ecore_test_ecore_con_remote_nodelay)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY, "127.0.0.1", EINA_FALSE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY, "127.0.0.1", EINA_FALSE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_tcp_tls) EFL_START_TEST(ecore_test_ecore_con_remote_tcp_tls)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_tcp_tls_load_cert) EFL_START_TEST(ecore_test_ecore_con_remote_tcp_tls_load_cert)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_tcp_mixed) EFL_START_TEST(ecore_test_ecore_con_remote_tcp_mixed)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_tcp_mixed_load_cert) EFL_START_TEST(ecore_test_ecore_con_remote_tcp_mixed_load_cert)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_nodelay_tls) EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_tls)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_nodelay_tls_load_cert) EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_tls_load_cert)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_nodelay_mixed) EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_mixed)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_remote_nodelay_mixed_load_cert) EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_mixed_load_cert)
{ {
_ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_ssl_available) EFL_START_TEST(ecore_test_ecore_con_ssl_available)
{ {
int ret = ecore_con_ssl_available_get(); int ret = ecore_con_ssl_available_get();
#ifdef HAVE_GNUTLS #ifdef HAVE_GNUTLS
@ -468,9 +468,9 @@ START_TEST(ecore_test_ecore_con_ssl_available)
fail_if(!ret); fail_if(!ret);
#endif #endif
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_init) EFL_START_TEST(ecore_test_ecore_con_init)
{ {
int ret; int ret;
@ -480,9 +480,9 @@ START_TEST(ecore_test_ecore_con_init)
ret = ecore_con_shutdown(); ret = ecore_con_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_dns) EFL_START_TEST(ecore_test_ecore_con_dns)
{ {
Ecore_Con_Server *client; Ecore_Con_Server *client;
Ecore_Event_Handler *e_err; Ecore_Event_Handler *e_err;
@ -514,9 +514,9 @@ START_TEST(ecore_test_ecore_con_dns)
fail_if(ret != 0); fail_if(ret != 0);
ret = eina_shutdown(); ret = eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_ecore_con_shutdown_bef_init) EFL_START_TEST(ecore_test_ecore_con_shutdown_bef_init)
{ {
int ret; int ret;
@ -531,7 +531,7 @@ START_TEST(ecore_test_ecore_con_shutdown_bef_init)
fail_if(ret != 0); fail_if(ret != 0);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data) _lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data)
@ -546,7 +546,7 @@ _lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, in
ecore_main_loop_quit(); ecore_main_loop_quit();
} }
START_TEST(ecore_test_ecore_con_dns_lookup) EFL_START_TEST(ecore_test_ecore_con_dns_lookup)
{ {
const char link[] = "www.google.com"; const char link[] = "www.google.com";
ecore_con_init(); ecore_con_init();
@ -557,7 +557,7 @@ START_TEST(ecore_test_ecore_con_dns_lookup)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_con_test_ecore_con(TCase *tc) void ecore_con_test_ecore_con(TCase *tc)
{ {

View File

@ -111,7 +111,7 @@ _eet_raw_data_cb(void *data, Ecore_Con_Reply *reply, const char *protocol_name E
ecore_con_server_del(cl); ecore_con_server_del(cl);
} }
START_TEST(ecore_con_test_ecore_con_eet_svr_cl) EFL_START_TEST(ecore_con_test_ecore_con_eet_svr_cl)
{ {
Ecore_Con_Eet *ece_svr, *ece_cl; Ecore_Con_Eet *ece_svr, *ece_cl;
Ecore_Con_Server *svr, *cl; Ecore_Con_Server *svr, *cl;
@ -169,7 +169,7 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_cl)
eet_shutdown(); eet_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
_eet_svr_discnct_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply EINA_UNUSED, Ecore_Con_Server *conn EINA_UNUSED) _eet_svr_discnct_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply EINA_UNUSED, Ecore_Con_Server *conn EINA_UNUSED)
@ -193,7 +193,7 @@ _eet_svr_raw_data_cb(void *data, Ecore_Con_Reply *reply, const char *protocol_na
ecore_con_server_del(svr); ecore_con_server_del(svr);
} }
START_TEST(ecore_con_test_ecore_con_eet_svr_del) EFL_START_TEST(ecore_con_test_ecore_con_eet_svr_del)
{ {
Ecore_Con_Eet *ece_svr, *ece_cl; Ecore_Con_Eet *ece_svr, *ece_cl;
Ecore_Con_Server *svr, *cl; Ecore_Con_Server *svr, *cl;
@ -239,7 +239,7 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_del)
eet_shutdown(); eet_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_con_test_ecore_con_eet(TCase *tc) void ecore_con_test_ecore_con_eet(TCase *tc)
{ {

View File

@ -164,7 +164,7 @@ error_user:
#endif #endif
#ifdef ECORE_CON_FTP_TEST_URL #ifdef ECORE_CON_FTP_TEST_URL
START_TEST(ecore_con_test_ecore_con_url_ftp_upload) EFL_START_TEST(ecore_con_test_ecore_con_url_ftp_upload)
{ {
Ecore_Con_Url *ec_url; Ecore_Con_Url *ec_url;
url_test *info = NULL; url_test *info = NULL;
@ -198,11 +198,11 @@ START_TEST(ecore_con_test_ecore_con_url_ftp_upload)
fail_if(ret != 0); fail_if(ret != 0);
ret = eina_shutdown(); ret = eina_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
#ifdef ECORE_CON_HTTP_TEST_URL #ifdef ECORE_CON_HTTP_TEST_URL
START_TEST(ecore_con_test_ecore_con_url_post) EFL_START_TEST(ecore_con_test_ecore_con_url_post)
{ {
Ecore_Con_Url *ec_url; Ecore_Con_Url *ec_url;
url_test *info = NULL; url_test *info = NULL;
@ -242,10 +242,10 @@ START_TEST(ecore_con_test_ecore_con_url_post)
fail_if(ret != 0); fail_if(ret != 0);
ret = eina_shutdown(); ret = eina_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
START_TEST(ecore_con_test_ecore_con_url_download) EFL_START_TEST(ecore_con_test_ecore_con_url_download)
{ {
Ecore_Con_Url *url; Ecore_Con_Url *url;
url_test *info; url_test *info;
@ -292,9 +292,9 @@ START_TEST(ecore_con_test_ecore_con_url_download)
fail_if(ret != 0); fail_if(ret != 0);
ret = eina_shutdown(); ret = eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_con_test_ecore_con_url_create) EFL_START_TEST(ecore_con_test_ecore_con_url_create)
{ {
Ecore_Con_Url *url; Ecore_Con_Url *url;
int ret; int ret;
@ -313,9 +313,9 @@ START_TEST(ecore_con_test_ecore_con_url_create)
fail_if(ret != 0); fail_if(ret != 0);
ret = eina_shutdown(); ret = eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_con_test_ecore_con_url_init) EFL_START_TEST(ecore_con_test_ecore_con_url_init)
{ {
int ret; int ret;
@ -325,7 +325,7 @@ START_TEST(ecore_con_test_ecore_con_url_init)
ret = ecore_con_url_shutdown(); ret = ecore_con_url_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
_url_cookies_compl_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) _url_cookies_compl_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
@ -389,7 +389,7 @@ _ecore_con_url_cookies_test_shutdown(Ecore_Con_Url *ec_url, int tmpfd, Eina_Tmps
eina_shutdown(); eina_shutdown();
} }
START_TEST(ecore_con_test_ecore_con_url_cookies_clear) EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_clear)
{ {
Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init(); Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init();
Eina_Tmpstr *path; Eina_Tmpstr *path;
@ -407,9 +407,9 @@ START_TEST(ecore_con_test_ecore_con_url_cookies_clear)
_ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path); _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_con_test_ecore_con_url_cookies_clear_session) EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_clear_session)
{ {
Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init(); Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init();
Eina_Tmpstr *path; Eina_Tmpstr *path;
@ -427,9 +427,9 @@ START_TEST(ecore_con_test_ecore_con_url_cookies_clear_session)
_ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path); _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path);
} }
END_TEST EFL_END_TEST
START_TEST(ecore_con_test_ecore_con_url_cookies_ignore_session) EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_ignore_session)
{ {
Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init(); Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init();
Eina_Tmpstr *path; Eina_Tmpstr *path;
@ -446,7 +446,7 @@ START_TEST(ecore_con_test_ecore_con_url_cookies_ignore_session)
_ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path); _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path);
} }
END_TEST EFL_END_TEST
void ecore_con_test_ecore_con_url(TCase *tc) void ecore_con_test_ecore_con_url(TCase *tc)
{ {

View File

@ -295,7 +295,7 @@ _ipv4_check(Eo *o, const struct sockaddr_in *addr)
ck_assert_str_eq(efl_net_ip_address_string_get(o), buf); ck_assert_str_eq(efl_net_ip_address_string_get(o), buf);
} }
START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_ok)
{ {
struct sockaddr_in addr = { struct sockaddr_in addr = {
.sin_family = AF_INET, .sin_family = AF_INET,
@ -333,9 +333,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail)
{ {
uint8_t c = 123; uint8_t c = 123;
Eina_Slice wrong_slice = { .mem = &c, .len = 1 }; Eina_Slice wrong_slice = { .mem = &c, .len = 1 };
@ -421,9 +421,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
{ {
struct sockaddr_in addr = { struct sockaddr_in addr = {
.sin_family = AF_INET, .sin_family = AF_INET,
@ -459,9 +459,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_create_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_fail)
{ {
uint8_t c = 123; uint8_t c = 123;
Eina_Slice wrong_slice = { .mem = &c, .len = 1 }; Eina_Slice wrong_slice = { .mem = &c, .len = 1 };
@ -478,9 +478,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok)
{ {
struct sockaddr_in addr = { struct sockaddr_in addr = {
.sin_family = AF_INET, .sin_family = AF_INET,
@ -505,9 +505,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_fail)
{ {
struct sockaddr_in addr = { struct sockaddr_in addr = {
.sin_family = AF_UNSPEC, .sin_family = AF_UNSPEC,
@ -528,9 +528,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_ok)
{ {
Eo *o; Eo *o;
@ -558,9 +558,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_fail)
{ {
Eo *o; Eo *o;
@ -596,9 +596,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_ok)
{ {
struct resolve_ctx ctx = { }; struct resolve_ctx ctx = { };
@ -634,9 +634,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_fail)
{ {
struct resolve_ctx ctx = { }; struct resolve_ctx ctx = { };
@ -664,9 +664,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv4_checks) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_checks)
{ {
const struct test { const struct test {
uint32_t addr; uint32_t addr;
@ -721,7 +721,7 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_checks)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
/* IPv6 *****************************************************************/ /* IPv6 *****************************************************************/
@ -761,7 +761,7 @@ _ipv6_set(struct sockaddr_in6 *addr, uint16_t s1, uint16_t s2, uint16_t s3, uint
memcpy(&addr->sin6_addr, s, 16); memcpy(&addr->sin6_addr, s, 16);
} }
START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_ok)
{ {
struct sockaddr_in6 addr = { struct sockaddr_in6 addr = {
.sin6_family = AF_INET6, .sin6_family = AF_INET6,
@ -791,9 +791,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_fail)
{ {
uint8_t c = 123; uint8_t c = 123;
Eina_Slice wrong_slice = { .mem = &c, .len = 1 }; Eina_Slice wrong_slice = { .mem = &c, .len = 1 };
@ -851,9 +851,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
{ {
struct sockaddr_in6 addr = { struct sockaddr_in6 addr = {
.sin6_family = AF_INET6, .sin6_family = AF_INET6,
@ -889,9 +889,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok)
{ {
struct sockaddr_in6 addr = { struct sockaddr_in6 addr = {
.sin6_family = AF_INET6, .sin6_family = AF_INET6,
@ -916,9 +916,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_ok)
{ {
Eo *o; Eo *o;
@ -1010,9 +1010,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_fail)
{ {
Eo *o; Eo *o;
@ -1039,7 +1039,7 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
static const char * static const char *
_ipv6_localhost_check(void) _ipv6_localhost_check(void)
@ -1130,7 +1130,7 @@ _ipv6_localhost_check(void)
return found; return found;
} }
START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_ok) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_ok)
{ {
struct resolve_ctx ctx = { }; struct resolve_ctx ctx = { };
char buf[4096]; char buf[4096];
@ -1185,9 +1185,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_ok)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_fail) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_fail)
{ {
struct resolve_ctx ctx = { }; struct resolve_ctx ctx = { };
@ -1203,9 +1203,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_fail)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(ecore_test_efl_net_ip_address_ipv6_checks) EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_checks)
{ {
const struct test { const struct test {
const char *str; const char *str;
@ -1258,7 +1258,7 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_checks)
ecore_con_shutdown(); ecore_con_shutdown();
} }
END_TEST EFL_END_TEST
void ecore_con_test_efl_net_ip_address(TCase *tc) void ecore_con_test_efl_net_ip_address(TCase *tc)
{ {

View File

@ -5,7 +5,7 @@
#include <algorithm> #include <algorithm>
#include <check.h> #include <check.h>
#include "../efl_check.h"
void ecore_cxx_test_safe_call(TCase* tc); void ecore_cxx_test_safe_call(TCase* tc);
#endif /* _ECORE_CXX_SUITE_H */ #endif /* _ECORE_CXX_SUITE_H */

View File

@ -2,7 +2,7 @@
#define ECTOR_SUITE_H #define ECTOR_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void ector_test_init(TCase *tc); void ector_test_init(TCase *tc);
#endif #endif

View File

@ -24,12 +24,12 @@
#include "ector_suite.h" #include "ector_suite.h"
START_TEST(ector_init_simple) EFL_START_TEST(ector_init_simple)
{ {
fail_if(ector_init() != 1); fail_if(ector_init() != 1);
fail_if(ector_shutdown() != 0); fail_if(ector_shutdown() != 0);
} }
END_TEST EFL_END_TEST
void void
ector_test_init(TCase *tc) ector_test_init(TCase *tc)

View File

@ -2,7 +2,7 @@
#define _EDJE_SUITE_H #define _EDJE_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void edje_test_edje(TCase *tc); void edje_test_edje(TCase *tc);

View File

@ -16,7 +16,7 @@
#define EVAS_DATA_DIR TESTS_SRC_DIR "/../../lib/evas" #define EVAS_DATA_DIR TESTS_SRC_DIR "/../../lib/evas"
START_TEST(edje_test_edje_init) EFL_START_TEST(edje_test_edje_init)
{ {
int ret; int ret;
@ -26,9 +26,9 @@ START_TEST(edje_test_edje_init)
ret = edje_shutdown(); ret = edje_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_edje_load) EFL_START_TEST(edje_test_edje_load)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
Edje_Load_Error error; Edje_Load_Error error;
@ -41,7 +41,7 @@ START_TEST(edje_test_edje_load)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
static const char * static const char *
test_layout_get(const char *name) test_layout_get(const char *name)
@ -53,7 +53,7 @@ test_layout_get(const char *name)
return filename; return filename;
} }
START_TEST(edje_test_load_simple_layout) EFL_START_TEST(edje_test_load_simple_layout)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
Evas_Object *obj; Evas_Object *obj;
@ -67,9 +67,9 @@ START_TEST(edje_test_load_simple_layout)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_simple_layout_geometry) EFL_START_TEST(edje_test_simple_layout_geometry)
{ {
int x, y, w, h; int x, y, w, h;
int r, g, b, a; int r, g, b, a;
@ -96,9 +96,9 @@ START_TEST(edje_test_simple_layout_geometry)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_complex_layout) EFL_START_TEST(edje_test_complex_layout)
{ {
int x, y, w, h; int x, y, w, h;
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
@ -144,9 +144,9 @@ START_TEST(edje_test_complex_layout)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_calculate_parens) EFL_START_TEST(edje_test_calculate_parens)
{ {
int x, y, w, h; int x, y, w, h;
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
@ -167,9 +167,9 @@ START_TEST(edje_test_calculate_parens)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_masking) EFL_START_TEST(edje_test_masking)
{ {
int x, y, w, h; int x, y, w, h;
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
@ -201,9 +201,9 @@ START_TEST(edje_test_masking)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_filters) EFL_START_TEST(edje_test_filters)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
const Evas_Object *text, *sub; const Evas_Object *text, *sub;
@ -242,9 +242,9 @@ START_TEST(edje_test_filters)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_snapshot) EFL_START_TEST(edje_test_snapshot)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
const Evas_Object *sub; const Evas_Object *sub;
@ -266,9 +266,9 @@ START_TEST(edje_test_snapshot)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_size_class) EFL_START_TEST(edje_test_size_class)
{ {
int minw, minh, minw2, minh2; int minw, minh, minw2, minh2;
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
@ -320,9 +320,9 @@ START_TEST(edje_test_size_class)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_color_class) EFL_START_TEST(edje_test_color_class)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
@ -355,9 +355,9 @@ START_TEST(edje_test_color_class)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_swallows) EFL_START_TEST(edje_test_swallows)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
Evas_Object *ly, *o1, *o2; Evas_Object *ly, *o1, *o2;
@ -386,9 +386,9 @@ START_TEST(edje_test_swallows)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_swallows_eoapi) EFL_START_TEST(edje_test_swallows_eoapi)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
Evas_Object *ly, *o1, *o2; Evas_Object *ly, *o1, *o2;
@ -417,9 +417,9 @@ START_TEST(edje_test_swallows_eoapi)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_access) EFL_START_TEST(edje_test_access)
{ {
Evas *evas = EDJE_TEST_INIT_EVAS(); Evas *evas = EDJE_TEST_INIT_EVAS();
const char *name; const char *name;
@ -460,9 +460,9 @@ START_TEST(edje_test_access)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_box) EFL_START_TEST(edje_test_box)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj, *sobj, *sobjs[5]; Evas_Object *obj, *sobj, *sobjs[5];
@ -499,9 +499,9 @@ START_TEST(edje_test_box)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_box_eoapi) EFL_START_TEST(edje_test_box_eoapi)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj, *sobj, *sobjs[5]; Evas_Object *obj, *sobj, *sobjs[5];
@ -559,9 +559,9 @@ START_TEST(edje_test_box_eoapi)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_table) EFL_START_TEST(edje_test_table)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj, *sobj, *sobjs[4]; Evas_Object *obj, *sobj, *sobjs[4];
@ -634,9 +634,9 @@ START_TEST(edje_test_table)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_table_eoapi) EFL_START_TEST(edje_test_table_eoapi)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj, *sobj, *sobjs[4], *proxy; Evas_Object *obj, *sobj, *sobjs[4], *proxy;
@ -716,9 +716,9 @@ START_TEST(edje_test_table_eoapi)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_combine_keywords) EFL_START_TEST(edje_test_combine_keywords)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj; Evas_Object *obj;
@ -730,7 +730,7 @@ START_TEST(edje_test_combine_keywords)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
static void static void
_message_signal_reply_cb(void *data, Evas_Object *obj EINA_UNUSED, _message_signal_reply_cb(void *data, Evas_Object *obj EINA_UNUSED,
@ -760,7 +760,7 @@ _message_signal_reply_cb(void *data, Evas_Object *obj EINA_UNUSED,
(*id)++; (*id)++;
} }
START_TEST(edje_test_message_send_legacy) EFL_START_TEST(edje_test_message_send_legacy)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj; Evas_Object *obj;
@ -814,9 +814,9 @@ START_TEST(edje_test_message_send_legacy)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_message_send_eo) EFL_START_TEST(edje_test_message_send_eo)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj; Evas_Object *obj;
@ -872,9 +872,9 @@ START_TEST(edje_test_message_send_eo)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
START_TEST(edje_test_signals) EFL_START_TEST(edje_test_signals)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj; Evas_Object *obj;
@ -905,7 +905,7 @@ START_TEST(edje_test_signals)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
static int _signal_count; static int _signal_count;
@ -917,7 +917,7 @@ _signal_callback_count_cb(void *data, Evas_Object *obj EINA_UNUSED,
_signal_count += *_data; _signal_count += *_data;
} }
START_TEST(edje_test_signal_callback_del_full) EFL_START_TEST(edje_test_signal_callback_del_full)
{ {
Evas *evas; Evas *evas;
Evas_Object *obj; Evas_Object *obj;
@ -948,7 +948,7 @@ START_TEST(edje_test_signal_callback_del_full)
EDJE_TEST_FREE_EVAS(); EDJE_TEST_FREE_EVAS();
} }
END_TEST EFL_END_TEST
void edje_test_edje(TCase *tc) void edje_test_edje(TCase *tc)
{ {

View File

@ -2,7 +2,7 @@
# define _EET_SUITE_H # define _EET_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void eet_test_init(TCase *tc); void eet_test_init(TCase *tc);
void eet_test_data(TCase *tc); void eet_test_data(TCase *tc);
void eet_test_file(TCase *tc); void eet_test_file(TCase *tc);

View File

@ -44,7 +44,7 @@ _open_close_worker(void *path, Eina_Thread tid EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(eet_test_cache_concurrency) EFL_START_TEST(eet_test_cache_concurrency)
{ {
char *file; char *file;
const char *buffer = "test data"; const char *buffer = "test data";
@ -97,7 +97,7 @@ START_TEST(eet_test_cache_concurrency)
eina_threads_shutdown(); eina_threads_shutdown();
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
void eet_test_cache(TCase *tc) void eet_test_cache(TCase *tc)
{ {

View File

@ -12,7 +12,7 @@
#include "eet_suite.h" #include "eet_suite.h"
#include "eet_test_common.h" #include "eet_test_common.h"
START_TEST(eet_test_cipher_decipher_simple) EFL_START_TEST(eet_test_cipher_decipher_simple)
{ {
const char *buffer = "Here is a string of data to save !"; const char *buffer = "Here is a string of data to save !";
const char *key = "This is a crypto key"; const char *key = "This is a crypto key";
@ -64,7 +64,7 @@ START_TEST(eet_test_cipher_decipher_simple)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
void eet_test_cipher(TCase *tc) void eet_test_cipher(TCase *tc)
{ {

View File

@ -87,7 +87,7 @@ _eet_connection_write(const void *data,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eet_test_connection_check) EFL_START_TEST(eet_test_connection_check)
{ {
Eet_Data_Descriptor *edd; Eet_Data_Descriptor *edd;
Eet_Data_Descriptor_Class eddc; Eet_Data_Descriptor_Class eddc;
@ -142,7 +142,7 @@ START_TEST(eet_test_connection_check)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
void eet_test_connection(TCase *tc) void eet_test_connection(TCase *tc)
{ {

View File

@ -279,7 +279,7 @@ _eet_st3_cmp(Eet_St3 *st3,
fail_if(st3->boby != EET_TEST_INT + i); fail_if(st3->boby != EET_TEST_INT + i);
} /* _eet_st3_cmp */ } /* _eet_st3_cmp */
START_TEST(eet_test_data_basic_type_encoding_decoding) EFL_START_TEST(eet_test_data_basic_type_encoding_decoding)
{ {
Eet_Data_Descriptor *edd; Eet_Data_Descriptor *edd;
Eet_Test_Basic_Type *result; Eet_Test_Basic_Type *result;
@ -316,9 +316,9 @@ START_TEST(eet_test_data_basic_type_encoding_decoding)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_data_type_encoding_decoding) EFL_START_TEST(eet_test_data_type_encoding_decoding)
{ {
Eet_Data_Descriptor *edd; Eet_Data_Descriptor *edd;
Eet_Test_Ex_Type *result; Eet_Test_Ex_Type *result;
@ -382,9 +382,9 @@ START_TEST(eet_test_data_type_encoding_decoding)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_data_type_dump_undump) EFL_START_TEST(eet_test_data_type_dump_undump)
{ {
Eet_Data_Descriptor *edd; Eet_Data_Descriptor *edd;
Eet_Test_Ex_Type *result; Eet_Test_Ex_Type *result;
@ -472,9 +472,9 @@ START_TEST(eet_test_data_type_dump_undump)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_data_type_escape_dump_undump) EFL_START_TEST(eet_test_data_type_escape_dump_undump)
{ {
void *blob; void *blob;
int blob_len; int blob_len;
@ -506,9 +506,9 @@ START_TEST(eet_test_data_type_escape_dump_undump)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_data_fp) EFL_START_TEST(eet_test_data_fp)
{ {
Eet_Data_Descriptor_Class eddc; Eet_Data_Descriptor_Class eddc;
Eet_Data_Descriptor *edd_5FP; Eet_Data_Descriptor *edd_5FP;
@ -568,9 +568,9 @@ START_TEST(eet_test_data_fp)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_data_union) EFL_START_TEST(eet_test_data_union)
{ {
Eet_Union_Test *eut; Eet_Union_Test *eut;
Eet_List *l; Eet_List *l;
@ -646,9 +646,9 @@ START_TEST(eet_test_data_union)
eet_shutdown(); eet_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_data_variant) EFL_START_TEST(eet_test_data_variant)
{ {
Eet_Variant_Test *evt; Eet_Variant_Test *evt;
Eet_List *l; Eet_List *l;
@ -755,10 +755,10 @@ START_TEST(eet_test_data_variant)
eet_shutdown(); eet_shutdown();
eina_shutdown(); eina_shutdown();
} /* START_TEST */ } /* EFL_START_TEST */
END_TEST EFL_END_TEST
START_TEST(eet_test_data_hash_value) EFL_START_TEST(eet_test_data_hash_value)
{ {
Eet_Hash *h; Eet_Hash *h;
Eina_Value *val; Eina_Value *val;
@ -813,8 +813,8 @@ START_TEST(eet_test_data_hash_value)
eet_shutdown(); eet_shutdown();
eina_shutdown(); eina_shutdown();
} /* START_TEST */ } /* EFL_START_TEST */
END_TEST EFL_END_TEST
void eet_test_data(TCase *tc) void eet_test_data(TCase *tc)
{ {

View File

@ -11,7 +11,7 @@
#include "eet_suite.h" #include "eet_suite.h"
#include "eet_test_common.h" #include "eet_test_common.h"
START_TEST(eet_test_file_simple_write) EFL_START_TEST(eet_test_file_simple_write)
{ {
const char *buffer = "Here is a string of data to save !"; const char *buffer = "Here is a string of data to save !";
Eina_Iterator *it; Eina_Iterator *it;
@ -122,9 +122,9 @@ START_TEST(eet_test_file_simple_write)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_file_data) EFL_START_TEST(eet_test_file_data)
{ {
Eet_Data_Descriptor *edd; Eet_Data_Descriptor *edd;
Eet_Test_Ex_Type *result; Eet_Test_Ex_Type *result;
@ -282,9 +282,9 @@ START_TEST(eet_test_file_data)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_file_data_dump) EFL_START_TEST(eet_test_file_data_dump)
{ {
Eet_Data_Descriptor *edd; Eet_Data_Descriptor *edd;
Eet_Test_Ex_Type *result; Eet_Test_Ex_Type *result;
@ -384,9 +384,9 @@ START_TEST(eet_test_file_data_dump)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_file_fp) EFL_START_TEST(eet_test_file_fp)
{ {
char *file; char *file;
Eet_Data_Descriptor_Class eddc; Eet_Data_Descriptor_Class eddc;
@ -458,7 +458,7 @@ START_TEST(eet_test_file_fp)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
void eet_test_file(TCase *tc) void eet_test_file(TCase *tc)
{ {

View File

@ -52,7 +52,7 @@ badpass_get(char *pass,
return strlen(pass); return strlen(pass);
} }
START_TEST(eet_test_identity_simple) EFL_START_TEST(eet_test_identity_simple)
{ {
const char *buffer = "Here is a string of data to save !"; const char *buffer = "Here is a string of data to save !";
const void *tmp; const void *tmp;
@ -131,9 +131,9 @@ START_TEST(eet_test_identity_simple)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_identity_open_simple) EFL_START_TEST(eet_test_identity_open_simple)
{ {
Eet_Key *k = NULL; Eet_Key *k = NULL;
@ -147,9 +147,9 @@ START_TEST(eet_test_identity_open_simple)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_identity_open_pkcs8) EFL_START_TEST(eet_test_identity_open_pkcs8)
{ {
Eet_Key *k = NULL; Eet_Key *k = NULL;
@ -163,9 +163,9 @@ START_TEST(eet_test_identity_open_pkcs8)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_identity_open_pkcs8_enc) EFL_START_TEST(eet_test_identity_open_pkcs8_enc)
{ {
Eet_Key *k = NULL; Eet_Key *k = NULL;
@ -191,7 +191,7 @@ START_TEST(eet_test_identity_open_pkcs8_enc)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
static const char *_cert_dir_find(const char *_argv0) static const char *_cert_dir_find(const char *_argv0)
{ {

View File

@ -69,7 +69,7 @@ static const Eet_Test_Image test_alpha = {
} }
}; };
START_TEST(eet_test_image_normal) EFL_START_TEST(eet_test_image_normal)
{ {
Eet_File *ef; Eet_File *ef;
char *file; char *file;
@ -430,9 +430,9 @@ START_TEST(eet_test_image_normal)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eet_test_image_small) EFL_START_TEST(eet_test_image_small)
{ {
char *file; char *file;
unsigned int image[4]; unsigned int image[4];
@ -493,7 +493,7 @@ START_TEST(eet_test_image_small)
eet_shutdown(); eet_shutdown();
} }
END_TEST EFL_END_TEST
void eet_test_image(TCase *tc) void eet_test_image(TCase *tc)
{ {

View File

@ -6,7 +6,7 @@
#include "eet_suite.h" #include "eet_suite.h"
START_TEST(_eet_test_init) EFL_START_TEST(_eet_test_init)
{ {
int ret; int ret;
@ -16,7 +16,7 @@ START_TEST(_eet_test_init)
ret = eet_shutdown(); ret = eet_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
void eet_test_init(TCase *tc) void eet_test_init(TCase *tc)
{ {

View File

@ -5,7 +5,7 @@
#include <algorithm> #include <algorithm>
#include <check.h> #include <check.h>
#include "../efl_check.h"
void eet_cxx_test_descriptors(TCase* tc); void eet_cxx_test_descriptors(TCase* tc);
#endif /* _EET_CXX_SUITE_H */ #endif /* _EET_CXX_SUITE_H */

View File

@ -2,7 +2,7 @@
#define _EEZE_SUITE_H #define _EEZE_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void eeze_test_init(TCase *tc); void eeze_test_init(TCase *tc);
void eeze_test_udev(TCase *tc); void eeze_test_udev(TCase *tc);
void eeze_test_net(TCase *tc); void eeze_test_net(TCase *tc);

View File

@ -6,7 +6,7 @@
#include "eeze_suite.h" #include "eeze_suite.h"
START_TEST(eeze_test_eeze_init) EFL_START_TEST(eeze_test_eeze_init)
{ {
int ret; int ret;
@ -16,7 +16,7 @@ START_TEST(eeze_test_eeze_init)
ret = eeze_shutdown(); ret = eeze_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
void eeze_test_init(TCase *tc) void eeze_test_init(TCase *tc)
{ {

View File

@ -7,7 +7,7 @@
#include "eeze_suite.h" #include "eeze_suite.h"
START_TEST(eeze_test_net_list) EFL_START_TEST(eeze_test_net_list)
{ {
int ret; int ret;
Eina_List *list = NULL; Eina_List *list = NULL;
@ -21,9 +21,9 @@ START_TEST(eeze_test_net_list)
ret = eeze_shutdown(); ret = eeze_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(eeze_test_net_attr) EFL_START_TEST(eeze_test_net_attr)
{ {
int ret; int ret;
int idx = 0; int idx = 0;
@ -69,11 +69,11 @@ START_TEST(eeze_test_net_attr)
ret = eeze_shutdown(); ret = eeze_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
#ifdef HAVE_IPV6 #ifdef HAVE_IPV6
START_TEST(eeze_test_net_attr_ipv6) EFL_START_TEST(eeze_test_net_attr_ipv6)
{ {
int ret; int ret;
Eeze_Net *net = NULL; Eeze_Net *net = NULL;
@ -108,7 +108,7 @@ cleanup:
ret = eeze_shutdown(); ret = eeze_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
#endif #endif

View File

@ -33,7 +33,7 @@ event_cb(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event)
return ECORE_CALLBACK_DONE; return ECORE_CALLBACK_DONE;
} }
START_TEST(eeze_test_sensor_read) EFL_START_TEST(eeze_test_sensor_read)
{ {
Eeze_Sensor_Obj *sens = NULL; Eeze_Sensor_Obj *sens = NULL;
int ret = 0; int ret = 0;
@ -166,9 +166,9 @@ START_TEST(eeze_test_sensor_read)
ret = eeze_shutdown(); ret = eeze_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(eeze_test_sensor_async_read) EFL_START_TEST(eeze_test_sensor_async_read)
{ {
Ecore_Event_Handler *handler; Ecore_Event_Handler *handler;
@ -242,9 +242,9 @@ START_TEST(eeze_test_sensor_async_read)
ret = eeze_shutdown(); ret = eeze_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
START_TEST(eeze_test_sensor_obj_get) EFL_START_TEST(eeze_test_sensor_obj_get)
{ {
Eeze_Sensor_Obj *obj = NULL, *obj_tmp = NULL; Eeze_Sensor_Obj *obj = NULL, *obj_tmp = NULL;
int ret = 0; int ret = 0;
@ -270,7 +270,7 @@ START_TEST(eeze_test_sensor_obj_get)
ret = eeze_shutdown(); ret = eeze_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
void eeze_test_sensor(TCase *tc) void eeze_test_sensor(TCase *tc)
{ {

View File

@ -16,7 +16,7 @@ catch_events(const char *device EINA_UNUSED, Eeze_Udev_Event event EINA_UNUSED,
#if 0 #if 0
// FIXME split udev tests into pieces here // FIXME split udev tests into pieces here
START_TEST(eeze_test_udev_types) EFL_START_TEST(eeze_test_udev_types)
{ {
Eina_List *type; Eina_List *type;
@ -56,10 +56,10 @@ START_TEST(eeze_test_udev_types)
eeze_shutdown(); eeze_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
START_TEST(eeze_test_udev_watch) EFL_START_TEST(eeze_test_udev_watch)
{ {
Eeze_Udev_Watch *watch; Eeze_Udev_Watch *watch;
@ -81,9 +81,9 @@ START_TEST(eeze_test_udev_watch)
eeze_shutdown(); eeze_shutdown();
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eeze_test_udev_syspath) EFL_START_TEST(eeze_test_udev_syspath)
{ {
Eina_List *type, *l; Eina_List *type, *l;
const char *name; const char *name;
@ -150,9 +150,9 @@ START_TEST(eeze_test_udev_syspath)
eeze_shutdown(); eeze_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eeze_test_udev_attr) EFL_START_TEST(eeze_test_udev_attr)
{ {
Eina_List *type; Eina_List *type;
const char *name, *check, *check2; const char *name, *check, *check2;
@ -206,10 +206,10 @@ START_TEST(eeze_test_udev_attr)
eeze_shutdown(); eeze_shutdown();
} }
END_TEST EFL_END_TEST
/* /*
START_TEST(eeze_test_udev_device) EFL_START_TEST(eeze_test_udev_device)
{ {
Eina_List *type, *l; Eina_List *type, *l;
_udev_device *device, *device2; _udev_device *device, *device2;
@ -239,7 +239,7 @@ START_TEST(eeze_test_udev_device)
eeze_shutdown(); eeze_shutdown();
} }
END_TEST EFL_END_TEST
*/ */
void eeze_test_udev(TCase *tc) void eeze_test_udev(TCase *tc)

View File

@ -20,7 +20,7 @@
#define EFL_SUITE_H_ #define EFL_SUITE_H_
#include <check.h> #include <check.h>
#include "../efl_check.h"
void efl_test_case_model_container(TCase *tc); void efl_test_case_model_container(TCase *tc);
void efl_test_case_model_composite_boolean(TCase *tc); void efl_test_case_model_composite_boolean(TCase *tc);

View File

@ -169,7 +169,7 @@ _selection_children_slice_get_then(void *data, Efl_Event const* event)
} }
} }
START_TEST(efl_test_model_composite_boolean) EFL_START_TEST(efl_test_model_composite_boolean)
{ {
Efl_Model_Item *base_model, *child; Efl_Model_Item *base_model, *child;
int i; int i;
@ -210,9 +210,9 @@ START_TEST(efl_test_model_composite_boolean)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(efl_test_model_composite_selection) EFL_START_TEST(efl_test_model_composite_selection)
{ {
Efl_Model_Item *base_model, *child; Efl_Model_Item *base_model, *child;
int i; int i;
@ -252,7 +252,7 @@ START_TEST(efl_test_model_composite_selection)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void void
efl_test_case_model_composite_boolean(TCase *tc) efl_test_case_model_composite_boolean(TCase *tc)

View File

@ -109,7 +109,7 @@ _children_slice_future_then(void *data, Efl_Event const *event)
} }
START_TEST(efl_test_model_container_values) EFL_START_TEST(efl_test_model_container_values)
{ {
Efl_Model_Container* model; Efl_Model_Container* model;
Efl_Future *future; Efl_Future *future;
@ -161,7 +161,7 @@ START_TEST(efl_test_model_container_values)
ecore_shutdown(); ecore_shutdown();
} }
END_TEST EFL_END_TEST
void void

View File

@ -1,11 +1,31 @@
#ifndef EFL_CHECK_H #ifndef EFL_CHECK_H
#define EFL_CHECK_H #define EFL_CHECK_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdlib.h> /* getenv */ #include <stdlib.h> /* getenv */
#include <stdio.h> /* fprintf, fputs */ #include <stdio.h> /* fprintf, fputs */
#include <string.h> /* strcmp */ #include <string.h> /* strcmp */
#include <unistd.h> /* execvp */ #include <unistd.h> /* execvp */
#include <errno.h> /* errno */ #include <errno.h> /* errno */
#include <sys/time.h>
#ifndef EINA_UNUSED
#ifdef __GNUC__
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define EINA_UNUSED __attribute__ ((__unused__))
# else
# define EINA_UNUSED
# endif
#else
# define EINA_UNUSED
#endif
#endif
typedef struct _Efl_Test_Case Efl_Test_Case; typedef struct _Efl_Test_Case Efl_Test_Case;
struct _Efl_Test_Case struct _Efl_Test_Case
@ -23,7 +43,7 @@ _efl_tests_list(const Efl_Test_Case *etc)
fprintf(stderr, "\t%s\n", itr->test_case); fprintf(stderr, "\t%s\n", itr->test_case);
} }
static int EINA_UNUSED static int
_efl_test_option_disp(int argc, char **argv, const Efl_Test_Case *etc) _efl_test_option_disp(int argc, char **argv, const Efl_Test_Case *etc)
{ {
int i; int i;
@ -103,14 +123,72 @@ _efl_test_fork_has(SRunner *sr)
return 0; return 0;
} }
#ifdef HAVE_GETTIMEOFDAY
EINA_UNUSED static double _timing_start_time;
static int static int
_timing_enabled(void)
{
const char *lc = getenv("TIMING_ENABLED");
return !!lc;
}
static double
_timing_time_get(void)
{
struct timeval timev;
gettimeofday(&timev, NULL);
return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000);
}
EINA_UNUSED static void
_timing_start(void)
{
if (_timing_enabled())
_timing_start_time = _timing_time_get();
}
EINA_UNUSED static void
_timing_end(void)
{
double diff;
if (!_timing_enabled()) return;
diff = _timing_time_get() - _timing_start_time;
if (diff > 0.0001)
printf("TIME %s: %.5g\n", tcase_name(), diff);
}
# define EFL_START_TEST(TEST_NAME) \
START_TEST(TEST_NAME) \
_timing_start();
# define EFL_END_TEST \
_timing_end(); \
END_TEST
#else
# define EFL_START_TEST(TEST_NAME) START_TEST(TEST_NAME)
# define EFL_END_TEST END_TEST
#endif
EINA_UNUSED static int
_efl_suite_build_and_run(int argc, const char **argv, const char *suite_name, const Efl_Test_Case *etc) _efl_suite_build_and_run(int argc, const char **argv, const char *suite_name, const Efl_Test_Case *etc)
{ {
Suite *s; Suite *s;
SRunner *sr; SRunner *sr;
TCase *tc; TCase *tc;
int i, failed_count; int i, failed_count;
#ifdef HAVE_GETTIMEOFDAY
double tstart;
int timing = _timing_enabled();
if (timing)
tstart = _timing_time_get();
#endif
s = suite_create(suite_name); s = suite_create(suite_name);
sr = srunner_create(s); sr = srunner_create(s);
@ -132,7 +210,10 @@ _efl_suite_build_and_run(int argc, const char **argv, const char *suite_name, co
srunner_run_all(sr, CK_ENV); srunner_run_all(sr, CK_ENV);
failed_count = srunner_ntests_failed(sr); failed_count = srunner_ntests_failed(sr);
srunner_free(sr); srunner_free(sr);
#ifdef HAVE_GETTIMEOFDAY
if (timing)
printf("SUITE TIME %s: %.5g\n", suite_name, _timing_time_get() - tstart);
#endif
return failed_count; return failed_count;
} }

View File

@ -2,7 +2,7 @@
#define _EFREET_SUITE_H #define _EFREET_SUITE_H
#include <check.h> #include <check.h>
#include "../efl_check.h"
void efreet_test_efreet(TCase *tc); void efreet_test_efreet(TCase *tc);
void efreet_test_efreet_cache(TCase *tc); void efreet_test_efreet_cache(TCase *tc);

View File

@ -7,7 +7,7 @@
#include "efreet_suite.h" #include "efreet_suite.h"
START_TEST(efreet_test_efreet_init) EFL_START_TEST(efreet_test_efreet_init)
{ {
int ret; int ret;
@ -17,7 +17,7 @@ START_TEST(efreet_test_efreet_init)
ret = efreet_shutdown(); ret = efreet_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
void efreet_test_efreet(TCase *tc) void efreet_test_efreet(TCase *tc)
{ {

View File

@ -7,7 +7,7 @@
#include "efreet_suite.h" #include "efreet_suite.h"
START_TEST(efreet_test_efreet_cache_init) EFL_START_TEST(efreet_test_efreet_cache_init)
{ {
int ret; int ret;
@ -17,7 +17,7 @@ START_TEST(efreet_test_efreet_cache_init)
ret = efreet_shutdown(); ret = efreet_shutdown();
fail_if(ret != 0); fail_if(ret != 0);
} }
END_TEST EFL_END_TEST
void efreet_test_efreet_cache(TCase *tc) void efreet_test_efreet_cache(TCase *tc)
{ {

View File

@ -20,6 +20,7 @@
#define EINA_SUITE_H_ #define EINA_SUITE_H_
#include <check.h> #include <check.h>
#include "../efl_check.h"
void eina_test_ustringshare(TCase *tc); void eina_test_ustringshare(TCase *tc);
void eina_test_binshare(TCase *tc); void eina_test_binshare(TCase *tc);

View File

@ -39,7 +39,7 @@ typedef uint32_t Eina_Unicode;
EAPI Eina_Unicode eina_unicode_utf8_get_next(const char *buf, int *iindex); EAPI Eina_Unicode eina_unicode_utf8_get_next(const char *buf, int *iindex);
EAPI unsigned int eina_mempool_alignof(unsigned int size); EAPI unsigned int eina_mempool_alignof(unsigned int size);
START_TEST(eina_unicode_utf8) EFL_START_TEST(eina_unicode_utf8)
{ {
int ind; int ind;
unsigned char ch; unsigned char ch;
@ -243,9 +243,9 @@ START_TEST(eina_unicode_utf8)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_alignof) EFL_START_TEST(eina_alignof)
{ {
eina_init(); eina_init();
@ -254,7 +254,7 @@ START_TEST(eina_alignof)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_abi(TCase *tc) eina_test_abi(TCase *tc)

View File

@ -36,7 +36,7 @@ eina_accessor_check(EINA_UNUSED const Eina_Array *array,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_accessor_array_simple) EFL_START_TEST(eina_accessor_array_simple)
{ {
Eina_Accessor *it; Eina_Accessor *it;
Eina_Array *ea; Eina_Array *ea;
@ -76,7 +76,7 @@ START_TEST(eina_accessor_array_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
typedef struct _Eina_Test_Inlist Eina_Test_Inlist; typedef struct _Eina_Test_Inlist Eina_Test_Inlist;
struct _Eina_Test_Inlist struct _Eina_Test_Inlist
@ -114,7 +114,7 @@ eina_accessor_inlist_data_check(EINA_UNUSED const Eina_Inlist *in_list,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_accessor_inlist_simple) EFL_START_TEST(eina_accessor_inlist_simple)
{ {
Eina_Inlist *lst = NULL; Eina_Inlist *lst = NULL;
Eina_Test_Inlist *tmp; Eina_Test_Inlist *tmp;
@ -165,7 +165,7 @@ START_TEST(eina_accessor_inlist_simple)
fail_if(i != 2); fail_if(i != 2);
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list, eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
@ -184,7 +184,7 @@ eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_accessor_list_simple) EFL_START_TEST(eina_accessor_list_simple)
{ {
Eina_List *list = NULL; Eina_List *list = NULL;
Eina_Accessor *it; Eina_Accessor *it;
@ -233,7 +233,7 @@ START_TEST(eina_accessor_list_simple)
eina_accessor_free(it); eina_accessor_free(it);
} }
END_TEST EFL_END_TEST
void void
eina_test_accessor(TCase *tc) eina_test_accessor(TCase *tc)

View File

@ -26,7 +26,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_array_simple) EFL_START_TEST(eina_array_simple)
{ {
Eina_Array *ea; Eina_Array *ea;
char *tmp; char *tmp;
@ -68,9 +68,9 @@ START_TEST(eina_array_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_array_static) EFL_START_TEST(eina_array_static)
{ {
Eina_Array sea; Eina_Array sea;
char *tmp; char *tmp;
@ -106,7 +106,7 @@ START_TEST(eina_array_static)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
Eina_Bool Eina_Bool
keep_int(void *data, void *gdata) keep_int(void *data, void *gdata)
@ -122,7 +122,7 @@ keep_int(void *data, void *gdata)
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_array_remove_stuff) EFL_START_TEST(eina_array_remove_stuff)
{ {
Eina_Array *ea; Eina_Array *ea;
int *tmp; int *tmp;
@ -181,7 +181,7 @@ START_TEST(eina_array_remove_stuff)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_array(TCase *tc) eina_test_array(TCase *tc)

View File

@ -60,7 +60,7 @@ wk3_func(void *data EINA_UNUSED, Eina_Thread thread EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(eina_barrier_test_simple) EFL_START_TEST(eina_barrier_test_simple)
{ {
Eina_Bool r; Eina_Bool r;
int i; int i;
@ -106,7 +106,7 @@ START_TEST(eina_barrier_test_simple)
eina_threads_shutdown(); eina_threads_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_barrier(TCase *tc) eina_test_barrier(TCase *tc)

View File

@ -39,7 +39,7 @@ _eina_benchmark_specimens(int request)
global_test = a; global_test = a;
} }
START_TEST(eina_benchmark_simple) EFL_START_TEST(eina_benchmark_simple)
{ {
Eina_Benchmark *eb; Eina_Benchmark *eb;
Eina_Array_Iterator it; Eina_Array_Iterator it;
@ -67,7 +67,7 @@ START_TEST(eina_benchmark_simple)
eina_benchmark_free(eb); eina_benchmark_free(eb);
} }
END_TEST EFL_END_TEST
void void
eina_test_benchmark(TCase *tc) eina_test_benchmark(TCase *tc)

View File

@ -27,7 +27,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_bezier_test_values) EFL_START_TEST(eina_bezier_test_values)
{ {
Eina_Bezier b; Eina_Bezier b;
double sx, sy, cx1, cy1, cx2, cy2, ex, ey; double sx, sy, cx1, cy1, cx2, cy2, ex, ey;
@ -53,9 +53,9 @@ START_TEST(eina_bezier_test_values)
ey != 8); ey != 8);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_bezier_test_angle) EFL_START_TEST(eina_bezier_test_angle)
{ {
Eina_Bezier b; Eina_Bezier b;
double angle; double angle;
@ -80,9 +80,9 @@ START_TEST(eina_bezier_test_angle)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_bezier_test_length) EFL_START_TEST(eina_bezier_test_length)
{ {
Eina_Bezier b; Eina_Bezier b;
double length; double length;
@ -106,9 +106,9 @@ START_TEST(eina_bezier_test_length)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_bezier_test_t_at) EFL_START_TEST(eina_bezier_test_t_at)
{ {
Eina_Bezier b; Eina_Bezier b;
double length, t; double length, t;
@ -128,9 +128,9 @@ START_TEST(eina_bezier_test_t_at)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_bezier_test_point_at) EFL_START_TEST(eina_bezier_test_point_at)
{ {
Eina_Bezier b; Eina_Bezier b;
double x, y; double x, y;
@ -152,9 +152,9 @@ START_TEST(eina_bezier_test_point_at)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_bezier_test_split_at_length) EFL_START_TEST(eina_bezier_test_split_at_length)
{ {
Eina_Bezier b, l , r; Eina_Bezier b, l , r;
double len, len1, len2; double len, len1, len2;
@ -174,9 +174,9 @@ START_TEST(eina_bezier_test_split_at_length)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_bezier_test_bounds_get) EFL_START_TEST(eina_bezier_test_bounds_get)
{ {
Eina_Bezier b; Eina_Bezier b;
double x, y, w, h; double x, y, w, h;
@ -194,9 +194,9 @@ START_TEST(eina_bezier_test_bounds_get)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_bezier_test_on_interval) EFL_START_TEST(eina_bezier_test_on_interval)
{ {
Eina_Bezier b, res; Eina_Bezier b, res;
double px1, px2, py1, py2; double px1, px2, py1, py2;
@ -215,7 +215,7 @@ START_TEST(eina_bezier_test_on_interval)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_bezier(TCase *tc) eina_test_bezier(TCase *tc)

View File

@ -25,7 +25,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(binbuf_simple) EFL_START_TEST(binbuf_simple)
{ {
Eina_Binbuf *buf, *test_buf; Eina_Binbuf *buf, *test_buf;
unsigned char *txt; unsigned char *txt;
@ -83,9 +83,9 @@ START_TEST(binbuf_simple)
eina_shutdown(); eina_shutdown();
#undef TEXT #undef TEXT
} }
END_TEST EFL_END_TEST
START_TEST(binbuf_remove) EFL_START_TEST(binbuf_remove)
{ {
Eina_Binbuf *buf; Eina_Binbuf *buf;
const unsigned char cbuf[] = "12\0 456 78\0 abcthis is some more random junk here!"; const unsigned char cbuf[] = "12\0 456 78\0 abcthis is some more random junk here!";
@ -115,13 +115,13 @@ START_TEST(binbuf_remove)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
/* eina_binbuf_manage_new_length and eina_binbuf_manage_read_only_new_length /* eina_binbuf_manage_new_length and eina_binbuf_manage_read_only_new_length
* are deprecated */ * are deprecated */
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
START_TEST(binbuf_manage_simple) EFL_START_TEST(binbuf_manage_simple)
{ {
Eina_Binbuf *buf; Eina_Binbuf *buf;
const char *_cbuf = "12\0 456 78\0 abcthis is some more random junk here!"; const char *_cbuf = "12\0 456 78\0 abcthis is some more random junk here!";
@ -146,9 +146,9 @@ START_TEST(binbuf_manage_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(binbuf_manage_read_only_simple) EFL_START_TEST(binbuf_manage_read_only_simple)
{ {
Eina_Binbuf *buf; Eina_Binbuf *buf;
const char *_cbuf = "12\0 456 78\0 abcthis is some more random junk here!"; const char *_cbuf = "12\0 456 78\0 abcthis is some more random junk here!";
@ -176,10 +176,10 @@ START_TEST(binbuf_manage_read_only_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
START_TEST(binbuf_insert) EFL_START_TEST(binbuf_insert)
{ {
#if 0 #if 0
Eina_Binbuf *buf; Eina_Binbuf *buf;
@ -230,9 +230,9 @@ START_TEST(binbuf_insert)
eina_shutdown(); eina_shutdown();
#endif #endif
} }
END_TEST EFL_END_TEST
START_TEST(binbuf_realloc) EFL_START_TEST(binbuf_realloc)
{ {
Eina_Binbuf *buf; Eina_Binbuf *buf;
unsigned char pattern[1024 * 16]; unsigned char pattern[1024 * 16];
@ -304,9 +304,9 @@ START_TEST(binbuf_realloc)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(binbuf_expand) EFL_START_TEST(binbuf_expand)
{ {
Eina_Binbuf *buf; Eina_Binbuf *buf;
Eina_Rw_Slice rw_slice; Eina_Rw_Slice rw_slice;
@ -371,7 +371,7 @@ START_TEST(binbuf_expand)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void

View File

@ -34,7 +34,7 @@
#define TEST1 "te\0st/11" #define TEST1 "te\0st/11"
#define TEST1_SIZE 8 #define TEST1_SIZE 8
START_TEST(eina_binshare_simple) EFL_START_TEST(eina_binshare_simple)
{ {
const char *t0; const char *t0;
const char *t1; const char *t1;
@ -59,9 +59,9 @@ START_TEST(eina_binshare_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_binshare_small) EFL_START_TEST(eina_binshare_small)
{ {
char buf[4]; char buf[4];
int i; int i;
@ -93,10 +93,10 @@ START_TEST(eina_binshare_small)
} }
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_binshare_test_share) EFL_START_TEST(eina_binshare_test_share)
{ {
const char *t0; const char *t0;
const char *t1; const char *t1;
@ -117,9 +117,9 @@ START_TEST(eina_binshare_test_share)
eina_binshare_del(t1); eina_binshare_del(t1);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_binshare_putstuff) EFL_START_TEST(eina_binshare_putstuff)
{ {
const char *tmp; const char *tmp;
int i; int i;
@ -137,9 +137,9 @@ START_TEST(eina_binshare_putstuff)
} }
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_binshare_collision) EFL_START_TEST(eina_binshare_collision)
{ {
Eina_Array *ea; Eina_Array *ea;
char buffer[50]; char buffer[50];
@ -187,7 +187,7 @@ START_TEST(eina_binshare_collision)
eina_array_free(ea); eina_array_free(ea);
} }
END_TEST EFL_END_TEST
void void
eina_test_binshare(TCase *tc) eina_test_binshare(TCase *tc)

View File

@ -102,7 +102,7 @@ static void iterating_two_phase_with_add_head(unsigned int n, const char *str, i
}; };
} }
START_TEST(eina_clist_basic) EFL_START_TEST(eina_clist_basic)
{ {
unsigned int n = 0; unsigned int n = 0;
@ -175,7 +175,7 @@ START_TEST(eina_clist_basic)
fail_if(eina_clist_count(&string_list) != 0); fail_if(eina_clist_count(&string_list) != 0);
} }
END_TEST EFL_END_TEST
void void
eina_test_clist(TCase *tc) eina_test_clist(TCase *tc)

View File

@ -30,7 +30,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_convert_simple) EFL_START_TEST(eina_convert_simple)
{ {
char tmp[128]; char tmp[128];
char ref[128]; char ref[128];
@ -63,7 +63,7 @@ START_TEST(eina_convert_simple)
fail_if(eina_convert_xtoa(0xFF00EF0E, tmp) != 8); fail_if(eina_convert_xtoa(0xFF00EF0E, tmp) != 8);
fail_if(strcmp(tmp, "ff00ef0e") != 0); fail_if(strcmp(tmp, "ff00ef0e") != 0);
} }
END_TEST EFL_END_TEST
#define EET_TEST_DOUBLE0 123.45689 #define EET_TEST_DOUBLE0 123.45689
#define EET_TEST_DOUBLE1 1.0 #define EET_TEST_DOUBLE1 1.0
@ -85,7 +85,7 @@ _eina_convert_check(double test, int length)
fail_if(fabs(r - test) > DBL_MIN); fail_if(fabs(r - test) > DBL_MIN);
} }
START_TEST(eina_convert_double) EFL_START_TEST(eina_convert_double)
{ {
long long int m = 0; long long int m = 0;
long e = 0; long e = 0;
@ -105,7 +105,7 @@ _eina_convert_check(double test, int length)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_eina_convert_fp_check(double d, Eina_F32p32 fp, int length) _eina_convert_fp_check(double d, Eina_F32p32 fp, int length)
@ -152,7 +152,7 @@ _eina_convert_fp_check(double d, Eina_F32p32 fp, int length)
fail_if(fabs(fpd - d) > DBL_MIN); fail_if(fabs(fpd - d) > DBL_MIN);
} }
START_TEST(eina_convert_fp) EFL_START_TEST(eina_convert_fp)
{ {
_eina_convert_fp_check(1.0, 0x0000000100000000, 6); _eina_convert_fp_check(1.0, 0x0000000100000000, 6);
_eina_convert_fp_check(0.5, 0x0000000080000000, 8); _eina_convert_fp_check(0.5, 0x0000000080000000, 8);
@ -161,7 +161,7 @@ _eina_convert_fp_check(double d, Eina_F32p32 fp, int length)
_eina_convert_fp_check(0.5, 0x0000000080000000, 8); _eina_convert_fp_check(0.5, 0x0000000080000000, 8);
_eina_convert_fp_check(128.625, 0x00000080a0000000, 10); _eina_convert_fp_check(128.625, 0x00000080a0000000, 10);
} }
END_TEST EFL_END_TEST
void void
eina_test_convert(TCase *tc) eina_test_convert(TCase *tc)

View File

@ -65,7 +65,7 @@ _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const
} }
#endif #endif
START_TEST(eina_counter_simple) EFL_START_TEST(eina_counter_simple)
{ {
Eina_Counter *cnt; Eina_Counter *cnt;
char *dump; char *dump;
@ -108,9 +108,9 @@ START_TEST(eina_counter_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_counter_break) EFL_START_TEST(eina_counter_break)
{ {
Eina_Counter *cnt; Eina_Counter *cnt;
@ -184,7 +184,7 @@ START_TEST(eina_counter_break)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void eina_test_counter(TCase *tc) void eina_test_counter(TCase *tc)
{ {

View File

@ -42,7 +42,7 @@ _eina_test_log(const Eina_Log_Domain *d EINA_UNUSED,
*bol = EINA_TRUE; *bol = EINA_TRUE;
} }
START_TEST(eina_cow_bad) EFL_START_TEST(eina_cow_bad)
{ {
const Eina_Cow_Test *cur; const Eina_Cow_Test *cur;
Eina_Cow_Test *write; Eina_Cow_Test *write;
@ -86,9 +86,9 @@ START_TEST(eina_cow_bad)
eina_cow_del(cow); eina_cow_del(cow);
} }
END_TEST EFL_END_TEST
START_TEST(eina_cow) EFL_START_TEST(eina_cow)
{ {
const Eina_Cow_Test *prev; const Eina_Cow_Test *prev;
const Eina_Cow_Test *cur; const Eina_Cow_Test *cur;
@ -143,7 +143,7 @@ START_TEST(eina_cow)
eina_cow_del(cow); eina_cow_del(cow);
} }
END_TEST EFL_END_TEST
void void
eina_test_cow(TCase *tc) eina_test_cow(TCase *tc)

View File

@ -10,7 +10,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_crc_simple) EFL_START_TEST(eina_crc_simple)
{ {
unsigned int seed = 0xffffffff, i, ret; unsigned int seed = 0xffffffff, i, ret;
const char *data[] = const char *data[] =
@ -43,7 +43,7 @@ START_TEST(eina_crc_simple)
ret = eina_crc(s2, strlen(s2), ret, EINA_FALSE); ret = eina_crc(s2, strlen(s2), ret, EINA_FALSE);
fail_if(ret != result[0]); fail_if(ret != result[0]);
} }
END_TEST EFL_END_TEST
void eina_test_crc(TCase *tc) void eina_test_crc(TCase *tc)
{ {

View File

@ -69,7 +69,7 @@ _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const
#endif #endif
} }
START_TEST(eina_error_errno) EFL_START_TEST(eina_error_errno)
{ {
int test; int test;
@ -90,9 +90,9 @@ START_TEST(eina_error_errno)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_error_test_find) EFL_START_TEST(eina_error_test_find)
{ {
int test, r; int test, r;
const char *str; const char *str;
@ -118,9 +118,9 @@ START_TEST(eina_error_test_find)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_error_test_modify) EFL_START_TEST(eina_error_test_modify)
{ {
int test, r; int test, r;
const char *str, smsg[] = "Do not copy this string"; const char *str, smsg[] = "Do not copy this string";
@ -155,9 +155,9 @@ START_TEST(eina_error_test_modify)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_error_test_lots) EFL_START_TEST(eina_error_test_lots)
{ {
char buf[64]; char buf[64];
int codes[512]; int codes[512];
@ -184,10 +184,10 @@ START_TEST(eina_error_test_lots)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#ifdef EINA_SAFETY_CHECKS #ifdef EINA_SAFETY_CHECKS
START_TEST(eina_error_test_failures) EFL_START_TEST(eina_error_test_failures)
{ {
struct log_ctx ctx; struct log_ctx ctx;
Eina_Error local_error; Eina_Error local_error;
@ -251,7 +251,7 @@ START_TEST(eina_error_test_failures)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
void void

View File

@ -88,7 +88,7 @@ _eina_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const
#endif #endif
START_TEST(eina_file_split_simple) EFL_START_TEST(eina_file_split_simple)
{ {
Eina_Array *ea; Eina_Array *ea;
@ -153,7 +153,7 @@ START_TEST(eina_file_split_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
Eina_Tmpstr* Eina_Tmpstr*
get_full_path(const char* tmpdirname, const char* filename) get_full_path(const char* tmpdirname, const char* filename)
@ -178,7 +178,7 @@ get_eina_test_file_tmp_dir()
return tmp_dir; return tmp_dir;
} }
START_TEST(eina_file_direct_ls_simple) EFL_START_TEST(eina_file_direct_ls_simple)
{ {
eina_init(); eina_init();
@ -240,9 +240,9 @@ START_TEST(eina_file_direct_ls_simple)
eina_tmpstr_del(test_dirname); eina_tmpstr_del(test_dirname);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_file_ls_simple) EFL_START_TEST(eina_file_ls_simple)
{ {
eina_init(); eina_init();
@ -302,9 +302,9 @@ START_TEST(eina_file_ls_simple)
eina_tmpstr_del(test_dirname); eina_tmpstr_del(test_dirname);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_file_map_new_test) EFL_START_TEST(eina_file_map_new_test)
{ {
const char *eina_map_test_string = "Hello. I'm the eina map test string."; const char *eina_map_test_string = "Hello. I'm the eina map test string.";
const char *test_file_name_part = "/example.txt"; const char *test_file_name_part = "/example.txt";
@ -442,7 +442,7 @@ START_TEST(eina_file_map_new_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static const char *virtual_file_data = "this\n" static const char *virtual_file_data = "this\n"
"is a test for the sake of testing\r\n" "is a test for the sake of testing\r\n"
@ -452,7 +452,7 @@ static const char *virtual_file_data = "this\n"
"file !\n" "file !\n"
"without any issue !"; "without any issue !";
START_TEST(eina_test_file_virtualize) EFL_START_TEST(eina_test_file_virtualize)
{ {
Eina_File *f; Eina_File *f;
Eina_File *tmp; Eina_File *tmp;
@ -496,7 +496,7 @@ START_TEST(eina_test_file_virtualize)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static void * static void *
_eina_test_file_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED) _eina_test_file_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
@ -514,7 +514,7 @@ _eina_test_file_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(eina_test_file_thread) EFL_START_TEST(eina_test_file_thread)
{ {
Eina_Thread th[4]; Eina_Thread th[4];
unsigned int i; unsigned int i;
@ -529,7 +529,7 @@ START_TEST(eina_test_file_thread)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static const struct { static const struct {
const char *test; const char *test;
@ -538,7 +538,7 @@ static const struct {
{ "/home/mydir/../myfile", "/home/myfile" } { "/home/mydir/../myfile", "/home/myfile" }
}; };
START_TEST(eina_test_file_path) EFL_START_TEST(eina_test_file_path)
{ {
unsigned int i; unsigned int i;
char *path; char *path;
@ -553,10 +553,10 @@ START_TEST(eina_test_file_path)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#ifdef XATTR_TEST_DIR #ifdef XATTR_TEST_DIR
START_TEST(eina_test_file_xattr) EFL_START_TEST(eina_test_file_xattr)
{ {
Eina_File *ef; Eina_File *ef;
char *filename = "tmpfile"; char *filename = "tmpfile";
@ -629,10 +629,10 @@ START_TEST(eina_test_file_xattr)
eina_file_close(ef); eina_file_close(ef);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
START_TEST(eina_test_file_copy) EFL_START_TEST(eina_test_file_copy)
{ {
const char *test_file1_name = "EinaCopyFromXXXXXX.txt"; const char *test_file1_name = "EinaCopyFromXXXXXX.txt";
const char *test_file2_name = "EinaCopyToXXXXXX.txt"; const char *test_file2_name = "EinaCopyToXXXXXX.txt";
@ -696,9 +696,9 @@ START_TEST(eina_test_file_copy)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_file_statat) EFL_START_TEST(eina_test_file_statat)
{ {
Eina_Tmpstr *test_file1_path, *test_file2_path; Eina_Tmpstr *test_file1_path, *test_file2_path;
Eina_Iterator *it; Eina_Iterator *it;
@ -745,9 +745,9 @@ START_TEST(eina_test_file_statat)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_file_mktemp) EFL_START_TEST(eina_test_file_mktemp)
{ {
Eina_Tmpstr *tmpfile, *tmpdir = NULL; Eina_Tmpstr *tmpfile, *tmpdir = NULL;
char buf[PATH_MAX], fmt[256]; char buf[PATH_MAX], fmt[256];
@ -843,7 +843,7 @@ START_TEST(eina_test_file_mktemp)
unlink(tmpfile); unlink(tmpfile);
remove(tmpdir); remove(tmpdir);
} }
END_TEST EFL_END_TEST
int create_file_not_empty(const char *file_name, Eina_Tmpstr **test_file_path, Eina_Bool close_file) int create_file_not_empty(const char *file_name, Eina_Tmpstr **test_file_path, Eina_Bool close_file)
{ {
@ -862,7 +862,7 @@ int create_file_not_empty(const char *file_name, Eina_Tmpstr **test_file_path,
return fd; return fd;
} }
START_TEST(eina_test_file_unlink) EFL_START_TEST(eina_test_file_unlink)
{ {
int fd; int fd;
Eina_Tmpstr *test_file_path; Eina_Tmpstr *test_file_path;
@ -883,7 +883,7 @@ START_TEST(eina_test_file_unlink)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_file(TCase *tc) eina_test_file(TCase *tc)

View File

@ -27,7 +27,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_fp_cos) EFL_START_TEST(eina_fp_cos)
{ {
Eina_F32p32 fc; Eina_F32p32 fc;
Eina_F32p32 fl; Eina_F32p32 fl;
@ -54,9 +54,9 @@ START_TEST(eina_fp_cos)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_fp_sin) EFL_START_TEST(eina_fp_sin)
{ {
Eina_F32p32 fc; Eina_F32p32 fc;
Eina_F32p32 fl; Eina_F32p32 fl;
@ -84,9 +84,9 @@ START_TEST(eina_fp_sin)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_fp_mul) EFL_START_TEST(eina_fp_mul)
{ {
Eina_F32p32 fc1, fc2; Eina_F32p32 fc1, fc2;
Eina_F32p32 fresult; Eina_F32p32 fresult;
@ -137,9 +137,9 @@ START_TEST(eina_fp_mul)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_fp_div) EFL_START_TEST(eina_fp_div)
{ {
Eina_F32p32 fc1, fc2; Eina_F32p32 fc1, fc2;
Eina_F32p32 fresult; Eina_F32p32 fresult;
@ -189,7 +189,7 @@ START_TEST(eina_fp_div)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_fp(TCase *tc) eina_test_fp(TCase *tc)

View File

@ -6,7 +6,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(freeq_simple) EFL_START_TEST(freeq_simple)
{ {
Eina_FreeQ *fq; Eina_FreeQ *fq;
int *p; int *p;
@ -30,7 +30,7 @@ START_TEST(freeq_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static int _n = 0; static int _n = 0;
@ -40,7 +40,7 @@ static void freefn(void *data)
_n--; _n--;
} }
START_TEST(freeq_tune) EFL_START_TEST(freeq_tune)
{ {
void *p; void *p;
@ -74,9 +74,9 @@ START_TEST(freeq_tune)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(freeq_reduce) EFL_START_TEST(freeq_reduce)
{ {
void *p; void *p;
@ -114,7 +114,7 @@ START_TEST(freeq_reduce)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
postponed_free(void *data) postponed_free(void *data)
@ -136,7 +136,7 @@ new_uint(int val)
return p; return p;
} }
START_TEST(freeq_postponed) EFL_START_TEST(freeq_postponed)
{ {
Eina_FreeQ *fq; Eina_FreeQ *fq;
unsigned int *values[20]; unsigned int *values[20];
@ -194,7 +194,7 @@ START_TEST(freeq_postponed)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_freeq(TCase *tc) eina_test_freeq(TCase *tc)

View File

@ -69,7 +69,7 @@ eina_foreach_check(EINA_UNUSED const Eina_Hash *hash,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_hash_simple) EFL_START_TEST(eina_hash_simple)
{ {
Eina_Hash *hash = NULL; Eina_Hash *hash = NULL;
int *test; int *test;
@ -125,9 +125,9 @@ START_TEST(eina_hash_simple)
/* Same comment as eina_init */ /* Same comment as eina_init */
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_hash_crc) EFL_START_TEST(eina_test_hash_crc)
{ {
Eina_Hash *hash = NULL; Eina_Hash *hash = NULL;
int *test; int *test;
@ -186,9 +186,9 @@ START_TEST(eina_test_hash_crc)
/* Same comment as eina_init */ /* Same comment as eina_init */
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
START_TEST(eina_hash_extended) EFL_START_TEST(eina_hash_extended)
{ {
Eina_Hash *hash = NULL; Eina_Hash *hash = NULL;
int i; int i;
@ -214,9 +214,9 @@ START_TEST(eina_hash_extended)
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
START_TEST(eina_hash_double_item) EFL_START_TEST(eina_hash_double_item)
{ {
Eina_Hash *hash = NULL; Eina_Hash *hash = NULL;
int i[] = { 7, 7 }; int i[] = { 7, 7 };
@ -238,9 +238,9 @@ START_TEST(eina_hash_double_item)
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
START_TEST(eina_hash_all_int) EFL_START_TEST(eina_hash_all_int)
{ {
Eina_Hash *hash; Eina_Hash *hash;
int64_t j[] = { 4321312301243122, 6, 7, 128 }; int64_t j[] = { 4321312301243122, 6, 7, 128 };
@ -280,9 +280,9 @@ START_TEST(eina_hash_all_int)
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
START_TEST(eina_hash_int32_fuzze) EFL_START_TEST(eina_hash_int32_fuzze)
{ {
Eina_Hash *hash; Eina_Hash *hash;
Eina_List *added = NULL; Eina_List *added = NULL;
@ -343,9 +343,9 @@ START_TEST(eina_hash_int32_fuzze)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_hash_string_fuzze) EFL_START_TEST(eina_hash_string_fuzze)
{ {
Eina_Hash *hash; Eina_Hash *hash;
Eina_List *added = NULL; Eina_List *added = NULL;
@ -407,9 +407,9 @@ START_TEST(eina_hash_string_fuzze)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_hash_seed) EFL_START_TEST(eina_hash_seed)
{ {
eina_init(); eina_init();
@ -417,9 +417,9 @@ START_TEST(eina_hash_seed)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_hash_add_del_by_hash) EFL_START_TEST(eina_hash_add_del_by_hash)
{ {
Eina_Hash *hash = NULL; Eina_Hash *hash = NULL;
int array[] = { 1, 42, 4, 5, 6 }; int array[] = { 1, 42, 4, 5, 6 };
@ -451,7 +451,7 @@ START_TEST(eina_hash_add_del_by_hash)
fail_if(eina_hash_population(hash) != 3); fail_if(eina_hash_population(hash) != 3);
} }
END_TEST EFL_END_TEST
void eina_test_hash(TCase *tc) void eina_test_hash(TCase *tc)
{ {

View File

@ -26,7 +26,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_inarray_test_simple) EFL_START_TEST(eina_inarray_test_simple)
{ {
const int test_members = 5; const int test_members = 5;
Eina_Inarray *array; Eina_Inarray *array;
@ -86,10 +86,10 @@ START_TEST(eina_inarray_test_simple)
eina_inarray_free(array); eina_inarray_free(array);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_inarray_test_alloc_at) EFL_START_TEST(eina_inarray_test_alloc_at)
{ {
Eina_Inarray *array; Eina_Inarray *array;
int *member; int *member;
@ -126,7 +126,7 @@ START_TEST(eina_inarray_test_alloc_at)
eina_inarray_free(array); eina_inarray_free(array);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static const short rand_numbers[] = { static const short rand_numbers[] = {
9, 0, 2, 3, 6, 5, 4, 7, 8, 1, 10 9, 0, 2, 3, 6, 5, 4, 7, 8, 1, 10
@ -169,7 +169,7 @@ short_cmp(const void *pa, const void *pb)
return *a - *b; return *a - *b;
} }
START_TEST(eina_inarray_test_insert_sort) EFL_START_TEST(eina_inarray_test_insert_sort)
{ {
Eina_Inarray *array; Eina_Inarray *array;
int i, pos; int i, pos;
@ -237,9 +237,9 @@ START_TEST(eina_inarray_test_insert_sort)
eina_inarray_free(array); eina_inarray_free(array);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_inarray_test_sort) EFL_START_TEST(eina_inarray_test_sort)
{ {
Eina_Inarray *array; Eina_Inarray *array;
int i; int i;
@ -259,9 +259,9 @@ START_TEST(eina_inarray_test_sort)
eina_inarray_free(array); eina_inarray_free(array);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_inarray_test_reverse) EFL_START_TEST(eina_inarray_test_reverse)
{ {
Eina_Inarray *array; Eina_Inarray *array;
int i; int i;
@ -287,7 +287,7 @@ START_TEST(eina_inarray_test_reverse)
eina_inarray_free(array); eina_inarray_free(array);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
array_foreach(const void *array EINA_UNUSED, void *p, void *user_data EINA_UNUSED) array_foreach(const void *array EINA_UNUSED, void *p, void *user_data EINA_UNUSED)
@ -311,7 +311,7 @@ array_foreach_stop_2nd(const void *array EINA_UNUSED, void *p, void *user_data E
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_inarray_test_itr) EFL_START_TEST(eina_inarray_test_itr)
{ {
Eina_Inarray *array; Eina_Inarray *array;
Eina_Iterator *it; Eina_Iterator *it;
@ -388,7 +388,7 @@ START_TEST(eina_inarray_test_itr)
eina_inarray_free(array); eina_inarray_free(array);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
int int
cmp(const void *a, const void *b) cmp(const void *a, const void *b)
@ -414,7 +414,7 @@ match_cb(const void *array EINA_UNUSED, void *p, void *user_data)
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(eina_inarray_test_search) EFL_START_TEST(eina_inarray_test_search)
{ {
Eina_Inarray *iarr; Eina_Inarray *iarr;
int i, ret, temp=92, ret1; int i, ret, temp=92, ret1;
@ -492,7 +492,7 @@ START_TEST(eina_inarray_test_search)
eina_inarray_free(iarr); eina_inarray_free(iarr);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_inarray(TCase *tc) eina_test_inarray(TCase *tc)

View File

@ -84,7 +84,7 @@ _eina_test_inlist_build(int i)
return tmp; return tmp;
} }
START_TEST(eina_inlist_simple) EFL_START_TEST(eina_inlist_simple)
{ {
Eina_Inlist *lst = NULL; Eina_Inlist *lst = NULL;
Eina_Inlist *tmpl = NULL; Eina_Inlist *tmpl = NULL;
@ -298,7 +298,7 @@ START_TEST(eina_inlist_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
typedef struct _Eina_Test_Inlist_Sorted Eina_Test_Inlist_Sorted; typedef struct _Eina_Test_Inlist_Sorted Eina_Test_Inlist_Sorted;
struct _Eina_Test_Inlist_Sorted struct _Eina_Test_Inlist_Sorted
@ -330,7 +330,7 @@ _eina_test_inlist_check(const Eina_Inlist *list)
} }
} }
START_TEST(eina_inlist_sorted) EFL_START_TEST(eina_inlist_sorted)
{ {
Eina_Test_Inlist_Sorted *tmp; Eina_Test_Inlist_Sorted *tmp;
Eina_Inlist *list = NULL; Eina_Inlist *list = NULL;
@ -373,9 +373,9 @@ START_TEST(eina_inlist_sorted)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_inlist_sorted_state) EFL_START_TEST(eina_inlist_sorted_state)
{ {
Eina_Test_Inlist_Sorted *tmp; Eina_Test_Inlist_Sorted *tmp;
Eina_Inlist_Sorted_State *state; Eina_Inlist_Sorted_State *state;
@ -404,7 +404,7 @@ START_TEST(eina_inlist_sorted_state)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_inlist(TCase *tc) eina_test_inlist(TCase *tc)

View File

@ -39,7 +39,7 @@ _filter(const void *it EINA_UNUSED, void *data, void *fdata)
return numb->number % 2; return numb->number % 2;
} }
START_TEST(eina_iterator_filter_simple) EFL_START_TEST(eina_iterator_filter_simple)
{ {
Eina_Iterator *it, *filtered; Eina_Iterator *it, *filtered;
Eina_Array *ea; Eina_Array *ea;
@ -87,7 +87,7 @@ START_TEST(eina_iterator_filter_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
struct Free_test { struct Free_test {
Eina_Bool got_freed; Eina_Bool got_freed;
@ -106,7 +106,7 @@ _free(void *data)
test->got_freed = EINA_TRUE; test->got_freed = EINA_TRUE;
} }
START_TEST(eina_iterator_filter_free) EFL_START_TEST(eina_iterator_filter_free)
{ {
Eina_Iterator *it, *filtered; Eina_Iterator *it, *filtered;
Eina_Array *ea; Eina_Array *ea;
@ -129,7 +129,7 @@ START_TEST(eina_iterator_filter_free)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
eina_iterator_array_check(EINA_UNUSED const Eina_Array *array, eina_iterator_array_check(EINA_UNUSED const Eina_Array *array,
int *data, int *fdata) int *data, int *fdata)
@ -140,7 +140,7 @@ eina_iterator_array_check(EINA_UNUSED const Eina_Array *array,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_iterator_array_simple) EFL_START_TEST(eina_iterator_array_simple)
{ {
Eina_Iterator *it; Eina_Iterator *it;
Eina_Array *ea; Eina_Array *ea;
@ -177,7 +177,7 @@ START_TEST(eina_iterator_array_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
eina_iterator_hash_key_check(const Eina_Hash *hash, eina_iterator_hash_key_check(const Eina_Hash *hash,
@ -210,7 +210,7 @@ eina_iterator_hash_tuple_check(EINA_UNUSED const Eina_Hash *hash,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_iterator_hash_simple) EFL_START_TEST(eina_iterator_hash_simple)
{ {
Eina_Iterator *it; Eina_Iterator *it;
Eina_Hash *hash; Eina_Hash *hash;
@ -243,7 +243,7 @@ START_TEST(eina_iterator_hash_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
typedef struct _Eina_Test_Inlist Eina_Test_Inlist; typedef struct _Eina_Test_Inlist Eina_Test_Inlist;
struct _Eina_Test_Inlist struct _Eina_Test_Inlist
@ -287,7 +287,7 @@ eina_iterator_inlist_data_check(EINA_UNUSED const Eina_Inlist *in_list,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_iterator_inlist_simple) EFL_START_TEST(eina_iterator_inlist_simple)
{ {
Eina_Inlist *lst = NULL; Eina_Inlist *lst = NULL;
Eina_Test_Inlist *tmp; Eina_Test_Inlist *tmp;
@ -325,7 +325,7 @@ START_TEST(eina_iterator_inlist_simple)
fail_if(i != 5); fail_if(i != 5);
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list, eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
@ -354,7 +354,7 @@ eina_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_iterator_list_simple) EFL_START_TEST(eina_iterator_list_simple)
{ {
Eina_List *list = NULL; Eina_List *list = NULL;
Eina_Iterator *it; Eina_Iterator *it;
@ -390,7 +390,7 @@ START_TEST(eina_iterator_list_simple)
eina_iterator_foreach(it, EINA_EACH_CB(eina_iterator_list_data_check), &i); eina_iterator_foreach(it, EINA_EACH_CB(eina_iterator_list_data_check), &i);
eina_iterator_free(it); eina_iterator_free(it);
} }
END_TEST EFL_END_TEST
static Eina_Bool static Eina_Bool
eina_reverse_iterator_list_data_check(EINA_UNUSED const Eina_List *list, eina_reverse_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
@ -419,7 +419,7 @@ eina_reverse_iterator_list_data_check(EINA_UNUSED const Eina_List *list,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_reverse_iterator_list_simple) EFL_START_TEST(eina_reverse_iterator_list_simple)
{ {
Eina_List *list = NULL; Eina_List *list = NULL;
Eina_Iterator *it; Eina_Iterator *it;
@ -455,7 +455,7 @@ START_TEST(eina_reverse_iterator_list_simple)
eina_iterator_foreach(it, EINA_EACH_CB(eina_reverse_iterator_list_data_check), &i); eina_iterator_foreach(it, EINA_EACH_CB(eina_reverse_iterator_list_data_check), &i);
eina_iterator_free(it); eina_iterator_free(it);
} }
END_TEST EFL_END_TEST
typedef struct _Eina_Rbtree_Int Eina_Rbtree_Int; typedef struct _Eina_Rbtree_Int Eina_Rbtree_Int;
struct _Eina_Rbtree_Int struct _Eina_Rbtree_Int
@ -558,7 +558,7 @@ eina_iterator_rbtree_data_check_postfix(EINA_UNUSED const Eina_List *list,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_iterator_rbtree_simple) EFL_START_TEST(eina_iterator_rbtree_simple)
{ {
Eina_Rbtree *root = NULL; Eina_Rbtree *root = NULL;
Eina_Iterator *it; Eina_Iterator *it;
@ -622,7 +622,7 @@ START_TEST(eina_iterator_rbtree_simple)
&i); &i);
eina_iterator_free(it); eina_iterator_free(it);
} }
END_TEST EFL_END_TEST
void void
eina_test_iterator(TCase *tc) eina_test_iterator(TCase *tc)

View File

@ -57,7 +57,7 @@ _test_free(Eina_Lazy_Allocator_Test *elat)
elat->num = 0; elat->num = 0;
} }
START_TEST(eina_lalloc_simple) EFL_START_TEST(eina_lalloc_simple)
{ {
Eina_Lazy_Allocator_Test *elat; Eina_Lazy_Allocator_Test *elat;
Eina_Lalloc *test; Eina_Lalloc *test;
@ -81,7 +81,7 @@ START_TEST(eina_lalloc_simple)
eina_lalloc_free(test); eina_lalloc_free(test);
} }
END_TEST EFL_END_TEST
void void
eina_test_lalloc(TCase *tc) eina_test_lalloc(TCase *tc)

View File

@ -56,7 +56,7 @@ static int eina_int_cmp(const void *a, const void *b)
return *ia - *ib; return *ia - *ib;
} }
START_TEST(eina_test_simple) EFL_START_TEST(eina_test_simple)
{ {
Eina_List *list = NULL; Eina_List *list = NULL;
Eina_List *tmp; Eina_List *tmp;
@ -217,9 +217,9 @@ START_TEST(eina_test_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_merge) EFL_START_TEST(eina_test_merge)
{ {
Eina_List *l1; Eina_List *l1;
Eina_List *l2; Eina_List *l2;
@ -302,9 +302,9 @@ START_TEST(eina_test_merge)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_sorted_insert) EFL_START_TEST(eina_test_sorted_insert)
{ {
const int data[] = {6, 9, 42, 1, 7, 9, 81, 1664, 1337, 3, 21, 10, 0, 5, 2008}; const int data[] = {6, 9, 42, 1, 7, 9, 81, 1664, 1337, 3, 21, 10, 0, 5, 2008};
const int data2[] = {5, 0, 3, 2, 1, 0, 1, 2, 3, 4, 5}; const int data2[] = {5, 0, 3, 2, 1, 0, 1, 2, 3, 4, 5};
@ -358,9 +358,9 @@ START_TEST(eina_test_sorted_insert)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_list_split) EFL_START_TEST(eina_test_list_split)
{ {
Eina_List *left = NULL, *right = NULL ; Eina_List *left = NULL, *right = NULL ;
Eina_List *list = NULL; Eina_List *list = NULL;
@ -395,7 +395,7 @@ START_TEST(eina_test_list_split)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static int uicmp(const void *d1, const void *d2) static int uicmp(const void *d1, const void *d2)
{ {
@ -410,7 +410,7 @@ static int uicmp(const void *d1, const void *d2)
#define SHUFFLE_SZ 100 #define SHUFFLE_SZ 100
#define SHUFFLE_N 100000 #define SHUFFLE_N 100000
START_TEST(eina_test_shuffle) EFL_START_TEST(eina_test_shuffle)
{ {
double d; double d;
unsigned int *p; unsigned int *p;
@ -455,10 +455,10 @@ START_TEST(eina_test_shuffle)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#define DATA_SIZE 100 #define DATA_SIZE 100
START_TEST(eina_test_clone) EFL_START_TEST(eina_test_clone)
{ {
unsigned int i; unsigned int i;
unsigned int *d, *rd; unsigned int *d, *rd;
@ -504,9 +504,9 @@ START_TEST(eina_test_clone)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_move) EFL_START_TEST(eina_test_move)
{ {
Eina_List *list1 = NULL, *list2 = NULL; Eina_List *list1 = NULL, *list2 = NULL;
Eina_Bool ret; Eina_Bool ret;
@ -544,7 +544,7 @@ START_TEST(eina_test_move)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_list(TCase *tc) eina_test_list(TCase *tc)

View File

@ -81,7 +81,7 @@ _eina_test_lock_thread(void *data, Eina_Thread t)
return data; return data;
} }
START_TEST(eina_test_spinlock) EFL_START_TEST(eina_test_spinlock)
{ {
unsigned int i; unsigned int i;
@ -110,7 +110,7 @@ START_TEST(eina_test_spinlock)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_TLS key; static Eina_TLS key;
static int _eina_tls_free_count = 0; static int _eina_tls_free_count = 0;
@ -148,7 +148,7 @@ _eina_test_tls_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(eina_test_tls) EFL_START_TEST(eina_test_tls)
{ {
fail_if(!eina_init()); fail_if(!eina_init());
@ -169,7 +169,7 @@ START_TEST(eina_test_tls)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Barrier barrier; static Eina_Barrier barrier;
static Eina_Lock mtcond; static Eina_Lock mtcond;
@ -197,7 +197,7 @@ _eina_test_rwlock_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(eina_test_rwlock) EFL_START_TEST(eina_test_rwlock)
{ {
struct timespec ts, ts2; struct timespec ts, ts2;
long delay; long delay;
@ -253,7 +253,7 @@ START_TEST(eina_test_rwlock)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_locking(TCase *tc) eina_test_locking(TCase *tc)

View File

@ -99,7 +99,7 @@ _eina_test_log_safety(const Eina_Log_Domain *d, Eina_Log_Level level, const char
#endif #endif
} }
START_TEST(eina_log_macro) EFL_START_TEST(eina_log_macro)
{ {
struct log_ctx ctx; struct log_ctx ctx;
int oldlevel; int oldlevel;
@ -166,9 +166,9 @@ START_TEST(eina_log_macro)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_log_domains_macros) EFL_START_TEST(eina_log_domains_macros)
{ {
struct log_ctx ctx; struct log_ctx ctx;
int oldlevel; int oldlevel;
@ -243,9 +243,9 @@ START_TEST(eina_log_domains_macros)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_log_domains_registry) EFL_START_TEST(eina_log_domains_registry)
{ {
fail_if(!eina_init()); fail_if(!eina_init());
@ -263,9 +263,9 @@ START_TEST(eina_log_domains_registry)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_log_domains_slot_reuse) EFL_START_TEST(eina_log_domains_slot_reuse)
{ {
fail_if(!eina_init()); fail_if(!eina_init());
fail_if(!eina_threads_init()); fail_if(!eina_threads_init());
@ -300,9 +300,9 @@ START_TEST(eina_log_domains_slot_reuse)
eina_threads_shutdown(); eina_threads_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_log_level_indexes) EFL_START_TEST(eina_log_level_indexes)
{ {
struct log_ctx ctx; struct log_ctx ctx;
int maxlevel; int maxlevel;
@ -372,9 +372,9 @@ START_TEST(eina_log_level_indexes)
eina_threads_shutdown(); eina_threads_shutdown();
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_log_customize) EFL_START_TEST(eina_log_customize)
{ {
struct log_ctx ctx; struct log_ctx ctx;
int d; int d;
@ -446,9 +446,9 @@ START_TEST(eina_log_customize)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_log_level_name) EFL_START_TEST(eina_log_level_name)
{ {
char name[4]; char name[4];
@ -473,7 +473,7 @@ START_TEST(eina_log_level_name)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_log(TCase *tc) eina_test_log(TCase *tc)

View File

@ -104,7 +104,7 @@ _eina_test_magic_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const
ctx.expected_level = EINA_LOG_LEVEL_ERR ctx.expected_level = EINA_LOG_LEVEL_ERR
#endif #endif
START_TEST(eina_magic_simple) EFL_START_TEST(eina_magic_simple)
{ {
Eina_Magic_Struct *ems = NULL; Eina_Magic_Struct *ems = NULL;
struct log_ctx ctx; struct log_ctx ctx;
@ -191,7 +191,7 @@ START_TEST(eina_magic_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void eina_test_magic(TCase *tc) void eina_test_magic(TCase *tc)
{ {

View File

@ -26,14 +26,14 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_simple) EFL_START_TEST(eina_simple)
{ {
fail_if(eina_init() != 2); /* one init by test suite */ fail_if(eina_init() != 2); /* one init by test suite */
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
START_TEST(eina_cpu) EFL_START_TEST(eina_cpu)
{ {
fail_if(eina_init() != 2); /* one init by test suite */ fail_if(eina_init() != 2); /* one init by test suite */
@ -43,9 +43,9 @@ START_TEST(eina_cpu)
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
START_TEST(eina_hamster) EFL_START_TEST(eina_hamster)
{ {
fail_if(eina_init() != 2); /* one init by test suite */ fail_if(eina_init() != 2); /* one init by test suite */
@ -53,7 +53,7 @@ START_TEST(eina_hamster)
fail_if(eina_shutdown() != 1); fail_if(eina_shutdown() != 1);
} }
END_TEST EFL_END_TEST
void eina_test_main(TCase *tc) void eina_test_main(TCase *tc)
{ {

View File

@ -29,7 +29,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_matrix2) EFL_START_TEST(eina_matrix2)
{ {
Eina_Matrix2 m; Eina_Matrix2 m;
Eina_Matrix2 n; Eina_Matrix2 n;
@ -56,9 +56,9 @@ START_TEST(eina_matrix2)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_matrix2_operation) EFL_START_TEST(eina_matrix2_operation)
{ {
Eina_Matrix2 m1, m2, m3; Eina_Matrix2 m1, m2, m3;
double xx, xy, yx, yy; double xx, xy, yx, yy;
@ -119,9 +119,9 @@ START_TEST(eina_matrix2_operation)
!EINA_DBL_EQ(xy, 5)); !EINA_DBL_EQ(xy, 5));
} }
END_TEST EFL_END_TEST
START_TEST(eina_matrix4) EFL_START_TEST(eina_matrix4)
{ {
Eina_Matrix4 m; Eina_Matrix4 m;
Eina_Matrix4 n; Eina_Matrix4 n;
@ -194,9 +194,9 @@ START_TEST(eina_matrix4)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_matrix4_operation) EFL_START_TEST(eina_matrix4_operation)
{ {
double det; double det;
double l=5, r=4, b=4, t=3, dn=3, df=2; double l=5, r=4, b=4, t=3, dn=3, df=2;
@ -316,9 +316,9 @@ START_TEST(eina_matrix4_operation)
!EINA_DBL_EQ(wz, 5) || !EINA_DBL_EQ(wz, 5) ||
!EINA_DBL_EQ(ww, 1)); !EINA_DBL_EQ(ww, 1));
} }
END_TEST EFL_END_TEST
START_TEST(eina_matrix4_2_3) EFL_START_TEST(eina_matrix4_2_3)
{ {
Eina_Matrix4 m4; Eina_Matrix4 m4;
Eina_Matrix3 m3, m3b; Eina_Matrix3 m3, m3b;
@ -337,9 +337,9 @@ START_TEST(eina_matrix4_2_3)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_matrix3) EFL_START_TEST(eina_matrix3)
{ {
Eina_Bool ret; Eina_Bool ret;
Eina_Matrix3 m, m1, m2; Eina_Matrix3 m, m1, m2;
@ -387,7 +387,7 @@ START_TEST(eina_matrix3)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#define MATRIX3_CMP(XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ, AXX, AXY, AXZ, AYX, AYY, AYZ, AZX, AZY, AZZ) \ #define MATRIX3_CMP(XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ, AXX, AXY, AXZ, AYX, AYY, AYZ, AZX, AZY, AZZ) \
(EINA_DBL_EQ(XX, AXX) && \ (EINA_DBL_EQ(XX, AXX) && \
@ -400,7 +400,7 @@ END_TEST
EINA_DBL_EQ(ZY, AZY) && \ EINA_DBL_EQ(ZY, AZY) && \
EINA_DBL_EQ(ZZ, AZZ)) EINA_DBL_EQ(ZZ, AZZ))
START_TEST(eina_matrix3_operations) EFL_START_TEST(eina_matrix3_operations)
{ {
Eina_Matrix3 m1, m2, m3; Eina_Matrix3 m1, m2, m3;
double xx, xy, xz, double xx, xy, xz,
@ -653,9 +653,9 @@ START_TEST(eina_matrix3_operations)
fail_if (!EINA_DBL_EQ(xx, 6) || fail_if (!EINA_DBL_EQ(xx, 6) ||
!EINA_DBL_EQ(yy, 7)); !EINA_DBL_EQ(yy, 7));
} }
END_TEST EFL_END_TEST
START_TEST(eina_matrix3_f16p16) EFL_START_TEST(eina_matrix3_f16p16)
{ {
Eina_Matrix3_F16p16 m1; Eina_Matrix3_F16p16 m1;
Eina_Matrix3 m2; Eina_Matrix3 m2;
@ -717,9 +717,9 @@ START_TEST(eina_matrix3_f16p16)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_matrix3_map_transform) EFL_START_TEST(eina_matrix3_map_transform)
{ {
double x = 2, y = 3, x1, y1; double x = 2, y = 3, x1, y1;
Eina_Matrix3 m; Eina_Matrix3 m;
@ -781,9 +781,9 @@ START_TEST(eina_matrix3_map_transform)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_normal3_test) EFL_START_TEST(eina_normal3_test)
{ {
Eina_Matrix3 out; Eina_Matrix3 out;
Eina_Matrix4 m; Eina_Matrix4 m;
@ -828,7 +828,7 @@ START_TEST(eina_normal3_test)
); );
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_matrix(TCase *tc) eina_test_matrix(TCase *tc)

View File

@ -58,7 +58,7 @@ static void matrixsparse_check(Eina_Matrixsparse *matrix,
} }
} }
START_TEST(eina_test_simple) EFL_START_TEST(eina_test_simple)
{ {
Eina_Matrixsparse *matrix = NULL; Eina_Matrixsparse *matrix = NULL;
Eina_Matrixsparse_Cell *cell = NULL; Eina_Matrixsparse_Cell *cell = NULL;
@ -268,9 +268,9 @@ START_TEST(eina_test_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_resize) EFL_START_TEST(eina_test_resize)
{ {
Eina_Matrixsparse *matrix = NULL; Eina_Matrixsparse *matrix = NULL;
Eina_Bool r; Eina_Bool r;
@ -380,9 +380,9 @@ START_TEST(eina_test_resize)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_iterators) EFL_START_TEST(eina_test_iterators)
{ {
Eina_Matrixsparse *matrix = NULL; Eina_Matrixsparse *matrix = NULL;
Eina_Matrixsparse_Cell *cell = NULL; Eina_Matrixsparse_Cell *cell = NULL;
@ -479,7 +479,7 @@ START_TEST(eina_test_iterators)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_matrixsparse(TCase *tc) eina_test_matrixsparse(TCase *tc)

View File

@ -98,7 +98,7 @@ _eina_mempool_test(Eina_Mempool *mp,
} }
#ifdef EINA_BUILD_CHAINED_POOL #ifdef EINA_BUILD_CHAINED_POOL
START_TEST(eina_mempool_chained_mempool) EFL_START_TEST(eina_mempool_chained_mempool)
{ {
Eina_Mempool *mp; Eina_Mempool *mp;
@ -109,11 +109,11 @@ START_TEST(eina_mempool_chained_mempool)
_mempool_shutdown(); _mempool_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
#ifdef EINA_BUILD_PASS_THROUGH #ifdef EINA_BUILD_PASS_THROUGH
START_TEST(eina_mempool_pass_through) EFL_START_TEST(eina_mempool_pass_through)
{ {
Eina_Mempool *mp; Eina_Mempool *mp;
@ -124,7 +124,7 @@ START_TEST(eina_mempool_pass_through)
_mempool_shutdown(); _mempool_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
void void

View File

@ -45,7 +45,7 @@ static Eina_Bool list_cb(Eina_Module *m, void *data EINA_UNUSED)
} }
START_TEST(eina_module_load_unload) EFL_START_TEST(eina_module_load_unload)
{ {
Eina_Array *_modules; Eina_Array *_modules;
unsigned int i; unsigned int i;
@ -67,9 +67,9 @@ START_TEST(eina_module_load_unload)
eina_array_free(_modules); eina_array_free(_modules);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_module_find_test) EFL_START_TEST(eina_module_find_test)
{ {
Eina_Array *_modules; Eina_Array *_modules;
@ -83,7 +83,7 @@ START_TEST(eina_module_find_test)
fail_if(eina_module_find(_modules, NULL) != NULL); fail_if(eina_module_find(_modules, NULL) != NULL);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_module(TCase *tc) eina_test_module(TCase *tc)

View File

@ -9,7 +9,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_quad_simple) EFL_START_TEST(eina_quad_simple)
{ {
Eina_Rectangle r1; Eina_Rectangle r1;
Eina_Quad r2; Eina_Quad r2;
@ -68,7 +68,7 @@ START_TEST(eina_quad_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_quad(TCase *tc) eina_test_quad(TCase *tc)

View File

@ -55,7 +55,7 @@ _eina_quadtree_rectangle_hort(const void *object, size_t middle)
return EINA_QUAD_BOTH; return EINA_QUAD_BOTH;
} }
START_TEST(eina_quadtree_collision) EFL_START_TEST(eina_quadtree_collision)
{ {
struct struct
{ {
@ -187,7 +187,7 @@ START_TEST(eina_quadtree_collision)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_quadtree(TCase *tc) eina_test_quadtree(TCase *tc)

View File

@ -92,7 +92,7 @@ eina_quaternion_f16p16_cmp(const Eina_Quaternion_F16p16 *a, const Eina_Quaternio
return EINA_FALSE; return EINA_FALSE;
} }
START_TEST(eina_test_quaternion_norm) EFL_START_TEST(eina_test_quaternion_norm)
{ {
static const Eina_Quaternion q = { 1, 3, 4, 5 }; static const Eina_Quaternion q = { 1, 3, 4, 5 };
double result = eina_quaternion_norm(&q); double result = eina_quaternion_norm(&q);
@ -103,9 +103,9 @@ START_TEST(eina_test_quaternion_norm)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_conjugate) EFL_START_TEST(eina_test_quaternion_conjugate)
{ {
static const Eina_Quaternion q1 = { 1, -1, -1, 3 }, q2 = { 1, 3, 4, 3 }; static const Eina_Quaternion q1 = { 1, -1, -1, 3 }, q2 = { 1, 3, 4, 3 };
static const Eina_Quaternion r1 = { -1, 1, 1, 3 }, r2 = { -1, -3, -4, 3 }; static const Eina_Quaternion r1 = { -1, 1, 1, 3 }, r2 = { -1, -3, -4, 3 };
@ -121,9 +121,9 @@ START_TEST(eina_test_quaternion_conjugate)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_matrix) EFL_START_TEST(eina_test_quaternion_matrix)
{ {
Eina_Quaternion q = { 7, 9, 5, 1 }; Eina_Quaternion q = { 7, 9, 5, 1 };
Eina_Quaternion q1 = {7, 9, 5, -1 }; Eina_Quaternion q1 = {7, 9, 5, -1 };
@ -145,9 +145,9 @@ START_TEST(eina_test_quaternion_matrix)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_op) EFL_START_TEST(eina_test_quaternion_op)
{ {
Eina_Quaternion q = { 7, 9, 5, 1 }; Eina_Quaternion q = { 7, 9, 5, 1 };
Eina_Quaternion z = { 0, 0, 0, 0 }; Eina_Quaternion z = { 0, 0, 0, 0 };
@ -162,9 +162,9 @@ START_TEST(eina_test_quaternion_op)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_f16p16) EFL_START_TEST(eina_test_quaternion_f16p16)
{ {
Eina_F16p16 x = 65536, y = 65536; Eina_F16p16 x = 65536, y = 65536;
Eina_F16p16 z = 65536, w = 65536; Eina_F16p16 z = 65536, w = 65536;
@ -219,9 +219,9 @@ START_TEST(eina_test_quaternion_f16p16)
t.z != 131072 || t.z != 131072 ||
t.w != 0); t.w != 0);
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_dot) EFL_START_TEST(eina_test_quaternion_dot)
{ {
Eina_Quaternion q = {1, 3, 4, 5}; Eina_Quaternion q = {1, 3, 4, 5};
Eina_Quaternion r = {7, 9, 5, 1}; Eina_Quaternion r = {7, 9, 5, 1};
@ -234,9 +234,9 @@ START_TEST(eina_test_quaternion_dot)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_scale) EFL_START_TEST(eina_test_quaternion_scale)
{ {
Eina_Quaternion q = {1, 3, 4, 5}; Eina_Quaternion q = {1, 3, 4, 5};
double scale = 2; double scale = 2;
@ -249,9 +249,9 @@ START_TEST(eina_test_quaternion_scale)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_set) EFL_START_TEST(eina_test_quaternion_set)
{ {
Eina_Quaternion q, r = {1, 3, 4, 5}; Eina_Quaternion q, r = {1, 3, 4, 5};
@ -263,9 +263,9 @@ START_TEST(eina_test_quaternion_set)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_mul) EFL_START_TEST(eina_test_quaternion_mul)
{ {
Eina_Quaternion p = {1, 3, 4, 5}; Eina_Quaternion p = {1, 3, 4, 5};
Eina_Quaternion q = {7, 9, 5, 1}; Eina_Quaternion q = {7, 9, 5, 1};
@ -278,9 +278,9 @@ START_TEST(eina_test_quaternion_mul)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_matrix_recompose) EFL_START_TEST(eina_test_matrix_recompose)
{ {
const Eina_Point_3D translation = { 0, 0, 0 }; const Eina_Point_3D translation = { 0, 0, 0 };
const Eina_Point_3D scale = { 1, 1, 1 }; const Eina_Point_3D scale = { 1, 1, 1 };
@ -302,9 +302,9 @@ START_TEST(eina_test_matrix_recompose)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_normalized) EFL_START_TEST(eina_test_quaternion_normalized)
{ {
Eina_Quaternion p = {1, 1, 1, 1}; Eina_Quaternion p = {1, 1, 1, 1};
Eina_Quaternion res, q = {0.5, 0.5, 0.5, 0.5}; Eina_Quaternion res, q = {0.5, 0.5, 0.5, 0.5};
@ -316,10 +316,10 @@ START_TEST(eina_test_quaternion_normalized)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#if 0 #if 0
START_TEST(eina_test_matrix_quaternion) EFL_START_TEST(eina_test_matrix_quaternion)
{ {
const Eina_Point_3D rt = { -2, -3, 0 }; const Eina_Point_3D rt = { -2, -3, 0 };
const Eina_Point_3D rsc = { 4, 5, 1 }; const Eina_Point_3D rsc = { 4, 5, 1 };
@ -364,10 +364,10 @@ START_TEST(eina_test_matrix_quaternion)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
START_TEST(eina_test_quaternion_f16p16_lerp) EFL_START_TEST(eina_test_quaternion_f16p16_lerp)
{ {
Eina_Quaternion_F16p16 r, p = {0, 0, 0, 0}; Eina_Quaternion_F16p16 r, p = {0, 0, 0, 0};
Eina_Quaternion_F16p16 q = {65536, 65536, 65536, 0}; Eina_Quaternion_F16p16 q = {65536, 65536, 65536, 0};
@ -393,9 +393,9 @@ START_TEST(eina_test_quaternion_f16p16_lerp)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_lerp) EFL_START_TEST(eina_test_quaternion_lerp)
{ {
Eina_Quaternion rp = {0, 0, 1, 0}; Eina_Quaternion rp = {0, 0, 1, 0};
Eina_Quaternion rq = {1, 0, 0, 0}; Eina_Quaternion rq = {1, 0, 0, 0};
@ -429,9 +429,9 @@ START_TEST(eina_test_quaternion_lerp)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_f16p16_rotate_matrix) EFL_START_TEST(eina_test_quaternion_f16p16_rotate_matrix)
{ {
Eina_Quaternion_F16p16 q = {65536, 65536, 65536, 0}; Eina_Quaternion_F16p16 q = {65536, 65536, 65536, 0};
Eina_Point_3D_F16p16 r = { 65536, 65536, 65536 }; Eina_Point_3D_F16p16 r = { 65536, 65536, 65536 };
@ -452,9 +452,9 @@ START_TEST(eina_test_quaternion_f16p16_rotate_matrix)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_rotate) EFL_START_TEST(eina_test_quaternion_rotate)
{ {
Eina_Point_3D r = { 3, 3, 3 }; Eina_Point_3D r = { 3, 3, 3 };
Eina_Point_3D c = { 0, 0, 0}, res = {3.0, 3.0, 3.0}; Eina_Point_3D c = { 0, 0, 0}, res = {3.0, 3.0, 3.0};
@ -472,9 +472,9 @@ START_TEST(eina_test_quaternion_rotate)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_quaternion_operations) EFL_START_TEST(eina_test_quaternion_operations)
{ {
Eina_Quaternion in = {2, 2, 1, 1}; Eina_Quaternion in = {2, 2, 1, 1};
Eina_Quaternion in2 = {5, 5, 5, 5}; Eina_Quaternion in2 = {5, 5, 5, 5};
@ -537,7 +537,7 @@ START_TEST(eina_test_quaternion_operations)
); );
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_quaternion(TCase *tc) eina_test_quaternion(TCase *tc)

View File

@ -298,7 +298,7 @@ _eina_rbtree_int_new(int value)
return it; return it;
} }
START_TEST(eina_rbtree_insertion) EFL_START_TEST(eina_rbtree_insertion)
{ {
Eina_Rbtree_Int *root = NULL; Eina_Rbtree_Int *root = NULL;
Eina_Rbtree_Int *item; Eina_Rbtree_Int *item;
@ -320,9 +320,9 @@ START_TEST(eina_rbtree_insertion)
EINA_RBTREE_CMP_NODE_CB( EINA_RBTREE_CMP_NODE_CB(
eina_rbtree_int_cmp)); eina_rbtree_int_cmp));
} }
END_TEST EFL_END_TEST
START_TEST(eina_rbtree_lookup) EFL_START_TEST(eina_rbtree_lookup)
{ {
Eina_Rbtree_Int *root = NULL; Eina_Rbtree_Int *root = NULL;
Eina_Rbtree_Int *item; Eina_Rbtree_Int *item;
@ -358,9 +358,9 @@ START_TEST(eina_rbtree_lookup)
NULL); NULL);
fail_if(item); fail_if(item);
} }
END_TEST EFL_END_TEST
START_TEST(eina_rbtree_remove) EFL_START_TEST(eina_rbtree_remove)
{ {
Eina_Rbtree_Int *root = NULL; Eina_Rbtree_Int *root = NULL;
Eina_Rbtree_Int *item; Eina_Rbtree_Int *item;
@ -405,9 +405,9 @@ START_TEST(eina_rbtree_remove)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_rbtree_simple_remove) EFL_START_TEST(eina_rbtree_simple_remove)
{ {
Eina_Rbtree *root = NULL; Eina_Rbtree *root = NULL;
Eina_Rbtree *lookup; Eina_Rbtree *lookup;
@ -454,9 +454,9 @@ START_TEST(eina_rbtree_simple_remove)
_eina_rbtree_black_height(root, EINA_RBTREE_CMP_NODE_CB(eina_rbtree_int_cmp)); _eina_rbtree_black_height(root, EINA_RBTREE_CMP_NODE_CB(eina_rbtree_int_cmp));
} }
END_TEST EFL_END_TEST
START_TEST(eina_rbtree_simple_remove2) EFL_START_TEST(eina_rbtree_simple_remove2)
{ {
Eina_Rbtree *root = NULL; Eina_Rbtree *root = NULL;
Eina_Rbtree *lookup; Eina_Rbtree *lookup;
@ -518,9 +518,9 @@ START_TEST(eina_rbtree_simple_remove2)
_eina_rbtree_black_height(root, EINA_RBTREE_CMP_NODE_CB(eina_rbtree_int_cmp)); _eina_rbtree_black_height(root, EINA_RBTREE_CMP_NODE_CB(eina_rbtree_int_cmp));
} }
END_TEST EFL_END_TEST
START_TEST(eina_rbtree_simple_remove3) EFL_START_TEST(eina_rbtree_simple_remove3)
{ {
Eina_Rbtree *root = NULL; Eina_Rbtree *root = NULL;
Eina_Rbtree *lookup; Eina_Rbtree *lookup;
@ -612,9 +612,9 @@ START_TEST(eina_rbtree_simple_remove3)
_eina_rbtree_black_height(root, EINA_RBTREE_CMP_NODE_CB(eina_rbtree_int_cmp)); _eina_rbtree_black_height(root, EINA_RBTREE_CMP_NODE_CB(eina_rbtree_int_cmp));
} }
END_TEST EFL_END_TEST
START_TEST(eina_rbtree_fuzzy) EFL_START_TEST(eina_rbtree_fuzzy)
{ {
Eina_Rbtree_Int *child; Eina_Rbtree_Int *child;
Eina_Rbtree *root = NULL; Eina_Rbtree *root = NULL;
@ -674,7 +674,7 @@ START_TEST(eina_rbtree_fuzzy)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_rbtree(TCase *tc) eina_test_rbtree(TCase *tc)

View File

@ -26,7 +26,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_rectangle_pool) EFL_START_TEST(eina_rectangle_pool)
{ {
Eina_Rectangle_Pool *pool; Eina_Rectangle_Pool *pool;
Eina_Rectangle *rects[8][8]; Eina_Rectangle *rects[8][8];
@ -71,9 +71,9 @@ START_TEST(eina_rectangle_pool)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_rectangle_pool_skyline) EFL_START_TEST(eina_rectangle_pool_skyline)
{ {
Eina_Rectangle_Pool *pool; Eina_Rectangle_Pool *pool;
Eina_Rectangle *rects[8][8]; Eina_Rectangle *rects[8][8];
@ -118,9 +118,9 @@ START_TEST(eina_rectangle_pool_skyline)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_rectangle_union_intersect) EFL_START_TEST(eina_rectangle_union_intersect)
{ {
Eina_Rectangle r1, r2, r3, r4, r5, r6, r7, r8, rd; Eina_Rectangle r1, r2, r3, r4, r5, r6, r7, r8, rd;
@ -194,9 +194,9 @@ START_TEST(eina_rectangle_union_intersect)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_rectangle_position_test) EFL_START_TEST(eina_rectangle_position_test)
{ {
Eina_Rectangle middle, top, down, right, left; Eina_Rectangle middle, top, down, right, left;
EINA_RECTANGLE_SET(&middle, -1, -1, 2.0, 2.0); EINA_RECTANGLE_SET(&middle, -1, -1, 2.0, 2.0);
@ -211,7 +211,7 @@ START_TEST(eina_rectangle_position_test)
ck_assert_int_eq(eina_rectangle_outside_position(&middle, &left), EINA_RECTANGLE_OUTSIDE_LEFT) ; ck_assert_int_eq(eina_rectangle_outside_position(&middle, &left), EINA_RECTANGLE_OUTSIDE_LEFT) ;
} }
END_TEST EFL_END_TEST
void void
eina_test_rectangle(TCase *tc) eina_test_rectangle(TCase *tc)

View File

@ -30,7 +30,7 @@ static int test_array[1024] = { 0, 1, 2, 3, 4, 5, 6, 7 };
static int test_array2[64] = { 8, 9, 10, 11, 12, 13, 14 }; static int test_array2[64] = { 8, 9, 10, 11, 12, 13, 14 };
static const void *pointers[1088] = { NULL }; static const void *pointers[1088] = { NULL };
START_TEST(eina_test_reusable) EFL_START_TEST(eina_test_reusable)
{ {
unsigned int i; unsigned int i;
@ -70,7 +70,7 @@ START_TEST(eina_test_reusable)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Barrier b; static Eina_Barrier b;
@ -111,7 +111,7 @@ _thread2(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(eina_test_threading) EFL_START_TEST(eina_test_threading)
{ {
Eina_Thread t1, t2; Eina_Thread t1, t2;
unsigned int i; unsigned int i;
@ -149,9 +149,9 @@ START_TEST(eina_test_threading)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_lowestbit) EFL_START_TEST(eina_test_lowestbit)
{ {
unsigned int i; unsigned int i;
@ -177,7 +177,7 @@ START_TEST(eina_test_lowestbit)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_safepointer(TCase *tc) eina_test_safepointer(TCase *tc)

View File

@ -52,7 +52,7 @@ _thread_run(void *arg EINA_UNUSED, Eina_Thread tid EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(eina_test_sched_prio_drop) EFL_START_TEST(eina_test_sched_prio_drop)
{ {
int niceval = getpriority(PRIO_PROCESS, 0); int niceval = getpriority(PRIO_PROCESS, 0);
int niceval2; int niceval2;
@ -74,13 +74,13 @@ START_TEST(eina_test_sched_prio_drop)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#else #else
START_TEST(eina_test_sched_prio_drop) EFL_START_TEST(eina_test_sched_prio_drop)
{ {
fprintf(stderr, "scheduler priority is not supported by your configuration.\n"); fprintf(stderr, "scheduler priority is not supported by your configuration.\n");
} }
END_TEST EFL_END_TEST
#endif #endif
void void

View File

@ -49,7 +49,7 @@ static const char *get_file_full_path(const char *filename)
return NULL; return NULL;
} }
START_TEST(eina_simple_xml_parser_node_dump) EFL_START_TEST(eina_simple_xml_parser_node_dump)
{ {
FILE *f; FILE *f;
@ -88,9 +88,9 @@ START_TEST(eina_simple_xml_parser_node_dump)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_simple_xml_parser_null_node_dump) EFL_START_TEST(eina_simple_xml_parser_null_node_dump)
{ {
eina_init(); eina_init();
@ -99,9 +99,9 @@ START_TEST(eina_simple_xml_parser_null_node_dump)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_simple_xml_parser_childs_count) EFL_START_TEST(eina_simple_xml_parser_childs_count)
{ {
eina_init(); eina_init();
@ -116,7 +116,7 @@ START_TEST(eina_simple_xml_parser_childs_count)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
enum simple_xml_parser_current_state enum simple_xml_parser_current_state
{ {
@ -221,7 +221,7 @@ eina_simple_xml_parser_parse_with_custom_callback_tag_cb(void *data,
return EINA_TRUE; return EINA_TRUE;
} }
START_TEST(eina_simple_xml_parser_parse_with_custom_callback) EFL_START_TEST(eina_simple_xml_parser_parse_with_custom_callback)
{ {
FILE *f; FILE *f;
@ -263,7 +263,7 @@ START_TEST(eina_simple_xml_parser_parse_with_custom_callback)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_simple_xml_parser(TCase *tc) eina_test_simple_xml_parser(TCase *tc)

View File

@ -26,7 +26,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(eina_test_slice_init) EFL_START_TEST(eina_test_slice_init)
{ {
Eina_Rw_Slice a = EINA_SLICE_STR_LITERAL("hello world"); Eina_Rw_Slice a = EINA_SLICE_STR_LITERAL("hello world");
char buf[1024] = ""; char buf[1024] = "";
@ -48,9 +48,9 @@ START_TEST(eina_test_slice_init)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_slice_ro) EFL_START_TEST(eina_test_slice_ro)
{ {
Eina_Slice slice = EINA_SLICE_STR_LITERAL("hi there"); Eina_Slice slice = EINA_SLICE_STR_LITERAL("hi there");
Eina_Slice a, needle; Eina_Slice a, needle;
@ -132,9 +132,9 @@ START_TEST(eina_test_slice_ro)
r = eina_slice_endswith(slice, (Eina_Slice)EINA_SLICE_STR_LITERAL("")); r = eina_slice_endswith(slice, (Eina_Slice)EINA_SLICE_STR_LITERAL(""));
fail_unless(r == EINA_FALSE); fail_unless(r == EINA_FALSE);
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_slice_rw) EFL_START_TEST(eina_test_slice_rw)
{ {
uint8_t buf[] = "hi there"; uint8_t buf[] = "hi there";
Eina_Rw_Slice rw_slice = EINA_SLICE_ARRAY(buf); Eina_Rw_Slice rw_slice = EINA_SLICE_ARRAY(buf);
@ -230,9 +230,9 @@ START_TEST(eina_test_slice_rw)
r = eina_rw_slice_endswith(rw_slice, (Eina_Slice)EINA_SLICE_STR_LITERAL("")); r = eina_rw_slice_endswith(rw_slice, (Eina_Slice)EINA_SLICE_STR_LITERAL(""));
fail_unless(r == EINA_FALSE); fail_unless(r == EINA_FALSE);
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_slice_print) EFL_START_TEST(eina_test_slice_print)
{ {
char buf[] = "Hello World"; char buf[] = "Hello World";
Eina_Slice slice = {.len = strlen("Hello"), .mem = buf}; Eina_Slice slice = {.len = strlen("Hello"), .mem = buf};
@ -245,9 +245,9 @@ START_TEST(eina_test_slice_print)
snprintf(a, sizeof(a), EINA_SLICE_STR_FMT, EINA_SLICE_STR_PRINT(slice)); snprintf(a, sizeof(a), EINA_SLICE_STR_FMT, EINA_SLICE_STR_PRINT(slice));
fail_unless(strcmp(a, "Hello") == 0); fail_unless(strcmp(a, "Hello") == 0);
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_slice_find) EFL_START_TEST(eina_test_slice_find)
{ {
Eina_Slice slice = EINA_SLICE_STR_LITERAL("abcdef"); Eina_Slice slice = EINA_SLICE_STR_LITERAL("abcdef");
const char *p; const char *p;
@ -298,7 +298,7 @@ START_TEST(eina_test_slice_find)
p = eina_slice_find(slice, (Eina_Slice)EINA_SLICE_STR_LITERAL("")); p = eina_slice_find(slice, (Eina_Slice)EINA_SLICE_STR_LITERAL(""));
fail_unless(p == NULL); fail_unless(p == NULL);
} }
END_TEST EFL_END_TEST
void void
eina_test_slice(TCase *tc) eina_test_slice(TCase *tc)

View File

@ -15,7 +15,7 @@ _slstr_copy(void)
return eina_slstr_copy_new(local); return eina_slstr_copy_new(local);
} }
START_TEST(slstr_copy) EFL_START_TEST(slstr_copy)
{ {
Eina_Slstr *str; Eina_Slstr *str;
@ -26,7 +26,7 @@ START_TEST(slstr_copy)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Slstr * static Eina_Slstr *
_slstr_steal(void) _slstr_steal(void)
@ -36,7 +36,7 @@ _slstr_steal(void)
return eina_slstr_copy_new(local); return eina_slstr_copy_new(local);
} }
START_TEST(slstr_steal) EFL_START_TEST(slstr_steal)
{ {
Eina_Slstr *str; Eina_Slstr *str;
@ -47,7 +47,7 @@ START_TEST(slstr_steal)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Slstr * static Eina_Slstr *
_slstr_stringshare(void) _slstr_stringshare(void)
@ -57,7 +57,7 @@ _slstr_stringshare(void)
return eina_slstr_stringshare_new(str); return eina_slstr_stringshare_new(str);
} }
START_TEST(slstr_stringshare) EFL_START_TEST(slstr_stringshare)
{ {
Eina_Stringshare *ss; Eina_Stringshare *ss;
Eina_Slstr *str; Eina_Slstr *str;
@ -70,7 +70,7 @@ START_TEST(slstr_stringshare)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Slstr * static Eina_Slstr *
_slstr_tmpstr(void) _slstr_tmpstr(void)
@ -80,7 +80,7 @@ _slstr_tmpstr(void)
return eina_slstr_tmpstr_new(str); return eina_slstr_tmpstr_new(str);
} }
START_TEST(slstr_tmpstr) EFL_START_TEST(slstr_tmpstr)
{ {
Eina_Slstr *str; Eina_Slstr *str;
@ -91,7 +91,7 @@ START_TEST(slstr_tmpstr)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Slstr * static Eina_Slstr *
_slstr_strbuf(void) _slstr_strbuf(void)
@ -105,7 +105,7 @@ _slstr_strbuf(void)
return eina_slstr_strbuf_new(str); return eina_slstr_strbuf_new(str);
} }
START_TEST(slstr_strbuf) EFL_START_TEST(slstr_strbuf)
{ {
Eina_Slstr *str; Eina_Slstr *str;
@ -116,7 +116,7 @@ START_TEST(slstr_strbuf)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static Eina_Slstr * static Eina_Slstr *
_slstr_printf(int val) _slstr_printf(int val)
@ -124,7 +124,7 @@ _slstr_printf(int val)
return eina_slstr_printf("Hello %s %d", "world", val); return eina_slstr_printf("Hello %s %d", "world", val);
} }
START_TEST(slstr_slstr_printf) EFL_START_TEST(slstr_slstr_printf)
{ {
Eina_Slstr *str; Eina_Slstr *str;
@ -135,7 +135,7 @@ START_TEST(slstr_slstr_printf)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static void static void
_many_do(void) _many_do(void)
@ -154,7 +154,7 @@ _many_do(void)
} }
} }
START_TEST(slstr_many) EFL_START_TEST(slstr_many)
{ {
eina_init(); eina_init();
@ -164,7 +164,7 @@ START_TEST(slstr_many)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static void * static void *
_thread_cb(void *data EINA_UNUSED, Eina_Thread th EINA_UNUSED) _thread_cb(void *data EINA_UNUSED, Eina_Thread th EINA_UNUSED)
@ -174,7 +174,7 @@ _thread_cb(void *data EINA_UNUSED, Eina_Thread th EINA_UNUSED)
return NULL; return NULL;
} }
START_TEST(slstr_thread) EFL_START_TEST(slstr_thread)
{ {
const int threads = 8; const int threads = 8;
Eina_Thread th[threads]; Eina_Thread th[threads];
@ -192,7 +192,7 @@ START_TEST(slstr_thread)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_slstr(TCase *tc) eina_test_slstr(TCase *tc)

View File

@ -26,7 +26,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(str_simple) EFL_START_TEST(str_simple)
{ {
size_t i; size_t i;
char *str, *ret; char *str, *ret;
@ -117,9 +117,9 @@ START_TEST(str_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(str_split) EFL_START_TEST(str_split)
{ {
char **result; char **result;
unsigned int elements; unsigned int elements;
@ -250,9 +250,9 @@ START_TEST(str_split)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(str_lcat_lcpy) EFL_START_TEST(str_lcat_lcpy)
{ {
char dst[9]; char dst[9];
size_t ret; size_t ret;
@ -292,9 +292,9 @@ START_TEST(str_lcat_lcpy)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(str_join_len) EFL_START_TEST(str_join_len)
{ {
char dst[9]; char dst[9];
size_t ret; size_t ret;
@ -322,9 +322,9 @@ START_TEST(str_join_len)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(str_memdup) EFL_START_TEST(str_memdup)
{ {
struct temp { struct temp {
int i; int i;
@ -353,9 +353,9 @@ START_TEST(str_memdup)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(str_strftime) EFL_START_TEST(str_strftime)
{ {
time_t curr_time; time_t curr_time;
struct tm *info; struct tm *info;
@ -371,10 +371,10 @@ START_TEST(str_strftime)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#ifdef HAVE_ICONV #ifdef HAVE_ICONV
START_TEST(str_convert) EFL_START_TEST(str_convert)
{ {
char *utf8 = "\xc3\xa9\xc3\xa1\xc3\xba\xc3\xad\xc3\xa8\xc3\xa0\xc3\xb9\xc3\xac\xc3\xab\xc3\xa4\xc3\xbc\xc3\xaf"; char *utf8 = "\xc3\xa9\xc3\xa1\xc3\xba\xc3\xad\xc3\xa8\xc3\xa0\xc3\xb9\xc3\xac\xc3\xab\xc3\xa4\xc3\xbc\xc3\xaf";
char *utf16 = "\xe9\x0\xe1\x0\xfa\x0\xed\x0\xe8\x0\xe0\x0\xf9\x0\xec\x0\xeb\x0\xe4\x0\xfc\x0\xef\x0"; char *utf16 = "\xe9\x0\xe1\x0\xfa\x0\xed\x0\xe8\x0\xe0\x0\xf9\x0\xec\x0\xeb\x0\xe4\x0\xfc\x0\xef\x0";
@ -400,7 +400,7 @@ START_TEST(str_convert)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
#endif #endif
void void

View File

@ -26,7 +26,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(strbuf_simple) EFL_START_TEST(strbuf_simple)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
char *txt; char *txt;
@ -77,9 +77,9 @@ START_TEST(strbuf_simple)
eina_shutdown(); eina_shutdown();
#undef TEST_TEXT #undef TEST_TEXT
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_manage_simple) EFL_START_TEST(strbuf_manage_simple)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
char *txt; char *txt;
@ -129,9 +129,9 @@ START_TEST(strbuf_manage_simple)
eina_shutdown(); eina_shutdown();
#undef TEST_TEXT #undef TEST_TEXT
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_remove) EFL_START_TEST(strbuf_remove)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
@ -173,9 +173,9 @@ START_TEST(strbuf_remove)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_append) EFL_START_TEST(strbuf_append)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
Eina_Slice ro_slice = EINA_SLICE_STR_LITERAL("somethingELSE"); Eina_Slice ro_slice = EINA_SLICE_STR_LITERAL("somethingELSE");
@ -226,9 +226,9 @@ START_TEST(strbuf_append)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_insert) EFL_START_TEST(strbuf_insert)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
Eina_Slice ro_slice = EINA_SLICE_STR_LITERAL("EINA"); Eina_Slice ro_slice = EINA_SLICE_STR_LITERAL("EINA");
@ -280,9 +280,9 @@ START_TEST(strbuf_insert)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_replace) EFL_START_TEST(strbuf_replace)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
@ -328,9 +328,9 @@ START_TEST(strbuf_replace)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_realloc) EFL_START_TEST(strbuf_realloc)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
char pattern[1024 * 16]; char pattern[1024 * 16];
@ -395,9 +395,9 @@ START_TEST(strbuf_realloc)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_append_realloc) EFL_START_TEST(strbuf_append_realloc)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
const size_t runs = 40960; const size_t runs = 40960;
@ -430,9 +430,9 @@ START_TEST(strbuf_append_realloc)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_prepend_realloc) EFL_START_TEST(strbuf_prepend_realloc)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
const size_t runs = 40960; const size_t runs = 40960;
@ -465,9 +465,9 @@ START_TEST(strbuf_prepend_realloc)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_trim) EFL_START_TEST(strbuf_trim)
{ {
Eina_Strbuf* buf; Eina_Strbuf* buf;
const char *str; const char *str;
@ -512,9 +512,9 @@ START_TEST(strbuf_trim)
eina_strbuf_free(buf); eina_strbuf_free(buf);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_tolower) EFL_START_TEST(strbuf_tolower)
{ {
Eina_Strbuf* buf; Eina_Strbuf* buf;
const char *str; const char *str;
@ -540,9 +540,9 @@ START_TEST(strbuf_tolower)
eina_strbuf_free(buf); eina_strbuf_free(buf);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_substr_get) EFL_START_TEST(strbuf_substr_get)
{ {
Eina_Strbuf* buf, *substr; Eina_Strbuf* buf, *substr;
const char *str; const char *str;
@ -585,7 +585,7 @@ START_TEST(strbuf_substr_get)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
static const char* static const char*
test_prepend_vprintf(Eina_Strbuf *buf, char *fmt, va_list ap) test_prepend_vprintf(Eina_Strbuf *buf, char *fmt, va_list ap)
@ -609,7 +609,7 @@ test_prepend(Eina_Strbuf *buf, ...)
return str; return str;
} }
START_TEST(strbuf_prepend_print) EFL_START_TEST(strbuf_prepend_print)
{ {
Eina_Bool ret; Eina_Bool ret;
Eina_Strbuf* buf; Eina_Strbuf* buf;
@ -642,9 +642,9 @@ START_TEST(strbuf_prepend_print)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_release_test) EFL_START_TEST(strbuf_release_test)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
char *string; char *string;
@ -656,9 +656,9 @@ START_TEST(strbuf_release_test)
string = eina_strbuf_release(buf); string = eina_strbuf_release(buf);
ck_assert_str_eq(string, "strbuf_release_test"); ck_assert_str_eq(string, "strbuf_release_test");
} }
END_TEST EFL_END_TEST
START_TEST(strbuf_strftime_test) EFL_START_TEST(strbuf_strftime_test)
{ {
Eina_Strbuf *buf; Eina_Strbuf *buf;
time_t curr_time; time_t curr_time;
@ -687,7 +687,7 @@ START_TEST(strbuf_strftime_test)
eina_strbuf_free(buf); eina_strbuf_free(buf);
} }
END_TEST EFL_END_TEST
void void
eina_test_strbuf(TCase *tc) eina_test_strbuf(TCase *tc)

View File

@ -53,7 +53,7 @@ check_iterator(Eina_Iterator *it, struct test_rect *cur_test)
fail_if(i == 0); fail_if(i == 0);
} }
START_TEST(eina_test_tile_grid_slicer_iterator) EFL_START_TEST(eina_test_tile_grid_slicer_iterator)
{ {
Eina_Iterator *it; Eina_Iterator *it;
struct test_rect *cur_test; struct test_rect *cur_test;
@ -126,9 +126,9 @@ START_TEST(eina_test_tile_grid_slicer_iterator)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_tiler_all) EFL_START_TEST(eina_test_tiler_all)
{ {
Eina_Tiler *tl; Eina_Tiler *tl;
Eina_Iterator *it; Eina_Iterator *it;
@ -185,9 +185,9 @@ START_TEST(eina_test_tiler_all)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_tiler_stable) EFL_START_TEST(eina_test_tiler_stable)
{ {
Eina_Tiler *tl; Eina_Tiler *tl;
Eina_Rectangle *rp; Eina_Rectangle *rp;
@ -235,9 +235,9 @@ START_TEST(eina_test_tiler_stable)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_tiler_calculation) EFL_START_TEST(eina_test_tiler_calculation)
{ {
Eina_Tiler *t1, *t2, *t; Eina_Tiler *t1, *t2, *t;
Eina_Iterator *itr; Eina_Iterator *itr;
@ -351,9 +351,9 @@ START_TEST(eina_test_tiler_calculation)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_test_tiler_size) EFL_START_TEST(eina_test_tiler_size)
{ {
Eina_Rectangle *r; Eina_Rectangle *r;
Eina_Iterator *it; Eina_Iterator *it;
@ -381,7 +381,7 @@ START_TEST(eina_test_tiler_size)
eina_tiler_free(t); eina_tiler_free(t);
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_tiler(TCase *tc) eina_test_tiler(TCase *tc)

View File

@ -25,7 +25,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(tmpstr_simple) EFL_START_TEST(tmpstr_simple)
{ {
eina_init(); eina_init();
@ -59,9 +59,9 @@ START_TEST(tmpstr_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(tmpstr_simple_len) EFL_START_TEST(tmpstr_simple_len)
{ {
eina_init(); eina_init();
@ -95,9 +95,9 @@ START_TEST(tmpstr_simple_len)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(tmpstr_manage) EFL_START_TEST(tmpstr_manage)
{ {
eina_init(); eina_init();
@ -109,9 +109,9 @@ START_TEST(tmpstr_manage)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(tmpstr_manage_len) EFL_START_TEST(tmpstr_manage_len)
{ {
eina_init(); eina_init();
@ -123,9 +123,9 @@ START_TEST(tmpstr_manage_len)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(tmpstr_len) EFL_START_TEST(tmpstr_len)
{ {
eina_init(); eina_init();
@ -145,7 +145,7 @@ START_TEST(tmpstr_len)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_tmpstr(TCase *tc) eina_test_tmpstr(TCase *tc)

View File

@ -23,7 +23,7 @@
#include "eina_suite.h" #include "eina_suite.h"
START_TEST(trash_simple) EFL_START_TEST(trash_simple)
{ {
Eina_Trash *trash; Eina_Trash *trash;
unsigned int i; unsigned int i;
@ -70,7 +70,7 @@ START_TEST(trash_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_trash(TCase *tc) eina_test_trash(TCase *tc)

View File

@ -72,7 +72,7 @@ static const Eina_Unicode STR3[] = {'P', 'a', 'n', 't', 's',' ', 'O', 'n', 0};
static const Eina_Unicode STR4[] = {'A', 0}; static const Eina_Unicode STR4[] = {'A', 0};
static const Eina_Unicode EMPTYSTR[] = {0}; static const Eina_Unicode EMPTYSTR[] = {0};
START_TEST(eina_unicode_strcmp_test) EFL_START_TEST(eina_unicode_strcmp_test)
{ {
eina_init(); eina_init();
@ -99,9 +99,9 @@ START_TEST(eina_unicode_strcmp_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_strcpy_test) EFL_START_TEST(eina_unicode_strcpy_test)
{ {
Eina_Unicode buf[10] = { 0 }; Eina_Unicode buf[10] = { 0 };
Eina_Unicode *rv; Eina_Unicode *rv;
@ -135,9 +135,9 @@ START_TEST(eina_unicode_strcpy_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_strncpy_test) EFL_START_TEST(eina_unicode_strncpy_test)
{ {
Eina_Unicode buf[10] = { 0 }; Eina_Unicode buf[10] = { 0 };
Eina_Unicode *rv; Eina_Unicode *rv;
@ -203,11 +203,11 @@ START_TEST(eina_unicode_strncpy_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_ustr_strlen_test) EFL_START_TEST(eina_ustr_strlen_test)
{ {
eina_init(); eina_init();
@ -244,9 +244,9 @@ START_TEST(eina_ustr_strlen_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_strnlen_test) EFL_START_TEST(eina_unicode_strnlen_test)
{ {
eina_init(); eina_init();
@ -289,9 +289,9 @@ START_TEST(eina_unicode_strnlen_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_strdup_test) EFL_START_TEST(eina_unicode_strdup_test)
{ {
Eina_Unicode *buf; Eina_Unicode *buf;
@ -309,9 +309,9 @@ START_TEST(eina_unicode_strdup_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_strstr_test) EFL_START_TEST(eina_unicode_strstr_test)
{ {
Eina_Unicode *buf; Eina_Unicode *buf;
Eina_Unicode on[] = { 'O', 'n', 0 }; Eina_Unicode on[] = { 'O', 'n', 0 };
@ -335,9 +335,9 @@ START_TEST(eina_unicode_strstr_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_escape_test) EFL_START_TEST(eina_unicode_escape_test)
{ {
Eina_Unicode str[][10] = {{'P', 'a', ' ', 'O', 'n', 0}, Eina_Unicode str[][10] = {{'P', 'a', ' ', 'O', 'n', 0},
{'P', 'a', ' ', '\\', '\'',0}, {'P', 'a', ' ', '\\', '\'',0},
@ -361,9 +361,9 @@ START_TEST(eina_unicode_escape_test)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_utf8) EFL_START_TEST(eina_unicode_utf8)
{ {
int ind; int ind;
unsigned char ch; unsigned char ch;
@ -576,9 +576,9 @@ START_TEST(eina_unicode_utf8)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_unicode_utf8_conversion) EFL_START_TEST(eina_unicode_utf8_conversion)
{ {
Eina_Unicode uni_in[] = {0x5D0, 0xFDF6, 0xDC80, 0x1F459, 0x3FFFFFF, Eina_Unicode uni_in[] = {0x5D0, 0xFDF6, 0xDC80, 0x1F459, 0x3FFFFFF,
0x7FFFFFFF, 'a', 'b', 'c', 0}; 0x7FFFFFFF, 'a', 'b', 'c', 0};
@ -617,7 +617,7 @@ START_TEST(eina_unicode_utf8_conversion)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_ustr(TCase *tc) eina_test_ustr(TCase *tc)

View File

@ -32,7 +32,7 @@
static const Eina_Unicode TEST0[] = {'t', 'e', 's', 't', '/', '0', 0}; static const Eina_Unicode TEST0[] = {'t', 'e', 's', 't', '/', '0', 0};
static const Eina_Unicode TEST1[] = {'t', 'e', 's', 't', '/', '1', 0}; static const Eina_Unicode TEST1[] = {'t', 'e', 's', 't', '/', '1', 0};
START_TEST(eina_ustringshare_simple) EFL_START_TEST(eina_ustringshare_simple)
{ {
const Eina_Unicode *t0; const Eina_Unicode *t0;
const Eina_Unicode *t1; const Eina_Unicode *t1;
@ -59,10 +59,10 @@ START_TEST(eina_ustringshare_simple)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_ustringshare_test_share) EFL_START_TEST(eina_ustringshare_test_share)
{ {
const Eina_Unicode *t0; const Eina_Unicode *t0;
const Eina_Unicode *t1; const Eina_Unicode *t1;
@ -85,9 +85,9 @@ START_TEST(eina_ustringshare_test_share)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
START_TEST(eina_ustringshare_putstuff) EFL_START_TEST(eina_ustringshare_putstuff)
{ {
const Eina_Unicode *tmp; const Eina_Unicode *tmp;
int i; int i;
@ -109,7 +109,7 @@ START_TEST(eina_ustringshare_putstuff)
eina_shutdown(); eina_shutdown();
} }
END_TEST EFL_END_TEST
void void
eina_test_ustringshare(TCase *tc) eina_test_ustringshare(TCase *tc)

Some files were not shown because too many files have changed in this diff Show More