summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2012-06-12 12:36:21 (GMT)
committerdkf <dkf@noemail.net>2012-06-12 12:36:21 (GMT)
commit2a550baf0b7e641fc5b43dd6385b3778eff813c2 (patch)
tree2f8a2b355f5e2154b7c6b76bc764a73a65cd9268 /tests
parentd3eb17c97d92c7dbd5c26e98a983b219f3ff1c65 (diff)
parent30b04908e05cda71012cc9176f4064af997ef344 (diff)
downloadtcl-2a550baf0b7e641fc5b43dd6385b3778eff813c2.zip
tcl-2a550baf0b7e641fc5b43dd6385b3778eff813c2.tar.gz
tcl-2a550baf0b7e641fc5b43dd6385b3778eff813c2.tar.bz2
add test that triggered reporting of [Bug 3530230]
FossilOrigin-Name: 41bb6c4e84d12f13fc3c33a673610d8849ea9839
Diffstat (limited to 'tests')
-rw-r--r--tests/safe.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/safe.test b/tests/safe.test
index dcd5bfd..4a2792e 100644
--- a/tests/safe.test
+++ b/tests/safe.test
@@ -334,6 +334,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} -setup {
set i "a"