diff --git a/src/image/jpeg/fuzz_test.go b/src/image/jpeg/fuzz_test.go index bd534a921d7..91a99144014 100644 --- a/src/image/jpeg/fuzz_test.go +++ b/src/image/jpeg/fuzz_test.go @@ -49,16 +49,18 @@ func FuzzDecode(f *testing.F) { var w bytes.Buffer err := Encode(&w, img, &Options{Quality: q}) if err != nil { - t.Fatalf("failed to encode valid image: %s", err) + t.Errorf("failed to encode valid image: %s", err) + continue } img1, err := Decode(&w) if err != nil { - t.Fatalf("failed to decode roundtripped image: %s", err) + t.Errorf("failed to decode roundtripped image: %s", err) + continue } got := img1.Bounds() want := img.Bounds() if !got.Eq(want) { - t.Fatalf("roundtripped image bounds have changed, got: %s, want: %s", got, want) + t.Errorf("roundtripped image bounds have changed, got: %s, want: %s", got, want) } } }) diff --git a/src/image/png/fuzz_test.go b/src/image/png/fuzz_test.go index 4b639459e71..ea4bf4ef4af 100644 --- a/src/image/png/fuzz_test.go +++ b/src/image/png/fuzz_test.go @@ -56,16 +56,18 @@ func FuzzDecode(f *testing.F) { e := &Encoder{CompressionLevel: l} err = e.Encode(&w, img) if err != nil { - t.Fatalf("failed to encode valid image: %s", err) + t.Errorf("failed to encode valid image: %s", err) + continue } img1, err := Decode(&w) if err != nil { - t.Fatalf("failed to decode roundtripped image: %s", err) + t.Errorf("failed to decode roundtripped image: %s", err) + continue } got := img1.Bounds() want := img.Bounds() if !got.Eq(want) { - t.Fatalf("roundtripped image bounds have changed, got: %s, want: %s", got, want) + t.Errorf("roundtripped image bounds have changed, got: %s, want: %s", got, want) } } })