File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 141
141
; ;; Gauche specific hooks
142
142
; ;;
143
143
144
- ; ; Called when enetering a new group.
144
+ ; ; Called when entering a new group.
145
145
(define (gauche-test-group-hook runner suite-name )
146
146
; ; [Gauche] SRFI-64's test-begin/test-end is effectively our grouping.
147
147
; ; We indent the message according to te group nesting level
385
385
(define-syntax test-group
386
386
(syntax-rules ()
387
387
((test-group suite-name . body)
388
- (let ((r (test-runner-current)))
388
+ (let ((r (or ( test-runner-current) (test-runner-create) )))
389
389
; ; Ideally should also set line-number, if available.
390
390
(test-result-alist! r (list (cons 'test-name suite-name)))
391
391
(if (%test-should-execute r)
392
- (dynamic-wind
393
- (lambda () (test-begin suite-name))
394
- (lambda () . body)
395
- (lambda () (test-end suite-name))))))))
392
+ (test-with-runner
393
+ r (dynamic-wind
394
+ (lambda () (test-begin suite-name))
395
+ (lambda () . body)
396
+ (lambda () (test-end suite-name)))))))))
396
397
397
398
(define-syntax test-group-with-cleanup
398
399
(syntax-rules ()
You can’t perform that action at this time.
0 commit comments