]> Cypherpunks repositories - gostls13.git/commit
os/exec: parallelize more tests
authorBryan C. Mills <bcmills@google.com>
Wed, 5 Oct 2022 19:21:06 +0000 (15:21 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 6 Oct 2022 19:09:18 +0000 (19:09 +0000)
commit515e3de2999b23da28e6d15ac485bfdd299ec83a
treec0ec299f24c09bb1e345d06cbf07e7fb58be27a4
parent274d3a06f7331740b849e20cff1d1c1ab84dd0e0
os/exec: parallelize more tests

This cuts the wall duration for 'go test os/exec' and
'go test -race os/exec' roughly in half on my machine,
which is an even more significant speedup with a high '-count'.

For better or for worse, it may also increase the repro rate
of #34988.

Tests that use Setenv or Chdir or check for FDs opened during the test
still cannot be parallelized, but they are only a few of those.

Change-Id: I8d284d8bff05787853f825ef144aeb7a4126847f
Reviewed-on: https://go-review.googlesource.com/c/go/+/439196
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/os/exec/dot_test.go
src/os/exec/env_test.go
src/os/exec/exec_posix_test.go
src/os/exec/exec_test.go
src/os/exec/exec_windows_test.go
src/os/exec/lp_linux_test.go
src/os/exec/lp_unix_test.go
src/os/exec/lp_windows_test.go