aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/tests/ecore_test_ecore_x.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/ecore/src/tests/ecore_test_ecore_x.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/libraries/ecore/src/tests/ecore_test_ecore_x.c b/libraries/ecore/src/tests/ecore_test_ecore_x.c
deleted file mode 100644
index 2d14ff1..0000000
--- a/libraries/ecore/src/tests/ecore_test_ecore_x.c
+++ /dev/null
@@ -1,60 +0,0 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <Ecore_X.h>
6
7#include "ecore_suite.h"
8
9/* FIXME: Currently disable these tests. They are useless ATM and they just
10 * make buildbot complain. Once we add useful tests here we'll also bother
11 * with getting X on the server. */
12#undef HAVE_ECORE_X_XLIB
13
14/* TODO: change to HAVE_ECORE_X when xcb implementation is done */
15#ifdef HAVE_ECORE_X_XLIB
16
17START_TEST(ecore_test_ecore_x_init)
18{
19 int ret;
20
21 ret = ecore_x_init(NULL);
22 fail_if(ret != 1);
23
24 ret = ecore_x_shutdown();
25 fail_if(ret != 0);
26}
27END_TEST
28
29START_TEST(ecore_test_ecore_x_bell)
30{
31 int i;
32 int ret;
33
34 ret = ecore_x_init(NULL);
35 fail_if(ret != 1);
36
37 printf("You should hear 3 beeps now.\n");
38 for (i = 0; i < 3; i++)
39 {
40 ret = ecore_x_bell(0);
41 fail_if(ret != EINA_TRUE);
42 ecore_x_sync();
43 sleep(1);
44 }
45
46 ecore_x_shutdown();
47}
48END_TEST
49
50#endif
51
52void ecore_test_ecore_x(TCase *tc)
53{
54
55/* TODO: change to HAVE_ECORE_X when xcb implementation is done */
56#ifdef HAVE_ECORE_X_XLIB
57 tcase_add_test(tc, ecore_test_ecore_x_init);
58 tcase_add_test(tc, ecore_test_ecore_x_bell);
59#endif
60}