Fix exception handling in fibers-map-with-progress
All checks were successful
/ test (push) Successful in 9s
All checks were successful
/ test (push) Successful in 9s
This commit is contained in:
parent
09ca6cfb6b
commit
8f3e0a9a1d
2 changed files with 22 additions and 4 deletions
|
@ -61,6 +61,24 @@
|
|||
identity
|
||||
'(()))))
|
||||
|
||||
(run-fibers-for-tests
|
||||
(lambda ()
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(unless (and (exception-with-message? exn)
|
||||
(string=? (exception-message exn)
|
||||
"foo"))
|
||||
(raise-exception exn)))
|
||||
(lambda ()
|
||||
(fibers-map-with-progress
|
||||
(lambda _
|
||||
(raise-exception
|
||||
(make-exception-with-message "foo")))
|
||||
'((1)))
|
||||
|
||||
(error 'should-not-reach-here))
|
||||
#:unwind? #t)))
|
||||
|
||||
(run-fibers-for-tests
|
||||
(lambda ()
|
||||
(with-exception-handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue