pytest:segfault: prevent @no_gdb_backtrace smearing on exception
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 6 Mar 2024 22:05:55 +0000 (11:05 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 Mar 2024 23:42:34 +0000 (23:42 +0000)
commit5ceecd3f739b347e684895115c5f9cd79b91f4b7
treec79efa2ee2edcaefcb544f26ba903a00f37045f8
parent682a87fd0a81e13eabaa422d89209688b7b19098
pytest:segfault: prevent @no_gdb_backtrace smearing on exception

It is OK for one of these tests to raise an exception -- that is often
the only reasonable thing to do when you'd otherwise crash -- but the
@no_gdb_backtrace decorator would not clean up in that case, leading to
no gdb backtraces for all subsequent tests.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/segfault.py