View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007865CMakeCTestpublic2008-10-28 04:032010-10-06 14:47
ReporterRolf Eike Beer 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0007865: Command line is not XML escaped if test fails
DescriptionThe 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.
Additional InformationChecked on Windows32 using CMake 2.6.2
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (350 bytes) 2008-10-28 04:03 [Show Content]

 Relationships

  Notes
(0014714)
Bill Hoffman (manager)
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 (developer)
2009-05-11 11:34

No, that's exacly the bug. It must write '...\b\CTestTest.exe "< >"</FullCommandLine>'.
(0021805)
Brad King (manager)
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 [^]

 Issue History
Date Modified Username Field Change
2008-10-28 04:03 Rolf Eike Beer New Issue
2008-10-28 04:03 Rolf Eike Beer File Added: CMakeLists.txt
2009-01-29 12:27 Bill Hoffman Note Added: 0014714
2009-01-29 12:27 Bill Hoffman Status new => assigned
2009-01-29 12:27 Bill Hoffman Assigned To => Bill Hoffman
2009-05-11 11:34 Rolf Eike Beer Note Added: 0016374
2010-08-18 11:15 Brad King Note Added: 0021805
2010-08-18 11:15 Brad King Assigned To Bill Hoffman => Brad King
2010-08-18 11:15 Brad King Status assigned => closed
2010-08-18 11:15 Brad King Resolution open => fixed
2010-08-31 17:51 David Cole Target Version => CMake 2.8.3
2010-10-06 14:47 David Cole Fixed in Version => CMake 2.8.3


Copyright © 2000 - 2018 MantisBT Team