forked from enlightenment/efl
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:
parent
54dcab5fda
commit
a7b60528b9
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue