aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gtest/001-fix-UWP-death-test.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/gtest/001-fix-UWP-death-test.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/gtest/001-fix-UWP-death-test.patch')
-rw-r--r--vcpkg/ports/gtest/001-fix-UWP-death-test.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/gtest/001-fix-UWP-death-test.patch b/vcpkg/ports/gtest/001-fix-UWP-death-test.patch
new file mode 100644
index 0000000..0348490
--- /dev/null
+++ b/vcpkg/ports/gtest/001-fix-UWP-death-test.patch
@@ -0,0 +1,13 @@
+diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
+index a64e887c..45ff24c3 100644
+--- a/googletest/src/gtest.cc
++++ b/googletest/src/gtest.cc
+@@ -5434,7 +5434,7 @@ int UnitTest::Run() {
+ // used for the duration of the program.
+ impl()->set_catch_exceptions(GTEST_FLAG_GET(catch_exceptions));
+
+-#ifdef GTEST_OS_WINDOWS
++#if defined(GTEST_OS_WINDOWS) && defined(GTEST_HAS_DEATH_TEST)
+ // 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