aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-12-19 14:25:52 +0000
committerJustus Winter <[email protected]>2016-12-19 14:42:35 +0000
commitdf00745d6eed7034b218a0c482a46d975425798a (patch)
tree3de7f6aa9d6ed52abe3194dfdcff62ba95e8b76f
parentspeedo,w32: Use nsExec::ExecToLog to avoid popups (diff)
downloadgnupg-df00745d6eed7034b218a0c482a46d975425798a.tar.gz
gnupg-df00745d6eed7034b218a0c482a46d975425798a.zip
gpgscm: Make exception handling more robust.
* tests/gpgscm/init.scm (throw'): Check that args is a list. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--tests/gpgscm/init.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gpgscm/init.scm b/tests/gpgscm/init.scm
index 04f088ca2..106afd554 100644
--- a/tests/gpgscm/init.scm
+++ b/tests/gpgscm/init.scm
@@ -597,7 +597,8 @@
(cond
((more-handlers?)
((pop-handler) message args history))
- ((and args (= 2 (length args)) (equal? *interpreter-exit* (car args)))
+ ((and args (list? args) (= 2 (length args))
+ (equal? *interpreter-exit* (car args)))
(*run-atexit-handlers*)
(quit (cadr args)))
(else