unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: atomicity.py: improve exit probability on failure
@ 2017-01-04 14:53 Tomi Ollila
  2017-03-11 14:07 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Tomi Ollila @ 2017-01-04 14:53 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

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.
---
 test/atomicity.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/atomicity.py b/test/atomicity.py
index 1ca52b9c4f73..389517e1571e 100644
--- a/test/atomicity.py
+++ b/test/atomicity.py
@@ -71,4 +71,8 @@ class RenameBreakpoint(gdb.Breakpoint):
         return False
 RenameBreakpoint('rename')
 
-gdb.execute('run')
+try:
+    gdb.execute('run')
+except Exception:
+    import traceback
+    raise SystemExit(traceback.format_exc())
-- 
2.8.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test: atomicity.py: improve exit probability on failure
  2017-01-04 14:53 [PATCH] test: atomicity.py: improve exit probability on failure Tomi Ollila
@ 2017-03-11 14:07 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2017-03-11 14:07 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

Tomi Ollila <tomi.ollila@iki.fi> writes:

> 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.

pushed to master

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-11 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 14:53 [PATCH] test: atomicity.py: improve exit probability on failure Tomi Ollila
2017-03-11 14:07 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).