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
e50569a4
Commit
e50569a4
authored
Jun 22, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/test: update for Debug convention
parent
2982f4ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
fuse/test/delete_test.go
fuse/test/delete_test.go
+1
-1
fuse/test/loopback_test.go
fuse/test/loopback_test.go
+3
-4
fuse/test/notify_test.go
fuse/test/notify_test.go
+1
-1
No files found.
fuse/test/delete_test.go
View file @
e50569a4
...
...
@@ -36,7 +36,7 @@ func TestDeleteNotify(t *testing.T) {
fs
:=
fuse
.
NewMemNodeFs
(
dir
+
"/backing"
)
conn
:=
fuse
.
NewFileSystemConnector
(
fs
,
&
fuse
.
FileSystemOptions
{
PortableInodes
:
true
})
state
:=
fuse
.
NewMountState
(
conn
)
state
:=
fuse
.
NewMountState
(
conn
.
RawFS
()
)
mnt
:=
dir
+
"/mnt"
err
=
os
.
Mkdir
(
mnt
,
0755
)
if
err
!=
nil
{
...
...
fuse/test/loopback_test.go
View file @
e50569a4
...
...
@@ -84,14 +84,13 @@ func NewTestCase(t *testing.T) *testCase {
AttrTimeout
:
testTtl
,
NegativeTimeout
:
0.0
,
})
rfs
=
me
.
connector
rfs
=
fuse
.
NewLockingRawFileSystem
(
rfs
)
rfs
=
fuse
.
NewLockingRawFileSystem
(
me
.
connector
)
me
.
connector
.
Debug
=
fuse
.
VerboseTest
(
)
me
.
connector
.
SetDebug
(
fuse
.
VerboseTest
()
)
me
.
state
=
fuse
.
NewMountState
(
rfs
)
me
.
state
.
Mount
(
me
.
mnt
,
nil
)
me
.
state
.
Debug
=
fuse
.
VerboseTest
(
)
me
.
state
.
SetDebug
(
fuse
.
VerboseTest
()
)
// Unthreaded, but in background.
go
me
.
state
.
Loop
()
...
...
fuse/test/notify_test.go
View file @
e50569a4
...
...
@@ -64,7 +64,7 @@ func NewNotifyTest(t *testing.T) *NotifyTest {
if
err
!=
nil
{
t
.
Fatalf
(
"MountNodeFileSystem failed: %v"
,
err
)
}
me
.
state
.
Debug
=
fuse
.
VerboseTest
(
)
me
.
state
.
SetDebug
(
fuse
.
VerboseTest
()
)
go
me
.
state
.
Loop
()
return
me
...
...
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