mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-30 14:53:03 +00:00
Catch exceptions raised by gtest
This commit is contained in:
@@ -628,7 +628,12 @@ int main(int argc, char **argv)
|
|||||||
std::cout << "Running Time-To-First-Fix test..." << std::endl;
|
std::cout << "Running Time-To-First-Fix test..." << std::endl;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
TTFF_v.clear();
|
TTFF_v.clear();
|
||||||
testing::InitGoogleTest(&argc, argv);
|
try
|
||||||
|
{
|
||||||
|
testing::InitGoogleTest(&argc, argv);
|
||||||
|
}
|
||||||
|
catch(...) {} // catch the "testing::internal::<unnamed>::ClassUniqueToAlwaysTrue" from gtest
|
||||||
|
|
||||||
google::ParseCommandLineFlags(&argc, &argv, true);
|
google::ParseCommandLineFlags(&argc, &argv, true);
|
||||||
google::InitGoogleLogging(argv[0]);
|
google::InitGoogleLogging(argv[0]);
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,11 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
std::cout << "Running GNSS-SDR Tests..." << std::endl;
|
std::cout << "Running GNSS-SDR Tests..." << std::endl;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
testing::InitGoogleTest(&argc, argv);
|
try
|
||||||
|
{
|
||||||
|
testing::InitGoogleTest(&argc, argv);
|
||||||
|
}
|
||||||
|
catch(...) {} // catch the "testing::internal::<unnamed>::ClassUniqueToAlwaysTrue" from gtest
|
||||||
google::ParseCommandLineFlags(&argc, &argv, true);
|
google::ParseCommandLineFlags(&argc, &argv, true);
|
||||||
google::InitGoogleLogging(argv[0]);
|
google::InitGoogleLogging(argv[0]);
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user