summaryrefslogtreecommitdiffstats
path: root/tests/tcltests.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-29 11:13:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-29 11:13:42 (GMT)
commitbe928297ad4c42c8888db9ed25a137d162fef621 (patch)
tree749b23c58734283916a038916ec805d7504dd2c6 /tests/tcltests.tcl
parentdcd421e97b6bad2a720a9ff91ca50c727fd5ba9f (diff)
downloadtcl-be928297ad4c42c8888db9ed25a137d162fef621.zip
tcl-be928297ad4c42c8888db9ed25a137d162fef621.tar.gz
tcl-be928297ad4c42c8888db9ed25a137d162fef621.tar.bz2
Remove "testpurify" and "testdebug" test commands
Diffstat (limited to 'tests/tcltests.tcl')
-rw-r--r--tests/tcltests.tcl23
1 files changed, 9 insertions, 14 deletions
diff --git a/tests/tcltests.tcl b/tests/tcltests.tcl
index 1ee37d3..b9d7cfd 100644
--- a/tests/tcltests.tcl
+++ b/tests/tcltests.tcl
@@ -3,22 +3,17 @@
package require tcltest 2.5
namespace import ::tcltest::*
testConstraint exec [llength [info commands exec]]
-if {[namespace which testdebug] ne {}} {
- testConstraint debug [testdebug]
- testConstraint purify [testpurify]
- testConstraint debugpurify [
- expr {
- ![testConstraint memory]
- &&
- [testConstraint debug]
- &&
- [testConstraint purify]
- }]
-}
+testConstraint debug [expr {"debug" in [split [package provide tcl] .]}]
+testConstraint purify [expr {"purify" in [split [package provide tcl] .]}]
+testConstraint debugpurify [
+ expr {
+ "memdebug" ni [split [package provide tcl] .]
+ && [testConstraint debug]
+ && [testConstraint purify]
+ }]
testConstraint fcopy [llength [info commands fcopy]]
testConstraint fileevent [llength [info commands fileevent]]
-testConstraint thread [
- expr {0 == [catch {package require Thread 2.7-}]}]
+testConstraint thread [expr {![catch {package require Thread 2.7-}]}]
testConstraint notValgrind [expr {![testConstraint valgrind]}]