diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2018-06-24 07:17:46 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2018-06-24 07:17:46 (GMT) |
commit | e2a79c2604e79b36ec065a7bb44ec57eaca5ed8a (patch) | |
tree | 6707ed6c69109f2645186529a7ef950289d0556a /tests/tailcall.test | |
parent | 6cbfdcc4a338d5b7348ee7e65a7710d13f9bc27e (diff) | |
download | tcl-e2a79c2604e79b36ec065a7bb44ec57eaca5ed8a.zip tcl-e2a79c2604e79b36ec065a7bb44ec57eaca5ed8a.tar.gz tcl-e2a79c2604e79b36ec065a7bb44ec57eaca5ed8a.tar.bz2 |
Fix for [3592747]: Let TclNRTailcallEval handle namespace problems.
Diffstat (limited to 'tests/tailcall.test')
-rw-r--r-- | tests/tailcall.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/tailcall.test b/tests/tailcall.test index 26f3cbf..3751c35 100644 --- a/tests/tailcall.test +++ b/tests/tailcall.test @@ -688,6 +688,26 @@ if {[testConstraint testnrelevels]} { namespace delete testnre } +test tailcall-14.1 {in a deleted namespace} -body { + namespace eval ns { + proc p args { + tailcall [namespace current] $args + } + namespace delete [namespace current] + p + } +} -returnCodes 1 -result {namespace "::ns" not found} + +test tailcall-14.1-bc {{in a deleted namespace} {byte compiled}} -body { + namespace eval ns { + proc p args { + tailcall [namespace current] {*}$args + } + namespace delete [namespace current] + p + } +} -returnCodes 1 -result {namespace "::ns" not found} + # cleanup ::tcltest::cleanupTests |