diff --git a/src/tests/system-tests/ttff_gps_l1.cc b/src/tests/system-tests/ttff_gps_l1.cc index a0e11b1d2..e42274117 100644 --- a/src/tests/system-tests/ttff_gps_l1.cc +++ b/src/tests/system-tests/ttff_gps_l1.cc @@ -628,7 +628,12 @@ int main(int argc, char **argv) std::cout << "Running Time-To-First-Fix test..." << std::endl; int res = 0; TTFF_v.clear(); - testing::InitGoogleTest(&argc, argv); + try + { + testing::InitGoogleTest(&argc, argv); + } + catch(...) {} // catch the "testing::internal::::ClassUniqueToAlwaysTrue" from gtest + google::ParseCommandLineFlags(&argc, &argv, true); google::InitGoogleLogging(argv[0]); diff --git a/src/tests/test_main.cc b/src/tests/test_main.cc index 81d61ffe1..dda94a8aa 100644 --- a/src/tests/test_main.cc +++ b/src/tests/test_main.cc @@ -132,7 +132,11 @@ int main(int argc, char **argv) { std::cout << "Running GNSS-SDR Tests..." << std::endl; int res = 0; - testing::InitGoogleTest(&argc, argv); + try + { + testing::InitGoogleTest(&argc, argv); + } + catch(...) {} // catch the "testing::internal::::ClassUniqueToAlwaysTrue" from gtest google::ParseCommandLineFlags(&argc, &argv, true); google::InitGoogleLogging(argv[0]); try