forked from enlightenment/efl
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
This commit is contained in:
parent
72f4ab875d
commit
9bfa85fdf0
|
@ -119,6 +119,8 @@ SUITE_SHUTDOWN(elm)
|
|||
ck_assert_int_eq(elm_shutdown(), 0);
|
||||
/* verify that ecore was de-initialized completely */
|
||||
ck_assert_int_eq(ecore_init(), 1);
|
||||
/* avoid slowdowns in fork mode */
|
||||
if (getpid() != main_pid) return;
|
||||
ck_assert_int_eq(ecore_shutdown(), 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue