Commit 6db13e07 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

syscall: add yet more TestGetfsstat debugging

Updates #16937

Change-Id: I98aa203176f8f2ca2fcca6e334a65bc60d6f824d
Reviewed-on: https://go-review.googlesource.com/28535Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 66121ce8
......@@ -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)
}
}
}
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