Tk Source Code

View Ticket
Login
Ticket UUID: b436196db2d222e081de9ae6555096d703d279e9
Title: errorInfo: can't read "::tktestConf(-eyefriendly)": no such variable
Type: Bug Version: wayland
Submitter: jan.nijtmans Created on: 2026-11-19 12:01:53
Subsystem: 81. Portability Assigned To: nobody
Priority: 5 Medium Severity: Critical
Status: Closed Last Modified: 2026-11-19 14:44:25
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2026-11-19 14:44:25
Description:

On Windows and macOS, the Wayland branch shows errors like:

canvText.test

==== canvText-19.1 patch 1006286, leading space caused wrap under Win32 FAILED ==== Contents of test case: set f {Arial 28 bold} set s1 { Yeah-ah-ah-ah-oh-oh-oh-oh-oh-oh-oh-oh-oh-oh-oh-oh-oh-oh-oh-oh-Yow} set s2 { Yeah ah ah ah oh oh oh oh oh oh oh oh oh oh oh oh oh oh oh oh Yow} $c create text 21 18 -font $f -text $s1 -fill white -width 922 -anchor nw -tags tbox1 $c create rect {*}[$c bbox tbox1] -outline red $c create text 21 160 -font $f -text $s2 -fill white -width 922 -anchor nw -tags tbox2 $c create rect {*}[$c bbox tbox2] -outline red pause -eyefriendly 500 set results [list] $c select from tbox2 4 $c select to tbox2 8 lappend results [selection get] $c select from tbox1 4 $c select to tbox1 8 lappend results [selection get] array set metrics [font metrics $f] set x [expr {21 + [font measure $f " "] + ([font measure {Arial 28 bold} "Y"] / 2)}] set y1 [expr {18 + ($metrics(-linespace) / 2)}] set y2 [expr {160 + ($metrics(-linespace) / 2)}] lappend results [$c index tbox1 @$x,$y1] lappend results [$c index tbox2 @$x,$y2] ---- Test setup failed: can't read "::tktestConf(-eyefriendly)": no such variable ---- errorInfo(setup): can't read "::tktestConf(-eyefriendly)": no such variable while executing "if {! $::tktestConf(-eyefriendly)} { return }" (procedure "pause" line 14) invoked from within "pause -eyefriendly 100" ("uplevel" body line 6) invoked from within "uplevel 1 $setup" ---- errorCode(setup): TCL LOOKUP VARNAME ::tktestConf ==== canvText-19.1 FAILED

Those are not visible on trunk

User Comments: jan.nijtmans added on 2026-11-19 14:44:25:

Since [ba5c0b9d33], ftd-eyefriendly is reverted from the wayland branch, so this ticket can be closed.

Thanks!


erikleunissen added on 2026-11-19 14:27:43:
Oh, I forgot: I've now re-opened the ticket for project ftd-eyefriendly to
continue development there. So, as far as I'm concerned, the present ticket
may be closed.

erikleunissen added on 2026-11-19 14:23:41:
OK Jan, and thanks for your attempt/attentiveness.

jan.nijtmans added on 2026-11-19 13:58:44:

Thanks!

I'll leave it to you fixing it properly.


erikleunissen added on 2026-11-19 13:46:56:
Serhiy also notified me of this bug at the ticket for project ftd-eyefriendly.

A surficial inspection showed that this needs to be remedied by ensuring 
that options that are specifically intended for the Tk test suit, get passed on
to test files if the test suite is invoked with "-singleproc 0".

Just preventing the error when these options/variables don't exist, doesn't solve the issue properly.

I've decided to back out the merge commits, and fix this so that
"-singleproc 0" is properly supported.

serhiy.storchaka added on 2026-11-19 13:35:43:

Jan, [ae5ca7f8ee] fixes the error. But with -singleproc 0 the option is still lost: the test files run in child processes, which do not read tests/all.tcl, so -eyefriendly 1 has no effect there. It could be passed to the children in an environment variable, or pause could read it from tcltest::configure if it were registered as a tcltest option.


jan.nijtmans added on 2026-11-19 12:04:08:

i mean: Linux and macOS