remove xcb support in ecore_x and evas engines as per mailing list
[platform/upstream/efl.git] / src / tests / ecore / ecore_test_ecore_x.c
1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
4
5 #include <Eina.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 #ifdef HAVE_ECORE_X_XLIB
15
16 #include <Ecore_X.h>
17
18 START_TEST(ecore_test_ecore_x_init)
19 {
20    int ret;
21
22    ret = ecore_x_init(NULL);
23    fail_if(ret != 1);
24
25    ret = ecore_x_shutdown();
26    fail_if(ret != 0);
27 }
28 END_TEST
29
30 START_TEST(ecore_test_ecore_x_bell)
31 {
32    int i;
33    int ret;
34
35    ret = ecore_x_init(NULL);
36    fail_if(ret != 1);
37
38    printf("You should hear 3 beeps now.\n");
39    for (i = 0; i < 3; i++)
40      {
41         ret = ecore_x_bell(0);
42         fail_if(ret != EINA_TRUE);
43         ecore_x_sync();
44         sleep(1);
45      }
46
47    ecore_x_shutdown();
48 }
49 END_TEST
50
51 #endif
52
53 void ecore_test_ecore_x(TCase *tc EINA_UNUSED)
54 {
55 #ifdef HAVE_ECORE_X_XLIB
56    tcase_add_test(tc, ecore_test_ecore_x_init);
57    tcase_add_test(tc, ecore_test_ecore_x_bell);
58 #endif
59 }