[llvm] [gtest] Enable zos for death test support (PR #94623)

Abhina Sree via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 07:19:30 PDT 2024


https://github.com/abhina-sree created https://github.com/llvm/llvm-project/pull/94623

This patch implements the following change to enable zos for death test support. https://github.com/google/googletest/pull/4527

>From bb2ce6a7d9dff3337417e47a219b396a73489168 Mon Sep 17 00:00:00 2001
From: Abhina Sreeskantharajan <Abhina.Sreeskantharajan at ibm.com>
Date: Thu, 6 Jun 2024 10:18:40 -0400
Subject: [PATCH] enable zos for death test support

---
 .../unittest/googletest/include/gtest/internal/gtest-port.h     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/third-party/unittest/googletest/include/gtest/internal/gtest-port.h b/third-party/unittest/googletest/include/gtest/internal/gtest-port.h
index a17349e401503..02e1eb0a914f2 100644
--- a/third-party/unittest/googletest/include/gtest/internal/gtest-port.h
+++ b/third-party/unittest/googletest/include/gtest/internal/gtest-port.h
@@ -652,7 +652,7 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
 // Determines whether to support death tests.
 // pops up a dialog window that cannot be suppressed programmatically.
 #if (defined(GTEST_OS_LINUX) || defined(GTEST_OS_CYGWIN) ||           \
-     defined(GTEST_OS_SOLARIS) ||                                     \
+     defined(GTEST_OS_SOLARIS) || defined(GTEST_OS_ZOS) ||            \
      (defined(GTEST_OS_MAC) && !defined(GTEST_OS_IOS)) ||             \
      (defined(GTEST_OS_WINDOWS_DESKTOP) && _MSC_VER) ||               \
      defined(GTEST_OS_WINDOWS_MINGW) || defined(GTEST_OS_AIX) ||      \



More information about the llvm-commits mailing list