svn update: 55755 (latest:55755)
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 3 Jan 2011 09:18:48 +0000 (18:18 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 3 Jan 2011 09:18:48 +0000 (18:18 +0900)
16 files changed:
Makefile.am
configure.ac
ecore-win32.pc.in
ecore.rebase.complete [new file with mode: 0644]
src/Makefile.am
src/lib/ecore/ecore_main.c
src/lib/ecore_con/ecore_con.c
src/lib/ecore_evas/Ecore_Evas.h
src/lib/ecore_evas/ecore_evas_x.c
src/lib/ecore_x/xlib/ecore_x_region.c
src/tests/Makefile.am [deleted file]
src/tests/ecore_suite.c [deleted file]
src/tests/ecore_suite.h [deleted file]
src/tests/ecore_test_ecore.c [deleted file]
src/tests/ecore_test_ecore_con.c [deleted file]
src/tests/ecore_test_ecore_x.c [deleted file]

index 498a6ef..8678961 100644 (file)
@@ -14,7 +14,6 @@ MAINTAINERCLEANFILES = \
 ABOUT-NLS \
 Makefile.in \
 aclocal.m4 \
-autom4te.cache \
 config.guess \
 config.h.in \
 config.h.in~ \
@@ -182,16 +181,5 @@ doc:
        @echo "entering doc/"
        make -C doc doc
 
-# Unit tests
-
-if EFL_ENABLE_TESTS
-
-check-local:
-       @./src/tests/ecore_suite
-
-else
-
-check-local:
-       @echo "reconfigure with --enable-tests"
-
-endif
+maintainer-clean-local:
+       rm -rf autom4te.cache
index 5a61d98..50dd5c1 100644 (file)
@@ -301,11 +301,6 @@ if test "x${want_xim}" = "xyes" ; then
    AC_DEFINE([ENABLE_XIM], [1], [Enable X Input Method])
 fi
 
-# Unit tests
-
-EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
-
-
 ### Checks for programs
 
 m4_ifdef([AC_PROG_OBJC],
@@ -1419,7 +1414,6 @@ src/lib/ecore_wince/Makefile
 src/lib/ecore_x/Makefile
 src/lib/ecore_x/xlib/Makefile
 src/lib/ecore_x/xcb/Makefile
-src/tests/Makefile
 README
 ecore.spec
 $po_makefile_in
@@ -1553,7 +1547,6 @@ if test "x${have_ecore_evas}" = "xyes" ; then
   echo "    Software 16bit WinCE.......: $have_ecore_evas_software_16_wince"
 fi
 echo
-echo "  Tests................: ${enable_tests}"
 echo "  Maximum log level....: ${with_max_log_level}"
 echo "Documentation..........: ${build_doc}"
 echo
index 148a073..17dba6e 100644 (file)
@@ -8,5 +8,5 @@ Description: E core library, Win32 module
 @pkgconfig_requires_private@: @requirements_ecore_win32@
 Version: @VERSION@
 Libs: -L${libdir} -lecore_win32
-Libs.private: @ddraw_libs@ @direct3d_libs@
+Libs.private:
 Cflags: -I${includedir}/ecore-@VMAJ@
diff --git a/ecore.rebase.complete b/ecore.rebase.complete
new file mode 100644 (file)
index 0000000..c8e882c
--- /dev/null
@@ -0,0 +1 @@
+[ecore] Rebase is completed.
index a6fc38f..a8590b2 100644 (file)
@@ -1,3 +1,3 @@
 MAINTAINERCLEANFILES = Makefile.in
 
-SUBDIRS = lib bin tests
+SUBDIRS = lib bin
index 08bedb2..6f7bf7e 100644 (file)
@@ -826,8 +826,10 @@ ecore_main_fd_handler_del(Ecore_Fd_Handler *fd_handler)
         return NULL;
      }
    if (fd_handler->delete_me)
-     /* FIXME: should this return NULL instead? */
-     return fd_handler->data;
+     {
+        ERR("fdh %p deleted twice", fd_handler);
+        return NULL;
+     }
      
    fd_handler->delete_me = EINA_TRUE;
    _ecore_main_fdh_poll_del(fd_handler);
index 976fef6..3fba5ea 100644 (file)
@@ -1789,52 +1789,54 @@ _ecore_con_cl_read(Ecore_Con_Server *svr)
 
    /* only possible with non-ssl connections */
    if (svr->connecting && (svr_try_connect_plain(svr) != ECORE_CON_CONNECTED))
-     return;
+      return;
 
    if (svr->handshaking)
      {
         DBG("Continuing ssl handshake");
         if (!ecore_con_ssl_server_init(svr))
-          lost_server = EINA_FALSE;
+           lost_server = EINA_FALSE;
      }
-
+   
    if (!(svr->type & ECORE_CON_SSL))
      {
         num = read(svr->fd, buf, sizeof(buf));
-        if ((num >= 0) || (errno == EAGAIN))
-          lost_server = EINA_FALSE;
+        /* 0 is not a valid return value for a tcp socket */
+        if ((num > 0) || ((num < 0) && (errno == EAGAIN)))
+           lost_server = EINA_FALSE;
      }
    else
      {
-       num = ecore_con_ssl_server_read(svr, buf, sizeof(buf));
-         if (num >= 0)
+        num = ecore_con_ssl_server_read(svr, buf, sizeof(buf));
+        /* this is not an actual 0 return, 0 here just means non-fatal error such as EAGAIN */
+        if (num >= 0)
            lost_server = EINA_FALSE;
      }
-
+   
    if ((!svr->delete_me) && (num > 0))
-   {
-      Ecore_Con_Event_Server_Data *e;
-
-      e = malloc(sizeof(Ecore_Con_Event_Server_Data));
-      EINA_SAFETY_ON_NULL_RETURN(e);
-
-      svr->event_count++;
-      e->server = svr;
-      e->data = malloc(num);
-      if (!e->data)
-        {
-           ERR("alloc!");
-           free(e);
-           return;
-        }
-      memcpy(e->data, buf, num);
-      e->size = num;
-      ecore_event_add(ECORE_CON_EVENT_SERVER_DATA, e,
-                      _ecore_con_event_server_data_free, NULL);
-   }
+     {
+        Ecore_Con_Event_Server_Data *e;
+        
+        e = malloc(sizeof(Ecore_Con_Event_Server_Data));
+        EINA_SAFETY_ON_NULL_RETURN(e);
+        
+        svr->event_count++;
+        e->server = svr;
+        e->data = malloc(num);
+        if (!e->data)
+          {
+             ERR("alloc!");
+             free(e);
+             return;
+          }
+        memcpy(e->data, buf, num);
+        e->size = num;
+        ecore_event_add(ECORE_CON_EVENT_SERVER_DATA, e,
+                        _ecore_con_event_server_data_free, NULL);
+     }
 
    if (lost_server)
-     _ecore_con_server_kill(svr);
+      _ecore_con_server_kill(svr);
 }
 
 static Eina_Bool
