summaryrefslogtreecommitdiffstats
path: root/tests/stringComp.test
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)
commit9e5f0ade58641b9719e70838d98e562c867193dd (patch)
tree9e53471e3f1bca4b296a17428b0908bba2a71c63 /tests/stringComp.test
parenta03c9da848ffd7e60101c43321e05f79635f8cef (diff)
downloadtcl-9e5f0ade58641b9719e70838d98e562c867193dd.zip
tcl-9e5f0ade58641b9719e70838d98e562c867193dd.tar.gz
tcl-9e5f0ade58641b9719e70838d98e562c867193dd.tar.bz2
[0dca3bfa8f] Strengthen validity checks on fast-path string comparison.
Diffstat (limited to 'tests/stringComp.test')
-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