summaryrefslogtreecommitdiffstats
path: root/tests/dcall.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-05-19 10:54:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-05-19 10:54:20 (GMT)
commitd400fbd7673b345fc701fc761acd8e4654aeb77a (patch)
tree9ce785afd2dc8c9289b66f0dbbbf67235c2752e8 /tests/dcall.test
parent7727845c8d025efed8146edac43eee0ce5741b4c (diff)
downloadtcl-d400fbd7673b345fc701fc761acd8e4654aeb77a.zip
tcl-d400fbd7673b345fc701fc761acd8e4654aeb77a.tar.gz
tcl-d400fbd7673b345fc701fc761acd8e4654aeb77a.tar.bz2
Use constraints, not conditional tests
Diffstat (limited to 'tests/dcall.test')
-rw-r--r--tests/dcall.test33
1 files changed, 8 insertions, 25 deletions
diff --git a/tests/dcall.test b/tests/dcall.test
index 83aaba1..55f6731 100644
--- a/tests/dcall.test
+++ b/tests/dcall.test
@@ -11,51 +11,34 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: dcall.test,v 1.5 2000/04/10 17:18:58 ericm Exp $
+# RCS: @(#) $Id: dcall.test,v 1.6 2004/05/19 10:54:20 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import -force ::tcltest::*
}
-if {[info commands testdcall] == {}} {
- puts "This application hasn't been compiled with the \"testdcall\""
- puts "command, so I can't test Tcl_CallWhenDeleted."
- ::tcltest::cleanupTests
- return
-}
+testConstraint testdcall [llength [info commands testdcall]]
-test dcall-1.1 {deletion callbacks} {
+test dcall-1.1 {deletion callbacks} testdcall {
lsort -increasing [testdcall 1 2 3]
} {1 2 3}
-test dcall-1.2 {deletion callbacks} {
+test dcall-1.2 {deletion callbacks} testdcall {
testdcall
} {}
-test dcall-1.3 {deletion callbacks} {
+test dcall-1.3 {deletion callbacks} testdcall {
lsort -increasing [testdcall 20 21 22 -22]
} {20 21}
-test dcall-1.4 {deletion callbacks} {
+test dcall-1.4 {deletion callbacks} testdcall {
lsort -increasing [testdcall 20 21 22 -20]
} {21 22}
-test dcall-1.5 {deletion callbacks} {
+test dcall-1.5 {deletion callbacks} testdcall {
lsort -increasing [testdcall 20 21 22 -21]
} {20 22}
-test dcall-1.6 {deletion callbacks} {
+test dcall-1.6 {deletion callbacks} testdcall {
lsort -increasing [testdcall 20 21 22 -21 -22 -20]
} {}
# cleanup
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-