Skip to content

Commit

Permalink
Fix bogus coverity warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Oct 18, 2015
1 parent b2714f8 commit e81c0ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test-main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <cstdlib>
#include <gtest/gtest.h>

#ifdef _WIN32
Expand Down Expand Up @@ -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;
}

0 comments on commit e81c0ae

Please sign in to comment.