Index: tests/StreamTest.cpp |
diff --git a/tests/StreamTest.cpp b/tests/StreamTest.cpp |
index 16978d59cbea158579b8ac9845af12b29a9b7fda..f5426b71ac10cab351e6a22c2cecf093bd763ad1 100644 |
--- a/tests/StreamTest.cpp |
+++ b/tests/StreamTest.cpp |
@@ -45,9 +45,8 @@ 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); |
+ REPORTF(reporter, |
+ ("Failed to create tmp file %s\n", path.c_str())); |
return; |
} |