mirror of
https://github.com/boostorg/filesystem.git
synced 2025-05-12 13:41:47 +00:00
Initial commit
[SVN r19856]
This commit is contained in:
parent
1fa3fd646d
commit
007b0f300c
27
test/default_name_check_test.cpp
Normal file
27
test/default_name_check_test.cpp
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// default_name_check_test program ------------------------------------------//
|
||||||
|
|
||||||
|
// (C) Copyright Beman Dawes 2003. Permission to copy,
|
||||||
|
// use, modify, sell and distribute this software is granted provided this
|
||||||
|
// copyright notice appears in all copies. This software is provided "as is"
|
||||||
|
// without express or implied warranty, and with no claim as to its
|
||||||
|
// suitability for any purpose.
|
||||||
|
|
||||||
|
// See http://www.boost.org for most recent version including documentation.
|
||||||
|
|
||||||
|
#include <boost/filesystem/operations.hpp>
|
||||||
|
#include <boost/filesystem/exception.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
using boost::filesystem::path;
|
||||||
|
|
||||||
|
#include <boost/test/minimal.hpp>
|
||||||
|
|
||||||
|
int test_main( int, char*[] )
|
||||||
|
{
|
||||||
|
BOOST_TEST( path::default_name_check_writable() );
|
||||||
|
path::default_name_check( fs::no_check );
|
||||||
|
BOOST_TEST( !path::default_name_check_writable() );
|
||||||
|
BOOST_TEST( path::default_name_check() == fs::no_check );
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user