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
Kirill Smelkov
go-fuse
Commits
8ad69801
Commit
8ad69801
authored
Jun 30, 2016
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/test: close file before unmounting file system.
Change-Id: I99beacd150b49e062c6df2c16d52e73fce6ab111
parent
7b281480
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
fuse/test/fsetattr_test.go
fuse/test/fsetattr_test.go
+6
-1
No files found.
fuse/test/fsetattr_test.go
View file @
8ad69801
...
@@ -159,7 +159,9 @@ func setupFAttrTest(t *testing.T, fs pathfs.FileSystem) (dir string, clean func(
...
@@ -159,7 +159,9 @@ func setupFAttrTest(t *testing.T, fs pathfs.FileSystem) (dir string, clean func(
}
}
return
dir
,
func
()
{
return
dir
,
func
()
{
if
state
.
Unmount
()
==
nil
{
if
err
:=
state
.
Unmount
();
err
!=
nil
{
t
.
Errorf
(
"cleanup: Unmount: %v"
,
err
)
}
else
{
os
.
RemoveAll
(
dir
)
os
.
RemoveAll
(
dir
)
}
}
}
}
...
@@ -261,6 +263,9 @@ func TestFSetAttr(t *testing.T) {
...
@@ -261,6 +263,9 @@ func TestFSetAttr(t *testing.T) {
t
.
Error
(
"Fsync failed:"
,
os
.
NewSyscallError
(
"Fsync"
,
code
))
t
.
Error
(
"Fsync failed:"
,
os
.
NewSyscallError
(
"Fsync"
,
code
))
}
}
// Close the file, otherwise we can't unmount.
f
.
Close
()
// Shutdown the FUSE FS so we can safely look at fSetAttrFs
// Shutdown the FUSE FS so we can safely look at fSetAttrFs
clean
()
clean
()
clean
=
nil
clean
=
nil
...
...
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