Mount memfs with the default_permissions option.
This is necessary on Linux to make MemFSTest.Mkdir_PermissionDenied
pass, for the reasons outlined in commit e31cb17
. I don't quite
understand why it doesn't come up on OS X.
geesefs-0-30-9
parent
e31cb17e9c
commit
bc46008754
|
@ -27,6 +27,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
bazilfuse "bazil.org/fuse"
|
||||
"github.com/jacobsa/fuse"
|
||||
"github.com/jacobsa/fuse/fusetesting"
|
||||
"github.com/jacobsa/fuse/samples/memfs"
|
||||
|
@ -112,7 +113,13 @@ func (t *MemFSTest) SetUp(ti *TestInfo) {
|
|||
|
||||
// Mount a file system.
|
||||
fs := memfs.NewMemFS(currentUid(), currentGid(), &t.clock)
|
||||
if t.mfs, err = fuse.Mount(mountPoint, fs); err != nil {
|
||||
|
||||
t.mfs, err = fuse.Mount(
|
||||
mountPoint,
|
||||
fs,
|
||||
bazilfuse.DefaultPermissions())
|
||||
|
||||
if err != nil {
|
||||
panic("Mount: " + err.Error())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue