diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-10-11 06:28:54 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-10-11 06:28:54 +0000 |
commit | c18438ca2983d4f334cfdbd4453e15c41111fa17 (patch) | |
tree | 48229c9462cd437cd81d16d93ac8d9714cc292a9 /src | |
parent | 9c482422587e01545f9da375bf585e4251816afc (diff) | |
download | googletest-c18438ca2983d4f334cfdbd4453e15c41111fa17.tar.gz googletest-c18438ca2983d4f334cfdbd4453e15c41111fa17.tar.bz2 googletest-c18438ca2983d4f334cfdbd4453e15c41111fa17.zip |
Makes gtest wokr on MinGW (by Vlad Losev); removes unused linked_ptr::release() method (by Zhanyong Wan).
Diffstat (limited to 'src')
-rw-r--r-- | src/gtest-death-test.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gtest-death-test.cc b/src/gtest-death-test.cc index ffd9f3a4..e11f5041 100644 --- a/src/gtest-death-test.cc +++ b/src/gtest-death-test.cc @@ -526,11 +526,11 @@ bool DeathTestImpl::Passed(bool status_ok) { // class WindowsDeathTest : public DeathTestImpl { public: - WindowsDeathTest(const char* statement, - const RE* regex, + WindowsDeathTest(const char* a_statement, + const RE* a_regex, const char* file, int line) - : DeathTestImpl(statement, regex), file_(file), line_(line) {} + : DeathTestImpl(a_statement, a_regex), file_(file), line_(line) {} // All of these virtual functions are inherited from DeathTest. virtual int Wait(); @@ -587,12 +587,12 @@ int WindowsDeathTest::Wait() { GTEST_DEATH_TEST_CHECK_( WAIT_OBJECT_0 == ::WaitForSingleObject(child_handle_.Get(), INFINITE)); - DWORD status; - GTEST_DEATH_TEST_CHECK_(::GetExitCodeProcess(child_handle_.Get(), &status) - != FALSE); + DWORD status_code; + GTEST_DEATH_TEST_CHECK_( + ::GetExitCodeProcess(child_handle_.Get(), &status_code) != FALSE); child_handle_.Reset(); - set_status(static_cast<int>(status)); - return this->status(); + set_status(static_cast<int>(status_code)); + return status(); } // The AssumeRole process for a Windows death test. It creates a child |