|
|
|
@ -23,7 +23,6 @@ import ( |
|
|
|
|
"fmt" |
|
|
|
|
"math/big" |
|
|
|
|
"os" |
|
|
|
|
"path" |
|
|
|
|
"path/filepath" |
|
|
|
|
"strings" |
|
|
|
|
"testing" |
|
|
|
@ -386,7 +385,7 @@ func TestJsonFiles(t *testing.T) { |
|
|
|
|
continue |
|
|
|
|
} |
|
|
|
|
expectedFailure := strings.HasPrefix(fInfo.Name(), "expfail") |
|
|
|
|
data, err := os.ReadFile(path.Join("testdata", fInfo.Name())) |
|
|
|
|
data, err := os.ReadFile(filepath.Join("testdata", fInfo.Name())) |
|
|
|
|
if err != nil { |
|
|
|
|
t.Errorf("Failed to read file %v: %v", fInfo.Name(), err) |
|
|
|
|
continue |
|
|
|
@ -419,7 +418,7 @@ func TestFuzzerFiles(t *testing.T) { |
|
|
|
|
} |
|
|
|
|
verbose := false |
|
|
|
|
for i, fInfo := range testfiles { |
|
|
|
|
data, err := os.ReadFile(path.Join(corpusdir, fInfo.Name())) |
|
|
|
|
data, err := os.ReadFile(filepath.Join(corpusdir, fInfo.Name())) |
|
|
|
|
if err != nil { |
|
|
|
|
t.Errorf("Failed to read file %v: %v", fInfo.Name(), err) |
|
|
|
|
continue |
|
|
|
|