errorCodeToMsg

This commit is contained in:
maxdcb
2026-04-30 14:17:48 +02:00
parent 853edb4d33
commit 2458165b9f
28 changed files with 2754 additions and 2391 deletions
+3
View File
@@ -108,6 +108,9 @@ int main()
C2Message ret;
branchOk &= test_helpers::expect(shell.process(message, ret) == 0, "missing shell process should return through C2Message");
branchOk &= test_helpers::expect(ret.errorCode() == 1, "missing shell program should set error code 1");
std::string errorMsg;
branchOk &= test_helpers::expect(shell.errorCodeToMsg(ret, errorMsg) == 0, "missing shell program should map error text");
branchOk &= test_helpers::expect(errorMsg.find("Failed to start shell") != std::string::npos, "missing shell program should expose process error text");
ok &= branchOk;
}
#endif