1
Fork 0
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:
Andy Wingo 2017-03-14 15:35:38 +01:00
parent cbc469f8a4
commit 1d326a511b

View file

@ -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))))