mirror of
https://github.com/golang/go
synced 2024-11-19 13:04:45 -07:00
runtime: always rebuild in TestIntendedInlining
This is necessary when you aren't actively changing the runtime. Oops. Also, run the tests on the builders, to avoid silent failures (#17472). Change-Id: I1fc03790cdbddddb07026a772137a79919dcaac7 Reviewed-on: https://go-review.googlesource.com/58050 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
9d3d370632
commit
5df1fe52fe
@ -362,7 +362,7 @@ func TestVersion(t *testing.T) {
|
||||
// This allows refactoring for code clarity and re-use without fear that
|
||||
// changes to the compiler will cause silent performance regressions.
|
||||
func TestIntendedInlining(t *testing.T) {
|
||||
if testing.Short() {
|
||||
if testing.Short() && testenv.Builder() == "" {
|
||||
t.Skip("skipping in short mode")
|
||||
}
|
||||
testenv.MustHaveGoRun(t)
|
||||
@ -376,7 +376,7 @@ func TestIntendedInlining(t *testing.T) {
|
||||
m[s] = true
|
||||
}
|
||||
|
||||
cmd := testEnv(exec.Command(testenv.GoToolPath(t), "build", "-gcflags=-m", "runtime"))
|
||||
cmd := testEnv(exec.Command(testenv.GoToolPath(t), "build", "-a", "-gcflags=-m", "runtime"))
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
t.Logf("%s", out)
|
||||
|
Loading…
Reference in New Issue
Block a user