tests: get rid of syscall.PathMax

Does not exist on OSX

Reported in https://github.com/rfjakob/gocryptfs/issues/15
This commit is contained in:
Jakob Unterwurzacher 2017-02-16 18:47:04 +01:00
parent e6075ddf2e
commit ca5c06ef4e

View File

@ -350,7 +350,7 @@ func QueryCtlSock(t *testing.T, socketPath string, req ctlsock.RequestStruct) (r
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
buf := make([]byte, 2*syscall.PathMax) buf := make([]byte, ctlsock.ReadBufSize)
n, err := conn.Read(buf) n, err := conn.Read(buf)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)