summaryrefslogtreecommitdiffstats
path: root/tests/execute.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-28 00:00:44 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-28 00:00:44 (GMT)
commiteb3bdd1436d6f44483a5067f3d7021ca26e2cce6 (patch)
treede4836ab7ed361708adf24ebcd065196160d1c0a /tests/execute.test
parent3dc792af1b4092559af5da21b600651cde78c1ff (diff)
downloadtcl-eb3bdd1436d6f44483a5067f3d7021ca26e2cce6.zip
tcl-eb3bdd1436d6f44483a5067f3d7021ca26e2cce6.tar.gz
tcl-eb3bdd1436d6f44483a5067f3d7021ca26e2cce6.tar.bz2
* tests/appendComp.test: Backport test suite fixes of errors
* tests/autoMkindex.test: revealed by -singleproc 1 -debug 1 * tests/exec.test: options to make test. * tests/execute.test: * tests/interp.test: * tests/io.test: * tests/namespace.test: * tests/regexpComp.test: * tests/stringComp.test: * tests/unixInit.test: * tests/winPipe.test:
Diffstat (limited to 'tests/execute.test')
-rw-r--r--tests/execute.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/execute.test b/tests/execute.test
index 2f7363c..7883ffe 100644
--- a/tests/execute.test
+++ b/tests/execute.test
@@ -14,7 +14,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: execute.test,v 1.13.2.1 2003/09/19 18:43:00 msofer Exp $
+# RCS: @(#) $Id: execute.test,v 1.13.2.2 2004/10/28 00:01:07 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -713,13 +713,17 @@ test execute-7.34 {Wide int handling} {longIs32bit} {
expr {wide(0x1) * 1024 * 1024 * 1024 * 1024}
} 1099511627776
-test execute-8.1 {Stack protection} {
+test execute-8.1 {Stack protection} -setup {
# If [Bug #804681] has not been properly
# taken care of, this should segfault
proc whatever args {llength $args}
trace add variable ::errorInfo {write unset} whatever
- catch {expr {1+9/0}}
-} 1
+} -body {
+ expr {1+9/0}
+} -cleanup {
+ trace remove variable ::errorInfo {write unset} whatever
+ rename whatever {}
+} -returnCodes error -match glob -result *
# cleanup
if {[info commands testobj] != {}} {