%description: Test crash and startup operations on StandardHost. %inifile: omnetpp.ini [General] network = Test tkenv-plugin-path = ../../../etc/plugins ned-path = .;../../../../src;../../lib cmdenv-express-mode = false record-eventlog = true #omnetpp 5.0 - 5.1 compatibility: eventlog-file = "${resultdir}/${configname}-${runnumber}.elog" output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca" output-vector-file = "${resultdir}/${configname}-${runnumber}.vec" snapshot-file = "${resultdir}/${configname}-${runnumber}.sna" **.hasStatus = true **.scenarioManager.script = xmldoc("scenario.xml") *.host.hasTcp = true *.host.hasUdp = true *.host.hasSctp = true *.host.eth[0].csmacdSupport = true *.host.eth[1].csmacdSupport = false *.host.networkLayer.configurator.networkConfiguratorModule = "" %file: test.ned import inet.node.inet.StandardHost; import inet.common.lifecycle.LifecycleController; import inet.status.NodeStatus; import inet.common.scenario.ScenarioManager; network Test { submodules: scenarioManager: ScenarioManager; lifecycleController: LifecycleController; host: StandardHost { gates: ethg[2]; pppg[2]; } connections: host.ethg[0] <--> {datarate=10Mbps; delay=10us;} <--> host.ethg[1]; host.pppg[0] <--> {datarate=10Mbps; delay=10us;} <--> host.pppg[1]; } %file: scenario.xml %contains-regex: stdout Test.host crashing .* Test.host crashed .* Test.host starting up .* Test.host started %#-------------------------------------------------------------------------------------------------------------- %not-contains: stdout undisposed object: %not-contains: stdout -- check module destructor %#--------------------------------------------------------------------------------------------------------------