proxygen
gtest_break_on_failure_unittest Namespace Reference

Classes

class  GTestBreakOnFailureUnitTest
 

Functions

def Run (command)
 

Variables

string __author__ = 'wan@google.com (Zhanyong Wan)'
 
string IS_WINDOWS = 'nt'
 
string BREAK_ON_FAILURE_ENV_VAR = 'GTEST_BREAK_ON_FAILURE'
 
string BREAK_ON_FAILURE_FLAG = 'gtest_break_on_failure'
 
string THROW_ON_FAILURE_ENV_VAR = 'GTEST_THROW_ON_FAILURE'
 
string CATCH_EXCEPTIONS_ENV_VAR = 'GTEST_CATCH_EXCEPTIONS'
 
 EXE_PATH
 
 environ = gtest_test_utils.environ
 
 SetEnvVar = gtest_test_utils.SetEnvVar
 

Function Documentation

def gtest_break_on_failure_unittest.Run (   command)
Runs a command; returns 1 if it was killed by a signal, or 0 otherwise.

Definition at line 80 of file gtest_break_on_failure_unittest.py.

Referenced by gtest_break_on_failure_unittest.GTestBreakOnFailureUnitTest.RunAndVerify().

80 def Run(command):
81  """Runs a command; returns 1 if it was killed by a signal, or 0 otherwise."""
82 
83  p = gtest_test_utils.Subprocess(command, env=environ)
84  if p.terminated_by_signal:
85  return 1
86  else:
87  return 0
88 
89 
90 # The tests.
91 
92 

Variable Documentation

string gtest_break_on_failure_unittest.__author__ = 'wan@google.com (Zhanyong Wan)'
private

Definition at line 41 of file gtest_break_on_failure_unittest.py.

string gtest_break_on_failure_unittest.BREAK_ON_FAILURE_ENV_VAR = 'GTEST_BREAK_ON_FAILURE'

Definition at line 53 of file gtest_break_on_failure_unittest.py.

string gtest_break_on_failure_unittest.BREAK_ON_FAILURE_FLAG = 'gtest_break_on_failure'

Definition at line 56 of file gtest_break_on_failure_unittest.py.

string gtest_break_on_failure_unittest.CATCH_EXCEPTIONS_ENV_VAR = 'GTEST_CATCH_EXCEPTIONS'

Definition at line 62 of file gtest_break_on_failure_unittest.py.

gtest_break_on_failure_unittest.environ = gtest_test_utils.environ

Definition at line 69 of file gtest_break_on_failure_unittest.py.

gtest_break_on_failure_unittest.EXE_PATH
Initial value:
2  'gtest_break_on_failure_unittest_')
def GetTestExecutablePath(executable_name, build_dir=None)

Definition at line 65 of file gtest_break_on_failure_unittest.py.

string gtest_break_on_failure_unittest.IS_WINDOWS = 'nt'

Definition at line 50 of file gtest_break_on_failure_unittest.py.

string gtest_break_on_failure_unittest.THROW_ON_FAILURE_ENV_VAR = 'GTEST_THROW_ON_FAILURE'

Definition at line 59 of file gtest_break_on_failure_unittest.py.