Skip to content

Commit

Permalink
Move channel close commands to -cleanup so that when the (expected) e…
Browse files Browse the repository at this point in the history
…rror

occurs in [fcopy] we do not leave open channels lurking to interfere with
later tests.
  • Loading branch information
dgp committed Jul 14, 2023
1 parent 2018849 commit 88dd8c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/io.test
Original file line number Diff line number Diff line change
Expand Up @@ -7525,10 +7525,11 @@ test io-52.10 {TclCopyChannel & encodings} -constraints fcopy -body {
fconfigure $out -translation binary

fcopy $in $out
close $in
close $out

file size $path(utf8-fcopy.txt)
} -cleanup {
close $in
close $out
} -returnCodes 1 -match glob -result {error writing "*":\
invalid or incomplete multibyte or wide character}
test io-52.11 {TclCopyChannel & encodings} -setup {
Expand Down

0 comments on commit 88dd8c1

Please sign in to comment.