summaryrefslogtreecommitdiff
path: root/test/gmock-nice-strict_test.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-09-17 19:11:00 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-09-17 19:11:00 +0000
commitd364a885032cdbb1c8ddeedbf8885ae480c08f88 (patch)
treeb45c6cd301106eecc1e36c182f4960aed604858d /test/gmock-nice-strict_test.cc
parent7c62e4cb0ac5c748d3b5c28b5c06367b15f77389 (diff)
downloadgooglemock-d364a885032cdbb1c8ddeedbf8885ae480c08f88.tar.gz
Disbles two tests that crash on Symbian.
git-svn-id: http://googlemock.googlecode.com/svn/trunk@204 8415998a-534a-0410-bf83-d39667b30386
Diffstat (limited to 'test/gmock-nice-strict_test.cc')
-rw-r--r--test/gmock-nice-strict_test.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/test/gmock-nice-strict_test.cc b/test/gmock-nice-strict_test.cc
index 15984a5..0dc7106 100644
--- a/test/gmock-nice-strict_test.cc
+++ b/test/gmock-nice-strict_test.cc
@@ -173,16 +173,21 @@ TEST(NiceMockTest, NonDefaultConstructor10) {
nice_bar.That(5, true);
}
+#if !GTEST_OS_SYMBIAN
// Tests that NiceMock<Mock> compiles where Mock is a user-defined
// class (as opposed to ::testing::Mock). We had to workaround an
// MSVC 8.0 bug that caused the symbol Mock used in the definition of
// NiceMock to be looked up in the wrong context, and this test
// ensures that our fix works.
+//
+// We have to skip this test on Symbian, as it causes the program to
+// crash there, for reasons unclear to us yet.
TEST(NiceMockTest, AcceptsClassNamedMock) {
NiceMock< ::Mock> nice;
EXPECT_CALL(nice, DoThis());
nice.DoThis();
}
+#endif // !GTEST_OS_SYMBIAN
// Tests that a strict mock allows expected calls.
TEST(StrictMockTest, AllowsExpectedCall) {
@@ -242,16 +247,21 @@ TEST(StrictMockTest, NonDefaultConstructor10) {
"Uninteresting mock function call");
}
+#if !GTEST_OS_SYMBIAN
// Tests that StrictMock<Mock> compiles where Mock is a user-defined
// class (as opposed to ::testing::Mock). We had to workaround an
// MSVC 8.0 bug that caused the symbol Mock used in the definition of
// StrictMock to be looked up in the wrong context, and this test
// ensures that our fix works.
+//
+// We have to skip this test on Symbian, as it causes the program to
+// crash there, for reasons unclear to us yet.
TEST(StrictMockTest, AcceptsClassNamedMock) {
- StrictMock< ::Mock> nice;
- EXPECT_CALL(nice, DoThis());
- nice.DoThis();
+ StrictMock< ::Mock> strict;
+ EXPECT_CALL(strict, DoThis());
+ strict.DoThis();
}
+#endif // !GTEST_OS_SYMBIAN
} // namespace gmock_nice_strict_test
} // namespace testing