lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6080] Add a default 'gui_test_path'


From: Greg Chicares
Subject: [lmi-commits] [6080] Add a default 'gui_test_path'
Date: Mon, 15 Dec 2014 15:22:10 +0000

Revision: 6080
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6080
Author:   chicares
Date:     2014-12-15 15:22:09 +0000 (Mon, 15 Dec 2014)
Log Message:
-----------
Add a default 'gui_test_path'

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

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2014-12-15 14:54:14 UTC (rev 6079)
+++ lmi/trunk/ChangeLog 2014-12-15 15:22:09 UTC (rev 6080)
@@ -34937,3 +34937,9 @@
 Add a deliberately obscure option. See:
   http://lists.nongnu.org/archive/html/lmi/2014-12/msg00077.html
 
+20141215T1522Z <address@hidden> [516]
+
+  main_wx_test.cpp
+Add a default 'gui_test_path'. See:
+  http://lists.nongnu.org/archive/html/lmi/2014-12/msg00079.html
+

Modified: lmi/trunk/main_wx_test.cpp
===================================================================
--- lmi/trunk/main_wx_test.cpp  2014-12-15 14:54:14 UTC (rev 6079)
+++ lmi/trunk/main_wx_test.cpp  2014-12-15 15:22:09 UTC (rev 6080)
@@ -422,17 +422,19 @@
     // Ensure that the path used for the test files is always valid and
     // absolute, so that it doesn't change even if the program current
     // directory changes for whatever reason.
-    if(test_files_path_.empty() || !fs::exists(test_files_path_))
+    if(test_files_path_.empty())
         {
-        if(!test_files_path_.empty())
-            {
-            warning()
-                << "Test files path '"
-                << test_files_path_.native_file_string()
-                << "' doesn't exist."
-                << std::flush
-                ;
-            }
+        test_files_path_ = "/opt/lmi/gui_test";
+        }
+
+    if (!fs::exists(test_files_path_))
+        {
+        warning()
+            << "Test files path '"
+            << test_files_path_.native_file_string()
+            << "' doesn't exist."
+            << std::flush
+            ;
         test_files_path_ = fs::current_path();
         }
     else




reply via email to

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