summaryrefslogtreecommitdiffstats
path: root/tests/binary.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-12-02 09:31:54 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-12-02 09:31:54 (GMT)
commitf7f2bef7e0fed017b7ed43ce94cf1154e791188c (patch)
tree8e65dcc29a152b1ac1461c0e10986ed1b7fd96dc /tests/binary.test
parent481bf0fb0bdd82a1f9b5a287dbe7c06de435804e (diff)
downloadtcl-f7f2bef7e0fed017b7ed43ce94cf1154e791188c.zip
tcl-f7f2bef7e0fed017b7ed43ce94cf1154e791188c.tar.gz
tcl-f7f2bef7e0fed017b7ed43ce94cf1154e791188c.tar.bz2
Stop losing references when variables are repeated in [binary scan]. [851747]
Diffstat (limited to 'tests/binary.test')
-rw-r--r--tests/binary.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/binary.test b/tests/binary.test
index fcc6df6..98eb4fc 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: binary.test,v 1.11.2.1 2003/07/11 21:18:55 dkf Exp $
+# RCS: @(#) $Id: binary.test,v 1.11.2.2 2003/12/02 09:31:54 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1516,6 +1516,14 @@ test binary-46.5 {Tcl_BinaryObjCmd: handling of non-ISO8859-1 chars} {
list $x $y [encoding convertfrom iso8859-15 $y]
} "1 \u00a4 \u20ac"
+test binary-47.1 {Tcl_BinaryObjCmd: number cache reference count handling} {
+ # This test is only reliable when memory debugging is turned on,
+ # but without even memory debugging it should still generate the
+ # expected answers and might therefore still pick up memory corruption
+ # caused by [Bug 851747].
+ list [binary scan aba ccc x x x] $x
+} {3 97}
+
# cleanup
::tcltest::cleanupTests
return