mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
pkg/host: make machine info tests linux-specific
TestScanCPUInfo does not build on !linux. TestMachineInfoLinux builds, but does not do anything useful.
This commit is contained in:
parent
3e84253bf4
commit
6c16e36a7b
@ -6,15 +6,11 @@ package host
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMachineInfoLinux(t *testing.T) {
|
||||
if runtime.GOOS != "linux" {
|
||||
t.Skip()
|
||||
}
|
||||
result, err := CollectMachineInfo()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
Loading…
Reference in New Issue
Block a user