Browse Source

Skip Fuzz TestParseData on Nacl (#198)

* Skip Fuzz TestParseData on nacl

* fixed style error

* Fixed style error
Margaret Nolan 7 years ago
parent
commit
094a5ac1e8
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      fuzz/fuzz_test.go

+ 5
- 0
fuzz/fuzz_test.go View File

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 {