]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/debug: skip TestWriteHeapDumpNonempty on NaCl.
authorShenghou Ma <minux@golang.org>
Sat, 31 May 2014 09:30:01 +0000 (02:30 -0700)
committerShenghou Ma <minux@golang.org>
Sat, 31 May 2014 09:30:01 +0000 (02:30 -0700)
TestWriteHeap is useless on NaCl anyway.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/101980048

src/pkg/runtime/debug/heapdump_test.go

index 6ded7e9900d2ec8dbc4e479822cc10039f69019d..9201901151fbaede207f67eaa07f4731392145e8 100644 (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)