1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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>
This commit is contained in:
Justus Winter 2017-07-11 16:07:39 +02:00
parent 957f8ebc89
commit bce02a8b0f
No known key found for this signature in database
GPG Key ID: DD1A52F9DA8C9020

View File

@ -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)))