diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-03-18 10:19:53 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-03-18 12:27:44 +0100 |
| commit | a9309cc4c5eee44e2ee23a8f90cf70420e3c1b0b (patch) | |
| tree | 65bcc5afcfdcbe77ef53af500171e05611ee68ba /pkg | |
| parent | 3c4973eb8cd1520e90475702f6fbf1cfc78215c0 (diff) | |
pkg/host: add TestCollectMachineInfo
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/host/machine_info_linux_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/host/machine_info_linux_test.go b/pkg/host/machine_info_linux_test.go index 87ebbf025..8d173805b 100644 --- a/pkg/host/machine_info_linux_test.go +++ b/pkg/host/machine_info_linux_test.go @@ -14,6 +14,14 @@ import ( "github.com/google/syzkaller/sys/targets" ) +func TestCollectMachineInfo(t *testing.T) { + info, err := CollectMachineInfo() + if err != nil { + t.Fatal(err) + } + t.Logf("machine info:\n%s", info) +} + func TestReadCPUInfoLinux(t *testing.T) { buf := new(bytes.Buffer) if err := readCPUInfo(buf); err != nil { |
