From c762e921aa3c37b029a608633820c6a0f5ded0d8 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 10 Apr 2014 20:38:50 +0200 Subject: [PATCH] changing a log from fatal to warning --- .../galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc index fad579bc2..5fa02de18 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc @@ -135,7 +135,7 @@ void GalileoE1PcpsAmbiguousAcquisitionGSoCTest::wait_message() } catch( boost::exception & e ) { - DLOG(FATAL) << "Boost exception: " << boost::diagnostic_information(e); + DLOG(WARNING) << "Boost exception: " << boost::diagnostic_information(e); } } @@ -199,7 +199,7 @@ TEST_F(GalileoE1PcpsAmbiguousAcquisitionGSoCTest, ValidationOfResults) long long int end = 0; init(); - GalileoE1PcpsAmbiguousAcquisition *acquisition = new GalileoE1PcpsAmbiguousAcquisition(config, "Acquisition", 1, 1, queue); + std::unique_ptr acquisition(new GalileoE1PcpsAmbiguousAcquisition(config, "Acquisition", 1, 1, queue)); ASSERT_NO_THROW( { @@ -262,6 +262,4 @@ TEST_F(GalileoE1PcpsAmbiguousAcquisitionGSoCTest, ValidationOfResults) std::cout << "Acquired " << nsamples << " samples in " << (end - begin) << " microseconds" << std::endl; EXPECT_EQ(0, message) << "Acquisition failure. Expected message: 0=ACQ STOP."; - - delete acquisition; }