ecore: fix tests to avoid failure on successful initialization.
authorCedric BAIL <cedric.bail@samsung.com>
Mon, 23 Dec 2013 02:44:52 +0000 (11:44 +0900)
committerCedric BAIL <cedric.bail@samsung.com>
Mon, 23 Dec 2013 02:44:52 +0000 (11:44 +0900)
commit923459f92692860c15a0ca351ca6cbb26ad999d3
treee8a61754a2c516929e2bbfe50fda17ec8372b004
parentd2c6751983f266ba6500892eaa572369a85db7ab
ecore: fix tests to avoid failure on successful initialization.

This patch is necessary to work around the fact that if you have some
ecore system module installed, they will be initialized and may use another
library like eldbus that will call ecore_init again. So ecore_init will be
different from 1, but still be a success.

My patch does introduce a work around a problem in that situation. Calling
ecore_shutdown wont work at this stage, as we do have module that did initialize
ecore also. And the only way to make ecore_shutdown happen is to unload those
module and that wont happen as they where initialized from inside ecore... lala !

Yes, we never shutdown ecore properly when we have ecore module that use
something like eldbus.
src/tests/ecore/ecore_test_ecore.c
src/tests/ecore/ecore_test_ecore_con.c