Fix bogus coverity warnings.

This commit is contained in:
vitaut 2015-10-18 09:16:10 -07:00
parent b2714f83cc
commit e81c0aef39

View File

@ -25,6 +25,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <cstdlib>
#include <gtest/gtest.h>
#ifdef _WIN32
@ -52,5 +53,10 @@ int main(int argc, char **argv) {
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
try {
return RUN_ALL_TESTS();
} catch (...) {
// Catch all exceptions to make Coverity happy.
}
return EXIT_FAILURE;
}