Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
ef2d5f68
Commit
ef2d5f68
authored
Jun 02, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path/filepath: skip permission test in all.bash
R=golang-dev, gri CC=golang-dev
https://golang.org/cl/4517132
parent
2653b4fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/pkg/path/filepath/path_test.go
src/pkg/path/filepath/path_test.go
+4
-1
No files found.
src/pkg/path/filepath/path_test.go
View file @
ef2d5f68
...
@@ -315,7 +315,10 @@ func TestWalk(t *testing.T) {
...
@@ -315,7 +315,10 @@ func TestWalk(t *testing.T) {
}
}
checkMarks
(
t
)
checkMarks
(
t
)
if
os
.
Getuid
()
>
0
{
// Test permission errors. Only possible if we're not root
// and only on some file systems (AFS, FAT). To avoid errors during
// all.bash on those file systems, skip during gotest -short.
if
os
.
Getuid
()
>
0
&&
!
testing
.
Short
()
{
// introduce 2 errors: chmod top-level directories to 0
// introduce 2 errors: chmod top-level directories to 0
os
.
Chmod
(
filepath
.
Join
(
tree
.
name
,
tree
.
entries
[
1
]
.
name
),
0
)
os
.
Chmod
(
filepath
.
Join
(
tree
.
name
,
tree
.
entries
[
1
]
.
name
),
0
)
os
.
Chmod
(
filepath
.
Join
(
tree
.
name
,
tree
.
entries
[
3
]
.
name
),
0
)
os
.
Chmod
(
filepath
.
Join
(
tree
.
name
,
tree
.
entries
[
3
]
.
name
),
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment