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        
           
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to