| Ticket UUID: | e7d30944759acd7532bcddf1c672fabc639dc847 | ||
| Title: | Test Failure - io-60.1 - On MSYS builds of core-8-branch | ||
| Type: | Bug | Created on: | 2017-11-07 17:27:40 |
| Submitter: | hypnotoad | Assigned to: | nobody |
| Subsystem: | 37. File System | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2026-10-22 17:19:28 |
| Status: | Closed | Closed by: | serhiy.storchaka |
| Resolution: | Fixed | Closed on: | 2026-10-21 08:47:09 |
| Version: | 8.7 | ||
| Description: | ||||
Building a fresh checkout of [84de05583b0631640bcb0f697345f4743c74da0b] within MSYS on Windows 7 and running "make test" produces the following failed test:
==== io-60.1 writing illegal utf sequences FAILED
==== Contents of test case:
# This test will hang in older revisions of the core.
set out [open $path(script) w]
puts $out {
puts [testbytestring \xe2]
exit 1
}
proc readit {pipe} {
variable x
variable result
if {[eof $pipe]} {
set x [catch {close $pipe} line]
lappend result catch $line
} else {
gets $pipe line
lappend result gets $line
}
}
close $out
set pipe [open "|[list [interpreter] $path(script)]" r]
fileevent $pipe readable [namespace code [list readit $pipe]]
variable x ""
set result ""
vwait [namespace which -variable x]
# cut of the remainder of the error stack, especially the filename
set result [lreplace $result 3 3 [lindex [split [lindex $result 3] \n] 0]]
list $x $result
---- Result was:
1 {gets {} catch {invalid command name "testbytestring"}}
---- Result should have been (exact matching):
1 {gets {} catch {error writing "stdout": invalid argument}}
==== io-60.1 FAILED
| ||||
| User Comments: | ||||
serhiy.storchaka added on 2026-10-21 08:47:09:
Fixed by [1688d8f73e] (8.6.10, and in 9.0): the child process of io-60.1 now loads the Tcltest library before using testbytestring, the same fix as for chan-io-60.1 in [ab951a7503]. Closing. | ||||
