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

Skip deletion notify test for FUSE version < 18.

parent 18e70abb
...@@ -66,6 +66,12 @@ func TestDeleteNotify(t *testing.T) { ...@@ -66,6 +66,12 @@ func TestDeleteNotify(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
// Do the test here, so we surely have state.KernelSettings()
if state.KernelSettings().Minor < 18 {
t.Log("Kernel does not support deletion notify; aborting test.")
return
}
buf := bytes.Buffer{} buf := bytes.Buffer{}
cmd := exec.Command("/usr/bin/tail", "-f", "testfile") cmd := exec.Command("/usr/bin/tail", "-f", "testfile")
cmd.Dir = mnt + "/testdir" cmd.Dir = mnt + "/testdir"
......
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