Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: tests/SortTest.cpp

Issue 132843002: Add REPORTF test macro. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: final rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/PathCoverageTest.cpp ('k') | tests/StreamTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
}
}
}
« no previous file with comments | « tests/PathCoverageTest.cpp ('k') | tests/StreamTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698