]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/pack: skip test on android (no Go tool)
authorDavid Crawshaw <david.crawshaw@zentus.com>
Tue, 8 Jul 2014 17:45:06 +0000 (13:45 -0400)
committerDavid Crawshaw <david.crawshaw@zentus.com>
Tue, 8 Jul 2014 17:45:06 +0000 (13:45 -0400)
LGTM=minux
R=golang-codereviews, minux
CC=golang-codereviews
https://golang.org/cl/107600043

src/cmd/pack/pack_test.go

index 486242603a6a8df2a47576a00788cf8d84d1714b..e41cf3ce42d004d5c238cd923dbf13a296c7397c 100644 (file)
@@ -186,8 +186,9 @@ func TestExtract(t *testing.T) {
 
 // Test that pack-created archives can be understood by the tools.
 func TestHello(t *testing.T) {
-       if runtime.GOOS == "nacl" {
-               t.Skip("skipping on nacl")
+       switch runtime.GOOS {
+       case "android", "nacl":
+               t.Skipf("skipping on %s", runtime.GOOS)
        }
 
        dir := tmpDir(t)
@@ -222,8 +223,9 @@ func TestHello(t *testing.T) {
 
 // Test that pack works with very long lines in PKGDEF.
 func TestLargeDefs(t *testing.T) {
-       if runtime.GOOS == "nacl" {
-               t.Skip("skipping on nacl")
+       switch runtime.GOOS {
+       case "android", "nacl":
+               t.Skipf("skipping on %s", runtime.GOOS)
        }
 
        dir := tmpDir(t)