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