Re: [Boost-bugs] [Boost C++ Libraries] #12574: is_directory sets boost::system::errc::no_such_process when path contains more directory components

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12574: is_directory sets boost::system::errc::no_such_process when path contains more directory components
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-28 13:24:26


#12574: is_directory sets boost::system::errc::no_such_process when path contains
more directory components
----------------------------------------------+------------------------
  Reporter: Wojciech MuÅ‚a <wojciech_mula@…> | Owner: bemandawes
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.62.0 | Severity: Problem
Resolution: invalid | Keywords: windows
----------------------------------------------+------------------------
Changes (by bemandawes):

 * status: new => closed
 * resolution: => invalid

Comment:

 A test case has been added to operations_test.cpp. It passes just fine,
 and a display of the error code values shows 2 and 3 on Windows:

   Windows `error_code` values \\
   -------------------------------- \\
     `2 ERROR_FILE_NOT_FOUND` \\
     `3 ERROR_PATH_NOT_FOUND`
 See https://msdn.microsoft.com/en-
 us/library/windows/desktop/ms681382(v=vs.85).aspx

 So it looks like you are confusing Windows specific `error_code` values
 with the portable `error_condition` values:

   Generic `error_condition` values \\
   ------------------------------------- \\
     `2 no_such_file_or_directory` \\
     `3 no_such_process`

  The ticket is being closed, but the tests are worth keeping so remain in
 operations_test.cpp.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12574#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC