summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-18 11:06:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-18 11:06:00 (GMT)
commit20cc8e0bc110e2370ccc8de16637734127d5fcba (patch)
tree8c37cf006e9fe96439ba79e651dca5c9852ea771
parent75da283be2e7a3fa1a63b4b55ecac6d5c6d64bf4 (diff)
downloadtcl-20cc8e0bc110e2370ccc8de16637734127d5fcba.zip
tcl-20cc8e0bc110e2370ccc8de16637734127d5fcba.tar.gz
tcl-20cc8e0bc110e2370ccc8de16637734127d5fcba.tar.bz2
Add proper clean-up to 3 testcases. Failing this, causes test-failures on Windows
-rw-r--r--tests/chanio.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index 11a4e74..e668655 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -255,8 +255,8 @@ test chan-io-3.4 {WriteChars: loop over stage buffer} -body {
chan configure $f -encoding jis0208 -buffersize 16
chan puts -nonewline $f "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
set x [list [contents $path(test1)]]
+} -cleanup {
chan close $f
- lappend x [contents $path(test1)]
} -errorCode {POSIX EILSEQ {illegal byte sequence}} -match glob -result {error writing "*": illegal byte sequence}
test chan-io-3.5 {WriteChars: saved != 0} -body {
# Bytes produced by UtfToExternal from end of last channel buffer had to
@@ -266,8 +266,8 @@ test chan-io-3.5 {WriteChars: saved != 0} -body {
chan configure $f -encoding jis0208 -buffersize 17
chan puts -nonewline $f "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
set x [list [contents $path(test1)]]
+} -cleanup {
chan close $f
- lappend x [contents $path(test1)]
} -errorCode {POSIX EILSEQ {illegal byte sequence}} -match glob -result {error writing "*": illegal byte sequence}
test chan-io-3.6 {WriteChars: (stageRead + dstWrote == 0)} {
# One incomplete UTF-8 character at end of staging buffer. Backup in src
@@ -295,8 +295,8 @@ test chan-io-3.7 {WriteChars: (bufPtr->nextAdded > bufPtr->length)} -body {
chan configure $f -encoding jis0208 -buffersize 17
chan puts -nonewline $f "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
set x [list [contents $path(test1)]]
+} -cleanup {
chan close $f
- lappend x [contents $path(test1)]
} -errorCode {POSIX EILSEQ {illegal byte sequence}} -match glob -result {error writing "*": illegal byte sequence}
test chan-io-3.8 {WriteChars: reset sawLF after each buffer} {
set f [open $path(test1) w]