diff options
author | dgp <dgp@users.sourceforge.net> | 2009-03-21 02:55:48 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-03-21 02:55:48 (GMT) |
commit | b694e6b4fab8a3ac24df527d0ce9d9089c215316 (patch) | |
tree | 3312d5f93a30169c0e74e7ef634b2fc961e9609c /tests | |
parent | 613d3aaac8fffe35fccf988a875051486deb383d (diff) | |
download | tcl-b694e6b4fab8a3ac24df527d0ce9d9089c215316.zip tcl-b694e6b4fab8a3ac24df527d0ce9d9089c215316.tar.gz tcl-b694e6b4fab8a3ac24df527d0ce9d9089c215316.tar.bz2 |
* tests/stringObj.test: Test stringObj-6.9 checks that
Tcl_AppendStringsToObj() no longer crashes when operating on a
pure unicode value. [Bug 2597185]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stringObj.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/stringObj.test b/tests/stringObj.test index 057d8e8..921deef 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.21 2009/02/17 17:17:32 dgp Exp $ +# RCS: @(#) $Id: stringObj.test,v 1.22 2009/03/21 02:55:49 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -161,6 +161,12 @@ test stringObj-6.8 {Tcl_AppendStringsToObj procedure, object totally empty} test teststringobj appendstrings 1 {} list [teststringobj length2 1] [teststringobj get 1] } {0 {}} +test stringObj-6.9 {Tcl_AppendStringToObj, pure unicode} testobj { + 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 { testobj freeallvars |