llvm.org GIT mirror llvm / 2228d01
Support GTest for FreeBSD platforms (9.x) Patch by Viktor Kutuzov! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201683 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 5 years ago
2 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1515 $ mv COPYING LICENSE.TXT
1616
1717 Modified as follows:
18 * Added support for FreeBSD.
1819 * To GTestStreamToHelper in include/gtest/internal/gtest-internal.h,
1920 added the ability to stream with raw_os_ostream.
2021 * To refresh Haiku support in include/gtest/internal/gtest-port.h,
8585 // the given platform; otherwise undefined):
8686 // GTEST_OS_AIX - IBM AIX
8787 // GTEST_OS_CYGWIN - Cygwin
88 // GTEST_OS_FREEBSD - FreeBSD
8889 // GTEST_OS_HAIKU - Haiku
8990 // GTEST_OS_HPUX - HP-UX
9091 // GTEST_OS_LINUX - Linux
227228 # endif // _WIN32_WCE
228229 #elif defined __APPLE__
229230 # define GTEST_OS_MAC 1
231 #elif defined __FreeBSD__
232 # define GTEST_OS_FREEBSD 1
230233 #elif defined __linux__
231234 # define GTEST_OS_LINUX 1
232235 # if defined(ANDROID) || defined(__ANDROID__)
420423 //
421424 // To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0
422425 // to your compiler flags.
423 # define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_HPUX)
426 # define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC || \
427 GTEST_OS_HPUX || GTEST_OS_FREEBSD)
424428 #endif // GTEST_HAS_PTHREAD
425429
426430 #if GTEST_HAS_PTHREAD
544548 // pops up a dialog window that cannot be suppressed programmatically.
545549 #if (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \
546550 (GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \
547 GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX)
551 GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || \
552 GTEST_OS_HPUX || GTEST_OS_FREEBSD)
548553 # define GTEST_HAS_DEATH_TEST 1
549554 # include // NOLINT
550555 #endif