]> Cypherpunks repositories - gostls13.git/commitdiff
internal/traceparser: skip test on iOS
authorElias Naur <elias.naur@gmail.com>
Wed, 7 Nov 2018 09:28:38 +0000 (10:28 +0100)
committerElias Naur <elias.naur@gmail.com>
Wed, 7 Nov 2018 13:04:50 +0000 (13:04 +0000)
Change-Id: Ifc9581ba82a13f507c288282b517ebf8a5f93b4e
Reviewed-on: https://go-review.googlesource.com/c/148058
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/internal/traceparser/gc_test.go

index 1cd8fb6f780aa4100bef620b14a961108c2b2eb0..0b07f735f826e43f8ff1feec149e4c214bc365be 100644 (file)
@@ -6,6 +6,7 @@ package traceparser
 
 import (
        "math"
+       "runtime"
        "testing"
        "time"
 )
@@ -75,6 +76,9 @@ func TestMMU(t *testing.T) {
 }
 
 func TestMMUTrace(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)
+       }
        // Can't be t.Parallel() because it modifies the
        // testingOneBand package variable.