From e78e075a37c3bd61a704f6989968b5cf408c3a27 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 18 Aug 2017 15:00:27 +0900 Subject: [PATCH] elm_test: Fail nicely if plug can't connect This makes sure that elementary_test -to "Window Plug" exits nicely (with the exit policy on all window close) instead of hanging forever with an invisible window. @fix --- src/bin/elementary/test_win_plug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/elementary/test_win_plug.c b/src/bin/elementary/test_win_plug.c index ad94dde91d..c584af90ad 100644 --- a/src/bin/elementary/test_win_plug.c +++ b/src/bin/elementary/test_win_plug.c @@ -194,6 +194,7 @@ test_win_plug(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UN if (!elm_plug_connect(plug, "ello", 0, EINA_FALSE)) { _notify_error(data, "Unable to connect to the Window Socket!"); + evas_object_del(win); return; }