diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2003-12-02 09:29:53 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2003-12-02 09:29:53 (GMT) |
commit | 714062429727db934f7ab082dbe42ecf849cd5ef (patch) | |
tree | c1cd1a077d80679a1fbc81f6019dbd2fe9d0e03f /tests/binary.test | |
parent | 79877d101ab3004b17ba6d38218d0df877602876 (diff) | |
download | tcl-714062429727db934f7ab082dbe42ecf849cd5ef.zip tcl-714062429727db934f7ab082dbe42ecf849cd5ef.tar.gz tcl-714062429727db934f7ab082dbe42ecf849cd5ef.tar.bz2 |
Stop losing references when variables are repeated in [binary scan]. [851747]
Diffstat (limited to 'tests/binary.test')
-rw-r--r-- | tests/binary.test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/binary.test b/tests/binary.test index c7860e9..809bb00 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.12 2003/07/11 21:14:46 dkf Exp $ +# RCS: @(#) $Id: binary.test,v 1.13 2003/12/02 09:29: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 |