]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.6] syscall: disable TestGetfsstat failure on builders
authorRuss Cox <rsc@golang.org>
Thu, 1 Dec 2016 20:20:25 +0000 (15:20 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 1 Dec 2016 20:28:06 +0000 (20:28 +0000)
The underlying bug is fixed on master.
We don't need to (nor want to) port the fix back,
but we do want to be able to run all.bash for
minor releases.

Change-Id: Ib612fc84fd8cd1f57456dd300855318badf97cf7
Reviewed-on: https://go-review.googlesource.com/33850
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/syscall_bsd_test.go

index c2ea089d50635ebecae7564d914e4de0c670d42d..f4bd6d501a27651708d7092a5cec4c5900ac81c9 100644 (file)
@@ -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")
+                       }
                }
        }
 }