mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-03 16:14:11 +01:00
test: atomicity.py: improve exit probability on failure
Some gdb python exceptions on some os environments (e.g. macOS Sierra, non-codesigned gdb) do not make gdb exit (but to drop down to nonexistent command line?). Mitigate this chance by explict SystemExit on all exceptions. The contents of output file 'gdb.out' is unchanged.
This commit is contained in:
parent
ae05839028
commit
d6a735423b
1 changed files with 5 additions and 1 deletions
|
@ -71,4 +71,8 @@ class RenameBreakpoint(gdb.Breakpoint):
|
||||||
return False
|
return False
|
||||||
RenameBreakpoint('rename')
|
RenameBreakpoint('rename')
|
||||||
|
|
||||||
gdb.execute('run')
|
try:
|
||||||
|
gdb.execute('run')
|
||||||
|
except Exception:
|
||||||
|
import traceback
|
||||||
|
raise SystemExit(traceback.format_exc())
|
||||||
|
|
Loading…
Reference in a new issue