summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-08-30 18:15:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-08-30 18:15:24 (GMT)
commit54f15bb144abf1e98db0a7bf90f741a93b41eff4 (patch)
tree39ee31674a5a0324d9368289abf06d114660122b /tests/string.test
parent9e7d1e52219a5f372c7a0dea6ef24110e03cee81 (diff)
downloadtcl-54f15bb144abf1e98db0a7bf90f741a93b41eff4.zip
tcl-54f15bb144abf1e98db0a7bf90f741a93b41eff4.tar.gz
tcl-54f15bb144abf1e98db0a7bf90f741a93b41eff4.tar.bz2
Fix crash in [string map] when objects are shared. [Bug 1018562]
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/string.test b/tests/string.test
index 6e937f4..a48df1c 100644
--- a/tests/string.test
+++ b/tests/string.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: string.test,v 1.36.2.2 2003/06/09 21:51:56 dgp Exp $
+# RCS: @(#) $Id: string.test,v 1.36.2.3 2004/08/30 18:15:25 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -760,6 +760,10 @@ test string-10.18 {string map, empty argument} {
test string-10.19 {string map, empty arguments} {
string map -nocase {{} abc f bar {} def} foo
} baroo
+test string-10.20 {string map, nasty sharing crash from [Bug 1018562]} {
+ set a {a b}
+ string map $a $a
+} {b b}
test string-11.1 {string match, too few args} {
list [catch {string match a} msg] $msg