Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Test Failure - io-60.1 - On MSYS builds of core-8-branch

Closed / Fixede7d30944759acd7532bcddf1c672fabc639dc847Created 9 years agoUpdated 42 days ago
Descriptionplain2017-11-07 17:27:40
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
serhiy.storchakawiki2026-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.

serhiy.storchaka Ticket [e7d3094475]: 3 changes [History diff]2026-10-22 17:19:28
Log in (anonymous is fine) to add a comment.