Commit 2f2f9fef authored by Mikio Hara's avatar Mikio Hara

net: disable tests with controlling network facilities in short mode

Perhaps it would make FreeBSD 10-CURRENT/ARM on Raspberry Pi builders happy.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/8008043
parent 77fb0c17
......@@ -41,8 +41,11 @@ func (ti *testInterface) teardown() error {
}
func TestPointToPointInterface(t *testing.T) {
switch runtime.GOOS {
case "darwin":
if testing.Short() {
t.Skip("skipping test in short mode")
}
switch {
case runtime.GOOS == "darwin":
t.Skipf("skipping read test on %q", runtime.GOOS)
}
if os.Getuid() != 0 {
......@@ -90,6 +93,9 @@ func TestPointToPointInterface(t *testing.T) {
}
func TestInterfaceArrivalAndDeparture(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode")
}
if os.Getuid() != 0 {
t.Skip("skipping test; must be root")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment