From: Cherry Mui Date: Wed, 18 May 2022 16:50:49 +0000 (-0400) Subject: cmd/compile/internal/test: make TestIntendedInlining faster X-Git-Tag: go1.19beta1~188 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2c3cb19a983cacd47c2b6134597d10de69010c42;p=gostls13.git cmd/compile/internal/test: make TestIntendedInlining faster 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 TryBot-Result: Gopher Robot Reviewed-by: Daniel Martí Run-TryBot: Cherry Mui Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/test/inl_test.go b/src/cmd/compile/internal/test/inl_test.go index 3fd45f21e7..49ee88eaec 100644 --- a/src/cmd/compile/internal/test/inl_test.go +++ b/src/cmd/compile/internal/test/inl_test.go @@ -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