瀏覽代碼

Skip Fuzz TestParseData on Nacl (#198)

* Skip Fuzz TestParseData on nacl

* fixed style error

* Fixed style error
Margaret Nolan 7 年之前
父節點
當前提交
094a5ac1e8
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      fuzz/fuzz_test.go

+ 5
- 0
fuzz/fuzz_test.go 查看文件

@@ -2,12 +2,17 @@ package pprof
2 2
 
3 3
 import (
4 4
 	"io/ioutil"
5
+	"runtime"
5 6
 	"testing"
6 7
 
7 8
 	"github.com/google/pprof/profile"
8 9
 )
9 10
 
10 11
 func TestParseData(t *testing.T) {
12
+	if runtime.GOOS == "nacl" {
13
+		t.Skip("no direct filesystem access on Nacl")
14
+	}
15
+
11 16
 	const path = "testdata/"
12 17
 	files, err := ioutil.ReadDir(path)
13 18
 	if err != nil {