summaryrefslogtreecommitdiffstats
path: root/tests/winfo.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 10:23:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 10:23:26 (GMT)
commite156e1d87e6eff493352961a0479c5f3630ef481 (patch)
treead69c320ee06d6e0615f634e66995285deb8c95a /tests/winfo.test
parentb1fd44d559b0bccfab0e74009c83fbe8d9adddcc (diff)
parenta22fd911c4fcdbc6c92423c582245a607610456c (diff)
downloadtk-e156e1d87e6eff493352961a0479c5f3630ef481.zip
tk-e156e1d87e6eff493352961a0479c5f3630ef481.tar.gz
tk-e156e1d87e6eff493352961a0479c5f3630ef481.tar.bz2
Merge 8.6
Diffstat (limited to 'tests/winfo.test')
-rw-r--r--tests/winfo.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/winfo.test b/tests/winfo.test
index d39359b..13193ef 100644
--- a/tests/winfo.test
+++ b/tests/winfo.test
@@ -11,6 +11,8 @@ namespace import ::tcltest::*
tcltest::configure {*}$argv
tcltest::loadTestedCommands
+testConstraint failsOnUbuntu [expr {![info exists ::env(TRAVIS_OS_NAME)] || ![string match linux $::env(TRAVIS_OS_NAME)]}]
+
# eatColors --
# Creates a toplevel window and allocates enough colors in it to
# use up all the slots in the colormap.
@@ -291,7 +293,7 @@ test winfo-9.2 {"winfo viewable" command} -body {
test winfo-9.3 {"winfo viewable" command} -body {
winfo viewable .
} -result 1
-test winfo-9.4 {"winfo viewable" command} -body {
+test winfo-9.4 {"winfo viewable" command} -constraints failsOnUbuntu -body {
wm iconify .
winfo viewable .
} -cleanup {
@@ -320,7 +322,7 @@ test winfo-9.6 {"winfo viewable" command} -setup {
} -cleanup {
deleteWindows
} -result {0 0}
-test winfo-9.7 {"winfo viewable" command} -setup {
+test winfo-9.7 {"winfo viewable" command} -constraints failsOnUbuntu -setup {
deleteWindows
} -body {
frame .f1 -width 100 -height 100 -relief raised -bd 2