Add a fibers-parallel test

This commit is contained in:
Christopher Baines 2025-03-10 21:33:29 +00:00
parent 47ff45d963
commit a73fd1ca50

View file

@ -93,4 +93,22 @@
1))
#:unwind? #t)))
(run-fibers-for-tests
(lambda ()
(let ((a 0))
(call-with-values
(lambda ()
(fibers-parallel
(begin
(sleep 1)
1)
(begin
(set! a 1)
2)))
(lambda (a b)
(assert-equal a 1)
(assert-equal b 2)))
(assert-equal a 1))))
(display "parallelism test finished successfully\n")