diff options
author | dgp <dgp@users.sourceforge.net> | 2019-02-14 19:34:39 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2019-02-14 19:34:39 (GMT) |
commit | 5fd6fc8ae4d88e17f66c93e521c89fba72b77fd4 (patch) | |
tree | 441d50ec53801e71b7df29282d30f52d1edab335 /tests/zipfs.test | |
parent | fc24d0b9cf8dd65f77793746f54e9815abb77c2b (diff) | |
download | tcl-5fd6fc8ae4d88e17f66c93e521c89fba72b77fd4.zip tcl-5fd6fc8ae4d88e17f66c93e521c89fba72b77fd4.tar.gz tcl-5fd6fc8ae4d88e17f66c93e521c89fba72b77fd4.tar.bz2 |
Improve portability of path constructions.
Diffstat (limited to 'tests/zipfs.test')
-rw-r--r-- | tests/zipfs.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/zipfs.test b/tests/zipfs.test index f530836..782d032 100644 --- a/tests/zipfs.test +++ b/tests/zipfs.test @@ -59,7 +59,7 @@ test zipfs-0.3 {zipfs basics: glob} -constraints zipfslib -setup { set pwd [pwd] } -body { cd $tcl_library - expr { "./http" in [glob -dir . http*] } + expr { [file join . http] in [glob -dir . http*] } } -cleanup { cd $pwd } -result 1 @@ -67,15 +67,15 @@ test zipfs-0.4 {zipfs basics: glob} -constraints zipfslib -setup { set pwd [pwd] } -body { cd $tcl_library - expr { "$tcl_library/http" in [glob -dir [pwd] http*] } + expr { [file join $tcl_library http] in [glob -dir [pwd] http*] } } -cleanup { cd $pwd } -result 1 test zipfs-0.5 {zipfs basics: glob} -constraints zipfslib -body { - expr { "$tcl_library/http" in [glob -dir $tcl_library http*] } + expr { [file join $tcl_library http] in [glob -dir $tcl_library http*] } } -result 1 test zipfs-0.6 {zipfs basics: glob} -constraints zipfslib -body { - expr { "$tcl_library/http" in [glob $tcl_library/http*] } + expr { [file join $tcl_library http] in [glob [file join $tcl_library http*]] } } -result 1 test zipfs-0.7 {zipfs basics: glob} -constraints zipfslib -body { expr { "http" in [glob -tails -dir $tcl_library http*] } |