eina_cxx: Using eina::eina_init in all tests cases

Removed the eina_init call from the test suite main function to enforce
that each test case creates an instance of the eina::eina_init object.

Added an eina::eina_init object instanciation for each test case that
were lacking this code.
This commit is contained in:
Vitor Sousa 2014-11-03 14:26:08 -02:00
parent fb5ba0f758
commit 1cbbb9a577
3 changed files with 4 additions and 2 deletions

View File

@ -121,8 +121,6 @@ int main(int argc, char* argv[])
srunner_set_xml(sr, TESTS_BUILD_DIR "/check-results.xml");
eina_init();
srunner_run_all(sr, CK_ENV);
failed_count = srunner_ntests_failed(sr);
srunner_free(sr);

View File

@ -68,6 +68,7 @@ END_TEST
START_TEST(eina_cxx_thread_mutexes)
{
efl::eina::eina_init init;
efl::eina::mutex m;
{
@ -103,6 +104,7 @@ void condition_thread(efl::eina::mutex& condition_mutex
START_TEST(eina_cxx_thread_conditional)
{
efl::eina::eina_init init;
efl::eina::mutex m;
efl::eina::mutex condition_mutex;

View File

@ -167,6 +167,7 @@ END_TEST
START_TEST(eina_cxx_value_copying)
{
efl::eina::eina_init init;
char c = 5;
efl::eina::value vchar(c);
@ -186,6 +187,7 @@ END_TEST
START_TEST(eina_cxx_value_temporaries)
{
efl::eina::eina_init init;
efl::eina::get<std::string>(efl::eina::value(std::string("Matroska")));
}
END_TEST