cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e729d6b994ef27e4299ac3719da976855a8db907

commit e729d6b994ef27e4299ac3719da976855a8db907
Author: Cedric BAIL <[email protected]>
Date:   Tue Nov 7 15:49:38 2017 -0800

    elementary: use efl_exit to leave the mainloop instead of direct use of 
exit.
---
 src/bin/elementary/test.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c
index 7b47e3c01f..57b1916d53 100644
--- a/src/bin/elementary/test.c
+++ b/src/bin/elementary/test.c
@@ -572,7 +572,11 @@ my_win_main(const 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);
+   if (!win)
+     {
+        efl_exit(1);
+        return ;
+     }
 
    explode_win_enable(win);
    /* Set the title of the window - This is in the titlebar. */

-- 


Reply via email to