mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-30 13:05:23 -05:00
tests: Fix test failures after library update
This commit is contained in:
@@ -98,12 +98,13 @@ int main(int argc, char **argv) {
|
||||
if (missingComments)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
if (!runtime.executeString(patternFile.readString(), "<Source Code>")) {
|
||||
auto exitCode = runtime.executeString(patternFile.readString(), "<Source Code>");
|
||||
if (exitCode != 0) {
|
||||
if (const auto &evalError = runtime.getEvalError(); evalError.has_value()) {
|
||||
fmt::println("{}:{} {}", evalError->line, evalError->column, evalError->message);
|
||||
}
|
||||
|
||||
return EXIT_FAILURE;
|
||||
return exitCode;
|
||||
}
|
||||
|
||||
if (!runtime.getPatterns().empty()) {
|
||||
|
||||
Reference in New Issue
Block a user