stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9bfa85fdf01071e52f5d6cbb5e453f6ecdd3ea68

commit 9bfa85fdf01071e52f5d6cbb5e453f6ecdd3ea68
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Apr 18 13:57:39 2018 +0200

    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
---
 src/tests/elementary/elm_suite.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index 0bf03b3b7e..e1d899defb 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -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);
 }
 

-- 


Reply via email to