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