Quellcode durchsuchen

Skip Fuzz TestParseData on Nacl (#198)

* Skip Fuzz TestParseData on nacl

* fixed style error

* Fixed style error
Margaret Nolan vor 7 Jahren
Ursprung
Commit
094a5ac1e8
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5
    0
      fuzz/fuzz_test.go

+ 5
- 0
fuzz/fuzz_test.go Datei anzeigen

@@ -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 {