summaryrefslogtreecommitdiffstats
path: root/tests/zipfs.test
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-06-27 15:35:37 (GMT)
committersebres <sebres@users.sourceforge.net>2019-06-27 15:35:37 (GMT)
commit9237f2327b9ce8ef521cc5d1019606992d1adfc0 (patch)
tree7afb979184949759bd0d56ac7b96171785fd51d5 /tests/zipfs.test
parent61f664036798fb06c0afd73d8aad28bc1c9df816 (diff)
downloadtcl-9237f2327b9ce8ef521cc5d1019606992d1adfc0.zip
tcl-9237f2327b9ce8ef521cc5d1019606992d1adfc0.tar.gz
tcl-9237f2327b9ce8ef521cc5d1019606992d1adfc0.tar.bz2
zipfs.test: fixed error (couldn't open "...": permission denied) if $tclzip points to directory, due to empty pkgconfig in runtime/debug environment (e. g. no zipped library)
Diffstat (limited to 'tests/zipfs.test')
-rw-r--r--tests/zipfs.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zipfs.test b/tests/zipfs.test
index 782d032..2ecbdfa 100644
--- a/tests/zipfs.test
+++ b/tests/zipfs.test
@@ -45,7 +45,7 @@ if {![string match ${ziproot}* $tcl_library]} {
# archive
###
set tclzip [file join $CWD [::tcl::pkgconfig get zipfile,runtime]]
- testConstraint zipfslib [file exists $tclzip]
+ testConstraint zipfslib [file isfile $tclzip]
if {[testConstraint zipfslib]} {
zipfs mount /lib/tcl $tclzip
set ::tcl_library ${ziproot}lib/tcl/tcl_library