Index: tests/StreamTest.cpp |
diff --git a/tests/StreamTest.cpp b/tests/StreamTest.cpp |
index 16978d59cbea158579b8ac9845af12b29a9b7fda..6ac06e5c5c4687970260e1fff1e6c401f19ccfc4 100644 |
--- a/tests/StreamTest.cpp |
+++ b/tests/StreamTest.cpp |
@@ -45,9 +45,7 @@ static void test_filestreams(skiatest::Reporter* reporter, const char* tmpDir) { |
{ |
SkFILEWStream writer(path.c_str()); |
if (!writer.isValid()) { |
- SkString msg; |
- msg.printf("Failed to create tmp file %s\n", path.c_str()); |
- reporter->reportFailed(msg); |
+ ERRORF(reporter, "Failed to create tmp file %s\n", path.c_str()); |
return; |
} |