From: Brad Fitzpatrick Date: Tue, 6 Sep 2016 04:11:59 +0000 (+0000) Subject: syscall: add yet more TestGetfsstat debugging X-Git-Tag: go1.8beta1~1487 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6db13e071b8b35b9efc8aeae6434217733ee8e94;p=gostls13.git syscall: add yet more TestGetfsstat debugging Updates #16937 Change-Id: I98aa203176f8f2ca2fcca6e334a65bc60d6f824d Reviewed-on: https://go-review.googlesource.com/28535 Reviewed-by: Ian Lance Taylor --- diff --git a/src/syscall/syscall_bsd_test.go b/src/syscall/syscall_bsd_test.go index c9e9808784..aaabafaeca 100644 --- a/src/syscall/syscall_bsd_test.go +++ b/src/syscall/syscall_bsd_test.go @@ -7,6 +7,7 @@ package syscall_test import ( + "os/exec" "syscall" "testing" ) @@ -33,4 +34,15 @@ func TestGetfsstat(t *testing.T) { t.Errorf("index %v is an empty Statfs_t struct", i) } } + if t.Failed() { + for i, stat := range data { + t.Logf("data[%v] = %+v", i, stat) + } + mount, err := exec.Command("mount").CombinedOutput() + if err != nil { + t.Logf("mount: %v\n%s", err, mount) + } else { + t.Logf("mount: %s", mount) + } + } }