Fix shell commander test on Windows
This commit is contained in:
parent
a308359942
commit
c5ca39939d
@ -35,7 +35,6 @@ TestFuncResult test_commander_cmd_out_buf_success(void) {
|
||||
Str8 expected = wapp_str8_buf(64);
|
||||
char msg[] = "hello world";
|
||||
wapp_str8_copy_cstr_capped(&expected, msg);
|
||||
wapp_str8_concat_capped(&expected, &wapp_str8_lit_ro("\n"));
|
||||
|
||||
Str8List cmd = {0};
|
||||
wapp_str8_list_push_back(&cmd, &wapp_str8_node_from_cstr("echo"));
|
||||
@ -43,7 +42,7 @@ TestFuncResult test_commander_cmd_out_buf_success(void) {
|
||||
|
||||
CMDResult result = wapp_shell_commander_execute(SHELL_OUTPUT_CAPTURE, &buf, &cmd);
|
||||
bool succeeded = result.exited && result.exit_code == EXIT_SUCCESS &&
|
||||
result.error == SHELL_ERR_NO_ERROR && wapp_str8_equal(&buf, &expected);
|
||||
result.error == SHELL_ERR_NO_ERROR && wapp_str8_equal_to_count(&buf, &expected, strlen(msg));
|
||||
|
||||
return wapp_tester_result(succeeded);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user