all: use t.Skip{,f}

Replace various t.Log{,f} ; return checks with t.Skip{,f}.

R=golang-dev, n13m3y3r, bradfitz, adg, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/7193044
This commit is contained in:
Dave Cheney 2013-01-24 17:32:10 +11:00
parent 2e51f78280
commit 6a9e956f19
31 changed files with 126 additions and 256 deletions

View file

@ -156,12 +156,10 @@ func TestUDPConnSpecificMethods(t *testing.T) {
func TestIPConnSpecificMethods(t *testing.T) {
switch runtime.GOOS {
case "plan9":
t.Logf("skipping read test on %q", runtime.GOOS)
return
t.Skipf("skipping read test on %q", runtime.GOOS)
}
if os.Getuid() != 0 {
t.Logf("skipping test; must be root")
return
t.Skipf("skipping test; must be root")
}
la, err := net.ResolveIPAddr("ip4", "127.0.0.1")
@ -212,8 +210,7 @@ func TestIPConnSpecificMethods(t *testing.T) {
func TestUnixListenerSpecificMethods(t *testing.T) {
switch runtime.GOOS {
case "plan9", "windows":
t.Logf("skipping read test on %q", runtime.GOOS)
return
t.Skipf("skipping read test on %q", runtime.GOOS)
}
p := "/tmp/gotest.net"
@ -259,8 +256,7 @@ func TestUnixListenerSpecificMethods(t *testing.T) {
func TestUnixConnSpecificMethods(t *testing.T) {
switch runtime.GOOS {
case "plan9", "windows":
t.Logf("skipping test on %q", runtime.GOOS)
return
t.Skipf("skipping test on %q", runtime.GOOS)
}
p1, p2, p3 := "/tmp/gotest.net1", "/tmp/gotest.net2", "/tmp/gotest.net3"