]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/test: clean up TestPGOIntendedInlining
authorMichael Pratt <mpratt@google.com>
Fri, 28 Oct 2022 18:13:59 +0000 (14:13 -0400)
committerMichael Pratt <mpratt@google.com>
Mon, 31 Oct 2022 20:45:00 +0000 (20:45 +0000)
commit1999f256e4d478251290dfa007c62364810b7bf7
tree766c21707ef6a064a374322db62774db8163c9cd
parente943dc5a8ccab90286d3882e5d13e9fa9516f243
cmd/compile/internal/test: clean up TestPGOIntendedInlining

The most important change here is to log output from the child, making
it easier to diagnose problems when the child 'go test' fails.

We can also eliminate the cmd.Wait goroutine by using an os.Pipe, whose
reader will return io.EOF when the child exits.

For #55022.

Change-Id: I1573ea444407d545bdca8525c9ff7b0a2baebf5e
Reviewed-on: https://go-review.googlesource.com/c/go/+/446300
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/test/pgo_inl_test.go