mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 04:10:18 +02:00
Better eval+promise+gc test
* test-suite/tests/eval.test ("promises"): Increase clear pass rate on this test.
This commit is contained in:
parent
cbc469f8a4
commit
1d326a511b
1 changed files with 6 additions and 1 deletions
|
@ -307,6 +307,11 @@
|
|||
(set! p (delay (car x))))
|
||||
(force p)
|
||||
(gc)
|
||||
;; Though this test works reliably when running just eval.test,
|
||||
;; it often does the unresolved case when running the full
|
||||
;; suite. Adding this extra gc makes the full-suite behavior
|
||||
;; pass more reliably.
|
||||
(gc)
|
||||
(if (not (equal? (g) (cons #f #f)))
|
||||
(throw 'unresolved)
|
||||
#t))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue