Eo tests: Add tests for eo_init()/shutdown() cycles.

We needed to fix the issue and remove a workaround in the test suite
before we could add these tests. Now they are here and they test that
init/shutdown cycles work as expected.
This commit is contained in:
Tom Hacohen 2016-02-03 16:52:25 +00:00
parent 54dcab5fda
commit a7b60528b9
1 changed files with 13 additions and 0 deletions

View File

@ -16,7 +16,20 @@ START_TEST(eo_simple)
}
END_TEST
START_TEST(eo_init_shutdown)
{
fail_if(!eo_init());
ck_assert_str_eq("Eo_Base", eo_class_name_get(EO_BASE_CLASS));
fail_if(eo_shutdown());
fail_if(!eo_init());
ck_assert_str_eq("Eo_Base", eo_class_name_get(EO_BASE_CLASS));
fail_if(eo_shutdown());
}
END_TEST
void eo_test_init(TCase *tc)
{
tcase_add_test(tc, eo_simple);
tcase_add_test(tc, eo_init_shutdown);
}