summaryrefslogtreecommitdiffstats
path: root/tests/info.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2018-10-07 19:34:52 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2018-10-07 19:34:52 (GMT)
commit3826a26f8a75540c7f3ff0b45f76498e85486dc9 (patch)
tree1d036fcb65ff3234d69584b2da83d9db937af03f /tests/info.test
parent045e0f533db5ea623b4ea0b519b089b23e2c332e (diff)
downloadtcl-3826a26f8a75540c7f3ff0b45f76498e85486dc9.zip
tcl-3826a26f8a75540c7f3ff0b45f76498e85486dc9.tar.gz
tcl-3826a26f8a75540c7f3ff0b45f76498e85486dc9.tar.bz2
Centralise the de-fanging of standard ensembles in safe interpreters. Doing it right once is easier than repeating hacks...
Diffstat (limited to 'tests/info.test')
-rw-r--r--tests/info.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/info.test b/tests/info.test
index 0de1510..a12d45c 100644
--- a/tests/info.test
+++ b/tests/info.test
@@ -2535,9 +2535,9 @@ test info-40.18 {info cmdtype: aliases in slave interpreters} -setup {
$safe eval {
info cmdtype foo
}
-} -cleanup {
+} -returnCodes error -cleanup {
interp delete $safe
-} -result native
+} -result {not allowed to invoke subcommand cmdtype of info}
test info-40.19 {info cmdtype: aliases in slave interpreters} -setup {
set safe [interp create -safe]
} -body {
@@ -2548,9 +2548,9 @@ test info-40.19 {info cmdtype: aliases in slave interpreters} -setup {
info cmdtype foo
}
}
-} -cleanup {
+} -returnCodes error -cleanup {
interp delete $safe
-} -result native
+} -result {not allowed to invoke subcommand cmdtype of info}
test info-40.20 {info cmdtype: aliases in slave interpreters} -setup {
set safe [interp create -safe]
} -body {
@@ -2558,9 +2558,9 @@ test info-40.20 {info cmdtype: aliases in slave interpreters} -setup {
interp alias {} foo {} gorp
info cmdtype foo
}
-} -cleanup {
+} -returnCodes error -cleanup {
interp delete $safe
-} -result alias
+} -result {not allowed to invoke subcommand cmdtype of info}
namespace delete ::testinfocmdtype
# -------------------------------------------------------------------------