소스 검색

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 {