From 98b3145ab1edd077551bb1255145f8af18601ec5 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 10 Oct 2016 11:22:08 +0200 Subject: [PATCH] Fix crash --- src/tests/system-tests/ttff_gps_l1.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/system-tests/ttff_gps_l1.cc b/src/tests/system-tests/ttff_gps_l1.cc index 86d6c8350..cc10640f0 100644 --- a/src/tests/system-tests/ttff_gps_l1.cc +++ b/src/tests/system-tests/ttff_gps_l1.cc @@ -474,11 +474,11 @@ TEST_F(TTFF_GPS_L1_CA_Test, ColdStart) config2->set_property("GNSS-SDR.SUPL_read_gps_assistance_xml", "false"); config2->set_property("PVT.flag_rtcm_server", "false"); - std::unique_ptr control_thread; - for(int n = 0; n < FLAGS_num_measurements; n++) { // Create a new ControlThread object with a smart pointer + std::unique_ptr control_thread; + if(FLAGS_config_file_ttff.empty()) { std::unique_ptr control_thread(new ControlThread(config));