lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6109] Skip multiple-root test if multiple root not readil


From: Greg Chicares
Subject: [lmi-commits] [6109] Skip multiple-root test if multiple root not readily found
Date: Sat, 31 Jan 2015 01:24:16 +0000

Revision: 6109
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6109
Author:   chicares
Date:     2015-01-31 01:24:15 +0000 (Sat, 31 Jan 2015)
Log Message:
-----------
Skip multiple-root test if multiple root not readily found

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/authenticity_test.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2015-01-31 00:15:22 UTC (rev 6108)
+++ lmi/trunk/ChangeLog 2015-01-31 01:24:15 UTC (rev 6109)
@@ -35666,3 +35666,8 @@
 Improve GUI-test diagnostics. See:
   http://lists.nongnu.org/archive/html/lmi/2015-01/msg00027.html
 
+20150131T0124Z <address@hidden> [516]
+
+  authenticity_test.cpp
+Skip multiple-root test if multiple root not readily found.
+

Modified: lmi/trunk/authenticity_test.cpp
===================================================================
--- lmi/trunk/authenticity_test.cpp     2015-01-31 00:15:22 UTC (rev 6108)
+++ lmi/trunk/authenticity_test.cpp     2015-01-31 01:24:15 UTC (rev 6109)
@@ -275,7 +275,8 @@
 /// Authenticate also from the root directory on a different drive, on
 /// a multiple-root system. This is perforce platform specific; msw is
 /// used because it happens to be common. This test assumes that an
-/// 'F:' drive exists and is not the "current" drive.
+/// 'F:' drive exists and is not the "current" drive; it is skipped
+/// if no 'F:' drive exists.
 ///
 /// BOOST !! This test traps an exception that boost-1.33.1 can throw
 /// if exists("F:/") returns true but ::GetFileAttributesA() fails.
@@ -303,7 +304,11 @@
     CheckNominal(__FILE__, __LINE__);
 
     fs::path const remote_dir_1(fs::complete(fs::path("F:/", fs::native)));
-    BOOST_TEST(fs::exists(remote_dir_1));
+    if(!fs::exists(remote_dir_1))
+        {
+        goto done;
+        }
+
     try
         {
         BOOST_TEST(fs::is_directory(remote_dir_1));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]