mem: Skip TestVirtual_memory on Solaris

This commit is contained in:
James Nugent 2017-03-15 08:10:23 -05:00
parent a34d626e17
commit d19ac24a84
1 changed files with 5 additions and 0 deletions

View File

@ -2,12 +2,17 @@ package mem
import ( import (
"fmt" "fmt"
"runtime"
"testing" "testing"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )
func TestVirtual_memory(t *testing.T) { func TestVirtual_memory(t *testing.T) {
if runtime.GOOS == "solaris" {
t.Skip("Only .Total is supported on Solaris")
}
v, err := VirtualMemory() v, err := VirtualMemory()
if err != nil { if err != nil {
t.Errorf("error %v", err) t.Errorf("error %v", err)