aboutsummaryrefslogtreecommitdiff
path: root/tests/runall.tcl
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2023-05-28 11:22:12 +1000
committerSteve Bennett <steveb@workware.net.au>2023-07-04 09:23:43 +1000
commit41f431f30cc6118ef982c6374914810cd07a8106 (patch)
tree036384d2c7e90a0236642ebf65686601c92656d5 /tests/runall.tcl
parentad720049ec1ae3536d64fbb4c80a79e65ba5af39 (diff)
downloadjimtcl-41f431f30cc6118ef982c6374914810cd07a8106.zip
jimtcl-41f431f30cc6118ef982c6374914810cd07a8106.tar.gz
jimtcl-41f431f30cc6118ef982c6374914810cd07a8106.tar.bz2
aio: change to use unix io, not stdio
This changes especially makes buffered I/O work with non-blocking channels. - separate read and write buffering - support for timeout on blocking read - read/write on same channel in event loop with buffering - read buffer is the same across read, gets, copyto - autoflush non-blocking writes via event loop - copyto can now copy to any filehandle-like command - add some copyto tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/runall.tcl')
-rw-r--r--tests/runall.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/runall.tcl b/tests/runall.tcl
index 96a56a9..5c9aa8b 100644
--- a/tests/runall.tcl
+++ b/tests/runall.tcl
@@ -47,11 +47,11 @@ if {[info commands interp] eq ""} {
puts [format "%16s: --- error ($msg)" $script]
incr total(fail)
} elseif {[info return $opts(-code)] eq "exit"} {
- # if the test explicitly called exit 99,
+ # if the test explicitly called exit 98 or 99,
# it must be from a child process via os.fork, so
- # silently exit
- if {$msg eq "99"} {
- exit 0
+ # silently exit with that return code
+ if {$msg in {98 99}} {
+ exit $msg
}
}