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:
parent
ece5effa2d
commit
3b728d9c26
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user