]> Cypherpunks repositories - gostls13.git/commit
os: improve TestExecutable
authorKir Kolyshkin <kolyshkin@gmail.com>
Fri, 30 Aug 2024 06:37:08 +0000 (23:37 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 3 Sep 2024 20:16:11 +0000 (20:16 +0000)
commit8eefc3b8f0dde0c89110817af3eccf44c79aeef0
treebbbedc43713e0e037dc4b826c87a359253b60a19
parent1ae6b9e31b952ad7090406475b2b0eb0e8804fcd
os: improve TestExecutable

Instead of running all tests and relying on an init function, let's
embed the child code into the test case and only run one specific test.

Change-Id: Ib04e8a580556e7e30ff776c2041f0b809b440a26
Reviewed-on: https://go-review.googlesource.com/c/go/+/609838
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/os/executable_test.go