summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2002-06-22 04:19:45 (GMT)
committerdgp <dgp@noemail.net>2002-06-22 04:19:45 (GMT)
commit65f32f91b86536e154db24d968d018e708f76540 (patch)
treeafe75aae3aa2396f2b275820237a6af00d65858c /library
parentf21af6c9ff8db6c90345a523ffdb1114a32d8bad (diff)
downloadtcl-65f32f91b86536e154db24d968d018e708f76540.zip
tcl-65f32f91b86536e154db24d968d018e708f76540.tar.gz
tcl-65f32f91b86536e154db24d968d018e708f76540.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). FossilOrigin-Name: 9ba9324aefb481870bbdcf7c812e149be23ddd02
Diffstat (limited to 'library')
-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
}