diff options
| author | oehhar <harald.oehlmann@elmicron.de> | 2023-11-18 17:20:58 (GMT) |
|---|---|---|
| committer | oehhar <harald.oehlmann@elmicron.de> | 2023-11-18 17:20:58 (GMT) |
| commit | a83e8cdd9d1ed9dca923289b25f68c939ff18023 (patch) | |
| tree | 4806606183aba23bafa8de58328b8e5f7045676d | |
| parent | c8e7ec122b6d7dcdf0c216f241155a0ef9c3e998 (diff) | |
| parent | 6a9b725dfc4ae4fdcd33bbb1273d05df6aae843b (diff) | |
| download | tcl-a83e8cdd9d1ed9dca923289b25f68c939ff18023.zip tcl-a83e8cdd9d1ed9dca923289b25f68c939ff18023.tar.gz tcl-a83e8cdd9d1ed9dca923289b25f68c939ff18023.tar.bz2 | |
Remove currently failing test io-52.20.1 to check right file position after fcopy encoding read error
| -rw-r--r-- | tests/io.test | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/io.test b/tests/io.test index f298997..17d6ce9 100644 --- a/tests/io.test +++ b/tests/io.test @@ -7719,36 +7719,6 @@ test io-52.20 {TclCopyChannel & encodings} -setup { close $out } -returnCodes 1 -match glob -result {error reading "file*": invalid or incomplete multibyte or wide character} -test io-52.20.1 {TclCopyChannel & read encoding error & tell position, bug [a173f9229]} -setup { - set out [open $path(utf8-fcopy.txt) w] - fconfigure $out -encoding utf-8 -translation lf - puts $out "AÁ" - close $out -} -constraints {fcopy knownBug} -body { - # binary to encoding => the input has to be - # in utf-8 to make sense to the encoder - - set in [open $path(utf8-fcopy.txt) r] - set out [open $path(kyrillic.txt) w] - - # Using "-encoding ascii" means reading the "Á" gives an error - fconfigure $in -encoding ascii -profile strict - fconfigure $out -encoding koi8-r -translation lf - - set l {} - # should fail, so 1 is added - lappend l [catch {fcopy $in $out}] - # should be at position 1, after the first correct byte, so 1 is read. - lappend l [tell $in] - # not sure, if flush required, but anyway - flush $out - # should be at position 1, after the first correct byte, so 1 is written. - lappend l [tell $out] -} -cleanup { - close $in - close $out -} -returnCodes 0 -result {1 1 1} - test io-52.21 {TclCopyChannel & encodings} -setup { set out [open $path(utf8-fcopy.txt) w] fconfigure $out -encoding utf-8 -translation lf |
