diff --git a/tools/skdiff_main.cpp b/tools/skdiff_main.cpp index 3dd46a1961..30ecfa42e9 100644 --- a/tools/skdiff_main.cpp +++ b/tools/skdiff_main.cpp @@ -27,6 +27,8 @@ * Creates an index.html in the current third directory to compare each * pair that does not match exactly. * Does *not* recursively descend directories. + * + * Returns zero exit code if all images match across baseDir and comparisonDir. */ #if SK_BUILD_FOR_WIN32 @@ -1170,4 +1172,6 @@ int main (int argc, char ** argv) { } matchSubstrings.deleteAll(); nomatchSubstrings.deleteAll(); + + return summary.fNumMismatches; } diff --git a/tools/tests/skdiff/test1/output-expected/return_value b/tools/tests/skdiff/test1/output-expected/return_value index 573541ac97..ec635144f6 100644 --- a/tools/tests/skdiff/test1/output-expected/return_value +++ b/tools/tests/skdiff/test1/output-expected/return_value @@ -1 +1 @@ -0 +9 diff --git a/tools/tests/skdiff/test2/output-expected/return_value b/tools/tests/skdiff/test2/output-expected/return_value index 573541ac97..ec635144f6 100644 --- a/tools/tests/skdiff/test2/output-expected/return_value +++ b/tools/tests/skdiff/test2/output-expected/return_value @@ -1 +1 @@ -0 +9