Tk Source Code

View Ticket
Login
Ticket UUID: 1642750
Title: focus-5.1 test suite case fails ni 8.5a6
Type: Bug Version: obsolete: 8.5a6
Submitter: lvirden Created on: 2007-01-23 17:30:44
Subsystem: 55. [focus] Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-10-20 13:22:58
Resolution: Fixed Closed By: nemethi
    Closed on: 2026-10-20 13:22:58
Description:
Tk cvs head, as retrieved from Activestate's cvs ftp site
Sun C compiler, compiled on SPARC Solaris 9  with options \"'--prefix=/projects/sprs_lwv/tcl85' '--enable-shared' '--enable-symbols' '--enable-stubs' '--enable-64bit' 'CC=cc'\"

Tk test suite run on SPARC Solaris 9, displaying to two platforms: Sun's solaris 9 x server and exceed running on windows xp

Yes, I ran the test suite twice, comparing the two servers, because of the errors I was seeing in the test suite.

In both cases, I'm seeing the same error:

focus.test


==== focus-5.1 ChangeXFocus procedure, don't take focus unless have it FAILED
==== Contents of test case:

    focusSetup
    focus -force .t
    update
    set result [focus]
    send [dobg {tk appname}] {focus -force .; update}
    lappend result [focus]
    focus .t.b2
    update
    lappend result [focus]
---- Result was:
.t .t {}
---- Result should have been (exact matching):
.t {} {}
==== focus-5.1 FAILED
User Comments: nemethi (claiming to be Csaba Nemethi) added on 2026-10-20 13:22:58:

Closing the ticket with resolution "Fixed".


serhiy.storchaka added on 2026-09-19 16:04:18:

focus-5.1 reads [focus] before the FocusOut caused by the other application has been processed; it needed an update after the send. Fixed in [7c561b978f] (branch focus-test-wrapper-events), see [1474465].


fvogel added on 2023-01-29 22:14:17:

This is still happening with Debian 11.

A comment in this test says "Test 5.1 fails (before and after update)". The update that is referred to here is the switch to tcltest2 in [98ddf864]. This was back in 2008, so it is failing for at least 15 years already (this is a unix constrained test).

In commit [00bdaf0f] I have further constrained this test with 'knownBug' and have added a link to the present ticket dealing with this issue.


fvogel added on 2019-12-21 15:38:06:
Still happens, on Debian 8 with core-8-6-branch. There are many other focus test failures with the same setup.

lvirden added on 2007-10-16 20:50:20:
Logged In: YES 
user_id=15949
Originator: YES

This error continues to be exhibited, with the beta versions of tcl and tk.