Fixes Windows CE compatibility problem (issue http://code.google.com/p/googletest/issues/detail?id=362).
This commit is contained in:
@@ -115,7 +115,7 @@ TEST(FooTest, Bar) {
|
||||
void Check(bool condition, const char* msg) {
|
||||
if (!condition) {
|
||||
printf("FAILED: %s\n", msg);
|
||||
abort();
|
||||
testing::internal::posix::Abort();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace {
|
||||
<< " Actual: " << actual_val << "\n"\
|
||||
<< "Expected: " #expected "\n"\
|
||||
<< "Which is: " << expected_val << "\n";\
|
||||
abort();\
|
||||
::testing::internal::posix::Abort();\
|
||||
}\
|
||||
} while(::testing::internal::AlwaysFalse())
|
||||
|
||||
@@ -113,10 +113,10 @@ TEST(BarDeathTest, ThreadSafeAndFast) {
|
||||
g_death_test_count++;
|
||||
|
||||
GTEST_FLAG(death_test_style) = "threadsafe";
|
||||
EXPECT_DEATH_IF_SUPPORTED(abort(), "");
|
||||
EXPECT_DEATH_IF_SUPPORTED(::testing::internal::posix::Abort(), "");
|
||||
|
||||
GTEST_FLAG(death_test_style) = "fast";
|
||||
EXPECT_DEATH_IF_SUPPORTED(abort(), "");
|
||||
EXPECT_DEATH_IF_SUPPORTED(::testing::internal::posix::Abort(), "");
|
||||
}
|
||||
|
||||
#if GTEST_HAS_PARAM_TEST
|
||||
|
||||
Reference in New Issue
Block a user