Index: tests/SkBlend_optsTest.cpp |
diff --git a/tests/SkBlend_optsTest.cpp b/tests/SkBlend_optsTest.cpp |
index ee60d5ebdfc7149360a8d8f801b9d27eabeab4cf..06b7c1ade2c252d02387882deab7041cda9264c9 100644 |
--- a/tests/SkBlend_optsTest.cpp |
+++ b/tests/SkBlend_optsTest.cpp |
@@ -62,13 +62,14 @@ static void test_blender( |
std::string fileName = resourceName + ".png"; |
sk_sp<SkImage> image = GetResourceAsImage(fileName.c_str()); |
- SkASSERT(image != nullptr); |
if (image == nullptr) { |
- SkFAIL("image is NULL"); |
+ ERRORF(reporter, "image is NULL"); |
+ return; |
} |
SkBitmap bm; |
if (!as_IB(image)->getROPixels(&bm)) { |
- SkFAIL("Could not read resource"); |
+ ERRORF(reporter, "Could not read resource"); |
+ return; |
} |
SkPixmap pixmap; |