diff options
Diffstat (limited to 'tests')
-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 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" |