aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2014-11-03 14:26:08 -0200
committerVitor Sousa <vitorsousasilva@gmail.com>2015-01-05 15:52:27 -0200
commit1cbbb9a577eb2dbbfebb441702635b2245840d1c (patch)
treede488396e37df849f75f9974df4240e00c45a727 /src
parenteina_cxx: Fix eina::array cend method recursive calling itself (diff)
downloadefl-1cbbb9a577eb2dbbfebb441702635b2245840d1c.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/tests/eina_cxx/eina_cxx_suite.cc2
-rw-r--r--src/tests/eina_cxx/eina_cxx_test_thread.cc2
-rw-r--r--src/tests/eina_cxx/eina_cxx_test_value.cc2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/eina_cxx/eina_cxx_suite.cc b/src/tests/eina_cxx/eina_cxx_suite.cc
index 75558059c9..9ee108226e 100644
--- a/src/tests/eina_cxx/eina_cxx_suite.cc
+++ b/src/tests/eina_cxx/eina_cxx_suite.cc
@@ -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);
diff --git a/src/tests/eina_cxx/eina_cxx_test_thread.cc b/src/tests/eina_cxx/eina_cxx_test_thread.cc
index 11a8f39b2b..abf1c7aa18 100644
--- a/src/tests/eina_cxx/eina_cxx_test_thread.cc
+++ b/src/tests/eina_cxx/eina_cxx_test_thread.cc
@@ -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;
diff --git a/src/tests/eina_cxx/eina_cxx_test_value.cc b/src/tests/eina_cxx/eina_cxx_test_value.cc
index 61ccbed89e..d57980a303 100644
--- a/src/tests/eina_cxx/eina_cxx_test_value.cc
+++ b/src/tests/eina_cxx/eina_cxx_test_value.cc
@@ -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