Commit 16a2d261 authored by Mikio Hara's avatar Mikio Hara

cmd/go: avoid infinite loop with package specific flags

R=rsc
CC=golang-dev
https://golang.org/cl/5505053
parent 866c06b9
......@@ -80,10 +80,9 @@ var testFlagDefn = []*testFlagSpec{
// test.out's arguments.
func testFlags(args []string) (passToTest []string) {
for i := 0; i < len(args); i++ {
arg := args[i]
f, value, extraWord := testFlag(args, i)
if f == nil {
args = append(args, arg)
passToTest = append(passToTest, args[i])
continue
}
switch f.name {
......
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