summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-03-08 21:43:48 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-03-08 21:43:48 (GMT)
commit0360804a185c3cefb62d47dd49d9df01ae66e98a (patch)
tree1d7014e04ee9b54cfbc2c1da8f15d788857d7d12
parentf421b7729e9df68ad2f0a9394bc078a9cbcfaf12 (diff)
downloadtcl-0360804a185c3cefb62d47dd49d9df01ae66e98a.zip
tcl-0360804a185c3cefb62d47dd49d9df01ae66e98a.tar.gz
tcl-0360804a185c3cefb62d47dd49d9df01ae66e98a.tar.bz2
* doc/tcltest.n: Added missing "-body" to example. Thanks to
Helmut Giese. [Bug 700011]
-rw-r--r--ChangeLog5
-rw-r--r--doc/tcltest.n6
-rw-r--r--tests/subst.test6
3 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c7b778..4ff3c06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-08 Don Porter <dgp@users.sourceforge.net>
+
+ * doc/tcltest.n: Added missing "-body" to example. Thanks to
+ Helmut Giese. [Bug 700011]
+
2003-03-06 Don Porter <dgp@users.sourceforge.net>
* generic/TclUtf.c (Tcl_UniCharNcasecmp): Corrected failure to
diff --git a/doc/tcltest.n b/doc/tcltest.n
index c395823..4693ca6 100644
--- a/doc/tcltest.n
+++ b/doc/tcltest.n
@@ -8,7 +8,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: tcltest.n,v 1.38 2003/01/24 16:33:35 dgp Exp $
+'\" RCS: @(#) $Id: tcltest.n,v 1.38.2.1 2003/03/08 21:43:49 dgp Exp $
'\"
.so man.macros
.TH "tcltest" n 2.2 tcltest "Tcl Bundled Packages"
@@ -976,10 +976,10 @@ namespace eval ::example::test {
testConstraint X [expr {...}]
variable SETUP {#common setup code}
variable CLEANUP {#common cleanup code}
- test example-1 {} -setup $SETUP {
+ test example-1 {} -setup $SETUP -body {
# First test
} -cleanup $CLEANUP -result {...}
- test example-2 {} -constraints X -setup $SETUP {
+ test example-2 {} -constraints X -setup $SETUP -body {
# Second test; constrained
} -cleanup $CLEANUP -result {...}
test example-3 {} {
diff --git a/tests/subst.test b/tests/subst.test
index 0e46f02..c91145d 100644
--- a/tests/subst.test
+++ b/tests/subst.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: subst.test,v 1.13 2003/02/16 01:36:32 msofer Exp $
+# RCS: @(#) $Id: subst.test,v 1.13.2.1 2003/03/08 21:43:49 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -216,6 +216,10 @@ test subst-11.6 {continue in a variable subst} {
subst {foo $var([continue]) bar}
} {foo bar}
+test subst-bug-685106 {Tcl_SubstObj halts on NULL} {
+ subst [bytestring bar\x00soom]
+} [bytestring bar\x00soom]
+
# cleanup
::tcltest::cleanupTests
return