aboutsummaryrefslogtreecommitdiffstats
path: root/include/gtest/gtest.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-03-06 20:05:23 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-03-06 20:05:23 +0000
commit40e72a8a837b47cbfe2e695068c1845073ab2630 (patch)
treece6c72890e27b3215259bedcf7ddb9e28eff4544 /include/gtest/gtest.h
parent4984c93490eeeb7d3d1979b30a39a21cad07cba5 (diff)
downloadgoogletest-40e72a8a837b47cbfe2e695068c1845073ab2630.tar.gz
googletest-40e72a8a837b47cbfe2e695068c1845073ab2630.tar.bz2
googletest-40e72a8a837b47cbfe2e695068c1845073ab2630.zip
Implements --gtest_throw_on_failure for using gtest with other testing frameworks.
Diffstat (limited to 'include/gtest/gtest.h')
-rw-r--r--include/gtest/gtest.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/include/gtest/gtest.h b/include/gtest/gtest.h
index 7fecb92f..9b72b636 100644
--- a/include/gtest/gtest.h
+++ b/include/gtest/gtest.h
@@ -101,20 +101,20 @@ GTEST_DECLARE_bool_(also_run_disabled_tests);
// This flag brings the debugger on an assertion failure.
GTEST_DECLARE_bool_(break_on_failure);
-// This flag controls whether Google Test catches all test-thrown exceptions
-// and logs them as failures.
+// This flag controls whether Google Test catches all test-thrown exceptions
+// and logs them as failures.
GTEST_DECLARE_bool_(catch_exceptions);
-// This flag enables using colors in terminal output. Available values are
-// "yes" to enable colors, "no" (disable colors), or "auto" (the default)
+// This flag enables using colors in terminal output. Available values are
+// "yes" to enable colors, "no" (disable colors), or "auto" (the default)
// to let Google Test decide.
GTEST_DECLARE_string_(color);
-// This flag sets up the filter to select by name using a glob pattern
+// This flag sets up the filter to select by name using a glob pattern
// the tests to run. If the filter is not given all tests are executed.
GTEST_DECLARE_string_(filter);
-// This flag causes the Google Test to list tests. None of the tests listed
+// This flag causes the Google Test to list tests. None of the tests listed
// are actually run if the flag is provided.
GTEST_DECLARE_bool_(list_tests);
@@ -122,11 +122,11 @@ GTEST_DECLARE_bool_(list_tests);
// in addition to its normal textual output.
GTEST_DECLARE_string_(output);
-// This flags control whether Google Test prints the elapsed time for each
+// This flags control whether Google Test prints the elapsed time for each
// test.
GTEST_DECLARE_bool_(print_time);
-// This flag sets how many times the tests are repeated. The default value
+// This flag sets how many times the tests are repeated. The default value
// is 1. If the value is -1 the tests are repeating forever.
GTEST_DECLARE_int32_(repeat);
@@ -138,6 +138,11 @@ GTEST_DECLARE_bool_(show_internal_stack_frames);
// printed in a failure message.
GTEST_DECLARE_int32_(stack_trace_depth);
+// When this flag is specified, a failed assertion will throw an
+// exception if exceptions are enabled, or exit the program with a
+// non-zero code otherwise.
+GTEST_DECLARE_bool_(throw_on_failure);
+
// The upper limit for valid stack trace depths.
const int kMaxStackTraceDepth = 100;