cmd/api: re-enable TestGolden on nacl

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>
This commit is contained in:
Shenghou Ma 2015-04-08 01:32:45 -04:00 committed by Minux Ma
parent a175fa3bc3
commit 84b690fee1
2 changed files with 3 additions and 8 deletions

View File

@ -10,6 +10,9 @@ usr src=../misc/nacl/testdata
go src=..
src
cmd
api
testdata
+
asm
internal
asm

View 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)