From: Tobias Klauser Date: Wed, 1 Nov 2017 10:03:41 +0000 (+0100) Subject: all: remove unnecessary return after skipping test X-Git-Tag: go1.10beta1~482 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=96c62b3b318403261c09826a27f5b58ef9f40be8;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Daniel Martí --- diff --git a/src/go/internal/gccgoimporter/gccgoinstallation_test.go b/src/go/internal/gccgoimporter/gccgoinstallation_test.go index 23db6054c1..e601411237 100644 --- a/src/go/internal/gccgoimporter/gccgoinstallation_test.go +++ b/src/go/internal/gccgoimporter/gccgoinstallation_test.go @@ -152,7 +152,6 @@ func TestInstallationImporter(t *testing.T) { // were compiled with gccgo. if runtime.Compiler != "gccgo" { t.Skip("This test needs gccgo") - return } var inst GccgoInstallation diff --git a/src/go/internal/gccgoimporter/importer_test.go b/src/go/internal/gccgoimporter/importer_test.go index 61c07bc72a..26f5d9f5b7 100644 --- a/src/go/internal/gccgoimporter/importer_test.go +++ b/src/go/internal/gccgoimporter/importer_test.go @@ -122,7 +122,6 @@ func TestObjImporter(t *testing.T) { // were compiled with gccgo. if runtime.Compiler != "gccgo" { t.Skip("This test needs gccgo") - return } tmpdir, err := ioutil.TempDir("", "") diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index 955964c721..81c44af2b7 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -179,7 +179,6 @@ func testCPUProfile(t *testing.T, need []string, f func(dur time.Duration)) { if badOS[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, // QEMU is not perfect at emulating everything. @@ -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. if os.Getenv("IN_QEMU") == "1" { t.Skip("ignore the failure in QEMU; see golang.org/issue/9605") - return } t.FailNow() }