summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-03-21 02:53:17 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-03-21 02:53:17 (GMT)
commit46d3285af3347b2e58231b703879cefe7ae127dc (patch)
tree5ec5f24bbefd332a7404fbb73c76d154d7653409 /tests
parent3ffdc07ae6a026da773911c97cbacf6c1a676153 (diff)
downloadtcl-46d3285af3347b2e58231b703879cefe7ae127dc.zip
tcl-46d3285af3347b2e58231b703879cefe7ae127dc.tar.gz
tcl-46d3285af3347b2e58231b703879cefe7ae127dc.tar.bz2
* generic/tclStringObj.c: Test stringObj-6.9 checks that
* tests/stringObj.test: Tcl_AppendStringsToObj() no longer crashes when operating on a pure unicode value. [Bug 2597185]
Diffstat (limited to 'tests')
-rw-r--r--tests/stringObj.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/stringObj.test b/tests/stringObj.test
index e3bdbee..359e11a 100644
--- a/tests/stringObj.test
+++ b/tests/stringObj.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: stringObj.test,v 1.15 2003/02/11 18:46:33 hobbs Exp $
+# RCS: @(#) $Id: stringObj.test,v 1.15.2.1 2009/03/21 02:53:18 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -165,6 +165,12 @@ test stringObj-6.8 {Tcl_AppendStringsToObj procedure, object totally empty} {
teststringobj appendstrings 1 {}
list [teststringobj length2 1] [teststringobj get 1]
} {0 {}}
+test stringObj-6.9 {Tcl_AppendStringToObj, pure unicode} {
+ testobj freeallvars
+ teststringobj set2 1 [string replace abc 1 1 d]
+ teststringobj appendstrings 1 foo bar soom
+ teststringobj get 1
+} adcfoobarsoom
test stringObj-7.1 {SetStringFromAny procedure} {
testobj freeallvars