lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6045] Write all test output to stdout, not stderr


From: Greg Chicares
Subject: [lmi-commits] [6045] Write all test output to stdout, not stderr
Date: Fri, 05 Dec 2014 17:20:19 +0000

Revision: 6045
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6045
Author:   chicares
Date:     2014-12-05 17:20:18 +0000 (Fri, 05 Dec 2014)
Log Message:
-----------
Write all test output to stdout, not stderr

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

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2014-12-04 04:36:17 UTC (rev 6044)
+++ lmi/trunk/ChangeLog 2014-12-05 17:20:18 UTC (rev 6045)
@@ -34714,3 +34714,9 @@
 Provide more information when a test fails. See:
   http://lists.nongnu.org/archive/html/lmi/2014-11/msg00061.html
 
+20141205T1720Z <address@hidden> [516]
+
+  main_wx_test.cpp
+Write all test output to stdout, not stderr. See:
+  http://lists.nongnu.org/archive/html/lmi/2014-12/msg00004.html
+

Modified: lmi/trunk/main_wx_test.cpp
===================================================================
--- lmi/trunk/main_wx_test.cpp  2014-12-04 04:36:17 UTC (rev 6044)
+++ lmi/trunk/main_wx_test.cpp  2014-12-05 17:20:18 UTC (rev 6045)
@@ -538,16 +538,16 @@
     // stamps in the logs to avoid spurious differences due to them.
     wxLog::DisableTimestamp();
 
-    // Log everything to stderr, both to avoid interacting with the user (who
-    // might not even be present) and to allow redirecting the test output to a
-    // file which may subsequently be compared with the previous test runs.
-    delete wxLog::SetActiveTarget(new wxLogStderr);
-
     if(!Skeleton::OnInit())
         {
         return false;
         }
 
+    // Log everything to stdout, both to avoid interacting with the user (who
+    // might not even be present) and to allow redirecting the test output to a
+    // file which may subsequently be compared with the previous test runs.
+    delete wxLog::SetActiveTarget(new wxLogStderr(stdout));
+
     // Run the tests at idle time, when the main loop is running, in order to
     // do it in as realistic conditions as possible.
     CallAfter(&SkeletonTest::RunTheTests);




reply via email to

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