summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-12-23 11:58:17 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-12-23 11:58:17 +0900
commit324f4aebe8f42a1b9888760765c2f06c83c95726 (patch)
treebc11e002228641aa2c59184459853dd333d06b6b /src/tests/ecore/ecore_test_ecore.c
parent923459f92692860c15a0ca351ca6cbb26ad999d3 (diff)
ecore: fix shutdown when using system module.
This patch will detect how many more times ecore_init was called during initialization and use that as a threshold to do a clean shutdown. It is a necessary evil as we do have ecore module that will initialize eldbus that will then reinit ecore_init from within ecore_init and without a chance for the application to act on it. I also reenable a test to make sure we will catch earlier this kind of issue.
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_ecore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index f3b260a4d2..08a00e2e27 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -42,6 +42,7 @@ START_TEST(ecore_test_ecore_init)
42 fail_if(ret < 1); 42 fail_if(ret < 1);
43 43
44 ret = ecore_shutdown(); 44 ret = ecore_shutdown();
45 fail_if(ret != 0);
45} 46}
46END_TEST 47END_TEST
47 48