Ensure stderr is piped to stdout to capture errors in output
This commit is contained in:
1 parent
8a91a0ec6b
commit
8ed372d938
2 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user