gm: if no readPath is given, report all tests as "missing reference image" instead of "passed"

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

git-svn-id: http://skia.googlecode.com/svn/trunk@7119 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
epoger@google.com 2013-01-10 17:11:27 +00:00
parent 59a6a2b983
commit 3499f3c0d9
2 changed files with 4 additions and 4 deletions

View File

@ -1432,10 +1432,10 @@ int tool_main(int argc, char** argv) {
// want to also tabulate pixel mismatches vs dimension mistmatches
// (or whatever else), we can do so.
testsRun++;
if (ERROR_NONE == testErrors) {
testsPassed++;
} else if (ERROR_READING_REFERENCE_IMAGE & testErrors) {
if (!readPath || (ERROR_READING_REFERENCE_IMAGE & testErrors)) {
testsMissingReferenceImages++;
} else if (ERROR_NONE == testErrors) {
testsPassed++;
} else {
testsFailed++;
}

View File

@ -1,3 +1,3 @@
writing to gm/tests/outputs/no-readpath/output-actual/images
drawing... dashing2 [640 480]
Ran 1 tests: 1 passed, 0 failed, 0 missing reference images
Ran 1 tests: 0 passed, 0 failed, 1 missing reference images