aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/debug/heapdump_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/debug/heapdump_test.go')
-rw-r--r--libgo/go/runtime/debug/heapdump_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/runtime/debug/heapdump_test.go b/libgo/go/runtime/debug/heapdump_test.go
index 7d5b950..c986efc 100644
--- a/libgo/go/runtime/debug/heapdump_test.go
+++ b/libgo/go/runtime/debug/heapdump_test.go
@@ -13,8 +13,8 @@ import (
)
func TestWriteHeapDumpNonempty(t *testing.T) {
- if runtime.GOOS == "nacl" {
- t.Skip("WriteHeapDump is not available on NaCl.")
+ if runtime.GOOS == "nacl" || runtime.GOOS == "js" {
+ t.Skipf("WriteHeapDump is not available on %s.", runtime.GOOS)
}
f, err := ioutil.TempFile("", "heapdumptest")
if err != nil {
@@ -42,8 +42,8 @@ func objfin(x *Obj) {
}
func TestWriteHeapDumpFinalizers(t *testing.T) {
- if runtime.GOOS == "nacl" {
- t.Skip("WriteHeapDump is not available on NaCl.")
+ if runtime.GOOS == "nacl" || runtime.GOOS == "js" {
+ t.Skipf("WriteHeapDump is not available on %s.", runtime.GOOS)
}
f, err := ioutil.TempFile("", "heapdumptest")
if err != nil {