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
This commit is contained in:
Jean-Philippe Andre 2017-08-18 15:00:27 +09:00
parent a43740c074
commit e78e075a37
1 changed files with 1 additions and 0 deletions

View File

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