summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2017-12-20 09:19:59 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2017-12-20 09:19:59 (GMT)
commit2bfe68441a03d2363dddceaaf87bf7e059c59e38 (patch)
treecdd07819a893cae4504a219903e011c8c5ee75c7 /tests
parent82512215ff54183e51483a4b6a0d1d1bb5a4b6e9 (diff)
downloadtcl-2bfe68441a03d2363dddceaaf87bf7e059c59e38.zip
tcl-2bfe68441a03d2363dddceaaf87bf7e059c59e38.tar.gz
tcl-2bfe68441a03d2363dddceaaf87bf7e059c59e38.tar.bz2
Fix for issue [ba1419303b4c]: Delete a namespace for an ensemble having a deletion
trace deletes its namespace: segmentation fault.
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index ed1eed6..a6c4932 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -196,6 +196,19 @@ test namespace-7.7 {Bug 1655305} -setup {
interp delete slave
} -result {}
+test namespace-7.8 {Bug ba1419303b4c} -setup {
+ namespace eval ns1 {
+ namespace ensemble create
+ }
+
+ trace add command ns1 delete {
+ namespace delete ns1
+ }
+} -body {
+ # No segmentation fault given --enable-symbols=mem.
+ namespace delete ns1
+} -result {}
+
test namespace-8.1 {TclTeardownNamespace, delete global namespace} {
catch {interp delete test_interp}
interp create test_interp