From: Bryan C. Mills Date: Mon, 22 Nov 2021 19:37:41 +0000 (-0500) Subject: runtime: execute TestSpuriousWakeupsNeverHangSemasleep in parallel X-Git-Tag: go1.18beta1~211 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f13fcd9e6839978b883016a50a4e61d4ba843335;p=gostls13.git runtime: execute TestSpuriousWakeupsNeverHangSemasleep in parallel This test spends most of its time sleeping and waiting on a subprocess to sleep. It seems like a prime candidate to run in parallel, although we may need to relax its hard-coded 2s timeout on the sleep(1) subprocess. For #48770 Change-Id: I4e839739fe82446615f9894c1904c87e5f3cf386 Reviewed-on: https://go-review.googlesource.com/c/go/+/366256 Trust: Bryan C. Mills Run-TryBot: Bryan C. Mills Reviewed-by: Emmanuel Odeke Reviewed-by: Ian Lance Taylor TryBot-Result: Go Bot --- diff --git a/src/runtime/semasleep_test.go b/src/runtime/semasleep_test.go index bc73140a2a..0057b0729e 100644 --- a/src/runtime/semasleep_test.go +++ b/src/runtime/semasleep_test.go @@ -21,6 +21,7 @@ func TestSpuriousWakeupsNeverHangSemasleep(t *testing.T) { if *flagQuick { t.Skip("-quick") } + t.Parallel() // Waits for a program to sleep for 1s. exe, err := buildTestProg(t, "testprog") if err != nil {