You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
472 B

  1. // Copyright 2017 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package ipv4
  5. import (
  6. "fmt"
  7. "os"
  8. "testing"
  9. )
  10. var disableTests = false
  11. func TestMain(m *testing.M) {
  12. if disableTests {
  13. fmt.Fprintf(os.Stderr, "ipv4 tests disabled in Go 1.9 until netreflect is fixed. (Issue 19051)\n")
  14. os.Exit(0)
  15. }
  16. // call flag.Parse() here if TestMain uses flags
  17. os.Exit(m.Run())
  18. }