summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_suite.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-04-18 13:57:39 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-18 13:57:49 +0200
commit9bfa85fdf01071e52f5d6cbb5e453f6ecdd3ea68 (patch)
treeb4d3ac8711301a91e54079789225893f56ed0c3b /src/tests/elementary/elm_suite.c
parent72f4ab875dbf7635abf79e2e580f173dfe859533 (diff)
tests: skip second ecore_shutdown call in elm_suite when forking
Summary: init is only called here to verify the refcount, shutdown is only necessary when not forking in order to preserve the environment ref T6864 Reviewers: stefan_schmidt Subscribers: cedric Maniphest Tasks: T6864 Differential Revision: https://phab.enlightenment.org/D5958
Diffstat (limited to 'src/tests/elementary/elm_suite.c')
-rw-r--r--src/tests/elementary/elm_suite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index 0bf03b3..e1d899d 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -119,6 +119,8 @@ SUITE_SHUTDOWN(elm)
119 ck_assert_int_eq(elm_shutdown(), 0); 119 ck_assert_int_eq(elm_shutdown(), 0);
120 /* verify that ecore was de-initialized completely */ 120 /* verify that ecore was de-initialized completely */
121 ck_assert_int_eq(ecore_init(), 1); 121 ck_assert_int_eq(ecore_init(), 1);
122 /* avoid slowdowns in fork mode */
123 if (getpid() != main_pid) return;
122 ck_assert_int_eq(ecore_shutdown(), 0); 124 ck_assert_int_eq(ecore_shutdown(), 0);
123} 125}
124 126