forked from enlightenment/efl
tests/ecore-wl2: Remove surface test
This test is not necessary anymore as the ecore_wl2_surface function it was testing is now an internal function ref T8016
This commit is contained in:
parent
2fe6d59321
commit
4068d1c5be
|
@ -13,7 +13,6 @@ static const Efl_Test_Case etc[] =
|
|||
{ "Display", ecore_wl2_test_display },
|
||||
{ "Window", ecore_wl2_test_window },
|
||||
{ "Input", ecore_wl2_test_input },
|
||||
{ "Surface", ecore_wl2_test_surface },
|
||||
#endif
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
|
|
@ -8,6 +8,5 @@ void ecore_wl2_test_init(TCase *tc);
|
|||
void ecore_wl2_test_display(TCase *tc);
|
||||
void ecore_wl2_test_window(TCase *tc);
|
||||
void ecore_wl2_test_input(TCase *tc);
|
||||
void ecore_wl2_test_surface(TCase *tc);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <Eina.h>
|
||||
#include <Ecore.h>
|
||||
#include <Ecore_Wl2.h>
|
||||
|
||||
#include "ecore_wl2_suite.h"
|
||||
|
||||
static Ecore_Wl2_Display *
|
||||
_display_connect(void)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
|
||||
disp = ecore_wl2_display_connect(NULL);
|
||||
return disp;
|
||||
}
|
||||
|
||||
static Ecore_Wl2_Window *
|
||||
_window_create(Ecore_Wl2_Display *disp)
|
||||
{
|
||||
Ecore_Wl2_Window *win;
|
||||
|
||||
win = ecore_wl2_window_new(disp, NULL, 100, 100, 500, 500);
|
||||
return win;
|
||||
}
|
||||
|
||||
EFL_START_TEST(wl2_surface_create)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
Ecore_Wl2_Window *win;
|
||||
Ecore_Wl2_Surface *surf;
|
||||
|
||||
disp = _display_connect();
|
||||
ck_assert(disp != NULL);
|
||||
|
||||
win = _window_create(disp);
|
||||
ck_assert(win != NULL);
|
||||
|
||||
surf = ecore_wl2_surface_create(win, EINA_FALSE);
|
||||
ck_assert(surf != NULL);
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
||||
void
|
||||
ecore_wl2_test_surface(TCase *tc)
|
||||
{
|
||||
if (getenv("WAYLAND_DISPLAY"))
|
||||
{
|
||||
/* surface tests can only run if there is an existing compositor */
|
||||
tcase_add_test(tc, wl2_surface_create);
|
||||
}
|
||||
}
|
|
@ -5,8 +5,7 @@ ecore_wl2_suite_src = [
|
|||
'ecore_wl2_test_ecore_wl2.c',
|
||||
'ecore_wl2_test_display.c',
|
||||
'ecore_wl2_test_window.c',
|
||||
'ecore_wl2_test_input.c',
|
||||
'ecore_wl2_test_surface.c'
|
||||
'ecore_wl2_test_input.c'
|
||||
]
|
||||
|
||||
ecore_wl2_suite = executable('ecore_wl2_suite',
|
||||
|
|
Loading…
Reference in New Issue