diff options
author | 2013-01-10 17:11:27 +0000 | |
---|---|---|
committer | 2013-01-10 17:11:27 +0000 | |
commit | 3499f3c0d939dd882f75519bd8aeb4a674b67e13 (patch) | |
tree | d05c0428d42fbab74a55db8a071e21c845024e8e /gm/gmmain.cpp | |
parent | 59a6a2b98302adc4732fc26873043bad1a94e9f1 (diff) |
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
Diffstat (limited to 'gm/gmmain.cpp')
-rw-r--r-- | gm/gmmain.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index 19adf2658d..57514f1a94 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp @@ -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++; } |