1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:30:07 -07:00

/usr/local/bin might not exist so use /usr/bin in the chdir test.

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=31708
CL=31713
This commit is contained in:
Rob Pike 2009-07-15 21:28:08 -07:00
parent 816e3da26d
commit 7d94cfdfb9

View File

@ -466,7 +466,7 @@ func TestChdirAndGetwd(t *testing.T) {
} }
// These are chosen carefully not to be symlinks on a Mac // These are chosen carefully not to be symlinks on a Mac
// (unlike, say, /var, /etc, and /tmp). // (unlike, say, /var, /etc, and /tmp).
dirs := []string{ "/bin", "/", "/usr/local/bin" }; dirs := []string{ "/bin", "/", "/usr/bin" };
for mode := 0; mode < 2; mode++ { for mode := 0; mode < 2; mode++ {
for i, d := range dirs { for i, d := range dirs {
if mode == 0 { if mode == 0 {