summaryrefslogtreecommitdiff
path: root/test/gtest_xml_outfiles_test.py
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-09-18 21:18:11 +0000
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-09-18 21:18:11 +0000
commitdc8c9fa9f38a6a8fc2b78d8096e8d3f1c969cb7c (patch)
tree3754cd4cd0ddc726c95c456944e7235826a34e3e /test/gtest_xml_outfiles_test.py
parent7291f9d79146744508a910a510b64bb07354435f (diff)
downloadgoogletest-dc8c9fa9f38a6a8fc2b78d8096e8d3f1c969cb7c.tar.gz
Makes the Python tests more portable by calling standard functions to interpret the result of os.system(). This could fix the broken Python tests on some users' machines.
git-svn-id: http://googletest.googlecode.com/svn/trunk@95 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'test/gtest_xml_outfiles_test.py')
-rwxr-xr-xtest/gtest_xml_outfiles_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gtest_xml_outfiles_test.py b/test/gtest_xml_outfiles_test.py
index df0b95b..c76e1f7 100755
--- a/test/gtest_xml_outfiles_test.py
+++ b/test/gtest_xml_outfiles_test.py
@@ -103,7 +103,7 @@ class GTestXMLOutFilesTest(gtest_xml_test_utils.GTestXMLTestCase):
command = "cd %s && %s --gtest_output=xml:%s &> /dev/null" % (
tempfile.mkdtemp(), gtest_prog_path, self.output_dir_)
status = os.system(command)
- self.assertEquals(0, status)
+ self.assertEquals(0, gtest_test_utils.GetExitStatus(status))
# TODO(wan@google.com): libtool causes the built test binary to be
# named lt-gtest_xml_outfiles_test_ instead of