Commit 531281a7 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix compile errors.

parent f58785aa
...@@ -615,7 +615,7 @@ func TestMemUnionFsStatFs(t *testing.T) { ...@@ -615,7 +615,7 @@ func TestMemUnionFsStatFs(t *testing.T) {
s1 := syscall.Statfs_t{} s1 := syscall.Statfs_t{}
err := syscall.Statfs(wd+"/mnt", &s1) err := syscall.Statfs(wd+"/mnt", &s1)
if err != 0 { if err != nil {
t.Fatal("statfs mnt", err) t.Fatal("statfs mnt", err)
} }
if s1.Bsize == 0 { if s1.Bsize == 0 {
......
...@@ -601,9 +601,8 @@ func TestUnionFsWriteAccess(t *testing.T) { ...@@ -601,9 +601,8 @@ func TestUnionFsWriteAccess(t *testing.T) {
CheckSuccess(err) CheckSuccess(err)
freezeRo(wd + "/ro") freezeRo(wd + "/ro")
errno := syscall.Access(wd+"/mnt/file", fuse.W_OK) err = syscall.Access(wd+"/mnt/file", fuse.W_OK)
if errno != 0 { if err != nil {
err = os.Errno(errno)
CheckSuccess(err) CheckSuccess(err)
} }
} }
...@@ -1009,7 +1008,7 @@ func TestUnionFsStatFs(t *testing.T) { ...@@ -1009,7 +1008,7 @@ func TestUnionFsStatFs(t *testing.T) {
s1 := syscall.Statfs_t{} s1 := syscall.Statfs_t{}
err := syscall.Statfs(wd+"/mnt", &s1) err := syscall.Statfs(wd+"/mnt", &s1)
if err != 0 { if err != nil {
t.Fatal("statfs mnt", err) t.Fatal("statfs mnt", err)
} }
if s1.Bsize == 0 { if s1.Bsize == 0 {
......
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