]> Cypherpunks repositories - gostls13.git/commit
path/filepath: test EvalSymlinks returns canonical path on windows
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 9 Sep 2015 00:54:25 +0000 (10:54 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 22 Oct 2015 04:35:50 +0000 (04:35 +0000)
commit72193c98248d26c92ced56e0855eac8722269aad
treefddbf4aaedc5ff2bd5391da8e189095ff93dd230
parent5a68eb9f25a2a6290800278df972e04a4085cee3
path/filepath: test EvalSymlinks returns canonical path on windows

When you create C:\A.TXT file on windows, you can open it as c:\a.txt.
EvalSymlinks("c:\a.txt") returns C:\A.TXT. This is all EvalSymlinks
did in the past, but recently symlinks functionality been implemented on
some Windows version (where symlinks are supported). So now EvalSymlinks
handles both: searching for file canonical name and resolving symlinks.

Unfortunately TestEvalSymlinks has not been adjusted properly. The test
tests either canonical paths or symlinks, but not both. This CL separates
canonical paths tests into new TestEvalSymlinksCanonicalNames, so all
functionality is covered. Tests are simplified somewhat too.

Also remove EvalSymlinksAbsWindowsTests - it seems not used anywhere.

Change-Id: Id12e9f1441c1e30f15c523b250469978e4511a84
Reviewed-on: https://go-review.googlesource.com/14412
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/path/filepath/path_test.go
src/path/filepath/path_windows_test.go