summaryrefslogtreecommitdiffstats
path: root/tests/reg.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2008-05-26 21:46:44 (GMT)
committerhobbs <hobbs>2008-05-26 21:46:44 (GMT)
commiteba97bfeba0f91a9c27ad192f4da4ce2e68172f6 (patch)
treec5e1b8c8f5bb60b8e18b7c8bb32265946aed4989 /tests/reg.test
parent2d0c6623751c68bafcbfe05e370d25a15c3474ad (diff)
downloadtcl-eba97bfeba0f91a9c27ad192f4da4ce2e68172f6.zip
tcl-eba97bfeba0f91a9c27ad192f4da4ce2e68172f6.tar.gz
tcl-eba97bfeba0f91a9c27ad192f4da4ce2e68172f6.tar.bz2
reduce reg-33.14 space used to prevent stack segfault
Diffstat (limited to 'tests/reg.test')
-rw-r--r--tests/reg.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/reg.test b/tests/reg.test
index 2abe7b6..d7b8c5f 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.16.2.4 2007/12/18 11:23:16 dkf Exp $
+# RCS: @(#) $Id: reg.test,v 1.16.2.5 2008/05/26 21:46:44 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1138,7 +1138,7 @@ test reg-33.13 {Bug 1810264 - infinite loop} {
} 1
test reg-33.14 {Bug 1810264 - super-expensive expression} {
set start [clock seconds]
- regexp {(x{200}){200}$y} {x}
+ regexp {(x{100}){100}$y} {x}
set time [expr {[clock seconds] - $start}]
expr {$time < 5 ? "ok" : "Complex RE took $time seconds - bad!"}
} ok