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
2c9c730e
Commit
2c9c730e
authored
Aug 11, 2010
by
Ivan Krasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse_test added. It crashes with segfault
parent
3c358ed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
fuse/fuse_test.go
fuse/fuse_test.go
+30
-0
No files found.
fuse/fuse_test.go
0 → 100644
View file @
2c9c730e
package
fuse
import
(
"os"
"testing"
)
const
(
tempMountDir
=
"./.testMountDir"
)
type
testFuse
struct
{}
func
TestMount
(
t
*
testing
.
T
)
{
fs
:=
new
(
testFuse
)
err
:=
os
.
Mkdir
(
tempMountDir
,
0777
)
if
err
!=
nil
{
t
.
Fatalf
(
"Can't create temp mount dir at %s, err: %v"
,
tempMountDir
,
err
)
}
defer
os
.
Remove
(
tempMountDir
)
m
,
err
:=
Mount
(
tempMountDir
,
fs
)
if
err
!=
nil
{
t
.
Fatal
(
"Can't mount a dir, err: %v"
,
err
)
}
err
=
m
.
Unmount
()
if
err
!=
nil
{
t
.
Fatal
(
"Can't unmount a dir, err: %v"
,
err
)
}
}
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