summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@google.com>2022-09-21 06:07:33 (GMT)
committerMarat Dukhan <maratek@google.com>2022-09-26 21:49:00 (GMT)
commit7a3abfec0aa5255f0ecf246987422493e9ca6a75 (patch)
tree011816dd1de13a4b3904111033c08dbc798c5115 /googlemock
parent1336c4b6d1a6f4bc6beebccb920e5ff858889292 (diff)
downloadgoogletest-7a3abfec0aa5255f0ecf246987422493e9ca6a75.zip
googletest-7a3abfec0aa5255f0ecf246987422493e9ca6a75.tar.gz
googletest-7a3abfec0aa5255f0ecf246987422493e9ca6a75.tar.bz2
Port GoogleTest to QuRT (Hexagon RTOS)refs/pull/4016/head
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/src/gmock-spec-builders.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/googlemock/src/gmock-spec-builders.cc b/googlemock/src/gmock-spec-builders.cc
index 1771e40..b333e53 100644
--- a/googlemock/src/gmock-spec-builders.cc
+++ b/googlemock/src/gmock-spec-builders.cc
@@ -51,6 +51,9 @@
#if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC
#include <unistd.h> // NOLINT
#endif
+#if GTEST_OS_QURT
+#include <qurt_event.h>
+#endif
// Silence C4800 (C4800: 'int *const ': forcing value
// to bool 'true' or 'false') for MSVC 15
@@ -519,8 +522,12 @@ class MockObjectRegistry {
// RUN_ALL_TESTS() has already returned when this destructor is
// called. Therefore we cannot use the normal Google Test
// failure reporting mechanism.
+#if GTEST_OS_QURT
+ qurt_exception_raise_fatal();
+#else
_exit(1); // We cannot call exit() as it is not reentrant and
// may already have been called.
+#endif
}
}