From d19ac24a84ebcbc058e00ad3528d78dae9ef2569 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Wed, 15 Mar 2017 08:10:23 -0500 Subject: [PATCH] mem: Skip TestVirtual_memory on Solaris --- mem/mem_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mem/mem_test.go b/mem/mem_test.go index 346d02f..4a1ae7b 100644 --- a/mem/mem_test.go +++ b/mem/mem_test.go @@ -2,12 +2,17 @@ package mem import ( "fmt" + "runtime" "testing" "github.com/stretchr/testify/assert" ) func TestVirtual_memory(t *testing.T) { + if runtime.GOOS == "solaris" { + t.Skip("Only .Total is supported on Solaris") + } + v, err := VirtualMemory() if err != nil { t.Errorf("error %v", err)