Fix ignored errors in GM when no reference images are provided

Review URL: https://codereview.appspot.com/7400044

git-svn-id: http://skia.googlecode.com/svn/trunk@7813 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
borenet@google.com 2013-02-21 18:34:14 +00:00
parent 3c8fb51718
commit a904ea1b2a

View File

@ -1650,7 +1650,8 @@ int tool_main(int argc, char** argv) {
if (!gmmain.fExpectationsSource.get() ||
(ERROR_READING_REFERENCE_IMAGE & testErrors)) {
testsMissingReferenceImages++;
} else if (ERROR_NONE == testErrors) {
}
if (ERROR_NONE == testErrors || ERROR_READING_REFERENCE_IMAGE == testErrors) {
testsPassed++;
} else {
testsFailed++;