[internal]Windows: skip Host test.

This commit is contained in:
shirou 2018-01-11 11:34:14 +09:00
parent 2ae56c34ce
commit 079e1cb22f
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"fmt"
"os"
"reflect"
"runtime"
"strings"
"testing"
)
@ -92,6 +93,9 @@ func TestPathExists(t *testing.T) {
}
func TestHostEtc(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("windows doesn't have etc")
}
p := HostEtc("mtab")
if p != "/etc/mtab" {
t.Errorf("invalid HostEtc, %s", p)