diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-04-24 00:26:25 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-04-24 00:26:25 +0000 |
commit | f2d0d0e3d56794855d1e9a1f157457b7225e8c88 (patch) | |
tree | c31ceb2e69ca6e51ebef7a3978bd7d7f900db6a1 /test/gtest_throw_on_failure_test.py | |
parent | f204cd89e591e8cda022f4b471962c8556e19b8c (diff) | |
download | googletest-f2d0d0e3d56794855d1e9a1f157457b7225e8c88.tar.gz googletest-f2d0d0e3d56794855d1e9a1f157457b7225e8c88.tar.bz2 googletest-f2d0d0e3d56794855d1e9a1f157457b7225e8c88.zip |
Renames the POSIX wrappers (by Zhanyong Wan) and adds more targets to SConscript (by Vlad Losev).
Diffstat (limited to 'test/gtest_throw_on_failure_test.py')
-rwxr-xr-x | test/gtest_throw_on_failure_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/gtest_throw_on_failure_test.py b/test/gtest_throw_on_failure_test.py index 50172d07..e952da5a 100755 --- a/test/gtest_throw_on_failure_test.py +++ b/test/gtest_throw_on_failure_test.py @@ -72,7 +72,8 @@ def Run(command): """Runs a command; returns True/False if its exit code is/isn't 0.""" print 'Running "%s". . .' % ' '.join(command) - return gtest_test_utils.Subprocess(command).exit_code == 0 + p = gtest_test_utils.Subprocess(command) + return p.exited and p.exit_code == 0 # The tests. TODO(wan@google.com): refactor the class to share common |