summaryrefslogtreecommitdiffstats
path: root/tests/constraints.tcl
diff options
context:
space:
mode:
authordas <das>2007-05-09 12:52:44 (GMT)
committerdas <das>2007-05-09 12:52:44 (GMT)
commitebd0e2d7b27c0326ea23486a3ad6b9baceb95945 (patch)
tree6eda67904dbf0cfa0837f683cac25285710656c5 /tests/constraints.tcl
parent4ebef9f0f8c5653b25918ebc46ff8cb915279d4e (diff)
downloadtk-ebd0e2d7b27c0326ea23486a3ad6b9baceb95945.zip
tk-ebd0e2d7b27c0326ea23486a3ad6b9baceb95945.tar.gz
tk-ebd0e2d7b27c0326ea23486a3ad6b9baceb95945.tar.bz2
* tests/constraints.tcl: ensure 'nonUnixUserInteraction' constraint is
set for aqua. * tests/choosedir.test: add 'notAqua' constraints to X11-only tests; * tests/clrpick.test: add 'nonUnixUserInteraction' to 'unix' tests * tests/menuDraw.test: requiring interaction on aqua. * tests/unixMenu.test: * tests/unixWm.test: * tests/winMenu.test:
Diffstat (limited to 'tests/constraints.tcl')
-rw-r--r--tests/constraints.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/constraints.tcl b/tests/constraints.tcl
index 3b786d9..a3a6af3 100644
--- a/tests/constraints.tcl
+++ b/tests/constraints.tcl
@@ -148,7 +148,8 @@ testConstraint notAqua [expr {[tk windowingsystem] ne "aqua"}]
testConstraint aqua [expr {[tk windowingsystem] eq "aqua"}]
testConstraint userInteraction 0
testConstraint nonUnixUserInteraction [expr {
- [testConstraint userInteraction] || [testConstraint unix]
+ [testConstraint userInteraction] ||
+ ([testConstraint unix] && [testConstraint notAqua])
}]
testConstraint haveDISPLAY [info exists env(DISPLAY)]
testConstraint altDisplay [info exists env(TK_ALT_DISPLAY)]