From: weiyu Date: Tue, 25 Feb 2020 03:13:44 +0000 (-0800) Subject: Redirect output after taking snapshots X-Git-Url: http://demsky.eecs.uci.edu/git/?p=c11tester.git;a=commitdiff_plain;h=e5014287e6e7c3ba1c0671edb379867d111b2931 Redirect output after taking snapshots --- diff --git a/model.cc b/model.cc index 5b5ccf70..f8f1259d 100644 --- a/model.cc +++ b/model.cc @@ -85,7 +85,6 @@ ModelChecker::ModelChecker() : parse_options(¶ms); initRaceDetector(); /* Configure output redirection for the model-checker */ - redirect_output(); install_trace_analyses(get_execution()); install_handler(); } @@ -294,6 +293,7 @@ void ModelChecker::finish_execution(bool more_executions) execution_number ++; if (more_executions) reset_to_initial_state(); + history->set_new_exec_flag(); } @@ -384,6 +384,8 @@ static void runChecker() { void ModelChecker::startChecker() { startExecution(get_system_context(), runChecker); snapshot = take_snapshot(); + + redirect_output(); initMainThread(); }