]> Cypherpunks repositories - gostls13.git/commitdiff
net: disable tests with controlling network facilities in short mode
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 25 Mar 2013 04:25:28 +0000 (13:25 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 25 Mar 2013 04:25:28 +0000 (13:25 +0900)
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

src/pkg/net/interface_unix_test.go

index 6dbd6e6e7beef3ec83605d158b4ccc1d55d870e3..0a453c09551d2b2c7ca699aaf5703f87ce4dd7fe 100644 (file)
@@ -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")
        }