]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make TestAssembly resilient to output ordering
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 6 Apr 2017 22:30:53 +0000 (15:30 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 13 Apr 2017 02:30:29 +0000 (02:30 +0000)
commit0d36999a0fe3fd63c9c845faf3c9cc8be32c4b58
tree0cbcfb5fcba99eead82478fc5ddf47cb5c37c1b6
parentc18fd098401805478fac6a3ff42bfad9a66a16d3
cmd/compile: make TestAssembly resilient to output ordering

To preserve reproducible builds, the text entries
during compilation will be sorted before being printed.
TestAssembly currently assumes that function init
comes after all user-defined functions.
Remove that assumption.
Instead of looking for "TEXT" to tell you where
a function ends--which may now yield lots of
non-function-code junk--look for a line beginning
with non-whitespace.

Updates #15756

Change-Id: Ibc82dba6143d769ef4c391afc360e523b1a51348
Reviewed-on: https://go-review.googlesource.com/39853
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/asm_test.go