mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +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
|
@ -306,8 +306,13 @@
|
|||
(g x)
|
||||
(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)))
|
||||
(if (not (equal? (g) (cons #f #f)))
|
||||
(throw 'unresolved)
|
||||
#t))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue