summaryrefslogtreecommitdiffstats
path: root/tests/regexp.test
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2002-07-10 11:56:44 (GMT)
committerdgp@users.sourceforge.net <dgp>2002-07-10 11:56:44 (GMT)
commit0639805c4bc5501b6b0eeb3808ba2110b4750433 (patch)
tree1a37add20fefab1047a8268adf31e600b827891e /tests/regexp.test
parent00554fa5139500ffccc484fdff0ebb404d8ff9a7 (diff)
downloadtcl-0639805c4bc5501b6b0eeb3808ba2110b4750433.zip
tcl-0639805c4bc5501b6b0eeb3808ba2110b4750433.tar.gz
tcl-0639805c4bc5501b6b0eeb3808ba2110b4750433.tar.bz2
* Cleaned up, constrained, and reduced the amount of [exec] usage
in the test suite.
Diffstat (limited to 'tests/regexp.test')
-rw-r--r--tests/regexp.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/regexp.test b/tests/regexp.test
index c907b87..2bb017e 100644
--- a/tests/regexp.test
+++ b/tests/regexp.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: regexp.test,v 1.21 2002/07/05 10:38:43 dkf Exp $
+# RCS: @(#) $Id: regexp.test,v 1.22 2002/07/10 11:56:44 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -433,10 +433,11 @@ test regexp-14.2 {CompileRegexp: regexp cache, different flags} {
regexp -nocase $x bbba
} 1
-# There is no exec on the Mac ...
-
-test regexp-14.3 {CompileRegexp: regexp cache, empty regexp and empty cache} {unixOrPc} {
- exec $::tcltest::tcltest [makeFile {puts [regexp {} foo]} junk.tcl]
+testConstraint exec [llength [info commands exec]]
+test regexp-14.3 {CompileRegexp: regexp cache, empty regexp and empty cache} {
+ exec
+} {
+ exec [interpreter] [makeFile {puts [regexp {} foo]} junk.tcl]
} 1
test regexp-15.1 {regexp -start} {