mirror of
https://github.com/golang/go
synced 2024-09-24 05:10:13 -06:00
misc/cgo/testshared: remove unused flag.Parse()
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>
This commit is contained in:
parent
312ea5bf8f
commit
329fff0db0
@ -10,7 +10,6 @@ import (
|
|||||||
"debug/elf"
|
"debug/elf"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"errors"
|
"errors"
|
||||||
"flag"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/build"
|
"go/build"
|
||||||
"io"
|
"io"
|
||||||
@ -166,7 +165,6 @@ func TestMain(m *testing.M) {
|
|||||||
// That won't work if GOBIN is set.
|
// That won't work if GOBIN is set.
|
||||||
os.Unsetenv("GOBIN")
|
os.Unsetenv("GOBIN")
|
||||||
|
|
||||||
flag.Parse()
|
|
||||||
exitCode, err := testMain(m)
|
exitCode, err := testMain(m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user