Commit 96c62b3b authored by Tobias Klauser's avatar Tobias Klauser Committed by Daniel Martí

all: remove unnecessary return after skipping test

testing.Skip{,f} will exit the test via runtime.Goexit. Thus, the
successive return is never reached and can be removed.

Change-Id: I1e399f3d5db753ece1ffba648850427e1b4be300
Reviewed-on: https://go-review.googlesource.com/74990
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarDaniel Martí <mvdan@mvdan.cc>
parent 2c783dc0
...@@ -152,7 +152,6 @@ func TestInstallationImporter(t *testing.T) { ...@@ -152,7 +152,6 @@ func TestInstallationImporter(t *testing.T) {
// were compiled with gccgo. // were compiled with gccgo.
if runtime.Compiler != "gccgo" { if runtime.Compiler != "gccgo" {
t.Skip("This test needs gccgo") t.Skip("This test needs gccgo")
return
} }
var inst GccgoInstallation var inst GccgoInstallation
......
...@@ -122,7 +122,6 @@ func TestObjImporter(t *testing.T) { ...@@ -122,7 +122,6 @@ func TestObjImporter(t *testing.T) {
// were compiled with gccgo. // were compiled with gccgo.
if runtime.Compiler != "gccgo" { if runtime.Compiler != "gccgo" {
t.Skip("This test needs gccgo") t.Skip("This test needs gccgo")
return
} }
tmpdir, err := ioutil.TempDir("", "") tmpdir, err := ioutil.TempDir("", "")
......
...@@ -179,7 +179,6 @@ func testCPUProfile(t *testing.T, need []string, f func(dur time.Duration)) { ...@@ -179,7 +179,6 @@ func testCPUProfile(t *testing.T, need []string, f func(dur time.Duration)) {
if badOS[runtime.GOOS] { if badOS[runtime.GOOS] {
t.Skipf("ignoring failure on %s; see golang.org/issue/13841", runtime.GOOS) t.Skipf("ignoring failure on %s; see golang.org/issue/13841", runtime.GOOS)
return
} }
// Ignore the failure if the tests are running in a QEMU-based emulator, // Ignore the failure if the tests are running in a QEMU-based emulator,
// QEMU is not perfect at emulating everything. // QEMU is not perfect at emulating everything.
...@@ -187,7 +186,6 @@ func testCPUProfile(t *testing.T, need []string, f func(dur time.Duration)) { ...@@ -187,7 +186,6 @@ func testCPUProfile(t *testing.T, need []string, f func(dur time.Duration)) {
// IN_QEMU=1 indicates that the tests are running in QEMU. See issue 9605. // IN_QEMU=1 indicates that the tests are running in QEMU. See issue 9605.
if os.Getenv("IN_QEMU") == "1" { if os.Getenv("IN_QEMU") == "1" {
t.Skip("ignore the failure in QEMU; see golang.org/issue/9605") t.Skip("ignore the failure in QEMU; see golang.org/issue/9605")
return
} }
t.FailNow() t.FailNow()
} }
......
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