summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2017-07-11 16:07:39 +0200
committerJustus Winter <justus@g10code.com>2017-07-13 12:00:55 +0200
commitbce02a8b0f0e51775a4ee5536ccf35efc1f15ca6 (patch)
tree321f6f0da7f33b960611c2b8866c92ef3e786f49 /tests
parentdirmngr: Fix license note in server.c (diff)
downloadgnupg2-bce02a8b0f0e51775a4ee5536ccf35efc1f15ca6.tar.xz
gnupg2-bce02a8b0f0e51775a4ee5536ccf35efc1f15ca6.zip
gpgscm: Make it impossible to catch '*interpreter-exit*'.
* tests/gpgscm/init.scm (throw'): Make it impossible to catch '*interpreter-exit*'. This fixes 'exit' (and with it 'fail') inside 'catch' statements. Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/gpgscm/init.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gpgscm/init.scm b/tests/gpgscm/init.scm
index b78a59e5b..66bec0f79 100644
--- a/tests/gpgscm/init.scm
+++ b/tests/gpgscm/init.scm
@@ -605,12 +605,12 @@
;; This is used by the vm to throw exceptions.
(define (throw' message args history)
(cond
- ((more-handlers?)
- ((pop-handler) message args history))
((and args (list? args) (= 2 (length args))
(equal? *interpreter-exit* (car args)))
(*run-atexit-handlers*)
(quit (cadr args)))
+ ((more-handlers?)
+ ((pop-handler) message args history))
(else
(display message)
(when (and args (not (null? args)))