diff options
author | Shenghou Ma <minux@golang.org> | 2014-05-31 02:30:01 -0700 |
---|---|---|
committer | Shenghou Ma <minux@golang.org> | 2014-05-31 02:30:01 -0700 |
commit | a238973949287d6d00a5b014135032dd4e0012fb (patch) | |
tree | dc02bcd49691f091a7b75c9bf9336ac59d8902bd | |
parent | c53111d987ea5b4cf1496325ee3fd9f3cc5348d2 (diff) | |
download | go-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.go | 4 |
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) |