forked from enlightenment/efl
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:
parent
fa8549c20c
commit
f8a1fa470c
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue