Skip to content

Commit 329fff0

Browse files
mvdancrawshaw
authored andcommitted
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 <[email protected]> Run-TryBot: David Crawshaw <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 312ea5b commit 329fff0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

misc/cgo/testshared/shared_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"debug/elf"
1111
"encoding/binary"
1212
"errors"
13-
"flag"
1413
"fmt"
1514
"go/build"
1615
"io"
@@ -166,7 +165,6 @@ func TestMain(m *testing.M) {
166165
// That won't work if GOBIN is set.
167166
os.Unsetenv("GOBIN")
168167

169-
flag.Parse()
170168
exitCode, err := testMain(m)
171169
if err != nil {
172170
log.Fatal(err)

0 commit comments

Comments
 (0)