From b3e1573b75205f2905c4b27986413d2e2be9803c Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Thu, 8 Oct 2020 09:52:58 -0400 Subject: [PATCH] singleflight: skip tests involving exec on js/wasm The js port does not yet support os/exec. Updates golang/go#37100 Updates golang/go#33519 Change-Id: I9608b7febfdc274dc1b9f34a92d00ef7bea4e13c Reviewed-on: https://go-review.googlesource.com/c/sync/+/260717 Trust: Bryan C. Mills Run-TryBot: Bryan C. Mills TryBot-Result: Go Bot Reviewed-by: Brad Fitzpatrick Reviewed-by: Dmitri Shuralyov --- singleflight/singleflight_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/singleflight/singleflight_test.go b/singleflight/singleflight_test.go index c635edc..a9ad17f 100644 --- a/singleflight/singleflight_test.go +++ b/singleflight/singleflight_test.go @@ -253,6 +253,10 @@ func TestGoexitDo(t *testing.T) { } func TestPanicDoChan(t *testing.T) { + if runtime.GOOS == "js" { + t.Skipf("js does not support exec") + } + if os.Getenv("TEST_PANIC_DOCHAN") != "" { defer func() { recover() @@ -291,6 +295,10 @@ func TestPanicDoChan(t *testing.T) { } func TestPanicDoSharedByDoChan(t *testing.T) { + if runtime.GOOS == "js" { + t.Skipf("js does not support exec") + } + if os.Getenv("TEST_PANIC_DOCHAN") != "" { blocked := make(chan struct{}) unblock := make(chan struct{})