Merge from trunk

[SVN r39533]
This commit is contained in:
Nicola Musatti
2007-09-25 22:53:44 +00:00
parent ccf447a0e8
commit cca6da5cba
6 changed files with 26 additions and 11 deletions

View File

@@ -37,6 +37,8 @@ namespace fs = boost::filesystem;
namespace
{
bool cleanup = true;
template< class Path >
void test( const Path & p )
{
@@ -141,12 +143,16 @@ namespace
BOOST_CHECK( tfs.is_open() );
}
# endif
if ( cleanup ) fs::remove( p );
} // test
} // unnamed namespace
int test_main( int, char*[] )
int test_main( int argc, char*[] )
{
if ( argc > 1 ) cleanup = false;
// test fs::path
std::cout << "path tests:\n";
test( fs::path( "fstream_test_foo" ) );