summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-07-11 21:56:32 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-07-11 21:56:32 (GMT)
commit0ceae7a8858e4fc063aaed9c90e843c52b6c4769 (patch)
treec705d43e1582e5709cbf4a4c93c8790a2a58ea15 /tests
parente19d125606278445af20df5b1d452945450776da (diff)
downloadtcl-0ceae7a8858e4fc063aaed9c90e843c52b6c4769.zip
tcl-0ceae7a8858e4fc063aaed9c90e843c52b6c4769.tar.gz
tcl-0ceae7a8858e4fc063aaed9c90e843c52b6c4769.tar.bz2
[cea0344a1] Restore a clearing of the ensemble rewrite in one execution path
so attempts to use the data after free are not made. Test namespace-50.9 demonstrates the need for this.
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 575695f..55505f1 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -2356,6 +2356,13 @@ test namespace-50.8 {[f961d7d1dd]} -setup {
rename e {}
rename target {}
}
+test namespace-50.9 {[cea0344a51]} -body {
+ namespace eval foo {
+ namespace eval bar {
+ namespace delete foo
+ }
+ }
+} -returnCodes error -result {unknown namespace "foo" in namespace delete command}
test namespace-51.1 {name resolution path control} -body {
namespace eval ::test_ns_1 {