aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/issue2419.scm
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-19 15:19:00 +0000
committerJustus Winter <[email protected]>2016-09-19 16:49:17 +0000
commitab483eff9a8254adf127cdee178e14ba74f0a2b3 (patch)
tree254dda8512ccdbcdad53ee3089766010f34893d7 /tests/openpgp/issue2419.scm
parenttests: Use descriptive temporary file names. (diff)
downloadgnupg-ab483eff9a8254adf127cdee178e14ba74f0a2b3.tar.gz
gnupg-ab483eff9a8254adf127cdee178e14ba74f0a2b3.zip
tests: Refine exception handling.
* tests/gpgscm/init.scm (catch): Bind all arguments to '*error*' in the error handler, update and fix comment. (*error-hook*): Revert to original definition. * tests/gpgscm/tests.scm (tr:do): Adapt accordingly. * tests/openpgp/issue2419.scm: Likewise. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/openpgp/issue2419.scm')
-rwxr-xr-xtests/openpgp/issue2419.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/openpgp/issue2419.scm b/tests/openpgp/issue2419.scm
index efc42a6ae..1f87d1b76 100755
--- a/tests/openpgp/issue2419.scm
+++ b/tests/openpgp/issue2419.scm
@@ -23,6 +23,6 @@
(lettmp
(onebyte)
(dearmor (in-srcdir "samplemsgs/issue2419.asc") onebyte)
- (catch (assert (string-contains? *error* "invalid packet"))
+ (catch (assert (string-contains? (car *error*) "invalid packet"))
(call-popen `(,@GPG --list-packets ,onebyte) "")
(error "Expected an error but got none")))