- 3.0.1 core module.
googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest Class Reference
Inheritance diagram for googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest:

Public Member Functions

def RunAndVerify (self, env_var_value, flag_value, expect_seg_fault)
 
def testDefaultBehavior (self)
 
def testEnvVar (self)
 
def testFlag (self)
 
def testFlagOverridesEnvVar (self)
 
def testBreakOnFailureOverridesThrowOnFailure (self)
 
def testCatchExceptionsDoesNotInterfere (self)
 

Detailed Description

Tests using the GTEST_BREAK_ON_FAILURE environment variable or
the --gtest_break_on_failure flag to turn assertion failures into
segmentation faults.

Member Function Documentation

def googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify (   self,
  env_var_value,
  flag_value,
  expect_seg_fault 
)
Runs googletest-break-on-failure-unittest_ and verifies that it does
(or does not) have a seg-fault.

Args:
  env_var_value:    value of the GTEST_BREAK_ON_FAILURE environment
                variable; None if the variable should be unset.
  flag_value:       value of the --gtest_break_on_failure flag;
                None if the flag should not be present.
  expect_seg_fault: 1 if the program is expected to generate a seg-fault;
                0 otherwise.

References googletest-break-on-failure-unittest.Run(), and googletest-break-on-failure-unittest.SetEnvVar.

Referenced by googletest-filter-unittest.GTestFilterUnitTest.testBadFilter(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testBreakOnFailureOverridesThrowOnFailure(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testCatchExceptionsDoesNotInterfere(), googletest-throw-on-failure-test.ThrowOnFailureTest.testDefaultBehavior(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testDefaultBehavior(), googletest-list-tests-unittest.GTestListTestsUnitTest.testDefaultBehavior(), googletest-filter-unittest.GTestFilterUnitTest.testDefaultBehavior(), googletest-filter-unittest.GTestFilterUnitTest.testEmptyFilter(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testEnvVar(), googletest-filter-unittest.GTestFilterUnitTest.testFilterByTest(), googletest-filter-unittest.GTestFilterUnitTest.testFilterByTestCase(), googletest-filter-unittest.GTestFilterUnitTest.testFilterDisabledTests(), googletest-filter-unittest.GTestFilterUnitTest.testFilterWithoutDot(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testFlag(), googletest-list-tests-unittest.GTestListTestsUnitTest.testFlag(), googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testFlagOverridesEnvVar(), googletest-filter-unittest.GTestFilterUnitTest.testFullName(), googletest-filter-unittest.GTestFilterUnitTest.testNegativeFilters(), googletest-list-tests-unittest.GTestListTestsUnitTest.testOverrideNonFilterFlags(), googletest-filter-unittest.GTestFilterUnitTest.testThreePatterns(), googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureEnvVar(), googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlag(), googletest-throw-on-failure-test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar(), googletest-filter-unittest.GTestFilterUnitTest.testTwoPatterns(), googletest-filter-unittest.GTestFilterUnitTest.testUniversalFilters(), googletest-filter-unittest.GTestFilterUnitTest.testWildcardInTestCaseName(), googletest-filter-unittest.GTestFilterUnitTest.testWildcardInTestName(), and googletest-list-tests-unittest.GTestListTestsUnitTest.testWithFilterFlags().

def googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testDefaultBehavior (   self)
Tests the behavior of the default mode.

References googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

def googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testEnvVar (   self)
Tests using the GTEST_BREAK_ON_FAILURE environment variable.

References googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

def googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testFlag (   self)
Tests using the --gtest_break_on_failure flag.

References googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

def googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testFlagOverridesEnvVar (   self)
Tests that the flag overrides the environment variable.

References googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

def googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testBreakOnFailureOverridesThrowOnFailure (   self)
Tests that gtest_break_on_failure overrides gtest_throw_on_failure.

References googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), and googletest-break-on-failure-unittest.SetEnvVar.

def googletest-break-on-failure-unittest.GTestBreakOnFailureUnitTest.testCatchExceptionsDoesNotInterfere (   self)

The documentation for this class was generated from the following file: