Commit 64b168f0 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/nodefs: only test open-less files for API >= 23.

parent 3e137f8a
......@@ -59,6 +59,11 @@ func TestNoOpen(t *testing.T) {
s.SetDebug(VerboseTest())
defer s.Unmount()
go s.Serve()
if s.KernelSettings().Minor < 23 {
t.Skip("Kernel does not support open-less read/writes. Skipping test.")
}
content, err := ioutil.ReadFile(dir + "/file")
if err != nil {
t.Fatalf("ReadFile: %v", err)
......
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