raster pushed a commit to branch master.

commit d530a1a3dbb0e416620012c922adc60ab55333f5
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Jun 22 12:42:59 2013 +0900

    exit if window cresation failes in tests.
---
 src/bin/config.c | 1 +
 src/bin/test.c   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/bin/config.c b/src/bin/config.c
index be566f5..18399bc 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -3474,6 +3474,7 @@ win_create(void)
    Evas_Object *win, *bx0;
 
    win = elm_win_util_standard_add("main", "Elementary Config");
+   if (!win) exit(1);
    ecore_event_handler_add(ELM_EVENT_CONFIG_ALL_CHANGED, _config_all_changed,
                            win);
    evas_object_smart_callback_add(win, "delete,request", config_exit, NULL);
diff --git a/src/bin/test.c b/src/bin/test.c
index 6390dad..67804b7 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -371,6 +371,7 @@ my_win_main(char *autorun, Eina_Bool test_win_only)
     * You can also set the title of the window at the same time.
     *   ex) win = elm_win_util_standard_add("main", "Elementary Tests"); */
    win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (!win) exit(1);
    /* Set the title of the window - This is in the titlebar. */
    elm_win_title_set(win, "Elementary Tests");
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to