EPhysics: unregister test log domain

SVN revision: 73063
This commit is contained in:
Bruno Dilly 2012-06-29 22:22:28 +00:00
parent abb7d24442
commit d9ab86d252
1 changed files with 13 additions and 3 deletions

View File

@ -165,6 +165,14 @@ elm_main(int argc, char **argv)
Eina_Bool test_win_only = EINA_FALSE;
char *autorun = NULL;
_ephysics_test_log_dom = eina_log_domain_register(
"ephysics-test", EPHYSICS_TEST_LOG_COLOR);
if (_ephysics_test_log_dom < 0)
{
EINA_LOG_CRIT("Could not register log domain: ephysics-test");
return -1;
}
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
@ -185,13 +193,15 @@ elm_main(int argc, char **argv)
}
}
_ephysics_test_log_dom = eina_log_domain_register(
"ephysics-test", EPHYSICS_TEST_LOG_COLOR);
elm_theme_extension_add(NULL,
PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj");
_main_win_add(autorun, test_win_only);
elm_run();
eina_log_domain_unregister(_ephysics_test_log_dom);
_ephysics_test_log_dom = -1;
elm_shutdown();
return 0;
}