Tk Source Code

View Ticket
Login
Ticket UUID: 1814488
Title: unixWm test suite failures
Type: Bug Version: obsolete: 8.5b2
Submitter: lvirden Created on: 2007-10-16 13:58:30
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2008-01-28 00:45:48
Resolution: Out of Date Closed By: jenglish
    Closed on: 2008-01-27 17:45:48
Description:
I'm building the tcl/tk cvs head (snapshot from activestate) on sparc solaris 9, using sun's c compiler. 
I used ./configure --prefix=/projects/sprs_lwv/tcl85 --enable-shared --enable-symbols --enable-stubs --enable-64bit --enable-threads
to build tcl and tk.

The results of the test, which occurs consistently, are:
unixWm.test

==== unixWm-4.1 moving window while withdrawn FAILED
==== Contents of test case:

        wm withdraw .t
        sleep 200
        wm geom .t $geom
        update
        wm deiconify .t
        wm geom .t
    
---- Result was:
100x150+57+80
---- Result should have been (exact matching):
100x150+20+80
==== unixWm-4.1 FAILED
==== unixWm-4.3 moving window while withdrawn FAILED
==== Contents of test case:

        wm withdraw .t
        sleep 200
        wm geom .t $geom
        update
        wm deiconify .t
        wm geom .t
    
---- Result was:
100x150+57+39
---- Result should have been (exact matching):
100x150+0+0
==== unixWm-4.3 FAILED
==== unixWm-25.1 Tk_WmCmd procedure, "iconname" option FAILED
==== Contents of test case:

    list [catch {wm icon .t} msg] $msg

---- Result was:
1 {ambiguous option "icon": must be aspect, attributes, client, colormapwindows,
 command, deiconify, focusmodel, forget, frame, geometry, grid, group, iconbitma
p, iconify, iconmask, iconname, iconphoto, iconposition, iconwindow, manage, max
size, minsize, overrideredirect, positionfrom, protocol, resizable, sizefrom, st
ackorder, state, title, transient, or withdraw}
---- Result should have been (exact matching):
1 {ambiguous option "icon": must be aspect, attributes, client, colormapwindows,
 command, deiconify, focusmodel, frame, geometry, grid, group, iconbitmap, iconi
fy, iconmask, iconname, iconphoto, iconposition, iconwindow, maxsize, minsize, o
verrideredirect, positionfrom, protocol, resizable, sizefrom, stackorder, state,
 title, transient, or withdraw}
==== unixWm-25.1 FAILED
==== unixWm-39.1 Tk_WmCmd procedure, miscellaneous FAILED
==== Contents of test case:

    list [catch {wm unknown .t} msg] $msg

---- Result was:
1 {bad option "unknown": must be aspect, attributes, client, colormapwindows, co
mmand, deiconify, focusmodel, forget, frame, geometry, grid, group, iconbitmap, 
iconify, iconmask, iconname, iconphoto, iconposition, iconwindow, manage, maxsiz
e, minsize, overrideredirect, positionfrom, protocol, resizable, sizefrom, stack
order, state, title, transient, or withdraw}
---- Result should have been (exact matching):
1 {bad option "unknown": must be aspect, attributes, client, colormapwindows, co
mmand, deiconify, focusmodel, frame, geometry, grid, group, iconbitmap, iconify,
 iconmask, iconname, iconphoto, iconposition, iconwindow, maxsize, minsize, over
rideredirect, positionfrom, protocol, resizable, sizefrom, stackorder, state, ti
tle, transient, or withdraw}
==== unixWm-39.1 FAILED
==== unixWm-48.13 ParseGeometry procedure, resize causes window to move FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 200 -height 200
    wm geom .t +0+0
    update
    wm geom .t -0-0
    update
    set x [winfo x .t]
    set y [winfo y .t]
    wm geometry .t 150x300
    update
    list [expr [winfo x .t] - $x] [expr [winfo y .t] - $y]  [winfo width .t] [wi
nfo height .t]

---- Result was:
0 0 150 300
---- Result should have been (exact matching):
50 -100 150 300
==== unixWm-48.13 FAILED
==== unixWm-50.1 Tk_CoordsToWindow procedure, finding a toplevel, x-coords FAILE
D
==== Contents of test case:

    deleteWindows
    toplevel .t -width 300 -height 400 -bg green
    wm geom .t +40+0
    tkwait visibility .t
    toplevel .t2 -width 100 -height 80 -bg red
    wm geom .t2 +140+200
    tkwait visibility .t2
    raise .t2
    set x [winfo rootx .t]
    set y [winfo rooty .t]
    list [winfo containing [expr $x - 30] [expr $y + 250]]  [winfo containing [e
xpr $x - 1] [expr $y + 250]]  [winfo containing $x [expr $y + 250]]  [winfo cont
aining [expr $x + 99] [expr $y + 250]]  [winfo containing [expr $x + 100] [expr 
$y + 250]]  [winfo containing [expr $x + 199] [expr $y + 250]]  [winfo containin
g [expr $x + 200] [expr $y + 250]]  [winfo containing [expr $x + 220] [expr $y +
 250]]

---- Result was:
{} {} .t .t .t .t .t .t
---- Result should have been (exact matching):
{} {} .t {} .t2 .t2 {} .t
==== unixWm-50.1 FAILED

==== unixWm-50.8 Tk_CoordsToWindow procedure, more basics FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 400 -height 300 -bg green
    wm geom .t +0+0
    frame .t.f -width 200 -height 100 -bd 2 -relief raised
    place .t.f -x 100 -y 100
    frame .t.f.f -width 200 -height 100 -bd 2 -relief raised
    place .t.f.f -x 100 -y 0
    update
    set x [winfo rooty .t]
    set y [expr [winfo rooty .t] + 150]
    list [winfo containing [expr $x + 50] $y]  [winfo containing [expr $x + 150]
 $y]  [winfo containing [expr $x + 250] $y]  [winfo containing [expr $x + 350] $
y]  [winfo containing [expr $x + 450] $y]

---- Result was:
.t.f .t.f.f .t {} {}
---- Result should have been (exact matching):
.t .t.f .t.f.f .t {}
==== unixWm-50.8 FAILED

==== unixWm-50.10 Tk_CoordsToWindow procedure, unmapped windows FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 200 -height 200 -bg green
    wm geometry .t +0+0
    frame .t.f -width 150 -height 150 -bd 2 -relief raised
    place .t.f -x 25 -y 25
    tkwait visibility .t.f
    set result [list [winfo containing 100 100]]
    place forget .t.f
    update
    lappend result [winfo containing 100 100]

---- Result was:
.t .t
---- Result should have been (exact matching):
.t.f .t
==== unixWm-50.10 FAILED
User Comments: jenglish added on 2008-01-28 00:45:48:
Logged In: YES 
user_id=68433
Originator: NO

A few of these are just mismatched error messages (test suite is checking for exact error messages, and wasn't updated to account for the new [wm manage] command); the rest are within the expected range of expected behavior.

Unfortunately, many of the wm-* and unixWm-* tests are merely regression tests ("make sure that it does the same thing as it did last time, whatever that happened to be") and are only expected to work on the reference platform.  They do _not_ test conformance to any specified behavior; so failures are expected and normal outside of the reference platform.