aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_xml_outfiles_test.py
diff options
context:
space:
mode:
authorvladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2008-11-26 20:02:45 +0000
committervladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2008-11-26 20:02:45 +0000
commit95536ab53bba952d748f6c1535ba9a3b2ff7e294 (patch)
tree16c1ac5e4b98ea73315c0de0b2a8b72ffdd5a722 /test/gtest_xml_outfiles_test.py
parentc440a6923aa65d5be64134a6f430a5867a63df3f (diff)
downloadgoogletest-95536ab53bba952d748f6c1535ba9a3b2ff7e294.tar.gz
googletest-95536ab53bba952d748f6c1535ba9a3b2ff7e294.tar.bz2
googletest-95536ab53bba952d748f6c1535ba9a3b2ff7e294.zip
Fixed gtest_break_on_failure_unittest on Ubuntu 8.04 and Windows
Diffstat (limited to 'test/gtest_xml_outfiles_test.py')
-rwxr-xr-xtest/gtest_xml_outfiles_test.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/gtest_xml_outfiles_test.py b/test/gtest_xml_outfiles_test.py
index d5d7266a..4ebc15ef 100755
--- a/test/gtest_xml_outfiles_test.py
+++ b/test/gtest_xml_outfiles_test.py
@@ -100,11 +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 = "%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))
+ command = [gtest_prog_path, "--gtest_output=xml:%s" % self.output_dir_]
+ p = gtest_test_utils.Subprocess(command, working_dir=tempfile.mkdtemp())
+ self.assert_(p.exited)
+ self.assertEquals(0, p.exit_code)
# TODO(wan@google.com): libtool causes the built test binary to be
# named lt-gtest_xml_outfiles_test_ instead of