summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/elementary/spec/efl_ui_spec_suite.c8
-rwxr-xr-xsrc/tests/elementary/spec/generator.py2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/tests/elementary/spec/efl_ui_spec_suite.c b/src/tests/elementary/spec/efl_ui_spec_suite.c
index 5c98af28a5..dc5462a89e 100644
--- a/src/tests/elementary/spec/efl_ui_spec_suite.c
+++ b/src/tests/elementary/spec/efl_ui_spec_suite.c
@@ -28,6 +28,14 @@ _setup_window_and_widget(const Efl_Class *klass, const Efl_Class *content_klass)
28 ck_assert(widget); 28 ck_assert(widget);
29} 29}
30 30
31static void
32_shutdown_fixture(void)
33{
34 //We just NULL them out, shutdown will delete them
35 win = NULL;
36 widget = NULL;
37}
38
31Eo* 39Eo*
32create_test_widget(void) 40create_test_widget(void)
33{ 41{
diff --git a/src/tests/elementary/spec/generator.py b/src/tests/elementary/spec/generator.py
index db6b99b2e3..f8ba0a2dcc 100755
--- a/src/tests/elementary/spec/generator.py
+++ b/src/tests/elementary/spec/generator.py
@@ -12,7 +12,7 @@ tcase_gen_template = """
12static void 12static void
13{}(TCase *tc) 13{}(TCase *tc)
14{{ 14{{
15 tcase_add_checked_fixture(tc, _{}_fixture, NULL); 15 tcase_add_checked_fixture(tc, _{}_fixture, _shutdown_fixture);
16 tcase_add_checked_fixture(tc, fail_on_errors_setup, fail_on_errors_teardown); 16 tcase_add_checked_fixture(tc, fail_on_errors_setup, fail_on_errors_teardown);
17 {}(tc); 17 {}(tc);
18}} 18}}