summaryrefslogtreecommitdiffstats
path: root/tests/dstring.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-06-24 10:34:11 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-06-24 10:34:11 (GMT)
commit5e7d6ef8fae9debf78ec144defd6c447fef59192 (patch)
tree3640aa66fa95f3d28a22297bd0641c27a8b6def6 /tests/dstring.test
parentf87dce59c2695416ac275e2b3807e7e43b45aac5 (diff)
downloadtcl-5e7d6ef8fae9debf78ec144defd6c447fef59192.zip
tcl-5e7d6ef8fae9debf78ec144defd6c447fef59192.tar.gz
tcl-5e7d6ef8fae9debf78ec144defd6c447fef59192.tar.bz2
Fix constraints so can test with tclsh as well as tcltest [Bug 736431]
Diffstat (limited to 'tests/dstring.test')
-rw-r--r--tests/dstring.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/dstring.test b/tests/dstring.test
index 6db6429..033e29e 100644
--- a/tests/dstring.test
+++ b/tests/dstring.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: dstring.test,v 1.7 2004/05/19 12:08:07 dkf Exp $
+# RCS: @(#) $Id: dstring.test,v 1.8 2004/06/24 10:34:12 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -323,6 +323,8 @@ test dstring-6.5 {Tcl_DStringGetResult} testdstring {
} {{} {This is a specially-allocated stringz}}
# cleanup
-testdstring free
+if {[testConstraint testdstring]} {
+ testdstring free
+}
::tcltest::cleanupTests
return