[Pkg-gnupg-commit] [gnupg2] 15/112: gpgscm: Make assert macro more accurate.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Aug 30 17:48:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 699c6c9f4b44441ab3db7f942df5b81f4cd88b06
Author: Justus Winter <justus at g10code.com>
Date: Thu Jul 21 18:05:58 2016 +0200
gpgscm: Make assert macro more accurate.
* tests/gpgscm/lib.scm (assert): Print the representation of the
failed expression.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/gpgscm/lib.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/gpgscm/lib.scm b/tests/gpgscm/lib.scm
index e23977a..fe28262 100644
--- a/tests/gpgscm/lib.scm
+++ b/tests/gpgscm/lib.scm
@@ -20,7 +20,8 @@
(macro (assert form)
`(if (not ,(cadr form))
(begin
- (display (list "Assertion failed:" (quote ,(cadr form))))
+ (display "Assertion failed: ")
+ (write (quote ,(cadr form)))
(newline)
(exit 1))))
(assert #t)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list