Skip to content

Commit 07f6894

Browse files
eliasnaurbradfitz
authored andcommitted
misc/cgo/testcarchive: skip TestExtar on self-hosted iOS
iOS cannot (directly) run shell scripts. Updates #31722 Change-Id: I69473e9339c50a77338d391c73b4e146bce3fa89 Reviewed-on: https://go-review.googlesource.com/c/go/+/174700 Run-TryBot: Elias Naur <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent f0c383b commit 07f6894

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

misc/cgo/testcarchive/carchive_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,9 @@ func TestExtar(t *testing.T) {
525525
if runtime.Compiler == "gccgo" {
526526
t.Skip("skipping -extar test when using gccgo")
527527
}
528+
if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
529+
t.Skip("shell scripts are not executable on iOS hosts")
530+
}
528531

529532
defer func() {
530533
os.Remove("libgo4.a")

0 commit comments

Comments
 (0)