make tests return nonzero if failing

http://codereview.appspot.com/4545042/



git-svn-id: http://skia.googlecode.com/svn/trunk@1323 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
epoger@google.com 2011-05-13 19:26:48 +00:00
parent 6e7a7b3b1d
commit a8fd79d407

View 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;
}