fixed test/exn

svn: r12767
This commit is contained in:
John Clements 2008-12-10 19:00:29 +00:00
parent 02147ef4f3
commit 965cbb00e2

View File

@ -726,8 +726,10 @@
(define-syntax (!test/exn stx)
(syntax-case stx ()
[(_ test-exp)
#`(with-handlers ([exn:fail? (lambda (exn) #t)])
((submission-eval) `test-exp)
#`(unless
(with-handlers ([exn:fail? (lambda (exn) #t)])
((submission-eval) `test-exp)
#f)
(error* "expected exception on test expression: ~v"
(->disp 'test-exp)))]))