aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2020-10-08 09:52:58 -0400
committerBryan C. Mills <bcmills@google.com>2020-10-08 14:14:35 +0000
commitb3e1573b75205f2905c4b27986413d2e2be9803c (patch)
tree4e70aa8d15da28f7801c3831c6fff5657cf38622
parent30421366ff761c80b137fb5084b32278ed41fab0 (diff)
downloadgolang-x-sync-b3e1573b75205f2905c4b27986413d2e2be9803c.tar.gz
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 <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
-rw-r--r--singleflight/singleflight_test.go8
1 files changed, 8 insertions, 0 deletions
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{})