summaryrefslogtreecommitdiff
path: root/module/srfi
diff options
context:
space:
mode:
authorDaniel Llorens <lloda@sarc.name>2020-08-05 12:46:27 +0200
committerDaniel Llorens <lloda@sarc.name>2020-08-05 12:46:27 +0200
commitde5d1a7f99b8e952b115237ebc29633062f99bb9 (patch)
tree488453d9f8b2ee29a406a2a50988e6c918c7aa34 /module/srfi
parentd238566d0e6b36706c33d22c19b5c86d2e60640f (diff)
downloadguile-de5d1a7f99b8e952b115237ebc29633062f99bb9.tar.gz
Fix bug #42713: srfi-64: Reset test-runner-current if done
Reported by Jérémy Korwin-Zmijowski (https://lists.gnu.org/archive/html/bug-guile/2020-08/msg00010.html). Fix from https://github.com/scheme-requests-for-implementation/srfi-64/commit/7cf4c010398850b45f5a6939bb73f747605a0513: Apply fix from Per Bothner. In Per's words: * testing.scm (%test-end): Reset test-runner-current if done. This fixes bug "Loading test source file multiple time without having report incrementing" reported to srfi-64 mailing list. * srfi-64-test.scm: Update due to recent srfi-64 implementation change.
Diffstat (limited to 'module/srfi')
-rw-r--r--module/srfi/srfi-64/testing.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/srfi/srfi-64/testing.scm b/module/srfi/srfi-64/testing.scm
index d686662bf..37792cd0f 100644
--- a/module/srfi/srfi-64/testing.scm
+++ b/module/srfi/srfi-64/testing.scm
@@ -433,8 +433,9 @@
(%test-runner-fail-list! r (car (%test-runner-fail-save r)))
(%test-runner-fail-save! r (cdr (%test-runner-fail-save r)))
(%test-runner-count-list! r (cdr count-list))
- (if (null? (test-runner-group-stack r))
- ((test-runner-on-final r) r)))))
+ (cond ((null? (test-runner-group-stack r))
+ ((test-runner-on-final r) r)
+ (test-runner-current #f))))))
(define-syntax test-group
(syntax-rules ()