mirror of
https://github.com/google/googletest.git
synced 2025-04-10 15:11:10 +00:00
Fix error in_death_test_child_process: undeclared identifier
The error occurs if !GTEST_HAS_DEATH_TEST on Windows.
This commit is contained in:
parent
750d67d809
commit
10493e3854
1 changed files with 3 additions and 0 deletions
|
@ -5416,6 +5416,9 @@ int UnitTest::Run() {
|
|||
impl()->set_catch_exceptions(GTEST_FLAG_GET(catch_exceptions));
|
||||
|
||||
#if GTEST_OS_WINDOWS
|
||||
#if !GTEST_HAS_DEATH_TEST
|
||||
const bool in_death_test_child_process = false;
|
||||
#endif
|
||||
// Either the user wants Google Test to catch exceptions thrown by the
|
||||
// tests or this is executing in the context of death test child
|
||||
// process. In either case the user does not want to see pop-up dialogs
|
||||
|
|
Loading…
Add table
Reference in a new issue