title: Google Test return value
body: <p>I'm using Google Test and Google Mock frameworks for a project's unit tests. I have various unit tests projects and want to automate my build so to run all of them.</p>
  
  <p>I was expecting the unit tests executable to return 0 on success and 1 (or any other value) on any test failure, but I'm getting 1 when all tests passed. I'm getting some GMOCK warnings but couldn't find any documentation about warnings affecting return value.</p>
  
  <p>I tried running the tests filtering to run just one test case where no GMOCK warnings are triggered and still get 1 as return value.</p>
  
  <p>I had a couple of DISABLED test cases, so I commented them out. Still getting 1 as return value. </p>
  
  <p>According to documentation and code comments for <code>RUN_ALL_TESTS</code> macro, the return value should be 0.</p>
  
  <p>I can't think of anything else causing return value 1. Am I missing anything?</p>