From d89be37c4a046b8f904ca4a0d43724e52f913d26 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 11 Jul 2017 11:56:54 +0200 Subject: [PATCH] Fix tests --- .../galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc | 1 + .../acquisition/gps_l2_m_pcps_acquisition_test.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/src/tests/unit-tests/signal-processing-blocks/acquisition/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc b/src/tests/unit-tests/signal-processing-blocks/acquisition/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc index 6fe61c632..1e5e95160 100644 --- a/src/tests/unit-tests/signal-processing-blocks/acquisition/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc +++ b/src/tests/unit-tests/signal-processing-blocks/acquisition/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc @@ -292,6 +292,7 @@ TEST_F(GalileoE1PcpsAmbiguousAcquisitionGSoCTest, ValidationOfResults) ASSERT_NO_THROW( { start_queue(); + acquisition->set_local_code(); acquisition->init(); acquisition->reset(); acquisition->set_state(1); diff --git a/src/tests/unit-tests/signal-processing-blocks/acquisition/gps_l2_m_pcps_acquisition_test.cc b/src/tests/unit-tests/signal-processing-blocks/acquisition/gps_l2_m_pcps_acquisition_test.cc index bdfc0dd9a..a099976c1 100644 --- a/src/tests/unit-tests/signal-processing-blocks/acquisition/gps_l2_m_pcps_acquisition_test.cc +++ b/src/tests/unit-tests/signal-processing-blocks/acquisition/gps_l2_m_pcps_acquisition_test.cc @@ -257,6 +257,7 @@ TEST_F(GpsL2MPcpsAcquisitionTest, ValidationOfResults) ASSERT_NO_THROW( { + acquisition->set_local_code(); acquisition->set_state(1); // Ensure that acquisition starts at the first sample acquisition->init(); }) << "Failure set_state and init acquisition test" << std::endl;