summaryrefslogtreecommitdiffstats
path: root/tests/constraints.tcl
diff options
context:
space:
mode:
authordas <das@noemail.net>2007-05-09 12:52:44 (GMT)
committerdas <das@noemail.net>2007-05-09 12:52:44 (GMT)
commit9a8dfc0310fa31ef67cab03ad037019548a321e4 (patch)
tree6eda67904dbf0cfa0837f683cac25285710656c5 /tests/constraints.tcl
parent0131f5ff02608b2828a779b112c035de42cc82e0 (diff)
downloadtk-9a8dfc0310fa31ef67cab03ad037019548a321e4.zip
tk-9a8dfc0310fa31ef67cab03ad037019548a321e4.tar.gz
tk-9a8dfc0310fa31ef67cab03ad037019548a321e4.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: FossilOrigin-Name: 63bc9be0bbf758356abee5e440738399b019f765
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)]