summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 12:22:54 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-06-18 12:22:54 -0400
commitf8a1fa470c16eef3d8f5806097a156cecc7c0144 (patch)
tree314d87dc0ee710a0d3d2abca2ee4813804f66154
parentfa8549c20c328b9e92b674f7494d40980c958ead (diff)
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
-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}}