]> Cypherpunks repositories - gostls13.git/commit
path/filepath: fix race with other tests
authorRuss Cox <rsc@golang.org>
Mon, 9 Sep 2013 20:42:18 +0000 (16:42 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 9 Sep 2013 20:42:18 +0000 (16:42 -0400)
commit5dc8c4dbfb6a04d9eb7a11c9c3fe698d33d0c0ee
tree3db755702968812af6a6b32cd4654b7254f53946
parent10c36fbc9d413062de4a1ecd59b9c5f7dc82b0c9
path/filepath: fix race with other tests

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
src/pkg/path/filepath/path_test.go