make tests return nonzero if failing
authorepoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 May 2011 19:26:48 +0000 (19:26 +0000)
committerepoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 May 2011 19:26:48 +0000 (19:26 +0000)
http://codereview.appspot.com/4545042/

git-svn-id: http://skia.googlecode.com/svn/trunk@1323 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/skia_test.cpp

index 25248a3..f931d62 100644 (file)
@@ -123,5 +123,5 @@ int main (int argc, char * const argv[]) {
         SkDebugf("Finished %d tests, %d failures.\n", count,
                  count - successCount);
     }
-    return 0;
+    return (count == successCount) ? 0 : 1;
 }