a fix to the way check-expect expands to play better with test coverage

svn: r13232
This commit is contained in:
Robby Findler 2009-01-19 21:24:21 +00:00
parent 62993e9df3
commit 146e8733cc

View File

@ -62,8 +62,7 @@
(syntax-column stx)
(syntax-position stx)
(syntax-span stx)))))
(quasisyntax/loc test-expr
(define #,bogus-name
#`(define #,bogus-name
#,(stepper-syntax-property
#`(let ([test-info (namespace-variable-value
'test~object #f builder (current-namespace))])
@ -76,7 +75,9 @@
['stepper-use-val-as-final #t])
(quasisyntax/loc stx
(#,checker-proc-stx
(car (list
(lambda () #,test-expr)
#,(syntax/loc stx (void))))
#,@embedded-stxes
#,src-info
#,(with-stepper-syntax-properties
@ -88,7 +89,7 @@
skipto/third skipto/second ;; unless (it expands into a begin)
skipto/cdr skipto/third ;; application of insert-test
'(syntax-e cdr cdr syntax-e car) ;; lambda
)))))
))))
(define-for-syntax (check-context?)
(let ([c (syntax-local-context)])