]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testcarchive: skip TestExtar on self-hosted iOS
authorElias Naur <mail@eliasnaur.com>
Wed, 1 May 2019 15:32:40 +0000 (08:32 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 1 May 2019 16:55:33 +0000 (16:55 +0000)
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 <mail@eliasnaur.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

misc/cgo/testcarchive/carchive_test.go

index 085970f32af2988e7e97228adf479855067554f4..1fa3f21491441e66d82ebbeb7815a717023f09ab 100644 (file)
@@ -525,6 +525,9 @@ func TestExtar(t *testing.T) {
        if runtime.Compiler == "gccgo" {
                t.Skip("skipping -extar test when using gccgo")
        }
+       if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
+               t.Skip("shell scripts are not executable on iOS hosts")
+       }
 
        defer func() {
                os.Remove("libgo4.a")