exit if window cresation failes in tests.

This commit is contained in:
Carsten Haitzler 2013-06-22 12:42:59 +09:00
parent d062cc2004
commit ee51f840ad
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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");