Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest Class Reference
+ Inheritance diagram for gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest:
+ Collaboration diagram for gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest:

Public Member Functions

def RunAndVerify
 
def testDefaultBehavior
 
def testEnvVar
 
def testFlag
 
def testFlagOverridesEnvVar
 
def testBreakOnFailureOverridesThrowOnFailure
 
def testCatchExceptionsDoesNotInterfere
 

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.

Definition at line 93 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 93 of file gtest_break_on_failure_unittest.py

Member Function Documentation

def gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify (   self,
  env_var_value,
  flag_value,
  expect_seg_fault 
)
Runs gtest_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.

Definition at line 99 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 99 of file gtest_break_on_failure_unittest.py

References join(), gtest_break_on_failure_unittest.Run(), and gtest_break_on_failure_unittest.SetEnvVar.

Referenced by gtest_filter_unittest.GTestFilterUnitTest.testBadFilter(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testBreakOnFailureOverridesThrowOnFailure(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testCatchExceptionsDoesNotInterfere(), gtest_throw_on_failure_test.ThrowOnFailureTest.testDefaultBehavior(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testDefaultBehavior(), gtest_list_tests_unittest.GTestListTestsUnitTest.testDefaultBehavior(), gtest_filter_unittest.GTestFilterUnitTest.testDefaultBehavior(), gtest_filter_unittest.GTestFilterUnitTest.testEmptyFilter(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testEnvVar(), gtest_filter_unittest.GTestFilterUnitTest.testFilterByTest(), gtest_filter_unittest.GTestFilterUnitTest.testFilterByTestCase(), gtest_filter_unittest.GTestFilterUnitTest.testFilterDisabledTests(), gtest_filter_unittest.GTestFilterUnitTest.testFilterWithoutDot(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testFlag(), gtest_list_tests_unittest.GTestListTestsUnitTest.testFlag(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testFlagOverridesEnvVar(), gtest_filter_unittest.GTestFilterUnitTest.testFullName(), gtest_filter_unittest.GTestFilterUnitTest.testNegativeFilters(), gtest_list_tests_unittest.GTestListTestsUnitTest.testOverrideNonFilterFlags(), gtest_filter_unittest.GTestFilterUnitTest.testThreePatterns(), gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureEnvVar(), gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlag(), gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar(), gtest_filter_unittest.GTestFilterUnitTest.testTwoPatterns(), gtest_filter_unittest.GTestFilterUnitTest.testUniversalFilters(), gtest_filter_unittest.GTestFilterUnitTest.testWildcardInTestCaseName(), gtest_filter_unittest.GTestFilterUnitTest.testWildcardInTestName(), and gtest_list_tests_unittest.GTestListTestsUnitTest.testWithFilterFlags().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testBreakOnFailureOverridesThrowOnFailure (   self)
Tests that gtest_break_on_failure overrides gtest_throw_on_failure.

Definition at line 187 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 187 of file gtest_break_on_failure_unittest.py

References gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), and gtest_break_on_failure_unittest.SetEnvVar.

+ Here is the call graph for this function:

def gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testCatchExceptionsDoesNotInterfere (   self)
Tests that gtest_catch_exceptions doesn't interfere.

Definition at line 199 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 199 of file gtest_break_on_failure_unittest.py

References gtest_test_utils.Main(), gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify(), and gtest_break_on_failure_unittest.SetEnvVar.

+ Here is the call graph for this function:

def gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testDefaultBehavior (   self)
Tests the behavior of the default mode.

Definition at line 144 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 144 of file gtest_break_on_failure_unittest.py

References gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

+ Here is the call graph for this function:

def gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testEnvVar (   self)
Tests using the GTEST_BREAK_ON_FAILURE environment variable.

Definition at line 151 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 151 of file gtest_break_on_failure_unittest.py

References gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

+ Here is the call graph for this function:

def gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testFlag (   self)
Tests using the --gtest_break_on_failure flag.

Definition at line 161 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 161 of file gtest_break_on_failure_unittest.py

References gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

+ Here is the call graph for this function:

def gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.testFlagOverridesEnvVar (   self)
Tests that the flag overrides the environment variable.

Definition at line 171 of file gtest_break_on_failure_unittest.py.

View newest version in sPHENIX GitHub at line 171 of file gtest_break_on_failure_unittest.py

References gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

+ Here is the call graph for this function:


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