summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/net/ipv4/ipv4_test.go
blob: 917299283269854c3fc340e8dec0e927286f2399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 ipv4

import (
	"fmt"
	"os"
	"testing"
)

var disableTests = false

func TestMain(m *testing.M) {
	if disableTests {
		fmt.Fprintf(os.Stderr, "ipv4 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())
}