Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
10493e38
Unverified
Commit
10493e38
authored
Feb 21, 2023
by
Sergey
Committed by
GitHub
Feb 21, 2023
Browse files
Fix error in_death_test_child_process: undeclared identifier
The error occurs if !GTEST_HAS_DEATH_TEST on Windows.
parent
750d67d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
googletest/src/gtest.cc
googletest/src/gtest.cc
+3
-0
No files found.
googletest/src/gtest.cc
View file @
10493e38
...
@@ -5416,6 +5416,9 @@ int UnitTest::Run() {
...
@@ -5416,6 +5416,9 @@ int UnitTest::Run() {
impl
()
->
set_catch_exceptions
(
GTEST_FLAG_GET
(
catch_exceptions
));
impl
()
->
set_catch_exceptions
(
GTEST_FLAG_GET
(
catch_exceptions
));
#if GTEST_OS_WINDOWS
#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
// Either the user wants Google Test to catch exceptions thrown by the
// tests or this is executing in the context of death test child
// 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
// process. In either case the user does not want to see pop-up dialogs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment