]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/api: re-enable TestGolden on nacl
authorShenghou Ma <minux@golang.org>
Wed, 8 Apr 2015 05:32:45 +0000 (01:32 -0400)
committerMinux Ma <minux@golang.org>
Wed, 8 Apr 2015 06:36:36 +0000 (06:36 +0000)
Fixes #10369.

Change-Id: If0a6d2b33c6862c9f7f862bdc997f2204072c6dc
Reviewed-on: https://go-review.googlesource.com/8620
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/nacl/testzip.proto
src/cmd/api/goapi_test.go

index b2e866c1e8d11bb33060acd315c015981e87bb47..1c013c178401327fe7b6a858a179ed9995424179 100644 (file)
@@ -10,6 +10,9 @@ usr   src=../misc/nacl/testdata
 go     src=..
        src
                cmd
+                       api
+                               testdata
+                                       +
                        asm
                                internal
                                        asm
index 361c294bc3cf8a98e66b6e0c66acf1fdcb851987..9f5b0c8bb4cc3695a67dc1cf7d6e1dd25364c28f 100644 (file)
@@ -13,7 +13,6 @@ import (
        "os"
        "os/exec"
        "path/filepath"
-       "runtime"
        "sort"
        "strings"
        "testing"
@@ -24,13 +23,6 @@ var (
 )
 
 func TestGolden(t *testing.T) {
-       // test fails on NaCl - skip for now
-       // (goapi_test.go:35: open testdata/src/pkg: No such file or directory)
-       // TODO(gri) fix this ASAP
-       if runtime.GOOS == "nacl" {
-               return
-       }
-
        td, err := os.Open("testdata/src/pkg")
        if err != nil {
                t.Fatal(err)