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 | c7f60f1514013d57a624c3a2966709998678f24b (patch) | |
tree | c31ceb2e69ca6e51ebef7a3978bd7d7f900db6a1 /test/gtest_throw_on_failure_test.py | |
parent | 73ad5a3327d38504954d33b58f27e29a7089bd96 (diff) | |
download | googletest-c7f60f1514013d57a624c3a2966709998678f24b.tar.gz |
Renames the POSIX wrappers (by Zhanyong Wan) and adds more targets to SConscript (by Vlad Losev).
git-svn-id: http://googletest.googlecode.com/svn/trunk@242 861a406c-534a-0410-8894-cb66d6ee9925
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 50172d0..e952da5 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 |