singleflight: make the check for exec support in TestPanicDoChan platform-agnostic

The new wasip1 GOOS does not support exec, but some ios environments
(like Corellium) might. Update the test to exec itself with -test.list
as a control case.

For golang/go#58141.

Change-Id: Id69950fc394910620f6c73cb437ca75c09ad8c29
Run-TryBot: Bryan Mills <>
Commit-Queue: Bryan Mills <>
Reviewed-by: Dmitri Shuralyov <>
Auto-Submit: Bryan Mills <>
Reviewed-by: Johan Brandhorst-Satzkorn <>
TryBot-Result: Gopher Robot <>
Reviewed-by: Dmitri Shuralyov <>
1 file changed
tree: 04caea4c5372035f3879c56852405a6336b35a16
  1. errgroup/
  2. semaphore/
  3. singleflight/
  4. syncmap/
  5. codereview.cfg
  7. go.mod

Go Sync

Go Reference

This repository provides Go concurrency primitives in addition to the ones provided by the language and “sync” and “sync/atomic” packages.


The easiest way to install is to run go get -u You can also manually git clone the repository to $GOPATH/src/

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

The main issue tracker for the sync repository is located at Prefix your issue with “x/sync:” in the subject line, so it is easy to find.