summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/net/ipv6/ipv6_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/net/ipv6/ipv6_test.go')
-rw-r--r--vendor/golang.org/x/net/ipv6/ipv6_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/ipv6/ipv6_test.go b/vendor/golang.org/x/net/ipv6/ipv6_test.go
new file mode 100644
index 000000000..8d2d23542
--- /dev/null
+++ b/vendor/golang.org/x/net/ipv6/ipv6_test.go
@@ -0,0 +1,22 @@
+// Copyright 2017 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package ipv6
+
+import (
+ "fmt"
+ "os"
+ "testing"
+)
+
+var disableTests = false
+
+func TestMain(m *testing.M) {
+ if disableTests {
+ fmt.Fprintf(os.Stderr, "ipv6 tests disabled in Go 1.9 until netreflect is fixed (Issue 19051)\n")
+ os.Exit(0)
+ }
+ // call flag.Parse() here if TestMain uses flags
+ os.Exit(m.Run())
+}