diff options
author | dgp <dgp@users.sourceforge.net> | 2009-10-29 17:21:17 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-10-29 17:21:17 (GMT) |
commit | 7ba094d5c64eb844c4fec27beb598cf43c90b821 (patch) | |
tree | ed9cdbb225652a13b963624c9b6b5c344b832bac /tests/reg.test | |
parent | 80ed2d3225fd713abeabba326c657ee9567dc1c5 (diff) | |
download | tcl-7ba094d5c64eb844c4fec27beb598cf43c90b821.zip tcl-7ba094d5c64eb844c4fec27beb598cf43c90b821.tar.gz tcl-7ba094d5c64eb844c4fec27beb598cf43c90b821.tar.bz2 |
Test hygiene for the ::tmp variable
Diffstat (limited to 'tests/reg.test')
-rw-r--r-- | tests/reg.test | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/reg.test b/tests/reg.test index 79eaaa0..4aab459 100644 --- a/tests/reg.test +++ b/tests/reg.test @@ -9,7 +9,7 @@ # # Copyright (c) 1998, 1999 Henry Spencer. All rights reserved. # -# RCS: @(#) $Id: reg.test,v 1.25 2008/03/19 13:39:28 dkf Exp $ +# RCS: @(#) $Id: reg.test,v 1.25.2.1 2009/10/29 17:21:18 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -1050,13 +1050,17 @@ test reg-33.8 {Bug 505048} { test reg-33.9 {Bug 505048} { regexp -indices -inline {\A\s*[^b]*b} ab } {{0 1}} -test reg-33.10 {Bug 840258} { +test reg-33.10 {Bug 840258} -body { regsub {(^|\n)+\.*b} \n.b {} tmp -} 1 -test reg-33.11 {Bug 840258} { +} -cleanup { + unset tmp +} -result 1 +test reg-33.11 {Bug 840258} -body { regsub {(^|[\n\r]+)\.*\?<.*?(\n|\r)+} \ "TQ\r\n.?<5000267>Test already stopped\r\n" {} tmp -} 1 +} -cleanup { + unset tmp +} -result 1 test reg-33.12 {Bug 1810264 - bad read} { regexp {\3161573148} {\3161573148} } 0 |