summaryrefslogtreecommitdiff
path: root/src/gtest.cc
diff options
context:
space:
mode:
authorvladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2010-10-26 23:12:47 +0000
committervladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2010-10-26 23:12:47 +0000
commit480f1c2878a043af55c5adfc4ed82a6b8a2aae03 (patch)
tree490d88c5462527cf7bed5df3ee6a3fcafc204a37 /src/gtest.cc
parent1287840af7b9efca823ad2fecb6d905f2c4a3ace (diff)
downloadgtest-480f1c2878a043af55c5adfc4ed82a6b8a2aae03.tar.gz
gtest-480f1c2878a043af55c5adfc4ed82a6b8a2aae03.tar.bz2
gtest-480f1c2878a043af55c5adfc4ed82a6b8a2aae03.tar.xz
Changes default of --gtest_catch_exceptions to true.
git-svn-id: http://googletest.googlecode.com/svn/trunk@504 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'src/gtest.cc')
-rw-r--r--src/gtest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gtest.cc b/src/gtest.cc
index ea3a47c..ba27bba 100644
--- a/src/gtest.cc
+++ b/src/gtest.cc
@@ -191,7 +191,7 @@ GTEST_DEFINE_bool_(
GTEST_DEFINE_bool_(
catch_exceptions,
- internal::BoolFromGTestEnv("catch_exceptions", false),
+ internal::BoolFromGTestEnv("catch_exceptions", true),
"True iff " GTEST_NAME_
" should catch exceptions and treat them as test failures.");
@@ -4711,8 +4711,9 @@ static const char kColorEncodedHelpMessage[] =
" Turn assertion failures into debugger break-points.\n"
" @G--" GTEST_FLAG_PREFIX_ "throw_on_failure@D\n"
" Turn assertion failures into C++ exceptions.\n"
-" @G--" GTEST_FLAG_PREFIX_ "catch_exceptions@D\n"
-" Suppress pop-ups caused by exceptions.\n"
+" @G--" GTEST_FLAG_PREFIX_ "catch_exceptions=0@D\n"
+" Do not report exceptions as test failures. Instead, allow them\n"
+" to crash the program or throw a pop-up (on Windows).\n"
"\n"
"Except for @G--" GTEST_FLAG_PREFIX_ "list_tests@D, you can alternatively set "
"the corresponding\n"