Ejemplo n.º 1
0
 def testNoStupidUnitFailure(self):
     exe = valleak_test.compile(self, "int main() { return 1; }\n")
     runcppunit.runtests([exe], self.tempdir.name)
     output_name = self.tempdir.name + "/TEST-" + exe.replace("/", "_") + ".xml"
     f = open(output_name)
     data = f.read()
     assert 'errors="0"' in data
     assert 'failures="1"' in data
     f.close()
Ejemplo n.º 2
0
 def testNoStupidUnitFailure(self):
     exe = valleak_test.compile(self, "int main() { return 1; }\n")
     runcppunit.runtests([exe], self.tempdir.name)
     output_name = self.tempdir.name + "/TEST-" + exe.replace("/", "_") + ".xml"
     f = open(output_name)
     data = f.read()
     assert 'errors="0"' in data
     assert 'failures="1"' in data
     f.close()