|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51931 - in trunk/libs/filesystem: src test
From: bdawes_at_[hidden]
Date: 2009-03-23 07:30:56
Author: bemandawes
Date: 2009-03-23 07:30:54 EDT (Mon, 23 Mar 2009)
New Revision: 51931
URL: http://svn.boost.org/trac/boost/changeset/51931
Log:
Fix #2725
Text files modified:
trunk/libs/filesystem/src/operations.cpp | 1 +
trunk/libs/filesystem/test/operations_test.cpp | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2009-03-23 07:30:54 EDT (Mon, 23 Mar 2009)
@@ -198,6 +198,7 @@
if ((ec.value() == ERROR_FILE_NOT_FOUND)
|| (ec.value() == ERROR_PATH_NOT_FOUND)
|| (ec.value() == ERROR_INVALID_NAME) // "tools/jam/src/:sys:stat.h", "//foo"
+ || (ec.value() == ERROR_INVALID_DRIVE) // USB card reader with no card inserted
|| (ec.value() == ERROR_INVALID_PARAMETER) // ":sys:stat.h"
|| (ec.value() == ERROR_BAD_PATHNAME) // "//nosuch" on Win64
|| (ec.value() == ERROR_BAD_NETPATH)) // "//nosuch" on Win32
Modified: trunk/libs/filesystem/test/operations_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/operations_test.cpp (original)
+++ trunk/libs/filesystem/test/operations_test.cpp 2009-03-23 07:30:54 EDT (Mon, 23 Mar 2009)
@@ -378,6 +378,7 @@
BOOST_CHECK( !fs::exists( fs::path( "//share-not/foo" ) ) );
BOOST_CHECK( !fs::exists( "tools/jam/src/:sys:stat.h" ) ); // !exists() if ERROR_INVALID_NAME
BOOST_CHECK( !fs::exists( ":sys:stat.h" ) ); // !exists() if ERROR_INVALID_PARAMETER
+ BOOST_CHECK( !fs::exists( "1:/" ) );
BOOST_CHECK( dir.string().size() > 1
&& dir.string()[1] == ':' ); // verify path includes drive
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk