mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
ezsat: Fix handling of error codes
This commit is contained in:
parent
e16cf967fd
commit
ccf04533e6
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
Yosys::log_cmd_error("Shell command failed!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue