%description: tests that end() works from activity(), and finish() gets called TODO: should also test that simulation of other modules goes on %module: {Module} class {Module} : public cSimpleModule { Module_Class_Members({Module},cSimpleModule,32768); virtual void activity(); virtual void finish(); }; Define_Module({Module}); void {Module}::activity() { wait(1.0); wait(1.0); end(); ev << "after end\n"; wait(1.0); ev << "event after end\n"; } void {Module}::finish() { ev << "finish called\n"; } %contains: stdout finish called %not-contains: stdout after end %not-contains: stdout event after end