Tcl Source Code

View Ticket
Login
2026-10-22
17:19 • Ticket [ab951a7503] Test Failure - chan-io-60.1 - On MSYS builds of core-8-branc... artifact: ef63a630fd user: serhiy.storchaka
2026-10-21
08:47 • Closed ticket [e7d3094475]: Test Failure - io-60.1 - On MSYS builds of core-8-b... artifact: 2e687a9823 user: serhiy.storchaka
08:46 • Closed ticket [ab951a7503]: Test Failure - chan-io-60.1 - On MSYS builds of core... artifact: 0ef62beb69 user: serhiy.storchaka
2017-11-07
17:21 • Ticket [ab951a7503]: 3 changes artifact: 4efec874ac user: dgp
17:03 • New ticket [ab951a7503]. artifact: a6b9f227bb user: hypnotoad

Ticket UUID: ab951a75035adca5cfdf6f93ab1d68c3ca4f4713
Title: Test Failure - chan-io-60.1 - On MSYS builds of core-8-branch
Type: Bug Created on: 2017-11-07 17:03:26
Submitter: hypnotoad Assigned to: nobody
Subsystem: 25. Channel 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:46:00
Version: 84de05583b0631640bcb0f697345f4743c74da0b
Description:
Building a fresh checkout of [84de05583b0631640bcb0f697345f4743c74da0b] within MSYS on Windows 7 and running "make test" produces a failed test:

==== chan-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]
    chan puts $out {
	chan puts [testbytestring \xe2]
	exit 1
    }
    proc readit {pipe} {
	variable x
	variable result
	if {[chan eof $pipe]} {
	    set x [catch {chan close $pipe} line]
	    lappend result catch $line
	} else {
	    chan gets $pipe line
	    lappend result gets $line
	}
    }
    chan close $out
    set pipe [openpipe r $path(script)]
    chan event $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}}
==== chan-io-60.1 FAILED
User Comments:
dgp added on 2017-11-07 17:21:50:
Why is the constraint failing?

serhiy.storchaka added on 2026-10-21 08:46:00:

Fixed by [1688d8f73e] (8.6.10, and in 9.0): the child process of chan-io-60.1 now loads the Tcltest library before using testbytestring (the constraint was checked in the parent, but the child had no such command). Closing.