code-mx / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

write empty xml output before starting the tests to detect sefaults #342

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you specify to generate xml outputs and use the generated files in a build 
server like hudson, problems occur if a test binary segfaults. Currently no 
output is written then and hudson has no chance to see if the test was executed 
but failed or not, because there simply is no xml file generated. The absence 
of a xml file should not be the indication for a crashed test.

A simple solution for this problem would be to first write an xml file 
indicating a failure of the test program, then execute all unit tests, and in 
the end replace the contents of the xml file with the real results. If the unit 
tests segfault in between, an error file is still left over.

Original issue reported on code.google.com by johannes...@googlemail.com on 6 Dec 2010 at 5:02

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 14 Dec 2010 at 11:41