瀏覽代碼

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