aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-21 18:34:14 +0000
committerGravatar borenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-21 18:34:14 +0000
commita904ea1b2a50189c96fd734e0e31cdd29e7d5f1c (patch)
treee57be4f5ee22448e05c6f36951768d93c24cd1ce /gm
parent3c8fb5171858a81b7f2f66b357891f41755c4033 (diff)
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
Diffstat (limited to 'gm')
-rw-r--r--gm/gmmain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index a3e28338a6..611b58188f 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -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++;