mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +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; | ||||
|     int res = 0; | ||||
|     TTFF_v.clear(); | ||||
|     try | ||||
|     { | ||||
|             testing::InitGoogleTest(&argc, argv); | ||||
|     } | ||||
|     catch(...) {} // catch the "testing::internal::<unnamed>::ClassUniqueToAlwaysTrue" from gtest | ||||
|  | ||||
|     google::ParseCommandLineFlags(&argc, &argv, true); | ||||
|     google::InitGoogleLogging(argv[0]); | ||||
|  | ||||
|   | ||||
| @@ -132,7 +132,11 @@ int main(int argc, char **argv) | ||||
| { | ||||
|     std::cout << "Running GNSS-SDR Tests..." << std::endl; | ||||
|     int res = 0; | ||||
|     try | ||||
|     { | ||||
|             testing::InitGoogleTest(&argc, argv); | ||||
|     } | ||||
|     catch(...) {} // catch the "testing::internal::<unnamed>::ClassUniqueToAlwaysTrue" from gtest | ||||
|     google::ParseCommandLineFlags(&argc, &argv, true); | ||||
|     google::InitGoogleLogging(argv[0]); | ||||
|     try | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez