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:
Mike Blumenkrantz 2018-04-18 13:57:39 +02:00 committed by Stefan Schmidt
parent 72f4ab875d
commit 9bfa85fdf0
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}