aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_output_test_.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-07-26 21:59:50 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-07-26 21:59:50 +0000
commit7c598c4f1a44fdda5f97587484c85bef9e93fa98 (patch)
treea393db9c0cebf32d9a62a2a95e8ade4f5750c62c /test/gtest_output_test_.cc
parent598fe2288e8e102d6e6748d496a8dcd59fa5f8a8 (diff)
downloadgoogletest-7c598c4f1a44fdda5f97587484c85bef9e93fa98.tar.gz
googletest-7c598c4f1a44fdda5f97587484c85bef9e93fa98.tar.bz2
googletest-7c598c4f1a44fdda5f97587484c85bef9e93fa98.zip
Adds ADD_FAILURE_AT (by Zhanyong Wan); disables -Wswitch-default (by Vlad Losev).
Diffstat (limited to 'test/gtest_output_test_.cc')
-rw-r--r--test/gtest_output_test_.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/gtest_output_test_.cc b/test/gtest_output_test_.cc
index 1ac439c6..454e1bad 100644
--- a/test/gtest_output_test_.cc
+++ b/test/gtest_output_test_.cc
@@ -441,6 +441,10 @@ TEST_F(FatalFailureInSetUpTest, FailureInSetUp) {
<< "We should never get here, as SetUp() failed.";
}
+TEST(AddFailureAtTest, MessageContainsSpecifiedFileAndLineNumber) {
+ ADD_FAILURE_AT("foo.cc", 42) << "Expected failure in foo.cc";
+}
+
#if GTEST_OS_WINDOWS
// This group of tests verifies that Google Test handles SEH and C++