mirror of
https://github.com/boostorg/filesystem.git
synced 2026-02-01 20:42:08 +00:00
Merge from trunk
[SVN r39533]
This commit is contained in:
@@ -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" ) );
|
||||
|
||||
Reference in New Issue
Block a user