Commit d5888640 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

syscall: add more TestGetfsstat debugging

Updates #16937

Change-Id: I6d1b210c741269b58040bd68bf3b51644f891737
Reviewed-on: https://go-review.googlesource.com/28487
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarJosh Bleecher Snyder <josharian@gmail.com>
parent 460b76ae
...@@ -15,13 +15,14 @@ const MNT_WAIT = 1 ...@@ -15,13 +15,14 @@ const MNT_WAIT = 1
func TestGetfsstat(t *testing.T) { func TestGetfsstat(t *testing.T) {
n, err := syscall.Getfsstat(nil, MNT_WAIT) n, err := syscall.Getfsstat(nil, MNT_WAIT)
t.Logf("Getfsstat(nil, MNT_WAIT) = (%v, %v)", n, err)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
t.Logf("num fs = %v", n)
data := make([]syscall.Statfs_t, n) data := make([]syscall.Statfs_t, n)
n, err = syscall.Getfsstat(data, MNT_WAIT) n, err = syscall.Getfsstat(data, MNT_WAIT)
t.Logf("Getfsstat([]syscall.Statfs_t, MNT_WAIT) = (%v, %v)", n, err)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
......
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