Added test case for case of no directory

[SVN r33041]
This commit is contained in:
Beman Dawes 2006-02-20 21:32:21 +00:00
parent c949152405
commit 7bd0367847

View File

@ -69,6 +69,11 @@ namespace
fs::ifstream tfs( p );
BOOST_CHECK( tfs.is_open() );
}
{
std::cout << " in test 4.1\n";
fs::ifstream tfs( p / p.leaf() ); // should fail
BOOST_CHECK( !tfs.is_open() );
}
{
std::cout << " in test 5\n";
fs::ifstream tfs( p, std::ios_base::in );