summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-06-12 23:37:45 +0400
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-06-12 23:37:45 +0400
commit3b6f419ce7fb72706600234832f451690f353de7 (patch)
tree064af88aa0e03ceb0c98f923d96b3d0320f6b887 /tests
parenttests/common.scm (test-error-with-log): New macro (diff)
downloadguile-ssh-3b6f419ce7fb72706600234832f451690f353de7.tar.gz
tests/common.scm (test-error-with-log): Bugfix
* tests/common.scm (test-error-with-log): Bugfix: Handle 2nd syntax rule properly.
Diffstat (limited to 'tests')
-rw-r--r--tests/common.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/common.scm b/tests/common.scm
index 9a476aa..b6322d0 100644
--- a/tests/common.scm
+++ b/tests/common.scm
@@ -91,15 +91,15 @@
(define-syntax test-error-with-log
(syntax-rules ()
- ((_ name error body ...)
+ ((_ name error expr)
(test-assert-with-log name
(catch error
- (lambda () body ... #f)
+ (lambda () expr #f)
(const #t))))
- ((_ name body ...)
+ ((_ name expr)
(test-assert-with-log name
(catch #t
- (lambda () body ... #f)
+ (lambda () expr #f)
(const #t))))))
(define (start-session-loop session body)