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:
parent
c53111d987
commit
a238973949
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user