lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6383] Stem cell proliferation in regression testing


From: Greg Chicares
Subject: [lmi-commits] [6383] Stem cell proliferation in regression testing
Date: Mon, 02 Nov 2015 23:45:33 +0000

Revision: 6383
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6383
Author:   chicares
Date:     2015-11-02 23:45:31 +0000 (Mon, 02 Nov 2015)
Log Message:
-----------
Stem cell proliferation in regression testing

Modified Paths:
--------------
    lmi/trunk/custom_io_1.cpp

Modified: lmi/trunk/custom_io_1.cpp
===================================================================
--- lmi/trunk/custom_io_1.cpp   2015-10-30 00:40:28 UTC (rev 6382)
+++ lmi/trunk/custom_io_1.cpp   2015-11-02 23:45:31 UTC (rev 6383)
@@ -32,6 +32,7 @@
 #include "calendar_date.hpp"
 #include "configurable_settings.hpp"
 #include "et_vector.hpp"
+#include "global_settings.hpp"
 #include "input.hpp"
 #include "ledger.hpp"
 #include "ledger_invariant.hpp"
@@ -290,7 +291,14 @@
     if("X" == AutoClose)
         {
         z["Comments"] = "Automatically generated from custom input.";
-        std::ofstream ofs("custom_io_1.ill", ios_out_trunc_binary());
+        // Add ".ill.test1" to prevent regression test from treating
+        // this generated file as a testdeck.
+        std::string f =
+              global_settings::instance().regression_testing()
+            ? actual_filename + ".ill.test1"
+            : "custom_io_1.ill"
+            ;
+        std::ofstream ofs(f.c_str(), ios_out_trunc_binary());
         single_cell_document(z).write(ofs);
         }
 




reply via email to

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