summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-01 13:50:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-01 13:50:21 (GMT)
commit6941f99c78c730b92f232078e1aa3bad1b84ae1c (patch)
tree817df17f41adec7933eebf87ff8549ec8ee8181b /tests/io.test
parent2f867a435f47f0a0b236c62f60108c2a366e8d86 (diff)
downloadtcl-6941f99c78c730b92f232078e1aa3bad1b84ae1c.zip
tcl-6941f99c78c730b92f232078e1aa3bad1b84ae1c.tar.gz
tcl-6941f99c78c730b92f232078e1aa3bad1b84ae1c.tar.bz2
Add experimental "-nothrow" option to encoding convertfrom|convertto. If compiled with -DTCL_NO_DEPRECATED (meant for Tcl 9.0), -stoponerror is the default for all IO
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/io.test b/tests/io.test
index e0a2389..329d041 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -48,6 +48,7 @@ testConstraint testservicemode [llength [info commands testservicemode]]
testConstraint notWinCI [expr {
$::tcl_platform(platform) ne "windows" || ![info exists ::env(CI)]}]
testConstraint notOSX [expr {$::tcl_platform(os) ne "Darwin"}]
+testConstraint nodep [info exists tcl_precision]
# You need a *very* special environment to do some tests. In
# particular, many file systems do not support large-files...
@@ -268,7 +269,7 @@ test io-3.3 {WriteChars: compatibility with WriteBytes: flush on line} {
close $f
set x
} "\r\n12"
-test io-3.4 {WriteChars: loop over stage buffer} {
+test io-3.4 {WriteChars: loop over stage buffer} nodep {
# stage buffer maps to more than can be queued at once.
set f [open $path(test1) w]
@@ -278,7 +279,7 @@ test io-3.4 {WriteChars: loop over stage buffer} {
close $f
lappend x [contents $path(test1)]
} [list "!)!)!)!)!)!)!)!)" "!)!)!)!)!)!)!)!)!)!)!)!)!)!)!)"]
-test io-3.5 {WriteChars: saved != 0} {
+test io-3.5 {WriteChars: saved != 0} nodep {
# Bytes produced by UtfToExternal from end of last channel buffer
# had to be moved to beginning of next channel buffer to preserve
# requested buffersize.
@@ -307,7 +308,7 @@ test io-3.6 {WriteChars: (stageRead + dstWrote == 0)} {
close $f
lappend x [contents $path(test1)]
} [list "12345678901234\x82\x60" "12345678901234\x82\x60\x82\x61"]
-test io-3.7 {WriteChars: (bufPtr->nextAdded > bufPtr->length)} {
+test io-3.7 {WriteChars: (bufPtr->nextAdded > bufPtr->length)} nodep {
# When translating UTF-8 to external, the produced bytes went past end
# of the channel buffer. This is done purpose -- we then truncate the
# bytes at the end of the partial character to preserve the requested
@@ -1532,7 +1533,7 @@ test io-12.8 {ReadChars: multibyte chars split} {
close $f
scan [string index $in end] %c
} 160
-test io-12.9 {ReadChars: multibyte chars split} {
+test io-12.9 {ReadChars: multibyte chars split} nodep {
set f [open $path(test1) w]
fconfigure $f -translation binary
puts -nonewline $f [string repeat a 9]\xC2
@@ -1543,7 +1544,7 @@ test io-12.9 {ReadChars: multibyte chars split} {
close $f
scan [string index $in end] %c
} 194
-test io-12.10 {ReadChars: multibyte chars split} {
+test io-12.10 {ReadChars: multibyte chars split} nodep {
set f [open $path(test1) w]
fconfigure $f -translation binary
puts -nonewline $f [string repeat a 9]\xC2