From 34c3d4ded7dc0a3b1f7e18750cd8812063a7d25d Mon Sep 17 00:00:00 2001 From: Savio Sena Date: Fri, 11 Jul 2014 20:19:01 -0300 Subject: [PATCH] tests: Added config.h to tests. --- src/examples/eina_cxx/eina_cxx_list_01.cc | 4 ++++ src/examples/eina_cxx/eina_cxx_thread_01.cc | 7 +++++-- src/tests/ecore_cxx/ecore_cxx_suite.cc | 3 +++ src/tests/ecore_cxx/ecore_cxx_test_safe_call.cc | 3 +++ src/tests/eet_cxx/eet_cxx_suite.cc | 4 ++++ src/tests/eet_cxx/eet_cxx_test_descriptors.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_suite.cc | 6 +++++- src/tests/eina_cxx/eina_cxx_test_accessor.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_error.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_inarray.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_inlist.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_iterator.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_log.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_optional.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_stringshare.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_thread.cc | 4 ++++ src/tests/eina_cxx/eina_cxx_test_value.cc | 4 ++++ src/tests/eldbus_cxx/eldbus_cxx_suite.cc | 4 ++++ src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_client.cc | 4 ++++ src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_connect.cc | 4 ++++ 20 files changed, 80 insertions(+), 3 deletions(-) diff --git a/src/examples/eina_cxx/eina_cxx_list_01.cc b/src/examples/eina_cxx/eina_cxx_list_01.cc index 0cb03810f2..f74f9d644a 100644 --- a/src/examples/eina_cxx/eina_cxx_list_01.cc +++ b/src/examples/eina_cxx/eina_cxx_list_01.cc @@ -1,6 +1,10 @@ //Compile with: //gcc -g eina_list_01.c -o eina_list_01 `pkg-config --cflags --libs eina` +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include diff --git a/src/examples/eina_cxx/eina_cxx_thread_01.cc b/src/examples/eina_cxx/eina_cxx_thread_01.cc index 64c7525610..b47b1a6c64 100644 --- a/src/examples/eina_cxx/eina_cxx_thread_01.cc +++ b/src/examples/eina_cxx/eina_cxx_thread_01.cc @@ -1,6 +1,10 @@ //Compile with: //gcc -g eina_list_01.c -o eina_list_01 `pkg-config --cflags --libs eina` +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include @@ -13,7 +17,6 @@ namespace eina = efl::eina; void thread1(eina::mutex&) { - } int main() @@ -27,6 +30,6 @@ int main() eina::unique_lock l(m); eina::thread thread1(&::thread1, eina::ref(m)); - + thread1.join(); } diff --git a/src/tests/ecore_cxx/ecore_cxx_suite.cc b/src/tests/ecore_cxx/ecore_cxx_suite.cc index 9394672cd5..d2888ef0e2 100644 --- a/src/tests/ecore_cxx/ecore_cxx_suite.cc +++ b/src/tests/ecore_cxx/ecore_cxx_suite.cc @@ -1,3 +1,6 @@ +#ifdef HAVE_CONFIG_H +# include +#endif #include "Ecore.hh" diff --git a/src/tests/ecore_cxx/ecore_cxx_test_safe_call.cc b/src/tests/ecore_cxx/ecore_cxx_test_safe_call.cc index 9be7d73706..1425041e55 100644 --- a/src/tests/ecore_cxx/ecore_cxx_test_safe_call.cc +++ b/src/tests/ecore_cxx/ecore_cxx_test_safe_call.cc @@ -1,3 +1,6 @@ +#ifdef HAVE_CONFIG_H +# include +#endif #include "Ecore.hh" #include "Eina.hh" diff --git a/src/tests/eet_cxx/eet_cxx_suite.cc b/src/tests/eet_cxx/eet_cxx_suite.cc index 26e658b803..fa4465eb37 100644 --- a/src/tests/eet_cxx/eet_cxx_suite.cc +++ b/src/tests/eet_cxx/eet_cxx_suite.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eet.hh" #include diff --git a/src/tests/eet_cxx/eet_cxx_test_descriptors.cc b/src/tests/eet_cxx/eet_cxx_test_descriptors.cc index bc214181d6..05af641018 100644 --- a/src/tests/eet_cxx/eet_cxx_test_descriptors.cc +++ b/src/tests/eet_cxx/eet_cxx_test_descriptors.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eet.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_suite.cc b/src/tests/eina_cxx/eina_cxx_suite.cc index 942d539512..75558059c9 100644 --- a/src/tests/eina_cxx/eina_cxx_suite.cc +++ b/src/tests/eina_cxx/eina_cxx_suite.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include @@ -71,7 +75,7 @@ eina_build_suite(int argc, const char **argv) Suite *s; int i; - s = suite_create("Eina"); + s = suite_create("Eina C++"); for (i = 0; etc[i].test_case; ++i) { diff --git a/src/tests/eina_cxx/eina_cxx_test_accessor.cc b/src/tests/eina_cxx/eina_cxx_test_accessor.cc index 21ad5e09da..8d04ecc226 100644 --- a/src/tests/eina_cxx/eina_cxx_test_accessor.cc +++ b/src/tests/eina_cxx/eina_cxx_test_accessor.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_error.cc b/src/tests/eina_cxx/eina_cxx_test_error.cc index fb3a6aa7ae..8cea5b55b0 100644 --- a/src/tests/eina_cxx/eina_cxx_test_error.cc +++ b/src/tests/eina_cxx/eina_cxx_test_error.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_inarray.cc b/src/tests/eina_cxx/eina_cxx_test_inarray.cc index e9d890db8d..995ae9bfc6 100644 --- a/src/tests/eina_cxx/eina_cxx_test_inarray.cc +++ b/src/tests/eina_cxx/eina_cxx_test_inarray.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_inlist.cc b/src/tests/eina_cxx/eina_cxx_test_inlist.cc index 0fd7c75b1b..144dfe4488 100644 --- a/src/tests/eina_cxx/eina_cxx_test_inlist.cc +++ b/src/tests/eina_cxx/eina_cxx_test_inlist.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_iterator.cc b/src/tests/eina_cxx/eina_cxx_test_iterator.cc index ee4b356a7b..5a0a393479 100644 --- a/src/tests/eina_cxx/eina_cxx_test_iterator.cc +++ b/src/tests/eina_cxx/eina_cxx_test_iterator.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_log.cc b/src/tests/eina_cxx/eina_cxx_test_log.cc index 4d32d41f2c..e20ebdffdf 100644 --- a/src/tests/eina_cxx/eina_cxx_test_log.cc +++ b/src/tests/eina_cxx/eina_cxx_test_log.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_optional.cc b/src/tests/eina_cxx/eina_cxx_test_optional.cc index a809f6622a..6619ee96ba 100644 --- a/src/tests/eina_cxx/eina_cxx_test_optional.cc +++ b/src/tests/eina_cxx/eina_cxx_test_optional.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_stringshare.cc b/src/tests/eina_cxx/eina_cxx_test_stringshare.cc index 5e06cbc286..d10ad362e3 100644 --- a/src/tests/eina_cxx/eina_cxx_test_stringshare.cc +++ b/src/tests/eina_cxx/eina_cxx_test_stringshare.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_thread.cc b/src/tests/eina_cxx/eina_cxx_test_thread.cc index 1a749359b2..11a8f39b2b 100644 --- a/src/tests/eina_cxx/eina_cxx_test_thread.cc +++ b/src/tests/eina_cxx/eina_cxx_test_thread.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eina_cxx/eina_cxx_test_value.cc b/src/tests/eina_cxx/eina_cxx_test_value.cc index 07bf3e506f..c095f85930 100644 --- a/src/tests/eina_cxx/eina_cxx_test_value.cc +++ b/src/tests/eina_cxx/eina_cxx_test_value.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eina.hh" #include diff --git a/src/tests/eldbus_cxx/eldbus_cxx_suite.cc b/src/tests/eldbus_cxx/eldbus_cxx_suite.cc index a8be883abd..b9a145d983 100644 --- a/src/tests/eldbus_cxx/eldbus_cxx_suite.cc +++ b/src/tests/eldbus_cxx/eldbus_cxx_suite.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include "Eldbus.hh" diff --git a/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_client.cc b/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_client.cc index f16e72e82b..e54645bcfc 100644 --- a/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_client.cc +++ b/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_client.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eldbus.hh" #include "Ecore.hh" diff --git a/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_connect.cc b/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_connect.cc index 3d7716ec06..ffac324b9a 100644 --- a/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_connect.cc +++ b/src/tests/eldbus_cxx/eldbus_cxx_test_eldbus_connect.cc @@ -1,4 +1,8 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "Eldbus.hh" #include "Ecore.hh"