Fixes death-test-related tests on Windows, by Vlad Losev.

This commit is contained in:
zhanyong.wan
2009-03-11 18:31:26 +00:00
parent 40e72a8a83
commit 44a041b711
6 changed files with 17 additions and 11 deletions

View File

@@ -616,6 +616,7 @@ class TypedTestCasePState {
fprintf(stderr, "%s Test %s must be defined before "
"REGISTER_TYPED_TEST_CASE_P(%s, ...).\n",
FormatFileLocation(file, line).c_str(), test_name, case_name);
fflush(stderr);
abort();
}
defined_test_names_.insert(test_name);

View File

@@ -198,7 +198,7 @@
// simple regex implementation instead.
#define GTEST_USES_SIMPLE_RE 1
#endif // GTEST_OS_LINUX
#endif // GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC
// Defines GTEST_HAS_EXCEPTIONS to 1 if exceptions are enabled, or 0
// otherwise.