From: raster Date: Fri, 26 Aug 2011 07:40:51 +0000 (+0000) Subject: dont create main test win at all if test win only mode. X-Git-Tag: REL_F_I9500_20120323_1~17^2~1879 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed92b94d49a0010be9a507c4cf3f362a69d49705;p=framework%2Fuifw%2Felementary.git dont create main test win at all if test win only mode. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62851 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/test.c b/src/bin/test.c index e930cd6..debd5ec 100644 --- a/src/bin/test.c +++ b/src/bin/test.c @@ -196,6 +196,7 @@ my_win_main(char *autorun, Eina_Bool test_win_only) Eina_List *tests, *l; struct elm_test *t; + if (test_win_only) goto add_tests; /* Create an elm window - It returns an evas object. This is a little * special as the object lives in the canvas that is inside the window * so what is returned is really inside the window, but as you manipulate @@ -280,6 +281,7 @@ my_win_main(char *autorun, Eina_Bool test_win_only) elm_win_resize_object_add(win, idx); evas_object_show(idx); +add_tests: tests = NULL; #define ADD_TEST(name_, cb_) elm_test_add(&tests, name_, cb_) ADD_TEST("Bg Plain", test_bg_plain); @@ -429,7 +431,10 @@ my_win_main(char *autorun, Eina_Bool test_win_only) EINA_LIST_FOREACH(tests, l, t) if ((t->name) && (t->cb) && (!strcmp(t->name, autorun))) t->cb(NULL, NULL, NULL); + } + + if (test_win_only) return; if (tests) {