@@ -1935,7 +1937,7 @@ _ecore_con_cl_udp_handler(void             *data,
 
    num = read(svr->fd, buf, READBUFSIZ);
 
-   if ((!svr->delete_me) && (num >= 0))
+   if ((!svr->delete_me) && (num > 0))
      {
         inbuf = malloc(num);
         EINA_SAFETY_ON_NULL_RETURN_VAL(inbuf, ECORE_CALLBACK_RENEW);
@@ -2099,12 +2101,14 @@ _ecore_con_svr_cl_read(Ecore_Con_Client *cl)
    if (!(cl->host_server->type & ECORE_CON_SSL))
      {
         num = read(cl->fd, buf, sizeof(buf));
-        if ((num >= 0) || (errno == EAGAIN) || (errno == EINTR))
+        /* 0 is not a valid return value for a tcp socket */
+        if ((num > 0) || ((num < 0) && ((errno == EAGAIN) || (errno == EINTR))))
           lost_client = EINA_FALSE;
      }
    else
      {
         num = ecore_con_ssl_client_read(cl, buf, sizeof(buf));
+        /* this is not an actual 0 return, 0 here just means non-fatal error such as EAGAIN */
         if (num >= 0)
           lost_client = EINA_FALSE;
      }
@@ -2356,7 +2360,7 @@ _ecore_con_event_client_del_free(void *data __UNUSED__,
    Ecore_Con_Event_Client_Del *e;
 
    e = ev;
-   if (!e->client) return ;
+   if (!e->client) return;
 
    e->client->event_count--;
    if ((e->client->event_count <= 0) && (e->client->delete_me))
index 8343473..de0c682 100644 (file)
@@ -150,7 +150,8 @@ EAPI void            ecore_evas_software_x11_extra_event_window_add(Ecore_Evas *
 
 #define ECORE_EVAS_GL_X11_OPT_NONE     0
 #define ECORE_EVAS_GL_X11_OPT_INDIRECT 1
-#define ECORE_EVAS_GL_X11_OPT_LAST     2
+#define ECORE_EVAS_GL_X11_OPT_VSYNC    2
+#define ECORE_EVAS_GL_X11_OPT_LAST     3
 
 EAPI Ecore_Evas     *ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
 EAPI Ecore_Evas     *ecore_evas_gl_x11_options_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h, const int *opt);
index 894f21f..091fb0d 100644 (file)
@@ -163,6 +163,11 @@ _ecore_evas_x_gl_window_new(Ecore_Evas *ee, Ecore_X_Window parent, int x, int y,
                        op++;
                        einfo->indirect = opt[op];
                     }
+                  else if (opt[op] == ECORE_EVAS_GL_X11_OPT_VSYNC)
+                    {
+                       op++;
+                       einfo->vsync = opt[op];
+                    }
                }
           }
         
index f70e2bf..409ee89 100644 (file)
@@ -112,7 +112,7 @@ ecore_x_xregion_is_empty(Ecore_X_XRegion *region)
       return EINA_TRUE;
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
-   return XEmptyRegion((Region)region) ? EINA_TRUE : EINA_FALSE;
+   return !XEmptyRegion((Region)region) ? EINA_TRUE : EINA_FALSE;
 } /* ecore_x_xregion_is_empty */
 
 EAPI Eina_Bool
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
deleted file mode 100644 (file)
index dbec564..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-MAINTAINERCLEANFILES = Makefile.in
-
-AM_CPPFLAGS = \
--I$(top_srcdir)/src/lib/ecore \
--I$(top_srcdir)/src/lib/ecore_con \
--I$(top_srcdir)/src/lib/ecore_x \
-@EINA_CFLAGS@ \
-@CHECK_CFLAGS@
-
-if EFL_ENABLE_TESTS
-
-noinst_PROGRAMS = ecore_suite
-
-check_PROGRAMS = ecore_suite
-
-ecore_suite_SOURCES = \
-ecore_suite.c \
-ecore_test_ecore.c \
-ecore_test_ecore_con.c \
-ecore_test_ecore_x.c
-
-ecore_suite_LDADD = \
-@CHECK_LIBS@ \
-$(top_builddir)/src/lib/ecore/libecore.la \
-$(top_builddir)/src/lib/ecore_con/libecore_con.la
-
-if BUILD_ECORE_X
-ecore_suite_LDADD += \
-$(top_builddir)/src/lib/ecore_x/libecore_x.la
-endif
-
-endif
-
-EXTRA_DIST = ecore_suite.h
diff --git a/src/tests/ecore_suite.c b/src/tests/ecore_suite.c
deleted file mode 100644 (file)
index fd51750..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <stdio.h>
-
-#include <Ecore.h>
-
-#include "ecore_suite.h"
-
-typedef struct _Ecore_Test_Case Ecore_Test_Case;
-
-struct _Ecore_Test_Case
-{
-   const char *test_case;
-   void      (*build)(TCase *tc);
-};
-
-static const Ecore_Test_Case etc[] = {
-  { "Ecore", ecore_test_ecore },
-  { "Ecore_Con", ecore_test_ecore_con },
-  { "Ecore_X", ecore_test_ecore_x },
-  { NULL, NULL }
-};
-
-static void
-_list_tests(void)
-{
-  const Ecore_Test_Case *itr;
-
-   itr = etc;
-   fputs("Available Test Cases:\n", stderr);
-   for (; itr->test_case; itr++)
-     fprintf(stderr, "\t%s\n", itr->test_case);
-}
-static Eina_Bool
-_use_test(int argc, const char **argv, const char *test_case)
-{
-   if (argc < 1)
-     return 1;
-
-   for (; argc > 0; argc--, argv++)
-     if (strcmp(test_case, *argv) == 0)
-       return 1;
-   return 0;
-}
-
-static Suite *
-ecore_suite_build(int argc, const char **argv)
-{
-   TCase *tc;
-   Suite *s;
-   int i;
-
-   s = suite_create("Ecore");
-
-   for (i = 0; etc[i].test_case; ++i)
-     {
-       if (!_use_test(argc, argv, etc[i].test_case)) continue;
-       tc = tcase_create(etc[i].test_case);
-
-       etc[i].build(tc);
-
-       suite_add_tcase(s, tc);
-       tcase_set_timeout(tc, 0);
-     }
-
-   return s;
-}
-
-int
-main(int argc, char **argv)
-{
-   Suite *s;
-   SRunner *sr;
-   int i, failed_count;
-
-   for (i = 1; i < argc; i++)
-     if ((strcmp(argv[i], "-h") == 0) ||
-        (strcmp(argv[i], "--help") == 0))
-       {
-         fprintf(stderr, "Usage:\n\t%s [test_case1 .. [test_caseN]]\n",
-                 argv[0]);
-         _list_tests();
-         return 0;
-       }
-     else if ((strcmp(argv[i], "-l") == 0) ||
-             (strcmp(argv[i], "--list") == 0))
-       {
-         _list_tests();
-         return 0;
-       }
-
-   s = ecore_suite_build(argc - 1, (const char **)argv + 1);
-   sr = srunner_create(s);
-
-   srunner_run_all(sr, CK_ENV);
-   failed_count = srunner_ntests_failed(sr);
-   srunner_free(sr);
-
-   return (failed_count == 0) ? 0 : 255;
-}
diff --git a/src/tests/ecore_suite.h b/src/tests/ecore_suite.h
deleted file mode 100644 (file)
index 0c7dfef..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef _ECORE_SUITE_H
-#define _ECORE_SUITE_H
-
-#include <check.h>
-
-void ecore_test_ecore(TCase *tc);
-void ecore_test_ecore_con(TCase *tc);
-void ecore_test_ecore_x(TCase *tc);
-
-
-#endif /* _ECORE_SUITE_H */
diff --git a/src/tests/ecore_test_ecore.c b/src/tests/ecore_test_ecore.c
deleted file mode 100644 (file)
index 8fa9e9c..0000000
+++ /dev/null
@@ -1,366 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "ecore_suite.h"
-
-#include <Ecore.h>
-#include <Eina.h>
-#include <unistd.h>
-#include <stdio.h>
-
-static int _log_dom;
-#define INF(...) EINA_LOG_DOM_INFO(_log_dom, __VA_ARGS__)
-
-static Eina_Bool
-_quit_cb(void *data)
-{
-   Eina_Bool *val = data;
-   *val = EINA_TRUE;
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Eina_Bool
-_dummy_cb(void *data)
-{
-   return !!data;
-}
-
-START_TEST(ecore_test_ecore_init)
-{
-   int ret;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-START_TEST(ecore_test_ecore_main_loop)
-{
-   Eina_Bool did = EINA_FALSE;
-   Ecore_Timer *timer;
-   int ret;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   timer = ecore_timer_add(0.0, _quit_cb, &did);
-   fail_if(timer == NULL);
-
-   ecore_main_loop_begin();
-
-   fail_if(did == EINA_FALSE);
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-START_TEST(ecore_test_ecore_main_loop_idler)
-{
-   Eina_Bool did = EINA_FALSE;
-   Ecore_Idler *idler;
-   int ret;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   idler = ecore_idler_add(_quit_cb, &did);
-   fail_if(idler == NULL);
-
-   ecore_main_loop_begin();
-
-   fail_if(did == EINA_FALSE);
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-START_TEST(ecore_test_ecore_main_loop_idle_enterer)
-{
-   Eina_Bool did = EINA_FALSE;
-   Ecore_Idle_Enterer *idle_enterer;
-   int ret;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   idle_enterer = ecore_idle_enterer_add(_quit_cb, &did);
-   fail_if(idle_enterer == NULL);
-
-   ecore_main_loop_begin();
-
-   fail_if(did == EINA_FALSE);
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-START_TEST(ecore_test_ecore_main_loop_idle_exiter)
-{
-   Eina_Bool did = EINA_FALSE;
-   Ecore_Timer *timer;
-   Ecore_Idle_Exiter *idle_exiter;
-   int ret;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   /* make system exit idle */
-   timer = ecore_timer_add(0.0, _dummy_cb, (void *)(long)0);
-   fail_if(timer == NULL);
-
-   idle_exiter = ecore_idle_exiter_add(_quit_cb, &did);
-   fail_if(idle_exiter == NULL);
-
-   ecore_main_loop_begin();
-
-   fail_if(did == EINA_FALSE);
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-START_TEST(ecore_test_ecore_main_loop_timer)
-{
-   Eina_Bool did = EINA_FALSE;
-   Ecore_Timer *timer;
-   double start, end, elapsed;
-   int ret;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   timer = ecore_timer_add(2.0, _quit_cb, &did);
-   fail_if(timer == NULL);
-
-   start = ecore_time_get();
-   ecore_main_loop_begin();
-   end = ecore_time_get();
-   elapsed = end - start;
-
-   fail_if(did == EINA_FALSE);
-   fail_if(elapsed < 2.0);
-   fail_if(elapsed > 3.0); /* 1 second "error margin" */
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-static Eina_Bool _timer3(void *data)
-{
-   /* timer 3, do nothing */
-   return EINA_FALSE;
-}
-
-static Eina_Bool _timer2(void *data)
-{
-   /* timer 2, quit inner mainloop */
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Eina_Bool _timer1(void *data)
-{
-   /* timer 1, begin inner mainloop */
-   int *times = data;
-   (*times)++;
-
-   ecore_timer_add(0.3, _timer2, NULL);
-   ecore_timer_add(0.1, _timer3, NULL);
-   ecore_main_loop_begin();
-
-   ecore_main_loop_quit();
-
-   return EINA_FALSE;
-}
-
-START_TEST(ecore_test_ecore_main_loop_timer_inner)
-{
-   Ecore_Timer *timer;
-   int ret;
-   int times = 0;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   timer = ecore_timer_add(1.0, _timer1, &times);
-   fail_if(timer == NULL);
-
-   /* BEGIN: outer mainloop */
-   ecore_main_loop_begin();
-   /*END: outer mainloop */
-
-   fail_if(times != 1);
-}
-END_TEST
-
-static Eina_Bool
-_fd_handler_cb(void *data, Ecore_Fd_Handler *handler __UNUSED__)
-{
-   /* FIXME: why setting val if it is overwritten just after and what is its purpose ??? */
-   Eina_Bool *val = data;
-
-   *val = EINA_TRUE;
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-START_TEST(ecore_test_ecore_main_loop_fd_handler)
-{
-   Eina_Bool did = EINA_FALSE;
-   Ecore_Fd_Handler *fd_handler;
-   int comm[2];
-   int ret;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   ret = pipe(comm);
-   fail_if(ret != 0);
-
-   fd_handler = ecore_main_fd_handler_add
-     (comm[0], ECORE_FD_READ, _fd_handler_cb, &did, NULL, NULL);
-   fail_if(fd_handler == NULL);
-
-   ret = write(comm[1], &did, 1);
-   fail_if(ret != 1);
-
-   ecore_main_loop_begin();
-
-   close(comm[0]);
-   close(comm[1]);
-
-   fail_if(did == EINA_FALSE);
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-static Eina_Bool
-_event_handler_cb(void *data, int type __UNUSED__, void *event __UNUSED__)
-{
-   /* FIXME: why setting val if it is overwritten just after and what is its purpose ??? */
-   Eina_Bool *val = data;
-
-   *val = EINA_TRUE;
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-START_TEST(ecore_test_ecore_main_loop_event)
-{
-   Eina_Bool did = EINA_FALSE;
-   Ecore_Event_Handler *handler;
-   Ecore_Event *event;
-   int ret, type;
-
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-   type = ecore_event_type_new();
-   fail_if(type < 1);
-
-   handler = ecore_event_handler_add(type, _event_handler_cb, &did);
-   fail_if(handler == NULL);
-
-   event = ecore_event_add(type, NULL, NULL, NULL);
-   fail_if(event == NULL);
-
-   ecore_main_loop_begin();
-
-   fail_if(did == EINA_FALSE);
-
-   ret = ecore_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-static Eina_Bool
-_timer_quit_recursive(void *data)
-{
-   INF("   _timer_quit_recursive: begin");
-   ecore_main_loop_quit(); /* quits inner main loop */
-   INF("   _timer_quit_recursive: end");
-   return EINA_FALSE;
-}
-
-static Eina_Bool
-_event_recursive_cb(void *data, int type, void *event)
-{
-   Ecore_Event *e;
-   static int guard = 0;
-
-   /* If we enter this callback more than once, it's wrong! */
-   fail_if(guard != 0);
-   guard++;
-
-   INF("  event_recursive_cb: begin");
-
-   ecore_timer_add(1.0, _timer_quit_recursive, NULL);
-   INF("   add 1.0s timer (once) to trigger _timer_quit_recursive");
-
-   INF("   inner main loop begin (recurse)");
-   ecore_main_loop_begin();
-   INF("   inner main loop end (recurse)");
-
-   ecore_main_loop_quit(); /* quits outer main loop */
-
-   INF("   guard = %d", guard);
-   INF("  event_recursive_cb: end");
-   return EINA_FALSE;
-}
-
-
-START_TEST(ecore_test_ecore_main_loop_event_recursive)
-{
-   /* 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
-    * between the beginning and the end of recursive main loop.
-    */
-   Ecore_Event *e;
-   int type;
-   int ret;
-
-   _log_dom = eina_log_domain_register("test", EINA_COLOR_CYAN);
-
-   INF("main: begin");
-   ret = ecore_init();
-   fail_if(ret != 1);
-
-
-   type = ecore_event_type_new();
-   ecore_event_handler_add(type, _event_recursive_cb, NULL);
-   e = ecore_event_add(type, NULL, NULL, NULL);
-   INF(" add event to trigger cb1: event=%p", e);
-   INF(" main loop begin");
-   ecore_main_loop_begin();
-   INF(" main loop end");
-
-   INF("main: end");
-   ecore_shutdown();
-}
-END_TEST
-
-void ecore_test_ecore(TCase *tc)
-{
-   tcase_add_test(tc, ecore_test_ecore_init);
-   tcase_add_test(tc, ecore_test_ecore_main_loop);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_idler);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_idle_enterer);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_timer);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_event);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_timer_inner);
-   tcase_add_test(tc, ecore_test_ecore_main_loop_event_recursive);
-}
diff --git a/src/tests/ecore_test_ecore_con.c b/src/tests/ecore_test_ecore_con.c
deleted file mode 100644 (file)
index 3eba612..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <Ecore_Con.h>
-
-#include "ecore_suite.h"
-
-
-START_TEST(ecore_test_ecore_con_init)
-{
-   int ret;
-
-   ret = ecore_con_init();
-   fail_if(ret != 1);
-
-   ret = ecore_con_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-void ecore_test_ecore_con(TCase *tc)
-{
-   tcase_add_test(tc, ecore_test_ecore_con_init);
-}
diff --git a/src/tests/ecore_test_ecore_x.c b/src/tests/ecore_test_ecore_x.c
deleted file mode 100644 (file)
index 4b9e126..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <Ecore_X.h>
-
-#include "ecore_suite.h"
-
-
-/* TODO: change to HAVE_ECORE_X when xcb implementation is done */
-#ifdef HAVE_ECORE_X_XLIB
-
-START_TEST(ecore_test_ecore_x_init)
-{
-   int ret;
-
-   ret = ecore_x_init(NULL);
-   fail_if(ret != 1);
-
-   ret = ecore_x_shutdown();
-   fail_if(ret != 0);
-}
-END_TEST
-
-START_TEST(ecore_test_ecore_x_bell)
-{
-   int i;
-   int ret;
-
-   ret = ecore_x_init(NULL);
-   fail_if(ret != 1);
-
-   printf("You should hear 3 beeps now.\n");
-   for (i = 0; i < 3; i++)
-     {
-       ret = ecore_x_bell(0);
-       fail_if(ret != EINA_TRUE);
-       ecore_x_sync();
-       sleep(1);
-     }
-
-   ecore_x_shutdown();
-}
-END_TEST
-
-#endif
-
-void ecore_test_ecore_x(TCase *tc)
-{
-
-/* TODO: change to HAVE_ECORE_X when xcb implementation is done */
-#ifdef HAVE_ECORE_X_XLIB
-   tcase_add_test(tc, ecore_test_ecore_x_init);
-   tcase_add_test(tc, ecore_test_ecore_x_bell);
-#endif
-}