(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestPastFuzzingFailures(t *testing.T) { |
| 14 | entries, err := ioutil.ReadDir("crashers") |
| 15 | if err != nil { |
| 16 | t.Errorf("%s", err) |
| 17 | return |
| 18 | } |
| 19 | for _, entry := range entries { |
| 20 | if strings.HasSuffix(entry.Name(), ".output") { |
| 21 | continue |
| 22 | } |
| 23 | if strings.HasSuffix(entry.Name(), ".quoted") { |
| 24 | continue |
| 25 | } |
| 26 | t.Logf("%s", entry.Name()) |
| 27 | data, err := ioutil.ReadFile("crashers/" + entry.Name()) |
| 28 | if err != nil { |
| 29 | t.Errorf("%s: %s", entry.Name(), err) |
| 30 | return |
| 31 | } |
| 32 | Fuzz(data) |
| 33 | } |
| 34 | } |