Commit e50569a4 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/test: update for Debug convention

parent 2982f4ec
...@@ -36,7 +36,7 @@ func TestDeleteNotify(t *testing.T) { ...@@ -36,7 +36,7 @@ func TestDeleteNotify(t *testing.T) {
fs := fuse.NewMemNodeFs(dir + "/backing") fs := fuse.NewMemNodeFs(dir + "/backing")
conn := fuse.NewFileSystemConnector(fs, conn := fuse.NewFileSystemConnector(fs,
&fuse.FileSystemOptions{PortableInodes: true}) &fuse.FileSystemOptions{PortableInodes: true})
state := fuse.NewMountState(conn) state := fuse.NewMountState(conn.RawFS())
mnt := dir + "/mnt" mnt := dir + "/mnt"
err = os.Mkdir(mnt, 0755) err = os.Mkdir(mnt, 0755)
if err != nil { if err != nil {
......
...@@ -84,14 +84,13 @@ func NewTestCase(t *testing.T) *testCase { ...@@ -84,14 +84,13 @@ func NewTestCase(t *testing.T) *testCase {
AttrTimeout: testTtl, AttrTimeout: testTtl,
NegativeTimeout: 0.0, NegativeTimeout: 0.0,
}) })
rfs = me.connector rfs = fuse.NewLockingRawFileSystem(me.connector)
rfs = fuse.NewLockingRawFileSystem(rfs)
me.connector.Debug = fuse.VerboseTest() me.connector.SetDebug(fuse.VerboseTest())
me.state = fuse.NewMountState(rfs) me.state = fuse.NewMountState(rfs)
me.state.Mount(me.mnt, nil) me.state.Mount(me.mnt, nil)
me.state.Debug = fuse.VerboseTest() me.state.SetDebug(fuse.VerboseTest())
// Unthreaded, but in background. // Unthreaded, but in background.
go me.state.Loop() go me.state.Loop()
......
...@@ -64,7 +64,7 @@ func NewNotifyTest(t *testing.T) *NotifyTest { ...@@ -64,7 +64,7 @@ func NewNotifyTest(t *testing.T) *NotifyTest {
if err != nil { if err != nil {
t.Fatalf("MountNodeFileSystem failed: %v", err) t.Fatalf("MountNodeFileSystem failed: %v", err)
} }
me.state.Debug = fuse.VerboseTest() me.state.SetDebug(fuse.VerboseTest())
go me.state.Loop() go me.state.Loop()
return me return me
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment