aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath/path_test.go
AgeCommit message (Collapse)Author
2014-09-08build: move package sources from src/pkg to srcRuss Cox
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
2014-08-22path/filepath: make Abs handle paths like c:a.txt properlyAlex Brainman
Fixes #8145. LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/126440043
2014-08-07path/filepath: do not restore original working directory twice in testAlex Brainman
LGTM=dave R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/122910043
2014-07-17os: Implement symlink support for WindowsMichael Fraenkel
Fixes #5750. https://code.google.com/p/go/issues/detail?id=5750 os: Separate windows from posix. Implement windows support. path/filepath: Use the same implementation as other platforms syscall: Add/rework new APIs for Windows LGTM=alex.brainman R=golang-codereviews, alex.brainman, gobot, rsc, minux CC=golang-codereviews https://golang.org/cl/86160044
2014-05-20build: make nacl passRuss Cox
Add nacl.bash, the NaCl version of all.bash. It's a separate script because it builds a variant of package syscall with a large zip file embedded in it, containing all the input files needed for tests. Disable various tests new since the last round, mostly the ones using os/exec. Fixes #7945. LGTM=dave R=golang-codereviews, remyoudompheng, dave, bradfitz CC=golang-codereviews https://golang.org/cl/100590044
2013-12-17os, path/filepath: don't ignore Lstat errors in ReaddirBrad Fitzpatrick
os: don't ignore LStat errors in Readdir. If it's ENOENT, on the second pass, just treat it as missing. If it's another error, it's real. path/filepath: use ReaddirNames instead of Readdir in Walk, in order to obey the documented WalkFunc contract of returning each walked item's LStat error, if any. Fixes #6656 Fixes #6680 R=golang-dev, r CC=golang-dev https://golang.org/cl/43530043
2013-09-09path/filepath: fix race with other testsRuss Cox
Bug3486 tried to walk the entire file tree, but other tests might be creating and removing files in that tree. In particular, package os creates and removes files in the os directory, and issue 5863 reports failures due to seeing those files appear and then disappear. Change the test to walk just the test tree, which should not be changing. Fixes #5863. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13467045
2013-08-21all: protect alloc count tests by -testing.shortRob Pike
Update #5000 Should reduce the flakiness a little. Malloc counting is important to general testing but not to the build dashboard, which uses -short. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/12866047
2013-05-24path/filepath: Skip TestEvalSymlinks. Plan 9 doesn't have symlinks.Christopher Nielsen
R=golang-dev, r CC=golang-dev https://golang.org/cl/9713044
2013-03-06all: Skip AllocsPerRun tests if GOMAXPROCS>1.Albert Strasheim
Fixes #4974. R=rsc, bradfitz, r CC=golang-dev https://golang.org/cl/7545043
2013-02-20path/filepath, os/exec: unquote PATH elements on WindowsPéter Surányi
On Windows, directory names in PATH can be fully or partially quoted in double quotes ('"'), but the path names as used by most APIs must be unquoted. In addition, quoted names can contain the semicolon (';') character, which is otherwise used as ListSeparator. This CL changes SplitList in path/filepath and LookPath in os/exec to only treat unquoted semicolons as separators, and to unquote the separated elements. (In addition, fix harmless test bug I introduced for LookPath on Unix.) Related discussion thread: https://groups.google.com/d/msg/golang-nuts/PXCr10DsRb4/sawZBM7scYgJ R=rsc, minux.ma, mccoyst, alex.brainman, iant CC=golang-dev https://golang.org/cl/7181047
2013-02-02testing: add AllocsPerRunKyle Lemons
This CL also replaces similar loops in other stdlib package tests with calls to AllocsPerRun. Fixes #4461. R=minux.ma, rsc CC=golang-dev https://golang.org/cl/7002055
2012-12-01all: set GOMAXPROCS to 1 when counting mallocsShenghou Ma
also fix an annoying test that relies on $GOROOT be set. Fixes #3690. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6844086
2012-06-28path/filepath: add test case for rooted ".."Han-Wen Nienhuys
R=golang-dev, r CC=golang-dev https://golang.org/cl/6350047
2012-06-27path/filepath: avoid allocation in Clean of cleaned pathRuss Cox
Alternative to https://golang.org/cl/6330044. Fixes #3681. R=golang-dev, r, hanwen, iant CC=golang-dev https://golang.org/cl/6335056
2012-06-04path/filepath: fix testMikio Hara
Make it possible to run test over symlinked GOROOT. R=golang-dev, r CC=golang-dev https://golang.org/cl/6268046
2012-06-02path/filepath: implement documented SkipDir behaviorJan Mercl
Currently walk() doesn't check for err == SkipDir when iterating a directory list, but such promise is made in the docs for WalkFunc. Fixes #3486. R=rsc, r CC=golang-dev https://golang.org/cl/6257059
2012-04-05path/filepath: move out of temp directory before deleting it in TestAbsAlex Brainman
Fixes #3476. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5986045
2012-03-27path/filepath: convert drive letter to upper case in windows EvalSymlinksAlex Brainman
Fixes #3347. R=golang-dev, aram, r, rsc CC=golang-dev https://golang.org/cl/5918043
2012-03-23path/filepath: windows drive letter cannot be a digitAlex Brainman
R=golang-dev, r CC=golang-dev, mattn.jp https://golang.org/cl/5885056
2012-03-08all: gofmt -w -s src miscRobert Griesemer
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5781058
2012-03-08path/filepath: retrieve real file name in windows EvalSymlinksAlex Brainman
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5756049
2012-03-07os: fix SameFile to work for directories on windowsAlex Brainman
R=golang-dev, r CC=golang-dev https://golang.org/cl/5756064
2012-03-07path/filepath: disable AbsTest on windowsRob Pike
SameFile has a bug. R=golang-dev TBR=rsc CC=golang-dev https://golang.org/cl/5754055
2012-03-07path/filepath/path_test.go: repair and enable TestAbsRob Pike
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5759051
2012-02-17path/filepath: fix test on darwinRob Pike
/tmp being itself a symlink causes problems for the test, so use / as the absolute path. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5675070
2012-02-16path, path/filepath: polish documentation.Rémy Oudompheng
Fixes #2950. Fixes #2951. R=golang-dev, r CC=golang-dev, remy https://golang.org/cl/5672044
2012-02-13all: update 'gotest' to 'go test'Shenghou Ma
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5645099
2012-02-07path/filepath: repair and simplify the symlink testRob Pike
I hate symlinks. Fixes #2787. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5638043
2012-02-04path/filepath: disable broken testsRuss Cox
TBR=golang-dev CC=golang-dev https://golang.org/cl/5625050
2012-02-03os: turn FileStat.Sys into a method on FileInfoGustavo Niemeyer
This reduces the overhead necessary to work with OS-specific file details, hides the implementation of FileStat, and preserves the implementation-specific nature of Sys. Expressions such as: stat.(*os.FileInfo).Sys.(*syscall.Stat_t).Uid fi1.(*os.FileStat).SameFile(fi2.(*os.FileStat)) Are now spelled as:: stat.Sys().(*syscall.Stat_t).Uid os.SameFile(fi1, fi2) R=cw, bradfitz, rsc CC=golang-dev https://golang.org/cl/5448079
2012-01-30build: remove Make.pkg, Make.toolRuss Cox
Consequently, remove many package Makefiles, and shorten the few that remain. gomake becomes 'go tool make'. Turn off test phases of run.bash that do not work, flagged with $BROKEN. Future CLs will restore these, but this seemed like a big enough CL already. R=golang-dev, r CC=golang-dev https://golang.org/cl/5601057
2012-01-25path/filepath: fix testRob Pike
If there's an error, sometimes you need to stop. Part of issue 2787. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5570068
2011-12-23path/filepath: implement Base and Dir for windowsAlex Brainman
R=golang-dev, r CC=golang-dev https://golang.org/cl/5501069
2011-12-22path/filepath: DirRob Pike
There was Base but not Dir, so fill in the gap. R=n13m3y3r, r, rsc, gustavo CC=golang-dev https://golang.org/cl/5503067
2011-12-02gofmt -s misc srcRuss Cox
R=golang-dev, bradfitz, gri CC=golang-dev https://golang.org/cl/5451079
2011-11-30os: new FileInfo, FileMode types + update treeRuss Cox
R=golang-dev, r, r, gri, bradfitz, iant, iant, nigeltao, n13m3y3r CC=golang-dev https://golang.org/cl/5416060
2011-11-27filepath/path: fix Rel buffer sizingGustavo Niemeyer
Fixes #2493. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5433079
2011-11-01src/pkg/[n-z]*: gofix -r error -force=errorRuss Cox
R=golang-dev, bsiegert, iant CC=golang-dev https://golang.org/cl/5294074
2011-10-04path/filepath: added Rel as the complement of AbsGustavo Niemeyer
R=golang-dev, rsc, gustavo, r, borman CC=golang-dev https://golang.org/cl/4981049
2011-09-13path/filepath: new signature for WalkRob Pike
This one uses a closure than an interface, and is much simpler to use. It also enables a called function to return an error and (possibly) halt processing. Fixes #2237. R=golang-dev, gri, rsc, r, cw, n13m3y3r CC=golang-dev https://golang.org/cl/5014043
2011-09-09path/filepath: make UNC file names workYasuhiro Matsumoto
Fixes #2201 R=golang-dev, r, rsc, alex.brainman, robert.hencke, jp CC=golang-dev https://golang.org/cl/4950051
2011-09-07undo CL 4964067 / 661cb84cc6f0Robert Griesemer
API change. Needs further reflection. ««« original CL description path/filepath: Simplify Walk interface The last argument of filepath.Walk was removed, and the Visitor interface now contains an Error method that is called on errors. Fixes #2237. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/4964067 »»» R=r CC=golang-dev https://golang.org/cl/4974065
2011-09-07path/filepath: Simplify Walk interfaceGustavo Niemeyer
The last argument of filepath.Walk was removed, and the Visitor interface now contains an Error method that is called on errors. Fixes #2237. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/4964067
2011-09-06cleanup: gofmt -s -w src miscRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/4984052
2011-07-18path/filepath: fixes for windows pathsAlex Brainman
- Clean and IsAbs to handle paths with drive letter properly. - Clean to replace / with \. R=golang-dev, adg CC=golang-dev, mattn.jp https://golang.org/cl/4758051
2011-06-24path/filepath: enable TestWalk to run on windowsAlex Brainman
R=golang-dev CC=golang-dev https://golang.org/cl/4630066
2011-06-02path/filepath: skip permission test in all.bashRuss Cox
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4517132
2011-05-30filepath: Abs must always return a clean pathGustavo Niemeyer
When I was first coding Abs, I wondered if people wouldn't expect the path to be consistently clean, even if the path passed in was already absolute. CL 4524078 has a potential problem based on exactly that assumption, so it feels like this behavior is indeed the most useful and least surprising. R=golang-dev, adg CC=golang-dev https://golang.org/cl/4548074
2011-05-17filepath: make EvalSymlinks work on WindowsAlex Brainman
Fixes #1830. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4526060