diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-05-03 01:58:34 +0000 |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-05-03 01:58:34 +0000 |
commit | 814a5e9310bbc8aeb0b985c1dcb66496835bf73a (patch) | |
tree | 2a89f29fecd76486e44a6b2a8aa508e389774d36 | |
parent | 758728ba9ba2bd514a25a95fa820698bcdb7415e (diff) | |
download | googletest-814a5e9310bbc8aeb0b985c1dcb66496835bf73a.tar.gz googletest-814a5e9310bbc8aeb0b985c1dcb66496835bf73a.tar.bz2 googletest-814a5e9310bbc8aeb0b985c1dcb66496835bf73a.zip |
Adds support for death tests in OpenBSD (by Paweł Hajdan Jr.)
-rw-r--r-- | include/gtest/internal/gtest-port.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index 157b47f8..94efca30 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -91,6 +91,7 @@ // GTEST_OS_LINUX_ANDROID - Google Android // GTEST_OS_MAC - Mac OS X // GTEST_OS_NACL - Google Native Client (NaCl) +// GTEST_OS_OPENBSD - OpenBSD // GTEST_OS_SOLARIS - Sun Solaris // GTEST_OS_SYMBIAN - Symbian // GTEST_OS_WINDOWS - Windows (Desktop, MinGW, or Mobile) @@ -242,6 +243,8 @@ # define GTEST_OS_HPUX 1 #elif defined __native_client__ # define GTEST_OS_NACL 1 +#elif defined __OpenBSD__ +# define GTEST_OS_OPENBSD 1 #endif // __CYGWIN__ // Brings in definitions for functions used in the testing::internal::posix @@ -540,7 +543,8 @@ // pops up a dialog window that cannot be suppressed programmatically. #if (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \ (GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \ - GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX) + GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX || \ + GTEST_OS_OPENBSD) # define GTEST_HAS_DEATH_TEST 1 # include <vector> // NOLINT #endif |