Tk Source Code

View Ticket
Login
Ticket UUID: 853398
Title: unixEmbed-5.1 EmbedFocusProc procedure, FocusIn events FAILE
Type: Bug Version: obsolete: 8.4.5
Submitter: mmokrejs Created on: 2003-12-03 16:33:21
Subsystem: 86. Test Tools Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-10-16 10:35:08
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2026-10-16 09:50:58
Description:
On Tru64Unix 5.1A with tk8.4.5 I get:

$ ./tktest ../tests/unixEmbed.test -verbose e

==== unixEmbed-5.1 EmbedFocusProc procedure, FocusIn
events FAILED
---- Result was:

---- Result should have been (exact matching):
{focus in .t1}
==== unixEmbed-5.1 FAILED

unixEmbed.test: Total   33      Passed  29      Skipped
3       Failed  1
Number of tests skipped for each constraint:
        3       nonPortable
$
User Comments: serhiy.storchaka added on 2026-10-16 10:35:08:

Thank you, Jan, for the review and merging.

Backported to core-8-6-branch in [141570e59b]: unixEmbed-5.1 failed there in 1 of 18 runs too, and passes 30 of 30 with the fix.


jan.nijtmans added on 2026-10-16 09:50:58:

Fixed in [cf6996f47a898f9c|trunk] and core-9-0-branch

Many thanks!


serhiy.storchaka added on 2026-09-26 20:20:27:

unixEmbed-5.1 still fails sporadically (about 1 of 6 runs on Linux): the child process returns $x before it has handled the FocusIn event.

Proposed fix in branch embed-focusin-test: process pending events in the child first (update; set x), as unixEmbed-5.3 does.