Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68319
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
test_win_inline.c \
test_win_socket.c \
test_win_plug.c \
test_win_inline.c \
test_win_socket.c \
test_win_plug.c \
+test_win_state.c \
+test.h
if HAVE_EIO
elementary_test_SOURCES += test_eio.c
if HAVE_EIO
elementary_test_SOURCES += test_eio.c
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
*p_list = eina_list_sorted_insert(*p_list, elm_test_sort, t);
}
*p_list = eina_list_sorted_insert(*p_list, elm_test_sort, t);
}
my_win_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
my_win_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- /* called when my_win_main is requested to be deleted */
elm_exit(); /* exit the program's main loop that runs in elm_run() */
}
elm_exit(); /* exit the program's main loop that runs in elm_run() */
}
--- /dev/null
+#ifndef _TEST_H
+#define _TEST_H
+
+#define fail_if(expr) \
+ do { \
+ if ( expr ) \
+ { \
+ FILE *fp; \
+ char buf[1024]; \
+ sprintf(buf, "fail_%s.txt", elm_win_title_get(win)); \
+ if ((fp = fopen(buf, "a")) != NULL) \
+ { \
+ fprintf(fp, "Failed at %s:%d on <%s>\n", \
+ __FILE__, __LINE__, #expr); \
+ fclose(fp); \
+ } \
+ } \
+ } while(0)
+#endif