MantisBT - CMake
View Issue Details
0007865CMakeCTestpublic2008-10-28 04:032010-10-06 14:47
Rolf Eike Beer 
Brad King 
normalminoralways
closedfixed 
CMake-2-6 
CMake 2.8.3CMake 2.8.3 
0007865: Command line is not XML escaped if test fails
The main.cpp was just "main(){return -1;}" so all tests fail. In the resulting XML the command line of the test was not XML-escaped correctly.
Checked on Windows32 using CMake 2.6.2
No tags attached.
txt CMakeLists.txt (350) 2008-10-28 04:03
https://public.kitware.com/Bug/file/1804/CMakeLists.txt
Issue History
2008-10-28 04:03Rolf Eike BeerNew Issue
2008-10-28 04:03Rolf Eike BeerFile Added: CMakeLists.txt
2009-01-29 12:27Bill HoffmanNote Added: 0014714
2009-01-29 12:27Bill HoffmanStatusnew => assigned
2009-01-29 12:27Bill HoffmanAssigned To => Bill Hoffman
2009-05-11 11:34Rolf Eike BeerNote Added: 0016374
2010-08-18 11:15Brad KingNote Added: 0021805
2010-08-18 11:15Brad KingAssigned ToBill Hoffman => Brad King
2010-08-18 11:15Brad KingStatusassigned => closed
2010-08-18 11:15Brad KingResolutionopen => fixed
2010-08-31 17:51David ColeTarget Version => CMake 2.8.3
2010-10-06 14:47David ColeFixed in Version => CMake 2.8.3

Notes
(0014714)
Bill Hoffman   
2009-01-29 12:27   
Seems to be fixed in CVS CMake:

$ grep CommandLine Testing/20090129-1725/Test.xml
                <FullCommandLine>C:\hoffman\foo\test\b\CTestTest.exe "< >"</FullCommandLine>
                <FullCommandLine>C:\hoffman\foo\test\b\CTestTest.exe "< 1 < 2 < 3 < 4 > 5 > 6 > 7 >8 >"</FullCommandLine>
                <FullCommandLine>C:\hoffman\foo\test\b\CTestTest.exe <html></FullCommandLine>
                <FullCommandLine>C:\hoffman\foo\test\b\CTestTest.exe </xml></FullCommandLine>
(0016374)
Rolf Eike Beer   
2009-05-11 11:34   
No, that's exacly the bug. It must write '...\b\CTestTest.exe "< >"</FullCommandLine>'.
(0021805)
Brad King   
2010-08-18 11:15   
This works as expected in 2.8.2. It was fixed (in 2.8.1 I think) as a side-effect of utf8 encoding fixes.

I've just further improved the output on UNIX systems by quoting arguments instead of using backslashes to escape spaces:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=53836573 [^]