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
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index a3e2833..611b581 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1650,7 +1650,8 @@
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++;