[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 09/10: Fix coverage test for top-level binding optimizat
From: |
Andy Wingo |
Subject: |
[Guile-commits] 09/10: Fix coverage test for top-level binding optimization |
Date: |
Sun, 18 Aug 2019 17:12:20 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 6cf2fc1b9bb6f73d7de10d2653e96d6967509dc0
Author: Andy Wingo <address@hidden>
Date: Sun Aug 18 22:26:46 2019 +0200
Fix coverage test for top-level binding optimization
* test-suite/tests/coverage.test ("line-execution-counts"): Fix
expectations for tail-call test.
---
test-suite/tests/coverage.test | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/test-suite/tests/coverage.test b/test-suite/tests/coverage.test
index 96d1744..5f393b6 100644
--- a/test-suite/tests/coverage.test
+++ b/test-suite/tests/coverage.test
@@ -213,8 +213,12 @@
(with-code-coverage
(lambda () (with-output-to-string proc)))))
(let ((counts (line-execution-counts data "tail-calls.scm")))
- (lset= equal? '((1 . 1) (2 . 1) (3 . 1) (5 . 1) (6 . 1))
- counts))))))
+ (define (lset-contains? eq? a b)
+ (lset= eq? b (lset-intersection eq? a b)))
+ ;; Due to top-level binding optimization, the target may be
+ ;; inlined or into the caller. All we can say is that the
+ ;; entry was seen, and the two displays were called.
+ (lset-contains? equal? counts '((1 . 1) (2 . 1) (6 . 1))))))))
(with-test-prefix "procedure-execution-count"
- [Guile-commits] branch master updated (b16ad94 -> 2751096), Andy Wingo, 2019/08/18
- [Guile-commits] 01/10: Fix bug in which codegen accessed data beyond end of stack, Andy Wingo, 2019/08/18
- [Guile-commits] 03/10: Simplify the define-primitive-expander macro, Andy Wingo, 2019/08/18
- [Guile-commits] 09/10: Fix coverage test for top-level binding optimization,
Andy Wingo <=
- [Guile-commits] 08/10: Skip tests that don't work under letrectification, Andy Wingo, 2019/08/18
- [Guile-commits] 10/10: Define missing shuffling assembler for string-set! et al, Andy Wingo, 2019/08/18
- [Guile-commits] 07/10: Enable letrectification, Andy Wingo, 2019/08/18
- [Guile-commits] 05/10: Add letrectify tree-il pass, Andy Wingo, 2019/08/18
- [Guile-commits] 06/10: Add notion of declarative modules, Andy Wingo, 2019/08/18
- [Guile-commits] 02/10: Add "mod" field to tree-il toplevel ref, set, define, Andy Wingo, 2019/08/18
- [Guile-commits] 04/10: Add primitive support for working with module variables, Andy Wingo, 2019/08/18