summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-06-12 12:35:18 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-06-12 12:35:18 (GMT)
commitb1856533641e3211ef6e5b973ef1b0ea065c20ea (patch)
tree2908c1ef3e6a71293ec27269349aa7ff7b560f2d
parent45d29cd41c215484eaf33a4f02be315a6b1872b9 (diff)
downloadtcl-b1856533641e3211ef6e5b973ef1b0ea065c20ea.zip
tcl-b1856533641e3211ef6e5b973ef1b0ea065c20ea.tar.gz
tcl-b1856533641e3211ef6e5b973ef1b0ea065c20ea.tar.bz2
add test that triggered reporting of [Bug 3530230]
-rw-r--r--tests/safe.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/safe.test b/tests/safe.test
index 4bd8509..8879518 100644
--- a/tests/safe.test
+++ b/tests/safe.test
@@ -309,6 +309,20 @@ test safe-8.9 {safe source and return} -setup {
catch {safe::interpDelete $i}
removeFile $returnScript
} -result ok
+test safe-8.10 {safe source and return} -setup {
+ set returnScript [makeFile {return -level 2 "ok"} return.tcl]
+ catch {safe::interpDelete $i}
+} -body {
+ safe::interpCreate $i
+ set token [safe::interpAddToAccessPath $i [file dirname $returnScript]]
+ $i eval [list apply {filename {
+ source $filename
+ error boom
+ }} $token/[file tail $returnScript]]
+} -cleanup {
+ catch {safe::interpDelete $i}
+ removeFile $returnScript
+} -result ok
test safe-9.1 {safe interps' deleteHook} {
set i "a";