]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testshared: remove unused flag.Parse()
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 26 Nov 2016 15:27:29 +0000 (15:27 +0000)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 2 Feb 2017 13:40:16 +0000 (13:40 +0000)
TestMain doesn't make use of any flags.

Change-Id: I98ec582fb004045a5067618f605ccfeb1f9f4bbb
Reviewed-on: https://go-review.googlesource.com/33613
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

misc/cgo/testshared/shared_test.go

index f0766e511ec5b3e60f9365afa5d2154793d8349c..5017570ba60e36d0117108c064eb8846d2b49f6e 100644 (file)
@@ -10,7 +10,6 @@ import (
        "debug/elf"
        "encoding/binary"
        "errors"
-       "flag"
        "fmt"
        "go/build"
        "io"
@@ -166,7 +165,6 @@ func TestMain(m *testing.M) {
        // That won't work if GOBIN is set.
        os.Unsetenv("GOBIN")
 
-       flag.Parse()
        exitCode, err := testMain(m)
        if err != nil {
                log.Fatal(err)