aboutsummaryrefslogtreecommitdiffstats
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
parentdefine HAVE_REALPATH in evil_stdlib.h (diff)
downloadefl-f8a1fa470c16eef3d8f5806097a156cecc7c0144.tar.gz
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)
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)
{
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 = """
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);
}}