[internal]Windows: skip Host test.

tags/v2.18.01
shirou 7 years ago
parent 2ae56c34ce
commit 079e1cb22f

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

Loading…
Cancel
Save