diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-09-06 04:11:59 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-09-06 04:16:42 +0000 |
| commit | 6db13e071b8b35b9efc8aeae6434217733ee8e94 (patch) | |
| tree | e943458b471dfcfa0b465b47a9b8e003d655ec34 /src/syscall | |
| parent | 66121ce8a95f587be8641f79c66c8536660a16d5 (diff) | |
| download | go-6db13e071b8b35b9efc8aeae6434217733ee8e94.tar.xz | |
syscall: add yet more TestGetfsstat debugging
Updates #16937
Change-Id: I98aa203176f8f2ca2fcca6e334a65bc60d6f824d
Reviewed-on: https://go-review.googlesource.com/28535
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/syscall')
| -rw-r--r-- | src/syscall/syscall_bsd_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
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) + } + } } |
