Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

23 lignes
471 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 ipv6
  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, "ipv6 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. }