summaryrefslogtreecommitdiffstats
path: root/tests/fileSystem.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-04-07 14:05:26 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-04-07 14:05:26 (GMT)
commitf137e44fa1a2dd7603fba62d1b44c103379e2781 (patch)
tree7aca42ff6117dc5049cbc7b4c2d81fcf3ce9f4c8 /tests/fileSystem.test
parentff1aeed46091825a1a52b5f03a39cecde7fbcac9 (diff)
downloadtcl-f137e44fa1a2dd7603fba62d1b44c103379e2781.zip
tcl-f137e44fa1a2dd7603fba62d1b44c103379e2781.tar.gz
tcl-f137e44fa1a2dd7603fba62d1b44c103379e2781.tar.bz2
* generic/tclPathObj.c: Yet another revised fix for the [Bug 1379287]
* tests/fileSystem.test: family of path normalization bugs.
Diffstat (limited to 'tests/fileSystem.test')
-rw-r--r--tests/fileSystem.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/fileSystem.test b/tests/fileSystem.test
index 39e02c4..87e5e26 100644
--- a/tests/fileSystem.test
+++ b/tests/fileSystem.test
@@ -473,6 +473,26 @@ test filesystem-1.50 {file normalisation .. beyond root (Bug 1379287)} {
set res "ok"
}
} {ok}
+test filesystem-1.51 {file normalisation .. beyond root (Bug 1379287)} {
+ set a [file norm /../..]
+ set b [file norm /]
+
+ if {![string equal $a $b]} {
+ set res "Paths should be equal: $a , $b"
+ } else {
+ set res "ok"
+ }
+} {ok}
+test filesystem-1.51.1 {file normalisation .. beyond root (Bug 1379287)} {
+ set a [file norm /../../]
+ set b [file norm /]
+
+ if {![string equal $a $b]} {
+ set res "Paths should be equal: $a , $b"
+ } else {
+ set res "ok"
+ }
+} {ok}
test filesystem-2.0 {new native path} {unix} {
foreach f [lsort [glob -nocomplain /usr/bin/c*]] {