File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 298
298
299
299
(define (%test-begin suite-name count)
300
300
(if (not (test-runner-current))
301
- (test-runner-current (test-runner-create)))
301
+ (let ((r (test-runner-create)))
302
+ (test-runner-current r)
303
+ (test-runner-on-final! r
304
+ (let ((old-final (test-runner-on-final r)))
305
+ (lambda (r ) (old-final r) (test-runner-current #f ))))))
302
306
(let ((runner (test-runner-current)))
303
307
((test-runner-on-group-begin runner) runner suite-name count)
304
308
(%test-runner-skip-save! runner
464
468
(%test-runner-fail-list! r (car (%test-runner-fail-save r)))
465
469
(%test-runner-fail-save! r (cdr (%test-runner-fail-save r)))
466
470
(%test-runner-count-list! r (cdr count-list))
467
- (cond ((null? (test-runner-group-stack r))
468
- ((test-runner-on-final r) r)
469
- (test-runner-current #f ))))))
471
+ (if (null? (test-runner-group-stack r))
472
+ ((test-runner-on-final r) r)))))
470
473
471
474
(define-syntax test-group
472
475
(syntax-rules ()
You can’t perform that action at this time.
0 commit comments