Commit 0534f2ff authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Use fuse.ENOATTR rather than syscall.ENOATTR.

parent 2aee071c
...@@ -11,7 +11,6 @@ import ( ...@@ -11,7 +11,6 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"syscall"
"testing" "testing"
"github.com/hanwen/go-fuse/fuse" "github.com/hanwen/go-fuse/fuse"
...@@ -200,7 +199,7 @@ func TestXAttrRead(t *testing.T) { ...@@ -200,7 +199,7 @@ func TestXAttrRead(t *testing.T) {
sysRemovexattr(mounted, "third") sysRemovexattr(mounted, "third")
val, err = readXAttr(mounted, "third") val, err = readXAttr(mounted, "third")
if err != syscall.ENOATTR { if fuse.ToStatus(err) != fuse.ENOATTR {
t.Error("Data not removed?", err, val) t.Error("Data not removed?", err, val)
} }
} }
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