diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-06-12 12:35:18 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-06-12 12:35:18 (GMT) |
commit | b1856533641e3211ef6e5b973ef1b0ea065c20ea (patch) | |
tree | 2908c1ef3e6a71293ec27269349aa7ff7b560f2d /tests/safe.test | |
parent | 45d29cd41c215484eaf33a4f02be315a6b1872b9 (diff) | |
download | tcl-b1856533641e3211ef6e5b973ef1b0ea065c20ea.zip tcl-b1856533641e3211ef6e5b973ef1b0ea065c20ea.tar.gz tcl-b1856533641e3211ef6e5b973ef1b0ea065c20ea.tar.bz2 |
add test that triggered reporting of [Bug 3530230]
Diffstat (limited to 'tests/safe.test')
-rw-r--r-- | tests/safe.test | 14 |
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"; |