Tk Source Code

View Ticket
Login
Ticket UUID: 220872
Title: focus, send, and unixEmbed test failures on Solaris 2.6
Type: Bug Version: obsolete: 8.2.1
Submitter: welch Created on: 2000-11-01 01:32:19
Subsystem: 67. Unix Window Operations Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2001-12-19 05:07:00
Resolution: Works For Me Closed By: hobbs
    Closed on: 2001-12-18 22:07:00
Description:
OriginalBugID: 3353 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-23'
Severity: SER
Status: UnAssn
Submitter: techsupp
ChangedBy: jenn
RelatedBugIDs: 2181
OS: Solaris
OSVersion: 2.6


Name:
Jim McMaster

CustomShell:
My primary tcl/tk application is exmh, which uses "send"  I would like to upgrade from the old version, for which I have no source, but am afraid I would crater exmh.

ReproducibleScript:
Compile under Solaris 2.6 with cc: WorkShop Compilers 4.2 30 Oct 1996 C
    4.2.  Run "make test"

ObservedBehavior:
The following tests fail:

    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:
    .t {} {}
    ==== focus-5.1 FAILED

    ==== focus-6.1 miscellaneous - embedded application in same process
    FAILED
    ==== Contents of test case:

        eval interp delete [interp slaves]
        catch {destroy .t}
        toplevel .t
        wm geometry .t +0+0
        frame .t.f1 -container 1
        frame .t.f2
        pack .t.f1 .t.f2
        entry .t.f2.e1 -bg red
        pack .t.f2.e1
        bind all <FocusIn> {lappend x "focus in %W %d"}
        bind all <FocusOut> {lappend x "focus out %W %d"}
        interp create child
        child eval "set argv {-use [winfo id .t.f1]}"
        load {} tk child
        child eval {
    entry .e1 -bg lightBlue
    pack .e1
    bind all <FocusIn> {lappend x "focus in %W %d"}
    bind all <FocusOut> {lappend x "focus out %W %d"}
    set x {}
        }

        # Claim the focus and wait long enough for it to really arrive.

        focus -force .t.f2.e1
        after 300 {set timer 1}
        vwait timer
        set x {}
        lappend x [focus] [child eval focus]

        # See if a "focus" command will move the focus to the embedded
        # application.

        child eval {focus .e1}
        after 300 {set timer 1}
        vwait timer
        lappend x |
        child eval {lappend x |}

        # Bring the focus back to the main application.

        focus .t.f2.e1
        after 300 {set timer 1}
        vwait timer
        set result [list $x [child eval {set x}]]
        interp delete child
        set result

    ---- Result was:
    {{} {} |} |
    ---- Result should have been:
    {.t.f2.e1 {} {focus out .t.f2.e1 NotifyNonlinear} {focus out .t.f2
    NotifyNonlinearVirtual} {focus in .t.f1 NotifyNonlinear} | {focus out
    .t.f1 NotifyNonlinear} {focus in .t.f2 NotifyNonlinearVirtual} {focus in
    .t.f2.e1 NotifyNonlinear}} {{focus in . NotifyVirtual} {focus in .e1
    NotifyAncestor} | {focus out .e1 NotifyAncestor} {focus out .
    NotifyVirtual}}
    ==== focus-6.1 FAILED

    send.test

    ==== send-8.1 Tk_SendCmd procedure, options FAILED
    ==== Contents of test case:

        setupbg
        set app [dobg {tk appname}]
        set a 66
        send -async $app [list send [tk appname] set a 77]
        set result $a
        after 200 set x 40
        tkwait variable x
        cleanupbg
        lappend result $a

    ---- Result was:
    66 66
    ---- Result should have been:
    66 77
    ==== send-8.1 FAILED

    unixEmbed.test

    ==== unixEmbed-5.2 EmbedFocusProc procedure, focusing on dead window
    FAILED
    ==== Contents of test case:

        foreach w [winfo child .] {
    catch {destroy $w}
        }
        frame .f1 -container 1 -width 200 -height 50
        pack .f1
        dobg "set w1 [winfo id .f1]"
        dobg {
    eval destroy [winfo child .]
    toplevel .t1 -use $w1
        }
        update
        dobg {
    after 200 {destroy .t1}
        }
        after 400
        focus -force .f1
        update

    ==== Test generated error:
    bad window path name ".f1"
    ---- Result should have been:

    ==== unixEmbed-5.2 FAILED

    Tests ended at Thu Oct 07 15:54:05 MDT 1999
    all.tcl:Total6549Passed6123Skipped422Failed4
    Sourced 84 Test Files.
    Files with failing tests: focus.test send.test unixEmbed.test
    Number of tests skipped for each constraint:
    2altDisplay
    2emptyTest
    44macOnly
    11macOrPc
    1nonPOrtable
    131nonPortable
    230pcOnly
    1userInteraction

DesiredBehavior:
All tests complete successfully
User Comments: hobbs added on 2001-12-19 05:07:00:
Logged In: YES 
user_id=72656

I don't receive these failures on a Solaris 2.8 box with 
8.4a4cvs directed to a WindowMaker wm.