Regression test for Issue 447: a UE handing over between cells must not abort with the spectrum-model mismatch assertion (m_spectrumModel == x.m_spectrumModel) in SpectrumValue. More...
Public Member Functions | |
| LteHandoverSpectrumModelTestCase () | |
| ~LteHandoverSpectrumModelTestCase () override | |
| Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| Caller graph was not generated because of its size. | |
| virtual | ~TestCase () |
| Destructor. | |
| std::string | GetName () const |
| TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
| void | DoRun () override |
| Implementation to actually run this TestCase. | |
Additional Inherited Members | |
| Public Types inherited from ns3::TestCase | |
| enum class | Duration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 } |
| How long the test takes to execute. More... | |
| Protected Member Functions inherited from ns3::TestCase | |
| TestCase (std::string name) | |
| Constructor. | |
| void | AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK) |
| Add an individual child TestCase to this test suite. | |
| TestCase * | GetParent () const |
| Get the parent of this TestCase. | |
| bool | IsStatusFailure () const |
| Check if any tests failed. | |
| bool | IsStatusSuccess () const |
| Check if all tests passed. | |
| void | SetDataDir (std::string directory) |
| Set the data directory where reference trace files can be found. | |
| void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
| Log the failure of this TestCase. | |
| bool | MustAssertOnFailure () const |
| Check if this run should assert on failure. | |
| bool | MustContinueOnFailure () const |
| Check if this run should continue on failure. | |
| std::string | CreateDataDirFilename (std::string filename) |
| Construct the full path to a file in the data directory. | |
| std::string | CreateTempDirFilename (std::string filename) |
| Construct the full path to a file in a temporary directory. | |
Regression test for Issue 447: a UE handing over between cells must not abort with the spectrum-model mismatch assertion (m_spectrumModel == x.m_spectrumModel) in SpectrumValue.
During a handover the UE PHY is reconfigured to the target cell, which changes the spectrum model of its noise/interference PSDs. A downlink control reception associated with the previous configuration can complete after the reconfiguration, so LteUePhy::GenerateMixedCqiReport() must not divide two SpectrumValue objects with different spectrum models.
The test runs a compact mobile multi-UE A3-RSRP handover scenario with the control and data error models enabled (which trigger the handover/RLF activity that exposes the race) and verifies that the simulation runs to completion.
Definition at line 60 of file test-lte-handover-spectrum-model.cc.
| LteHandoverSpectrumModelTestCase::LteHandoverSpectrumModelTestCase | ( | ) |
Definition at line 70 of file test-lte-handover-spectrum-model.cc.
References ns3::TestCase::TestCase().
|
override |
Definition at line 75 of file test-lte-handover-spectrum-model.cc.
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 80 of file test-lte-handover-spectrum-model.cc.
References ns3::ApplicationContainer::Add(), ns3::NetDeviceContainer::Add(), ns3::Ipv4AddressHelper::Assign(), ns3::Create(), ns3::NodeContainer::Create(), ns3::CreateObject(), ns3::Simulator::Destroy(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Ipv4Address::GetAny(), ns3::Object::GetObject(), ns3::Ipv4StaticRoutingHelper::GetStaticRouting(), ns3::ApplicationHelper::Install(), ns3::MobilityHelper::Install(), ns3::PointToPointHelper::Install(), ns3::EpcTft::PacketFilter::localPortEnd, ns3::EpcTft::PacketFilter::localPortStart, ns3::TypeId::LookupByName(), ns3::MilliSeconds(), ns3::EpsBearer::NGBR_IMS, ns3::Simulator::Now(), NS_TEST_ASSERT_MSG_EQ, ns3::EpcTft::PacketFilter::remotePortEnd, ns3::EpcTft::PacketFilter::remotePortStart, ns3::Simulator::Run(), ns3::Seconds(), ns3::ApplicationHelper::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), ns3::RngSeedManager::SetRun(), ns3::RngSeedManager::SetSeed(), ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), and u.