aboutsummaryrefslogtreecommitdiff
path: root/tests/glob2.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2023-06-17 10:44:05 +1000
committerSteve Bennett <steveb@workware.net.au>2023-07-04 09:23:43 +1000
commitd6ce55ad7e01a51acb8a2a909383366ecc89d0b2 (patch)
tree6b4428d25bf8ecca748d9d411e7bb472d9eae05c /tests/glob2.test
parent41f431f30cc6118ef982c6374914810cd07a8106 (diff)
downloadjimtcl-d6ce55ad7e01a51acb8a2a909383366ecc89d0b2.zip
jimtcl-d6ce55ad7e01a51acb8a2a909383366ecc89d0b2.tar.gz
jimtcl-d6ce55ad7e01a51acb8a2a909383366ecc89d0b2.tar.bz2
tcltest: rework constraint system
Now 'constraint cmd|package' is like 'needs' but sets a constraint The command to 'needs cmd' and 'constraint cmd' can now take a subcommand to check. Add 'constraint|needs eval|expr' to make some constraint checks simpler. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/glob2.test')
-rw-r--r--tests/glob2.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/glob2.test b/tests/glob2.test
index 80fdd12..e6f3fbf 100644
--- a/tests/glob2.test
+++ b/tests/glob2.test
@@ -15,8 +15,8 @@ source [file dirname [info script]]/testing.tcl
needs cmd file
needs cmd glob
-testConstraint win [expr {$tcl_platform(platform) eq "windows"}]
-testConstraint unix [expr {$tcl_platform(platform) eq "unix"}]
+constraint expr win {$tcl_platform(platform) eq "windows"}
+constraint expr unix {$tcl_platform(platform) eq "unix"}
testConstraint unixOrPc 1
proc touch filename {catch {close [open $filename w]}}