Index: tests/SortTest.cpp |
diff --git a/tests/SortTest.cpp b/tests/SortTest.cpp |
index ceca4097c52f08f35fab2b8d163cdfffff6e44bd..a114f32f762459b9986fb5298a0fb18b701ea9bc 100644 |
--- a/tests/SortTest.cpp |
+++ b/tests/SortTest.cpp |
@@ -26,9 +26,8 @@ static void check_sort(skiatest::Reporter* reporter, const char label[], |
const int array[], const int reference[], int n) { |
for (int j = 0; j < n; ++j) { |
if (array[j] != reference[j]) { |
- SkString str; |
- str.printf("%sSort [%d] failed %d %d", label, n, array[j], reference[j]); |
- reporter->reportFailed(str); |
+ ERRORF(reporter, "%sSort [%d] failed %d %d", |
+ label, n, array[j], reference[j]); |
} |
} |
} |