Skip to content

Commit

Permalink
execabs: let hasExec return false on wasip1
Browse files Browse the repository at this point in the history
Wasm cannot execute processes. Follow CL 479622 and update hasExec to
match internal/testenv.HasExec.

Updates golang/go#58141

Change-Id: Ie44dc356ee589784c44906694fda387fb1448ad5
Reviewed-on: https://go-review.googlesource.com/c/sys/+/485655
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
  • Loading branch information
tklauser authored and gopherbot committed Apr 18, 2023
1 parent 39c2d6a commit 2a33a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execabs/execabs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
// Copied from internal/testenv.HasExec
func hasExec() bool {
switch runtime.GOOS {
case "js", "ios":
case "wasip1", "js", "ios":
return false
}
return true
Expand Down

0 comments on commit 2a33a30

Please sign in to comment.