diff options
author | shiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925> | 2008-07-31 18:34:08 +0000 |
---|---|---|
committer | shiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925> | 2008-07-31 18:34:08 +0000 |
commit | bf9b4b48dc65adc2edd44175f77b4a7363c59234 (patch) | |
tree | 4da8e8084682bbd9121ed76e450ee2074620b59f /src/gtest-port.cc | |
parent | dc6ee0e36df772499e5a86ee638f5aae160c1023 (diff) | |
download | googletest-bf9b4b48dc65adc2edd44175f77b4a7363c59234.tar.gz googletest-bf9b4b48dc65adc2edd44175f77b4a7363c59234.tar.bz2 googletest-bf9b4b48dc65adc2edd44175f77b4a7363c59234.zip |
Makes gtest work on Windows Mobile and Symbian. By Mika Raento.
Diffstat (limited to 'src/gtest-port.cc')
-rw-r--r-- | src/gtest-port.cc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/gtest-port.cc b/src/gtest-port.cc index efc40ca7..b2871b8b 100644 --- a/src/gtest-port.cc +++ b/src/gtest-port.cc @@ -32,16 +32,22 @@ #include <gtest/internal/gtest-port.h> #include <limits.h> +#include <stdlib.h> +#include <stdio.h> + #ifdef GTEST_HAS_DEATH_TEST #include <regex.h> #endif // GTEST_HAS_DEATH_TEST -#include <stdlib.h> -#include <stdio.h> + +#ifdef _WIN32_WCE +#include <windows.h> // For TerminateProcess() +#endif // _WIN32_WCE #include <gtest/gtest-spi.h> #include <gtest/gtest-message.h> #include <gtest/internal/gtest-string.h> + namespace testing { namespace internal { @@ -194,6 +200,13 @@ const ::std::vector<String>& GetArgvs() { return g_argvs; } #endif // GTEST_HAS_DEATH_TEST +#ifdef _WIN32_WCE +void abort() { + DebugBreak(); + TerminateProcess(GetCurrentProcess(), 1); +} +#endif // _WIN32_WCE + // Returns the name of the environment variable corresponding to the // given flag. For example, FlagToEnvVar("foo") will return // "GTEST_FOO" in the open-source version. |