%description: Test that the simulation exits gracefully if there's an error during initializing the network. - exit code must be 1 (not zero and different from crash exit code) - nothing should be printed after "End" message and the error message (Note "$") %module: Foo class Foo : public cSimpleModule { public: virtual void initialize() override {throw std::range_error("oops");} virtual void handleMessage(cMessage *msg) override { } }; Define_Module(Foo); %exitcode: 1 %contains-regex: stderr std::range_error: oops %contains: stdout End.