]> Cypherpunks repositories - gostls13.git/commitdiff
internal/traceparser: skip test on iOS
authorElias Naur <elias.naur@gmail.com>
Wed, 24 Oct 2018 13:43:45 +0000 (15:43 +0200)
committerElias Naur <elias.naur@gmail.com>
Wed, 24 Oct 2018 15:33:16 +0000 (15:33 +0000)
The iOS test harness only include files from the tested package or
below. Skip a test on iOS that required files outside the package.

Change-Id: Iaee7e488eb783b443f2b2b84d8be2de01227ab62
Reviewed-on: https://go-review.googlesource.com/c/144110
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
src/internal/traceparser/parser_test.go

index 7df56fe1f97525a87d75ec3c3eaa4878cdf93913..68cc69e375e611af7bc77928ef75cd2250acaab8 100644 (file)
@@ -8,6 +8,7 @@ import (
        "io/ioutil"
        "os"
        "path/filepath"
+       "runtime"
        "strings"
        "testing"
 )
@@ -27,6 +28,9 @@ var (
 )
 
 func TestRemoteFiles(t *testing.T) {
+       if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
+               t.Skipf("files from outside the package are not available on %s/%s", runtime.GOOS, runtime.GOARCH)
+       }
        files, err := ioutil.ReadDir(otherDir)
        if err != nil {
                t.Fatal(err)