MantisBT - CDash
View Issue Details
0011308CDash[CMake] public2010-10-12 15:092011-12-22 12:41
David Coeurjolly 
Julien Jomier 
normalmajoralways
resolvedno change required 
1.6.4 
 
0011308: Ctest and CDash do not handle C++ exception correctly in test files

I've got a C++ unit test that throws an c++ exception. During the "make test", CTest correctly tags the test as "****Exception: Other" and it returns message:

The following tests FAILED:
     33 - testMagickReader (OTHER_FAULT)


The problem is that CTest ends up with an error "Errors while running CTest" (error code 8) and the report is not published to my local cdash (1.6.4).


If I remove the file from the test suite, ctest and cdash work perfectly...

If needed, I could attach the complete ctest log...
No tags attached.
tgz ExceptTest.tgz (533) 2010-10-16 11:50
https://public.kitware.com/Bug/file/3452/ExceptTest.tgz
Issue History
2010-10-12 15:09David CoeurjollyNew Issue
2010-10-12 15:14David CoeurjollyNote Added: 0022480
2010-10-13 03:11Julien JomierProjectCDash => CMake
2010-10-16 11:50David CoeurjollyFile Added: ExceptTest.tgz
2010-10-16 11:51David CoeurjollyNote Added: 0022508
2011-01-06 17:07Bill HoffmanNote Added: 0024500
2011-01-06 17:07Bill HoffmanAssigned To => Julien Jomier
2011-01-06 17:07Bill HoffmanStatusnew => assigned
2011-01-18 12:03David ColeProjectCMake => CDash
2011-12-22 12:41Julien JomierNote Added: 0028045
2011-12-22 12:41Julien JomierStatusassigned => resolved
2011-12-22 12:41Julien JomierResolutionopen => no change required

Notes
(0022480)
David Coeurjolly   
2010-10-12 15:14   
Missing info: I'm using ctest 2.8.2
(0022508)
David Coeurjolly   
2010-10-16 11:51   
I've added a code snippet...

the "ctest" produces an error (and the cdash report is not produced).
(0024500)
Bill Hoffman   
2011-01-06 17:07   
I ran this, and the xml I get that would go to cdash has this: <Results>
                        <NamedMeasurement type="text/string" name="Exit Code"><Value>Failed</Value></NamedMeasurement>
                        <NamedMeasurement type="text/string" name="Exit Value"><Value>3</Value></NamedMeasurement>
                        <NamedMeasurement type="numeric/double" name="Execution Time"><Value>2.997</Value></NamedMeasurement>
                        <NamedMeasurement type="text/string" name="Completion Status"><Value>Completed</Value></NamedMeasurement>
                        <NamedMeasurement type="text/string" name="Command Line"><Value>"C:\Users\hoffman\Work\My Builds\test\ExceptTest\b\simpleThrow.exe"</Value></NamedMeasurement>
                        <Measurement>
                                <Value>Exception catched:bad allocation
</Value>
                        </Measurement>
                </Results>
        </Test>
        <EndDateTime>Jan 06 17:05 Eastern Standard Time</EndDateTime>
        <EndTestTime>1294351545</EndTestTime>
<ElapsedMinutes>0</ElapsedMinutes></Testing>

So, this might be a CDash display issue?
(0028045)
Julien Jomier   
2011-12-22 12:41   
It seems that everything works correctly with CDash 1.9 and CMake 2.8.6