diff options
author | dgp <dgp@users.sourceforge.net> | 2003-10-07 04:48:07 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2003-10-07 04:48:07 (GMT) |
commit | 33d962ba631ef02dff82846cf2dc6fe9526ee389 (patch) | |
tree | a020fcbbe489998d136a4a9880484831e889838f /tests/regexpComp.test | |
parent | a7463035b1757163bca375339292ff0e1aef13fa (diff) | |
download | tcl-33d962ba631ef02dff82846cf2dc6fe9526ee389.zip tcl-33d962ba631ef02dff82846cf2dc6fe9526ee389.tar.gz tcl-33d962ba631ef02dff82846cf2dc6fe9526ee389.tar.bz2 |
* tests/regexp.test: Matched [makeFile] with [removeFile].
* tests/regexpComp.test: [Bug 675652]
Diffstat (limited to 'tests/regexpComp.test')
-rw-r--r-- | tests/regexpComp.test | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/regexpComp.test b/tests/regexpComp.test index 6665e63..b8600dd 100644 --- a/tests/regexpComp.test +++ b/tests/regexpComp.test @@ -14,7 +14,7 @@ # RCS: @(#) $Id$ if {[lsearch [namespace children] ::tcltest] == -1} { - package require tcltest + package require tcltest 2 namespace import -force ::tcltest::* } @@ -593,11 +593,15 @@ test regexp-14.2 {CompileRegexp: regexp cache, different flags} { } 1 testConstraint exec [llength [info commands exec]] -test regexp-14.3 {CompileRegexp: regexp cache, empty regexp and empty cache} { +test regexp-14.3 {CompileRegexp: regexp cache, empty regexp and empty cache} -constraints { exec -} { - exec [interpreter] [makeFile {puts [regexp {} foo]} junk.tcl] -} 1 +} -setup { + set junk [makeFile {puts [regexp {} foo]} junk.tcl] +} -body { + exec [interpreter] $junk +} -cleanup { + removeFile junk.tcl +} -result 1 test regexp-15.1 {regexp -start} { catch {unset x} |