Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 11ed429d798add4bdbd461c523f43c3e8882f4a1
Ticket: 2001201fffffffffffffffffffffffffffffffff
Tcl_Exit() shouldn't call the full Tcl_Finalize() path
User & Date: dgp on 2009-07-21 21:36:09
Changes

  1. icomment:
    
    The commit to Tcl HEAD on 2009-06-17
    causes the following *Tk* tests to fail:
    
    ==== window-2.9 Tk_DestroyWindow, Destroy bindings evaluated after exit FAILED
    ==== Contents of test case:
    
        set code [loadTkCommand]
        append code {
            toplevel .t1
            toplevel .t2
            update
            bind .t2 <Destroy> {puts "Destroy .t2" ; exit 1}
            bind .t1 <Destroy> {puts "Destroy .t1" ; exit 0}
            destroy .t2
        }
        set script [makeFile $code script]
        if {[catch {exec [interpreter] $script -geometry 10x10+0+0} msg]} {
            set error 1
        } else {
            set error 0
        }
        removeFile script
        list $error $msg
    
    ---- Result was:
    1 {Destroy .t2
    child process exited abnormally}
    ---- Result should have been (exact matching):
    0 {Destroy .t2
    Destroy .t1}
    ==== window-2.9 FAILED
    
    
    
    ==== window-2.11 Tk_DestroyWindow, don't reanimate a half-dead window FAILED
    ==== Contents of test case:
    
        set code [loadTkCommand]
        append code {
            toplevel .t1
            toplevel .t2
            update
            bind .t1 <Destroy> {
                if {[catch {entry .t2.newchild}]} {
                    puts YES
                } else {
                    puts NO
                }
            }
            bind .t2 <Destroy> {exit}
            destroy .t2
        }
        set script [makeFile $code script]
        if {[catch {exec [interpreter] $script -geometry 10x10+0+0} msg]} {
            set error 1
        } else {
            set error 0
        }
        removeFile script
        list $error $msg
    
    ---- Result was:
    0 {}
    ---- Result should have been (exact matching):
    0 YES
    ==== window-2.11 FAILED
    
    Need to understand this regression
    and figure out what to do about it.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"