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++; } diff --git a/gm/tests/outputs/no-readpath/output-expected/stdout b/gm/tests/outputs/no-readpath/output-expected/stdout index ca556457b1..4781221981 100644 --- a/gm/tests/outputs/no-readpath/output-expected/stdout +++ b/gm/tests/outputs/no-readpath/output-expected/stdout @@ -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