Fixed two of the failing tests mentioned in issue 9

This commit is contained in:
vladlosev
2008-11-22 02:26:23 +00:00
parent d4e57d12d4
commit 514265c415
3 changed files with 34 additions and 9 deletions

View File

@@ -100,9 +100,10 @@ class GTestXMLOutFilesTest(gtest_xml_test_utils.GTestXMLTestCase):
def _TestOutFile(self, test_name, expected_xml):
gtest_prog_path = os.path.join(gtest_test_utils.GetBuildDir(),
test_name)
command = "cd %s && %s --gtest_output=xml:%s &> /dev/null" % (
tempfile.mkdtemp(), gtest_prog_path, self.output_dir_)
status = os.system(command)
command = "%s --gtest_output=xml:%s" % (gtest_prog_path, self.output_dir_)
status = gtest_test_utils.RunCommandSuppressOutput(
command,
working_dir=tempfile.mkdtemp())
self.assertEquals(0, gtest_test_utils.GetExitStatus(status))
# TODO(wan@google.com): libtool causes the built test binary to be