aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2014-05-31 02:30:01 -0700
committerShenghou Ma <minux@golang.org>2014-05-31 02:30:01 -0700
commita238973949287d6d00a5b014135032dd4e0012fb (patch)
treedc02bcd49691f091a7b75c9bf9336ac59d8902bd
parentc53111d987ea5b4cf1496325ee3fd9f3cc5348d2 (diff)
downloadgo-a238973949287d6d00a5b014135032dd4e0012fb.tar.gz
go-a238973949287d6d00a5b014135032dd4e0012fb.zip
runtime/debug: skip TestWriteHeapDumpNonempty on NaCl.
TestWriteHeap is useless on NaCl anyway. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/101980048
-rw-r--r--src/pkg/runtime/debug/heapdump_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/runtime/debug/heapdump_test.go b/src/pkg/runtime/debug/heapdump_test.go
index 6ded7e9900..9201901151 100644
--- a/src/pkg/runtime/debug/heapdump_test.go
+++ b/src/pkg/runtime/debug/heapdump_test.go
@@ -7,10 +7,14 @@ package debug
import (
"io/ioutil"
"os"
+ "runtime"
"testing"
)
func TestWriteHeapDumpNonempty(t *testing.T) {
+ if runtime.GOOS == "nacl" {
+ t.Skip("WriteHeapDump is not available on NaCl.")
+ }
f, err := ioutil.TempFile("", "heapdumptest")
if err != nil {
t.Fatalf("TempFile failed: %v", err)