Commit 9313baa1 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net: skip tests on OS X 10.8 to avoid a kernel panic

Temporary workaround until the problem is identified and a more
granular skip or fix is added.

Updates golang/go#17015

Change-Id: If3f940f9f318a3b41669fd6e870a17727d2fee82
Reviewed-on: https://go-review.googlesource.com/28587Reviewed-by: 's avatarJosh Bleecher Snyder <josharian@gmail.com>
parent 1358eff2
// Copyright 2016 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_test
import (
"flag"
"fmt"
"os"
"os/exec"
"runtime"
"strings"
"testing"
)
func TestMain(m *testing.M) {
flag.Parse()
if runtime.GOOS == "darwin" {
vers, _ := exec.Command("sw_vers", "-productVersion").Output()
if string(vers) == "10.8" || strings.HasPrefix(string(vers), "10.8.") {
fmt.Fprintf(os.Stderr, "# skipping tests on OS X 10.8 to avoid kernel panics; golang.org/issue/17015\n")
os.Exit(0)
}
}
os.Exit(m.Run())
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment