Ensure stderr is piped to stdout to capture errors in output

This commit is contained in:
2024-06-17 00:18:27 +01:00
parent 8a91a0ec6b
commit 8ed372d938
2 changed files with 3 additions and 3 deletions

View File

@@ -17,8 +17,8 @@ TestFuncResult test_commander_cmd_success(void) {
}
TestFuncResult test_commander_cmd_failure(void) {
CMDResult result = wapp_shell_commander_execute(SHELL_OUTPUT_DISCARD, NULL, 0,
"grep", "2>&1");
CMDResult result =
wapp_shell_commander_execute(SHELL_OUTPUT_DISCARD, NULL, 0, "grep");
bool failed = result.exited && result.exit_code != EXIT_SUCCESS &&
result.error == SHELL_ERR_NO_ERROR;