summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-12-03 23:05:15 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-12-03 23:05:15 (GMT)
commit58cd08bb7d984dd94fd4b1203984f24d5b2c5484 (patch)
tree9e53471e3f1bca4b296a17428b0908bba2a71c63 /tests
parentd7cf041bab9ace3408763b9c55dcc337e53d4600 (diff)
downloadtcl-58cd08bb7d984dd94fd4b1203984f24d5b2c5484.zip
tcl-58cd08bb7d984dd94fd4b1203984f24d5b2c5484.tar.gz
tcl-58cd08bb7d984dd94fd4b1203984f24d5b2c5484.tar.bz2
[0dca3bfa8f] Strengthen validity checks on fast-path string comparison.
Diffstat (limited to 'tests')
-rw-r--r--tests/stringComp.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stringComp.test b/tests/stringComp.test
index f9f6bda..a66525e 100644
--- a/tests/stringComp.test
+++ b/tests/stringComp.test
@@ -720,6 +720,14 @@ test stringComp-14.2 {Bug 82e7f67325} memory {
}} {a b}
}
} {0}
+test stringComp-14.3 {Bug 0dca3bfa8f} {
+ apply {arg {
+ set argCopy $arg
+ set arg [string replace $arg 1 2 aa]
+ # Crashes in comparison before fix
+ expr {$arg ne $argCopy}
+ }} abcde
+} 1
## string tolower
## not yet bc