summaryrefslogtreecommitdiffstats
path: root/tests/regexp.test
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2002-07-10 11:56:44 (GMT)
committerdgp <dgp@noemail.net>2002-07-10 11:56:44 (GMT)
commit0b8dbc6c276254e46b44b83af4045917d6ed6428 (patch)
tree1a37add20fefab1047a8268adf31e600b827891e /tests/regexp.test
parentf4be1b6d436902021d441bfa1fe6f53eaa5305fb (diff)
downloadtcl-0b8dbc6c276254e46b44b83af4045917d6ed6428.zip
tcl-0b8dbc6c276254e46b44b83af4045917d6ed6428.tar.gz
tcl-0b8dbc6c276254e46b44b83af4045917d6ed6428.tar.bz2
* Cleaned up, constrained, and reduced the amount of [exec] usage
in the test suite. FossilOrigin-Name: b0f3dfed629f8e4c506365bc62ba4dd7900a03c6
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} {