proxygen
|
Public Member Functions | |
def | setUp (self) |
def | run_helper (self, args, kwargs) |
def | run_helper_nochecks (self, args, kwargs) |
def | is_debug_build (self) |
def | get_crash_regex (self, msg=b"test program crashing!", glog=True) |
def | test_no_crash (self) |
def | test_async (self) |
def | test_immediate (self) |
def | test_none (self) |
def | test_other_category (self) |
def | test_static_init (self) |
def | test_static_destruction (self) |
def | test_fatal_xlog_if (self) |
def | test_dfatal_xlog_if (self) |
def | test_xcheck (self) |
def | test_xcheck_nomsg (self) |
def | test_xdcheck (self) |
Public Attributes | |
helper | |
Definition at line 24 of file fatal_test.py.
def fatal_test.FatalTests.get_crash_regex | ( | self, | |
msg = b"test program crashing!" , |
|||
glog = True |
|||
) |
Definition at line 74 of file fatal_test.py.
Referenced by fatal_test.FatalTests.test_async(), fatal_test.FatalTests.test_dfatal_xlog_if(), fatal_test.FatalTests.test_fatal_xlog_if(), fatal_test.FatalTests.test_immediate(), fatal_test.FatalTests.test_none(), fatal_test.FatalTests.test_static_init(), fatal_test.FatalTests.test_xcheck(), fatal_test.FatalTests.test_xcheck_nomsg(), and fatal_test.FatalTests.test_xdcheck().
def fatal_test.FatalTests.is_debug_build | ( | self | ) |
Definition at line 63 of file fatal_test.py.
References EgressStateMachineFixture.fail(), IngressStateMachineFixture.fail(), wangle::LineBasedFrameDecoder.fail(), proxygen::ZlibServerFilter.fail(), folly::AsyncSocket::WriteRequest.fail(), folly::AsyncSocket.fail(), folly.format(), and fatal_test.FatalTests.run_helper_nochecks().
Referenced by fatal_test.FatalTests.test_dfatal_xlog_if(), and fatal_test.FatalTests.test_xdcheck().
def fatal_test.FatalTests.run_helper | ( | self, | |
args, | |||
kwargs | |||
) |
Run the helper and verify it crashes. Check that it crashes with SIGABRT and prints nothing on stdout. Returns the data printed to stderr.
Definition at line 35 of file fatal_test.py.
References fatal_test.FatalTests.run_helper_nochecks().
Referenced by fatal_test.FatalTests.test_async(), fatal_test.FatalTests.test_fatal_xlog_if(), fatal_test.FatalTests.test_immediate(), fatal_test.FatalTests.test_none(), fatal_test.FatalTests.test_other_category(), fatal_test.FatalTests.test_static_destruction(), fatal_test.FatalTests.test_static_init(), fatal_test.FatalTests.test_xcheck(), and fatal_test.FatalTests.test_xcheck_nomsg().
def fatal_test.FatalTests.run_helper_nochecks | ( | self, | |
args, | |||
kwargs | |||
) |
Run the helper. Returns a tuple of [returncode, stdout_output, stderr_output]
Definition at line 46 of file fatal_test.py.
References fatal_test.FatalTests.helper, and bm.list.
Referenced by fatal_test.FatalTests.is_debug_build(), fatal_test.FatalTests.run_helper(), fatal_test.FatalTests.test_dfatal_xlog_if(), fatal_test.FatalTests.test_no_crash(), and fatal_test.FatalTests.test_xdcheck().
def fatal_test.FatalTests.setUp | ( | self | ) |
Definition at line 25 of file fatal_test.py.
def fatal_test.FatalTests.test_async | ( | self | ) |
Definition at line 90 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), and fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_dfatal_xlog_if | ( | self | ) |
Definition at line 139 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), fatal_test.FatalTests.is_debug_build(), and fatal_test.FatalTests.run_helper_nochecks().
def fatal_test.FatalTests.test_fatal_xlog_if | ( | self | ) |
Definition at line 133 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), and fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_immediate | ( | self | ) |
Definition at line 95 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), and fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_no_crash | ( | self | ) |
Definition at line 82 of file fatal_test.py.
References fatal_test.FatalTests.run_helper_nochecks().
def fatal_test.FatalTests.test_none | ( | self | ) |
Definition at line 100 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), and fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_other_category | ( | self | ) |
def fatal_test.FatalTests.test_static_destruction | ( | self | ) |
Definition at line 120 of file fatal_test.py.
References fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_static_init | ( | self | ) |
Definition at line 115 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), and fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_xcheck | ( | self | ) |
Definition at line 152 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), and fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_xcheck_nomsg | ( | self | ) |
Definition at line 163 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), and fatal_test.FatalTests.run_helper().
def fatal_test.FatalTests.test_xdcheck | ( | self | ) |
Definition at line 169 of file fatal_test.py.
References fatal_test.FatalTests.get_crash_regex(), fatal_test.FatalTests.is_debug_build(), and fatal_test.FatalTests.run_helper_nochecks().
fatal_test.FatalTests.helper |
Definition at line 28 of file fatal_test.py.
Referenced by fatal_test.FatalTests.run_helper_nochecks().