Commit 547ec86c authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Set a non-zero size in TestDefaultRead so the kernel cannot short

circuit our read.

Change-Id: Id83c4b3738c5cedf9d9b738cab21632db6061126
parent 0cc52fac
...@@ -33,6 +33,7 @@ func (fs *DefaultReadFS) Open(name string, f uint32, context *fuse.Context) (nod ...@@ -33,6 +33,7 @@ func (fs *DefaultReadFS) Open(name string, f uint32, context *fuse.Context) (nod
func defaultReadTest(t *testing.T) (root string, cleanup func()) { func defaultReadTest(t *testing.T) (root string, cleanup func()) {
fs := &DefaultReadFS{ fs := &DefaultReadFS{
FileSystem: pathfs.NewDefaultFileSystem(), FileSystem: pathfs.NewDefaultFileSystem(),
size: 22,
} }
var err error var err error
......
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