aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/syscall/syscall_bsd_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/syscall/syscall_bsd_test.go b/src/syscall/syscall_bsd_test.go
index c2ea089d50..f4bd6d501a 100644
--- a/src/syscall/syscall_bsd_test.go
+++ b/src/syscall/syscall_bsd_test.go
@@ -7,6 +7,7 @@
package syscall_test
import (
+ "runtime"
"syscall"
"testing"
)
@@ -28,7 +29,11 @@ func TestGetfsstat(t *testing.T) {
empty := syscall.Statfs_t{}
for _, stat := range data {
if stat == empty {
- t.Fatal("an empty Statfs_t struct was returned")
+ if runtime.GOOS == "darwin" {
+ t.Logf("ignoring empty Statfs_t")
+ } else {
+ t.Fatal("an empty Statfs_t struct was returned")
+ }
}
}
}