1
0
mirror of https://github.com/golang/go synced 2024-11-19 17:44:43 -07:00

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
This commit is contained in:
Shenghou Ma 2014-05-31 02:30:01 -07:00
parent c53111d987
commit a238973949

View File

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