Skip to content

Commit

Permalink
ezsat: Fix handling of error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloquinte committed Apr 9, 2024
1 parent e16cf96 commit ccf0453
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/ezsat/ezcmdline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ bool ezCmdlineSAT::solver(const std::vector<int> &modelExpressions, std::vector<
}
}
};
if (Yosys::run_command(sat_command, line_callback) != 0) {
int return_code = Yosys::run_command(sat_command, line_callback);
if (return_code != 0 && return_code != 10 && return_code != 20) {
Yosys::log_cmd_error("Shell command failed!\n");
}

Expand Down

0 comments on commit ccf0453

Please sign in to comment.