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)
commit41fcd549f702f3c39e5e164dd1d93a90865e2134 (patch)
tree2908c1ef3e6a71293ec27269349aa7ff7b560f2d
parentda206716d027775cf443cf2f3be8acb1949ac398 (diff)
downloadtcl-41fcd549f702f3c39e5e164dd1d93a90865e2134.zip
tcl-41fcd549f702f3c39e5e164dd1d93a90865e2134.tar.gz
tcl-41fcd549f702f3c39e5e164dd1d93a90865e2134.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";