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
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 19adf26..57514f1 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1432,10 +1432,10 @@
         // 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++;
         }