summaryrefslogtreecommitdiffstats
path: root/library/tcltest/tcltest.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-06-22 04:19:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-06-22 04:19:46 (GMT)
commita96389c630f566cd60a1801a00ce9cbd49de6246 (patch)
treeafe75aae3aa2396f2b275820237a6af00d65858c /library/tcltest/tcltest.tcl
parent03ba5cac868e4b5a001d9f84df871d377d89f1c5 (diff)
downloadtcl-a96389c630f566cd60a1801a00ce9cbd49de6246.zip
tcl-a96389c630f566cd60a1801a00ce9cbd49de6246.tar.gz
tcl-a96389c630f566cd60a1801a00ce9cbd49de6246.tar.bz2
* Corrections to tcltest and the Tcl test suite so that a test
with options -constraints knownBug -limitConstraints 1 only tests the knownBug tests. Mostly involves replacing direct access to the testConstraints array with calls to the testConstraint command (which requires tcltest version 2).
Diffstat (limited to 'library/tcltest/tcltest.tcl')
-rw-r--r--library/tcltest/tcltest.tcl5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 96c9693..b2b020b 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -15,7 +15,7 @@
# Copyright (c) 2000 by Ajuba Solutions
# All rights reserved.
#
-# RCS: @(#) $Id: tcltest.tcl,v 1.54 2002/06/06 20:54:03 dgp Exp $
+# RCS: @(#) $Id: tcltest.tcl,v 1.55 2002/06/22 04:19:46 dgp Exp $
# create the "tcltest" namespace for all testing variables and
# procedures
@@ -685,6 +685,9 @@ proc tcltest::testConstraint {constraint {value ""}} {
if {[catch {expr {$value && $value}} msg]} {
return -code error $msg
}
+ if {[limitConstraints]} {
+ set value 0
+ }
set testConstraints($constraint) $value
}