Artifact
cb973a6f422bc5c9da51715dd51daf3b24109d6f7e16f15e4649bc0cfcf104fd:
Attachment "exercise.tcl" to
ticket [da5f2266]
added by
erikleunissen
2021-04-26 10:28:59.
#! /usr/bin/tclsh
parray tcl_platform
package require Tk
package require tcltest
namespace import tcltest::*
tcltest::configure -verbose beps
test TkBug-XX.X {update idletasks skips queued events} -setup {
wm geometry . 100x100
package require Thread
set tid [thread::create]
update
set result {}
} -body {
thread::send -async $tid [list thread::send [thread::id] {lappend result B}]
wm geometry . 110x110 ; # a. needed to exhibit the misbehaviour
update idletasks ; # b. ought not service queued events
lappend result A
update ; # c. services any skipped events
set result
} -result {A B} -cleanup {
thread::release $tid
unset result
}
cleanupTests