1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

fix cast error

This commit is contained in:
Jim Melton 2021-02-15 17:15:38 -07:00
parent ece5effa2d
commit 3b728d9c26
No known key found for this signature in database
GPG Key ID: C46392D9AACAB216

View File

@ -352,7 +352,7 @@ TEST(GNSSBlockFactoryTest, InstantiateWrongPvt)
std::shared_ptr<InMemoryConfiguration> configuration = std::make_shared<InMemoryConfiguration>();
configuration->set_property("PVT.implementation", "Pepito");
auto factory = std::make_unique<GNSSBlockFactory>();
auto pvt_ = factory->GetPVT(configuration.get());
std::shared_ptr<PvtInterface> pvt = std::dynamic_pointer_cast<PvtInterface>(pvt_);
std::shared_ptr<GNSSBlockInterface> pvt_ = factory->GetPVT(configuration.get());
auto pvt = std::dynamic_pointer_cast<PvtInterface>(pvt_);
EXPECT_EQ(nullptr, pvt);
}