]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/compile/internal/test: make TestIntendedInlining faster
authorCherry Mui <cherryyz@google.com>
Wed, 18 May 2022 16:50:49 +0000 (12:50 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 18 May 2022 18:06:05 +0000 (18:06 +0000)
There is no need to build with -a. The go command should do the
right thing to pass the flags. Also, we only care packages
mentioned on the command line, so no need to add -gcflags=all=....

May fix #52081.

Change-Id: Idabcfe285c90ed5d25ea6d42abd7617078d3283a
Reviewed-on: https://go-review.googlesource.com/c/go/+/407015
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/test/inl_test.go

index 3fd45f21e7f66dfad0e86b81c2490d3d0c2c187d..49ee88eaec2a6d6bfa6ed4371c404cd892ac72ec 100644 (file)
@@ -275,7 +275,7 @@ func TestIntendedInlining(t *testing.T) {
                }
        }
 
-       args := append([]string{"build", "-a", "-gcflags=all=-m -m", "-tags=math_big_pure_go"}, pkgs...)
+       args := append([]string{"build", "-gcflags=-m -m", "-tags=math_big_pure_go"}, pkgs...)
        cmd := testenv.CleanCmdEnv(exec.Command(testenv.GoToolPath(t), args...))
        pr, pw := io.Pipe()
        cmd.Stdout = pw