Reboot-test optimized

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1833 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hellwig
2012-10-25 12:39:09 +00:00
parent 1eb8ac6870
commit 12f3550428

View File

@ -211,14 +211,15 @@ bool RegressionTest::run()
file << "Before Reboot-Addr: 0x" << hex << beforeReboot << dec << endl;
simulator.reboot();
bpReboot.setWatchInstructionPointer(beforeReboot);
simulator.addListener(&bpReboot);
simulator.reboot();
simulator.resume();
long afterReboot = bpReboot.getTriggerInstructionPointer();
file << "After Reboot-Addr: 0x" << hex << beforeReboot << dec << endl;
file << "After Reboot-Addr: 0x" << hex << afterReboot << dec << endl;
if (beforeReboot == afterReboot){
file << "Reboot-Test SUCCESSFUL." << endl;