Added output of failed GMs to assist tracking errors on Android
http://codereview.appspot.com/6452084/ git-svn-id: http://skia.googlecode.com/svn/trunk@4923 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e49b07619b
commit
a2f8008fd7
@ -1013,6 +1013,8 @@ int main(int argc, char * const argv[]) {
|
||||
}
|
||||
#endif
|
||||
|
||||
SkTArray<SkString> failedTests;
|
||||
|
||||
Iter iter;
|
||||
GM* gm;
|
||||
while ((gm = iter.next()) != NULL) {
|
||||
@ -1131,12 +1133,17 @@ int main(int argc, char * const argv[]) {
|
||||
testsMissingReferenceImages++;
|
||||
} else {
|
||||
testsFailed++;
|
||||
|
||||
failedTests.push_back(make_name(shortName, config.fName));
|
||||
}
|
||||
}
|
||||
SkDELETE(gm);
|
||||
}
|
||||
printf("Ran %d tests: %d passed, %d failed, %d missing reference images\n",
|
||||
testsRun, testsPassed, testsFailed, testsMissingReferenceImages);
|
||||
SkDebugf("Ran %d tests: %d passed, %d failed, %d missing reference images\n",
|
||||
testsRun, testsPassed, testsFailed, testsMissingReferenceImages);
|
||||
for (int i = 0; i < failedTests.count(); ++i) {
|
||||
SkDebugf("\t\t%s\n", failedTests[i].c_str());
|
||||
}
|
||||
#if SK_SUPPORT_GPU
|
||||
delete grFactory;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user