chibi-scheme/lib/chibi/test.sld
Alex Shinn 8b5eb68238 File descriptors maintain a reference count of ports open on them
They can be close()d explicitly with close-file-descriptor, and
will close() on gc, but only explicitly closing the last port on
them will close the fileno.  Notably needed for network sockets
where we open separate input and output ports on the same socket.
2014-02-20 22:32:50 +09:00

26 lines
898 B
Scheme

(define-library (chibi test)
(export
test test-equal test-error test-assert test-not test-values
test-group current-test-group
test-begin test-end test-syntax-error test-propagate-info
test-vars test-run test-exit
current-test-verbosity current-test-epsilon current-test-comparator
current-test-applier current-test-handler current-test-skipper
current-test-group-reporter test-failure-count
current-test-epsilon current-test-comparator)
(import (scheme write)
(scheme complex)
(scheme process-context)
(scheme time))
(cond-expand
(chibi
(import (except (scheme base) guard)
(rename (only (chibi) pair-source print-exception protect)
(protect guard))))
(else
(import (scheme base))
(begin
(define (pair-source x) #f)
(define print-exception write))))
(include "test.scm"))