efl_ui_spec: Support running with CK_FORK=no

Summary: this was simply not tested before. But works now.

Reviewers: zmike, segfaultxavi

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9109
This commit is contained in:
Marcel Hollerbach 2019-06-18 12:22:54 -04:00 committed by Mike Blumenkrantz
parent fa8549c20c
commit f8a1fa470c
2 changed files with 9 additions and 1 deletions

View File

@ -28,6 +28,14 @@ _setup_window_and_widget(const Efl_Class *klass, const Efl_Class *content_klass)
ck_assert(widget);
}
static void
_shutdown_fixture(void)
{
//We just NULL them out, shutdown will delete them
win = NULL;
widget = NULL;
}
Eo*
create_test_widget(void)
{

View File

@ -12,7 +12,7 @@ tcase_gen_template = """
static void
{}(TCase *tc)
{{
tcase_add_checked_fixture(tc, _{}_fixture, NULL);
tcase_add_checked_fixture(tc, _{}_fixture, _shutdown_fixture);
tcase_add_checked_fixture(tc, fail_on_errors_setup, fail_on_errors_teardown);
{}(tc);
}}