Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66896 - in trunk/libs/filesystem/v3/test: . msvc10
From: bdawes_at_[hidden]
Date: 2010-11-30 10:07:55


Author: bemandawes
Date: 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
New Revision: 66896
URL: http://svn.boost.org/trac/boost/changeset/66896

Log:
Use <boost/detail/lightweight_main.hpp> to improve regression test error reporting on remote systems
Text files modified:
   trunk/libs/filesystem/v3/test/convenience_test.cpp | 3 ++-
   trunk/libs/filesystem/v3/test/deprecated_test.cpp | 3 ++-
   trunk/libs/filesystem/v3/test/fstream_test.cpp | 3 ++-
   trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln | 10 ++++++++++
   trunk/libs/filesystem/v3/test/operations_test.cpp | 3 ++-
   trunk/libs/filesystem/v3/test/operations_unit_test.cpp | 3 ++-
   trunk/libs/filesystem/v3/test/path_test.cpp | 3 ++-
   trunk/libs/filesystem/v3/test/path_unit_test.cpp | 3 ++-
   8 files changed, 24 insertions(+), 7 deletions(-)

Modified: trunk/libs/filesystem/v3/test/convenience_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/convenience_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/convenience_test.cpp 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -32,6 +32,7 @@
 namespace sys = boost::system;
 
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/lightweight_main.hpp>
 #include <boost/bind.hpp>
 #include <fstream>
 #include <iostream>
@@ -58,7 +59,7 @@
 
 // ------------------------------------------------------------------------------------//
 
-int main(int, char*[])
+int cpp_main(int, char*[])
 {
 
 // create_directories() tests --------------------------------------------------------//

Modified: trunk/libs/filesystem/v3/test/deprecated_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/deprecated_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/deprecated_test.cpp 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -23,6 +23,7 @@
 
 #include <boost/filesystem.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/lightweight_main.hpp>
 
 namespace fs = boost::filesystem;
 using boost::filesystem::path;
@@ -190,7 +191,7 @@
 
 //--------------------------------------------------------------------------------------//
 
-int main(int /*argc*/, char* /*argv*/[])
+int cpp_main(int /*argc*/, char* /*argv*/[])
 {
   // The choice of platform is make at runtime rather than compile-time
   // so that compile errors for all platforms will be detected even though

Modified: trunk/libs/filesystem/v3/test/fstream_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/fstream_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/fstream_test.cpp 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -41,6 +41,7 @@
 #endif
 
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/lightweight_main.hpp>
 
 #if defined(_MSC_VER)
 # pragma warning(push) // Save warning settings.
@@ -144,7 +145,7 @@
   } // test
 } // unnamed namespace
 
-int main(int argc, char*[])
+int cpp_main(int argc, char*[])
 {
   if (argc > 1) cleanup = false;
 

Modified: trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln
==============================================================================
--- trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln (original)
+++ trunk/libs/filesystem/v3/test/msvc10/filesystem-v3.sln 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -29,6 +29,12 @@
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "windows_attributes", "windows_attributes\windows_attributes.vcxproj", "{FC5C770F-3017-4021-8DAF-C5DCA3FDF005}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scratch_test", "scratch_test\scratch_test.vcxproj", "{214D1FDB-CC19-47C6-8DDD-59C5424C6850}"
+ ProjectSection(ProjectDependencies) = postProject
+ {F94CCADD-A90B-480C-A304-C19D015D36B1} = {F94CCADD-A90B-480C-A304-C19D015D36B1}
+ {FFD738F7-96F0-445C-81EA-551665EF53D1} = {FFD738F7-96F0-445C-81EA-551665EF53D1}
+ EndProjectSection
+EndProject
 Global
         GlobalSection(SolutionConfigurationPlatforms) = preSolution
                 Debug|Win32 = Debug|Win32
@@ -89,6 +95,10 @@
                 {256EA89A-E073-4CE8-B675-BE2FBC6B2691}.Release|Win32.Build.0 = Release|Win32
                 {FC5C770F-3017-4021-8DAF-C5DCA3FDF005}.Debug|Win32.ActiveCfg = Debug|Win32
                 {FC5C770F-3017-4021-8DAF-C5DCA3FDF005}.Release|Win32.ActiveCfg = Release|Win32
+ {214D1FDB-CC19-47C6-8DDD-59C5424C6850}.Debug|Win32.ActiveCfg = Debug|Win32
+ {214D1FDB-CC19-47C6-8DDD-59C5424C6850}.Debug|Win32.Build.0 = Debug|Win32
+ {214D1FDB-CC19-47C6-8DDD-59C5424C6850}.Release|Win32.ActiveCfg = Release|Win32
+ {214D1FDB-CC19-47C6-8DDD-59C5424C6850}.Release|Win32.Build.0 = Release|Win32
         EndGlobalSection
         GlobalSection(SolutionProperties) = preSolution
                 HideSolutionNode = FALSE

Modified: trunk/libs/filesystem/v3/test/operations_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/operations_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/operations_test.cpp 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -30,6 +30,7 @@
 namespace fs = boost::filesystem;
 
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/lightweight_main.hpp>
 
 using boost::system::error_code;
 using boost::system::system_category;
@@ -1617,7 +1618,7 @@
   // //
   //------------------------------------------------------------------------------------//
 
-int main(int argc, char* argv[])
+int cpp_main(int argc, char* argv[])
 {
 // document state of critical macros
 #ifdef BOOST_POSIX_API

Modified: trunk/libs/filesystem/v3/test/operations_unit_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/operations_unit_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/operations_unit_test.cpp 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -34,6 +34,7 @@
 #include <boost/filesystem.hpp> // make sure filesystem.hpp works
 #include <boost/system/error_code.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/lightweight_main.hpp>
 #include <iostream>
 
 using namespace boost::filesystem;
@@ -214,7 +215,7 @@
 // //
 //--------------------------------------------------------------------------------------//
 
-int main()
+int cpp_main(int, char*[])
 {
 // document state of critical macros
 #ifdef BOOST_POSIX_API

Modified: trunk/libs/filesystem/v3/test/path_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/path_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/path_test.cpp 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -44,6 +44,7 @@
 using boost::filesystem::path;
 
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/lightweight_main.hpp>
 
 #define PATH_CHECK(a, b) check(a, b, __FILE__, __LINE__)
 #define CHECK_EQUAL(a,b) check_equal(a, b, __FILE__, __LINE__)
@@ -1575,7 +1576,7 @@
 // //
 //--------------------------------------------------------------------------------------//
 
-int main(int, char*[])
+int cpp_main(int, char*[])
 {
   // The choice of platform is make at runtime rather than compile-time
   // so that compile errors for all platforms will be detected even though

Modified: trunk/libs/filesystem/v3/test/path_unit_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/path_unit_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/path_unit_test.cpp 2010-11-30 10:07:43 EST (Tue, 30 Nov 2010)
@@ -41,6 +41,7 @@
 #include <boost/filesystem/detail/utf8_codecvt_facet.hpp> // for imbue tests
 #include "test_codecvt.hpp" // for codecvt arg tests
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/detail/lightweight_main.hpp>
 #include <boost/smart_ptr.hpp> // used constructor tests
 
 #include <iostream>
@@ -963,7 +964,7 @@
 // //
 //--------------------------------------------------------------------------------------//
 
-int main(int, char*[])
+int cpp_main(int, char*[])
 {
 // document state of critical macros
 #ifdef BOOST_POSIX_API


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk