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

@@ -49,16 +49,17 @@
#include <stddef.h>
#include <stdlib.h> // For strtoll/_strtoul64.
#include <string>
#include <gtest/internal/gtest-port.h>
#if GTEST_OS_WINDOWS
#include <windows.h> // For DWORD.
#endif // GTEST_OS_WINDOWS
#include <gtest/internal/gtest-port.h>
#include <gtest/gtest.h>
#include <gtest/gtest-spi.h>
#include <string>
namespace testing {
// Declares the flags.

View File

@@ -85,6 +85,7 @@ const char* TypedTestCasePState::VerifyRegisteredTestNames(
if (errors_str != "") {
fprintf(stderr, "%s %s", FormatFileLocation(file, line).c_str(),
errors_str.c_str());
fflush(stderr);
abort();
}