]> Cypherpunks repositories - gostls13.git/commit
internal/testenv: in HasExec, try to actually exec on ios and wasm platforms
authorBryan C. Mills <bcmills@google.com>
Wed, 19 Apr 2023 14:46:26 +0000 (10:46 -0400)
committerGopher Robot <gobot@golang.org>
Sat, 22 Apr 2023 00:41:24 +0000 (00:41 +0000)
commit5a10d8a2042224c77dc41e8efbbc124f10b26172
tree2d8aa0f204885f3cc124e2cfc0376af386376a10
parentd5fea5078b5d2b9f3c4da0f7cd4292f80806ca4b
internal/testenv: in HasExec, try to actually exec on ios and wasm platforms

Some iOS environments may support exec. wasip1 and js do not, but
trying to exec on those platforms is inexpensive anyway and gives
better test coverage for the ios path.

Change-Id: I4baffb2ef5dc7d81e6a260f69033bfb229f13d92
Reviewed-on: https://go-review.googlesource.com/c/go/+/486275
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/internal/testenv/exec.go