Coverity fixes: uncaught exceptions

This commit is contained in:
John Hood
2016-05-10 23:55:56 -04:00
parent 25a65fc071
commit c027112a88
2 changed files with 13 additions and 5 deletions
+7 -3
View File
@@ -544,8 +544,12 @@ int main( int argc, char *argv[] )
verbose = true;
}
test_all_vectors();
test_iterative();
try {
test_all_vectors();
test_iterative();
} catch ( const std::exception &e ) {
fprintf( stderr, "Error: %s\r\n", e.what() );
return 1;
}
return 0;
}