class_docstr: Unit test for Google Test's break-on-failure mode.
  
  Tests using the GTEST_BREAK_ON_FAILURE environment variable or
  the --gtest_break_on_failure flag to turn assertion failures into
  segmentation faults.
class_docstr_tok: ["Unit","test","for","Google","Test","'s","break-on-failure","mode",".","Tests","using","the","GTEST_BREAK_ON_FAILURE","environment","variable","or","the","--","gtest_break_on_failure","flag","to","turn","assertion","failures","into","segmentation","faults","."]
docstr: Tests that the flag overrides the environment variable.
docstr_tok: ["Tests","that","the","flag","overrides","the","environment","variable","."]
code: def testFlagOverridesEnvVar(self):
      """Tests that the flag overrides the environment variable."""
  
      self.RunAndVerify(
          env_var_value="0", flag_value="0", expect_seg_fault=0
      )
      self.RunAndVerify(
          env_var_value="0", flag_value="1", expect_seg_fault=1
      )
      self.RunAndVerify(
          env_var_value="1", flag_value="0", expect_seg_fault=0
      )
      self.RunAndVerify(
          env_var_value="1", flag_value="1", expect_seg_fault=1
      )
  
file_path: googletest/googletest/test/googletest-break-on-failure-unittest.py
imports: import os
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 5 for calling the GTestBreakOnFailureUnitTest obj's underlying member method code with example usage: obj.testFlagOverridesEnvVar() without return types