diff options
Diffstat (limited to 'internal/syscallcompat/getdents_test.go')
-rw-r--r-- | internal/syscallcompat/getdents_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/syscallcompat/getdents_test.go b/internal/syscallcompat/getdents_test.go index 131ffee..4b50575 100644 --- a/internal/syscallcompat/getdents_test.go +++ b/internal/syscallcompat/getdents_test.go @@ -9,6 +9,8 @@ import ( "syscall" "testing" + "golang.org/x/sys/unix" + "github.com/hanwen/go-fuse/fuse" ) @@ -28,7 +30,7 @@ func testGetdents(t *testing.T) { if err != nil { t.Fatal(err) } - for i := 1; i <= syscall.NAME_MAX; i++ { + for i := 1; i <= unix.NAME_MAX; i++ { n := strings.Repeat("x", i) err = ioutil.WriteFile(testDir+"/"+n, nil, 0600) if err != nil { |