|
|
|
|
@ -105,15 +105,12 @@ def test_loads_binary_with_core_without_crashing():
|
|
|
|
|
|
|
|
|
|
assert all(item in output for item in expected)
|
|
|
|
|
|
|
|
|
|
# matches for example '[New LWP 45429]'
|
|
|
|
|
lwp_line = re.compile('^\[New LWP \d+\]$')
|
|
|
|
|
assert any([lwp_line.match(line) for line in output])
|
|
|
|
|
|
|
|
|
|
# matches for example "Core was generated by `./binary'."
|
|
|
|
|
binary_line = re.compile("^Core was generated by .+$")
|
|
|
|
|
assert any([binary_line.match(line) for line in output])
|
|
|
|
|
|
|
|
|
|
# matches for example '#0 0x0000556e99b7913c in main ()'
|
|
|
|
|
crash_address_line = re.compile('^#0 0x[0-9a-fA-F]+ in main \(\)$')
|
|
|
|
|
assert any([crash_address_line.match(line) for line in output])
|
|
|
|
|
|
|
|
|
|
@ -135,15 +132,12 @@ def test_loads_core_without_crashing():
|
|
|
|
|
|
|
|
|
|
assert all(item in output for item in expected)
|
|
|
|
|
|
|
|
|
|
# matches for example '[New LWP 45429]'
|
|
|
|
|
lwp_line = re.compile('^\[New LWP \d+\]$')
|
|
|
|
|
assert any([lwp_line.match(line) for line in output])
|
|
|
|
|
|
|
|
|
|
# matches for example "Core was generated by `./binary'."
|
|
|
|
|
binary_line = re.compile("^Core was generated by .+$")
|
|
|
|
|
assert any([binary_line.match(line) for line in output])
|
|
|
|
|
|
|
|
|
|
# matches for example '#0 0x0000556e99b7913c in ?? ()'
|
|
|
|
|
crash_address_line = re.compile('^#0 0x[0-9a-fA-F]+ in \?\? \(\)$')
|
|
|
|
|
assert any([crash_address_line.match(line) for line in output])
|
|
|
|
|
|
|
|
|
|
|