View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015600CMakeCTestpublic2015-06-02 08:442016-01-04 11:51
ReporterChristophe Dumeunier 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformLinuxOSopenSUSEOS Version12.3
Product VersionCMake 3.1 
Target VersionCMake 3.4Fixed in VersionCMake 3.4 
Summary0015600: CTest output redirection doesn't respect the order
DescriptionThe 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 ReproduceLaunch the tests on the project given in attachement and observe the problem in the generated file ./Testing/Temporary/LastTest.log
TagsNo tags attached.
Attached Fileszip file icon bug_ctest_stdouterr.zip [^] (139,493 bytes) 2015-06-02 08:44

 Relationships

  Notes
(0038882)
Brad King (manager)
2015-06-04 08:46

Fixed and test case added:

 CTest: Capture test stdout/stderr through one pipe
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=721b7e3e [^]
(0040059)
Robert Maynard (manager)
2016-01-04 11:51

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-06-02 08:44 Christophe Dumeunier New Issue
2015-06-02 08:44 Christophe Dumeunier File Added: bug_ctest_stdouterr.zip
2015-06-04 08:46 Brad King Note Added: 0038882
2015-06-04 08:46 Brad King Assigned To => Brad King
2015-06-04 08:46 Brad King Status new => resolved
2015-06-04 08:46 Brad King Resolution open => fixed
2015-06-04 08:46 Brad King Fixed in Version => CMake 3.4
2015-06-04 08:46 Brad King Target Version => CMake 3.4
2016-01-04 11:51 Robert Maynard Note Added: 0040059
2016-01-04 11:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team