summaryrefslogtreecommitdiffstats
path: root/tests/interp.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-08-30 00:23:16 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-08-30 00:23:16 (GMT)
commitb8db328a5dc663435c02e2b2a67f3d66e16602c9 (patch)
tree7190b01a6ab49b73109282aaa892db8e46c80128 /tests/interp.test
parent962035b9e88c81c37b472d73da55dbba9534756a (diff)
parentc920fce750db18f523a53b78892cb2c1610f5fcc (diff)
downloadtcl-b8db328a5dc663435c02e2b2a67f3d66e16602c9.zip
tcl-b8db328a5dc663435c02e2b2a67f3d66e16602c9.tar.gz
tcl-b8db328a5dc663435c02e2b2a67f3d66e16602c9.tar.bz2
[Bug 3398794]: Use Tcl errors in scripts, not panics.
Diffstat (limited to 'tests/interp.test')
-rw-r--r--tests/interp.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/interp.test b/tests/interp.test
index 35f6824..c146355 100644
--- a/tests/interp.test
+++ b/tests/interp.test
@@ -584,7 +584,6 @@ test interp-14.10 {testing interp-alias: error messages} -setup {
invoked from within
"a 1"}
-
# part 15: testing file sharing
test interp-15.1 {testing file sharing} {
catch {interp delete z}
@@ -665,8 +664,7 @@ test interp-15.8 {testing file transferring} -body {
# Torture tests for interpreter deletion order
#
proc kill {} {interp delete xxx}
-
-test interp-15.9 {testing deletion order} {
+test interp-16.0 {testing deletion order} {
catch {interp delete xxx}
interp create xxx
xxx alias kill kill
@@ -3497,6 +3495,13 @@ test interp-35.22 {interp time limits normalize milliseconds} -body {
} -cleanup {
interp delete $i
} -result {2 500}
+# Bug 3398794
+test interp-35.23 {interp command limits can't touch current interp} -body {
+ interp limit {} commands -value 10
+} -returnCodes error -result {limits on current interpreter inaccessible}
+test interp-35.24 {interp time limits can't touch current interp} -body {
+ interp limit {} time -seconds 2
+} -returnCodes error -result {limits on current interpreter inaccessible}
test interp-36.1 {interp bgerror syntax} -body {
interp bgerror
@@ -3610,7 +3615,6 @@ test interp-38.8 {interp debug basic setup} -body {
} -returnCodes {
error
} -result {wrong # args: should be "interp debug path ?-frame ?bool??"}
-
# cleanup
unset -nocomplain hidden_cmds