Experiments need to cleanup residual events on exit. Empty MemAccessTracingTest-dir removed.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1245 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
adrian
2012-05-17 17:02:13 +00:00
parent 34fbb932fd
commit ab4528c036
13 changed files with 33 additions and 12 deletions

View File

@ -93,6 +93,7 @@ bool CoolChecksumExperiment::run()
std::ofstream of("trace.pb");
if (of.fail()) {
log << "failed to write trace.pb" << endl;
sal::simulator.clearEvents(this);
return false;
}
trace.SerializeToOstream(&of);
@ -114,7 +115,7 @@ bool CoolChecksumExperiment::run()
if (!m_jc.getParam(param)) {
log << "Dying." << endl;
// communicate that we were told to die
sal::simulator.terminate(1); // "return (false);" ?
sal::simulator.terminate(1);
}
int id = param.getWorkloadID();
int instr_offset = param.msg.instr_offset();
@ -201,5 +202,6 @@ bool CoolChecksumExperiment::run()
sal::simulator.terminate();
#endif
// simulator continues to run
sal::simulator.clearEvents(this);
return true;
}