Replay logging almost done. Only thing missing is stdout.

This commit is contained in:
2022-03-11 19:01:02 -05:00
parent 3c2f93759b
commit cfd299006f
4 changed files with 83 additions and 57 deletions

View File

@@ -474,10 +474,10 @@ public:
drv::ReplayPlayer player;
player.open_logfile(fn);
while (true) {
drv::ReplayPlayer::Error err = player.step();
if (err != drv::ReplayPlayer::ERR_NONE) {
player.print_error(std::cerr);
return (err != drv::ReplayPlayer::ERR_LOGFILE_EOF) ? 1 : 0;
drv::ReplayPlayer::Status st = player.step();
if (st != drv::ReplayPlayer::ST_REPLAYING) {
player.print_status(std::cerr);
return (st == drv::ReplayPlayer::ST_CLEAN_EXIT) ? 0 : 1;
}
}
}
@@ -567,6 +567,9 @@ public:
SSL_CTX_free(ssl_ctx_with_root_certs_);
SSL_CTX_free(ssl_ctx_with_server_certs_);
DrivenEngine::set(nullptr);
recorder_.clean_exit();
return 0;
}
};