summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2021-05-15 21:56:03 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2021-05-15 21:56:03 (GMT)
commit89f0f205d46059453d88a4b136353dbe5f3ce835 (patch)
tree7951504226debb7d782a9321015f34fa3b682fbd /tests
parent8a57d3c7fcedea0e29577dccfa43741f9fbb739c (diff)
downloadtcl-89f0f205d46059453d88a4b136353dbe5f3ce835.zip
tcl-89f0f205d46059453d88a4b136353dbe5f3ce835.tar.gz
tcl-89f0f205d46059453d88a4b136353dbe5f3ce835.tar.bz2
Fix [28027d8bb7745fb0], memory leaks in tclUnload.c,
Diffstat (limited to 'tests')
-rw-r--r--tests/pkgMkIndex.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/pkgMkIndex.test b/tests/pkgMkIndex.test
index df49c32..002efcc 100644
--- a/tests/pkgMkIndex.test
+++ b/tests/pkgMkIndex.test
@@ -577,19 +577,21 @@ test pkgMkIndex-10.1 {package in DLL and script} [list exec $dll] {
exec [interpreter] << $cmd
pkgtest::runCreatedIndex {0 {}} -lazy $fullPkgPath pkga[info sharedlibextension] pkga.tcl
} "0 {{pkga:1.0 {tclPkgSetup {pkga[info sharedlibextension] load {pkga_eq pkga_quote}} {pkga.tcl source pkga_neq}}}}"
+
test pkgMkIndex-10.2 {package in DLL hidden by -load} [list exec $dll] {
# Do all [load]ing of shared libraries in another process, so we can
# delete the file and not get stuck because we're holding a reference to
# it.
#
# This test depends on context from prior test, so repeat it.
+
set script \
"[list pkg_mkIndex -lazy $fullPkgPath [file tail $x] pkga.tcl]"
append script \n \
"[list pkg_mkIndex -lazy -load Pkg* $fullPkgPath [file tail $x]]"
exec [interpreter] << $script
pkgtest::runCreatedIndex {0 {}} -lazy -load Pkg* -- $fullPkgPath pkga[info sharedlibextension]
-} {0 {}}
+} {0 {{pkga:1.0 {tclPkgSetup {pkga.so load {pkga_eq pkga_quote}}}}}}
if {[testConstraint $dll]} {
file delete -force [file join $fullPkgPath [file tail $x]]