Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
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
Levin Zimmermann
go-fuse
Commits
0f93160b
Commit
0f93160b
authored
Jun 30, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unset umask for loopback tests.
parent
da5baec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
fuse/loopback_test.go
fuse/loopback_test.go
+5
-4
No files found.
fuse/loopback_test.go
View file @
0f93160b
...
...
@@ -46,6 +46,9 @@ func NewTestCase(t *testing.T) *testCase {
me
.
tester
=
t
paranoia
=
true
// Make sure system setting does not affect test.
syscall
.
Umask
(
0
)
const
name
string
=
"hello.txt"
const
subdir
string
=
"subdir"
...
...
@@ -203,12 +206,10 @@ func TestWriteThrough(t *testing.T) {
defer
me
.
Cleanup
()
// Create (for write), write.
t
.
Log
(
"Testing create."
)
f
,
err
:=
os
.
OpenFile
(
me
.
mountFile
,
os
.
O_WRONLY
|
os
.
O_CREATE
,
0644
)
CheckSuccess
(
err
)
defer
f
.
Close
()
t
.
Log
(
"Testing write."
)
n
,
err
:=
f
.
WriteString
(
contents
)
CheckSuccess
(
err
)
if
n
!=
len
(
contents
)
{
...
...
@@ -222,13 +223,13 @@ func TestWriteThrough(t *testing.T) {
f
,
err
=
os
.
Open
(
me
.
origFile
)
CheckSuccess
(
err
)
var
buf
[
1024
]
byte
slice
:=
buf
[
:
]
n
,
err
=
f
.
Read
(
slice
)
CheckSuccess
(
err
)
t
.
Log
(
"Orig contents"
,
slice
[
:
n
])
if
string
(
slice
[
:
n
])
!=
contents
{
t
.
Errorf
(
"write contents error
%v"
,
slice
[
:
n
]
)
t
.
Errorf
(
"write contents error
. Got: %v, expect: %v"
,
string
(
slice
[
:
n
]),
contents
)
}
}
...
...
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