Let's make the tests also compile with boost 1.33 (auto_unit_test.hpp is
authorMichael Matz <matz@suse.de>
Sat, 23 Feb 2008 03:05:32 +0000 (03:05 +0000)
committerMichael Matz <matz@suse.de>
Sat, 23 Feb 2008 03:05:32 +0000 (03:05 +0000)
a compat header in 1.34, so we can use it, and the
BOOST_AUTO_TEST_MAIN define is a no-op in 1.34 boost, so we also can use
it unconditionally).

33 files changed:
CMakeLists.txt
tests/parser/inifile/inidict_test.cc
tests/parser/inifile/iniparser_test.cc
tests/parser/yum/PatchFileReader_test.cc
tests/parser/yum/PatchesFileReader_test.cc
tests/parser/yum/RepomdFileReader_test.cc
tests/repo/RepoVariables_test.cc
tests/repo/susetags/Downloader_test.cc
tests/repo/yum/YUMDownloader_test.cc
tests/zypp/Arch_test.cc
tests/zypp/Capabilities_test.cc
tests/zypp/CheckSum_test.cc
tests/zypp/Digest_test.cc
tests/zypp/Edition_test.cc
tests/zypp/Fetcher_test.cc
tests/zypp/FileChecker_test.cc
tests/zypp/KeyRing_test.cc
tests/zypp/MediaSetAccess_test.cc
tests/zypp/PathInfo_test.cc
tests/zypp/PoolQuery_test.cc
tests/zypp/ProgressData_test.cc
tests/zypp/PtrTypes_test.cc
tests/zypp/PublicKey_test.cc
tests/zypp/RWPtr_test.cc
tests/zypp/RepoInfo_test.cc
tests/zypp/RepoManager_test.cc
tests/zypp/RepoStatus_test.cc
tests/zypp/ResKind_test.cc
tests/zypp/Signature_test.cc
tests/zypp/TranslatedText_test.cc
tests/zypp/Url_test.cc
tests/zypp/Vendor_test.cc
tests/zypp/base/Sysconfig_test.cc

index f446485..7136b54 100644 (file)
@@ -29,7 +29,7 @@ INCLUDE(CPack)
 
 MACRO(ADD_TESTS)
   FOREACH( loop_var ${ARGV} )
-    SET_SOURCE_FILES_PROPERTIES( ${loop_var}_test.cc COMPILE_FLAGS "-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN" )
+    SET_SOURCE_FILES_PROPERTIES( ${loop_var}_test.cc COMPILE_FLAGS "-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN -DBOOST_AUTO_TEST_MAIN=\"\" " )
     ADD_EXECUTABLE( ${loop_var}_test ${loop_var}_test.cc )
     TARGET_LINK_LIBRARIES( ${loop_var}_test  zypp boost_unit_test_framework)
     ADD_TEST( ${loop_var}_test ${CMAKE_CURRENT_BINARY_DIR}/${loop_var}_test)
index f5b6370..8a180f5 100644 (file)
@@ -3,7 +3,7 @@
 #include <fstream>
 #include <vector>
 #include <list>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/base/InputStream.h"
index bb647fc..8857bd3 100644 (file)
@@ -3,7 +3,7 @@
 #include <fstream>
 #include <vector>
 #include <list>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/base/InputStream.h"
index 272c07b..1d8e4bc 100644 (file)
@@ -1,4 +1,4 @@
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Easy.h"
 #include "zypp/Url.h"
index 71b7d01..7c57a2e 100644 (file)
@@ -3,7 +3,7 @@
 #include <fstream>
 #include <vector>
 #include <list>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/OnMediaLocation.h"
 #include "zypp/parser/yum/PatchesFileReader.h"
index b6aa3c5..b5554c4 100644 (file)
@@ -3,7 +3,7 @@
 #include <fstream>
 #include <vector>
 #include <list>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/parser/yum/RepomdFileReader.h"
 #include "zypp/Url.h"
index 69ee58b..31f92b2 100644 (file)
@@ -3,7 +3,7 @@
 #include <fstream>
 #include <vector>
 #include <list>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/ZYppFactory.h"
 #include "zypp/Url.h"
index a474651..e6a84dd 100644 (file)
@@ -3,7 +3,7 @@
 #include <fstream>
 #include <vector>
 #include <list>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/Url.h"
index 993d230..943a02f 100644 (file)
@@ -3,7 +3,7 @@
 #include <fstream>
 #include <vector>
 #include <list>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/Url.h"
index 7a46dd2..de0beb6 100644 (file)
@@ -12,7 +12,7 @@
 
 // Boost.Test
 #include <boost/test/floating_point_comparison.hpp>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
index 2dc570b..d2b90c0 100644 (file)
@@ -6,7 +6,7 @@
 
 // Boost.Test
 #include <boost/test/floating_point_comparison.hpp>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/Capability.h"
 
index 0de9221..fd1385d 100644 (file)
@@ -4,7 +4,7 @@
 #include <string>
 
 // Boost.Test
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/base/Exception.h"
index b385c7f..19e83c0 100644 (file)
@@ -5,7 +5,7 @@
 #include <list>
 #include <string>
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/base/Exception.h"
index 72e1bd7..bd2f74b 100644 (file)
@@ -6,7 +6,7 @@
 #include "zypp/base/Logger.h"
 #include "zypp/Edition.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 using boost::unit_test::test_case;
 
index c016eae..1b22257 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdio.h>
 #include <iostream>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 #include <boost/test/parameterized_test.hpp>
 #include <boost/test/unit_test_log.hpp>
 
index b56fc0f..59b47de 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "zypp/FileChecker.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "KeyRingTestReceiver.h"
 
index 9500def..e5d3f21 100644 (file)
 #include "zypp/PublicKey.h"
 #include "zypp/TmpPath.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "KeyRingTestReceiver.h"
 
 using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
-using namespace boost::unit_test::log;
 
 using namespace std;
 using namespace zypp;
index 151c0e0..921fbaa 100644 (file)
@@ -1,6 +1,9 @@
 #include <stdio.h>
 #include <iostream>
-#include <boost/test/unit_test.hpp>
+#ifdef BOOST_AUTO_TEST_MAIN
+#undef BOOST_AUTO_TEST_MAIN
+#endif
+#include <boost/test/auto_unit_test.hpp>
 #include <boost/test/parameterized_test.hpp>
 #include <boost/test/unit_test_log.hpp>
 
index 79eaa0d..8af9492 100644 (file)
@@ -4,7 +4,7 @@
 #include <list>
 #include <string>
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/base/Exception.h"
index a999d25..bf95738 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdio.h>
 #include <iostream>
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/ZYppFactory.h"
 #include "zypp/PoolQuery.h"
index 2d3900f..02b06fd 100644 (file)
@@ -7,7 +7,7 @@
 #include "zypp/base/Logger.h"
 #include "zypp/base/Exception.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/ProgressData.h"
 
index 556ad58..a2d9427 100644 (file)
@@ -1,6 +1,6 @@
 #include <iostream>
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include <zypp/base/PtrTypes.h>
index 181b382..e08c313 100644 (file)
@@ -9,7 +9,7 @@
 #include "zypp/PublicKey.h"
 #include "zypp/TmpPath.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
index ec11010..5953328 100644 (file)
@@ -1,4 +1,4 @@
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include <zypp/base/PtrTypes.h>
 #include <string>
index 97ee150..c1bad6b 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "zypp/RepoInfo.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 #include <boost/test/parameterized_test.hpp>
 #include <boost/test/unit_test_log.hpp>
 
index 50e96a8..b16b6da 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "zypp/RepoManager.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 
 #include "KeyRingTestReceiver.h"
index 62302f6..965d90c 100644 (file)
@@ -5,7 +5,7 @@
 #include "zypp/RepoStatus.h"
 #include "zypp/PathInfo.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
index 9e8cbbf..e90e506 100644 (file)
@@ -1,4 +1,4 @@
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 #include "zypp/base/Logger.h"
 #include "zypp/ResKind.h"
 
index 8bc7518..1fe0fc7 100644 (file)
@@ -7,7 +7,7 @@
 #include "zypp/base/Exception.h"
 #include "zypp/Signature.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
index 981983b..e371fdc 100644 (file)
@@ -7,7 +7,7 @@
 #include "zypp/ZYppFactory.h"
 #include "zypp/ZYpp.h"
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
index d0f0e24..c4c25b6 100644 (file)
@@ -12,7 +12,7 @@
 #include <cassert>
 
 // Boost.Test
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 using boost::unit_test::test_case;
 using namespace zypp;
index 0d64fd3..264f024 100644 (file)
@@ -4,7 +4,7 @@
 #include <string>
 
 // Boost.Test
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/LogControl.h"
 #include "zypp/base/Logger.h"
index 9468523..610555a 100644 (file)
@@ -4,7 +4,7 @@
 #include <map>
 #include <string>
 
-#include <boost/test/unit_test.hpp>
+#include <boost/test/auto_unit_test.hpp>
 
 #include "zypp/base/Logger.h"
 #include "zypp/base/Exception.h"
@@ -16,7 +16,6 @@
 using boost::unit_test::test_suite;
 using boost::unit_test::test_case;
 using namespace boost::unit_test;
-using namespace boost::unit_test::log;
 
 using namespace std;
 using namespace zypp;