mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
hiding error output in threads test
This commit is contained in:
parent
00f71d9bd5
commit
dd508447f5
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
(cond-expand
|
(cond-expand
|
||||||
(modules (import (srfi 18) (chibi test)))
|
(modules (import (srfi 18) (srfi 39) (chibi test)))
|
||||||
(else #f))
|
(else #f))
|
||||||
|
|
||||||
(test-begin "threads")
|
(test-begin "threads")
|
||||||
|
@ -70,7 +70,10 @@
|
||||||
(thread-join! th)))
|
(thread-join! th)))
|
||||||
|
|
||||||
(test-error "thread-join! exception"
|
(test-error "thread-join! exception"
|
||||||
(let* ((th (make-thread (lambda () (+ 3 "2")))))
|
(let* ((th (make-thread
|
||||||
|
(lambda ()
|
||||||
|
(parameterize ((current-error-port (open-output-string)))
|
||||||
|
(+ 3 "2"))))))
|
||||||
(thread-start! th)
|
(thread-start! th)
|
||||||
(thread-join! th)))
|
(thread-join! th)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue