]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: adjust expectations of test for issue 18902
authorDavid Chase <drchase@google.com>
Mon, 30 Oct 2017 15:39:29 +0000 (11:39 -0400)
committerDavid Chase <drchase@google.com>
Mon, 30 Oct 2017 20:27:09 +0000 (20:27 +0000)
commitb4c3fe7b049f79f81fae52d5006aa29b926bb4e0
tree3f8a0d4a5dfb051a6b899447b086fdcc9ae6528a
parent0153a4130d99dace3b4fb0e1242aae30832fa742
cmd/compile: adjust expectations of test for issue 18902

The test for #18902 reads the assembly stream to be sure
that the line number does not change too often (this is an
indication that debugging the code will be unpleasant and
that the compiler is probably getting line numbers "wrong").

It checks that it is getting "enough" input, but the
compiler has gotten enough better since the test was written
that it now fails for lack of enough input.  The old
threshould was 200 instructions, the new one is 150 (the
minimum observed input is on arm64 with 184 instructions).

Fixes #22494.

Change-Id: Ibba7e9ff4ab6a7be369e5dd5859d150b7db94653
Reviewed-on: https://go-review.googlesource.com/74357
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
test/fixedbugs/issue18902.go