Index: tests/PathCoverageTest.cpp |
diff --git a/tests/PathCoverageTest.cpp b/tests/PathCoverageTest.cpp |
index 25b5fd1c09c905658285c8f72ebe45070a455d72..c133e9ccccc291cfb84781463dfb8adff63b6017 100644 |
--- a/tests/PathCoverageTest.cpp |
+++ b/tests/PathCoverageTest.cpp |
@@ -137,14 +137,11 @@ static bool one_d_pe(const int* array, const unsigned int count, |
(estimatedCount <= 2 * computedCount); |
if (!isAccurate) { |
- SkString errorDescription; |
- errorDescription.printf( |
- "Curve from %.2f %.2f through %.2f %.2f to %.2f %.2f " |
- "computes %d, estimates %d\n", |
- path[0].fX, path[0].fY, path[1].fX, path[1].fY, |
- path[2].fX, path[2].fY, computedCount, estimatedCount); |
+ ERRORF(reporter, "Curve from %.2f %.2f through %.2f %.2f to " |
+ "%.2f %.2f computes %d, estimates %d\n", |
+ path[0].fX, path[0].fY, path[1].fX, path[1].fY, |
+ path[2].fX, path[2].fY, computedCount, estimatedCount); |
numErrors++; |
- reporter->reportFailed(errorDescription); |
} |
} |