Use <boost/detail/lightweight_main.hpp> to improve regression test error reporting on remote systems

[SVN r66896]
This commit is contained in:
Beman Dawes
2010-11-30 15:07:43 +00:00
parent b0fb6700d7
commit f2f699eb78
8 changed files with 24 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ using fs::path;
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 @@ namespace
// ------------------------------------------------------------------------------------//
int main(int, char*[])
int cpp_main(int, char*[])
{
// create_directories() tests --------------------------------------------------------//

View File

@@ -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 @@ namespace
//--------------------------------------------------------------------------------------//
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

View File

@@ -41,6 +41,7 @@ namespace fs = boost::filesystem;
#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 @@ namespace
} // test
} // unnamed namespace
int main(int argc, char*[])
int cpp_main(int argc, char*[])
{
if (argc > 1) cleanup = false;

View File

@@ -29,6 +29,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tut4", "tut4\tut4.vcxproj",
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 @@ Global
{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

View File

@@ -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 @@ namespace
// //
//------------------------------------------------------------------------------------//
int main(int argc, char* argv[])
int cpp_main(int argc, char* argv[])
{
// document state of critical macros
#ifdef BOOST_POSIX_API

View File

@@ -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 @@ namespace
// //
//--------------------------------------------------------------------------------------//
int main()
int cpp_main(int, char*[])
{
// document state of critical macros
#ifdef BOOST_POSIX_API

View File

@@ -44,6 +44,7 @@ namespace fs = boost::filesystem;
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 @@ namespace
// //
//--------------------------------------------------------------------------------------//
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

View File

@@ -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 @@ namespace
// //
//--------------------------------------------------------------------------------------//
int main(int, char*[])
int cpp_main(int, char*[])
{
// document state of critical macros
#ifdef BOOST_POSIX_API