[cmake-developers] [CMake 0015600]: CTest output redirection doesn't respect the order

Mantis Bug Tracker mantis at public.kitware.com
Tue Jun 2 08:44:48 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15600 
====================================================================== 
Reported By:                Christophe Dumeunier
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15600
Category:                   CTest
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-06-02 08:44 EDT
Last Modified:              2015-06-02 08:44 EDT
====================================================================== 
Summary:                    CTest output redirection doesn't respect the order
Description: 
The output redirection from the terminal (stdout and stderr) to the LastTest.log
file doesn't respect the order of the output between stdout and stderr. When a
long message is printed (and flushed) on stdout and followed by a message on
stderr, the error message is printed inside the message from stdout, even if
stdout is flushed. If I run the executable in the terminal or with "> output.log
2>&1", the error message is printed at the end, as expected.

You can see in attachement the result of executing the given C++ test with
CTest.

Steps to Reproduce: 
Launch the tests on the project given in attachement and observe the problem in
the generated file ./Testing/Temporary/LastTest.log
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-06-02 08:44 Christophe DumeunierNew Issue                                  
 
2015-06-02 08:44 Christophe DumeunierFile Added: bug_ctest_stdouterr.zip        
           
======================================================================



More information about the cmake-developers mailing list