mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02: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:
parent
957f8ebc89
commit
bce02a8b0f
@ -605,12 +605,12 @@
|
|||||||
;; This is used by the vm to throw exceptions.
|
;; This is used by the vm to throw exceptions.
|
||||||
(define (throw' message args history)
|
(define (throw' message args history)
|
||||||
(cond
|
(cond
|
||||||
((more-handlers?)
|
|
||||||
((pop-handler) message args history))
|
|
||||||
((and args (list? args) (= 2 (length args))
|
((and args (list? args) (= 2 (length args))
|
||||||
(equal? *interpreter-exit* (car args)))
|
(equal? *interpreter-exit* (car args)))
|
||||||
(*run-atexit-handlers*)
|
(*run-atexit-handlers*)
|
||||||
(quit (cadr args)))
|
(quit (cadr args)))
|
||||||
|
((more-handlers?)
|
||||||
|
((pop-handler) message args history))
|
||||||
(else
|
(else
|
||||||
(display message)
|
(display message)
|
||||||
(when (and args (not (null? args)))
|
(when (and args (not (null? args)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user