Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76320 - trunk/libs/filesystem/v3/test
From: bdawes_at_[hidden]
Date: 2012-01-05 08:52:12


Author: bemandawes
Date: 2012-01-05 08:52:11 EST (Thu, 05 Jan 2012)
New Revision: 76320
URL: http://svn.boost.org/trac/boost/changeset/76320

Log:
Relax permissions test to reflect reality, particularly on the Sandia test platforms
Text files modified:
   trunk/libs/filesystem/v3/test/operations_test.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/filesystem/v3/test/operations_test.cpp
==============================================================================
--- trunk/libs/filesystem/v3/test/operations_test.cpp (original)
+++ trunk/libs/filesystem/v3/test/operations_test.cpp 2012-01-05 08:52:11 EST (Thu, 05 Jan 2012)
@@ -816,7 +816,8 @@
     {
       cout << " fs::status(p).permissions() " << std::oct << fs::status(p).permissions()
         << std::dec << endl;
- BOOST_TEST((fs::status(p).permissions() & 0644) == 0644); // 0664 sometimes returned
+ BOOST_TEST((fs::status(p).permissions() & 0600) == 0600); // 0644, 0664 sometimes returned
+
       fs::permissions(p, fs::owner_all);
       BOOST_TEST(fs::status(p).permissions() == fs::owner_all);
 


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