]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add TestIntendedInlining from runtime
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 13 Sep 2017 13:04:16 +0000 (15:04 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 13 Sep 2017 18:10:31 +0000 (18:10 +0000)
commit0d8a3b208c7356c08c29df79319149985b0a46b8
tree43d774dc22da557b3b860806c4eb253aeebe63ed
parentd02477e994b443ef45851e266381800ea5031859
cmd/compile: add TestIntendedInlining from runtime

Move it from the runtime package, as we will soon add more packages and
functions for it to check.

The test used the testEnv func, which cleaned certain environment
variables from a command, so it was moved to internal/testenv under a
more descriptive (and less ambiguous) name. Add a simple godoc to it
too.

For #21851.

Change-Id: I6f39c1f23b45377718355fafe66ffd87047d8ab6
Reviewed-on: https://go-review.googlesource.com/63550
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ilya Tocar <ilya.tocar@intel.com>
src/cmd/compile/internal/gc/inl_test.go [new file with mode: 0644]
src/internal/testenv/testenv.go
src/runtime/crash_cgo_test.go
src/runtime/crash_test.go
src/runtime/crash_unix_test.go
src/runtime/runtime-gdb_test.go
src/runtime/runtime_test.go