diff --git a/tests/shell_commander/test_shell_commander.c b/tests/shell_commander/test_shell_commander.c index 569121f..70f1081 100644 --- a/tests/shell_commander/test_shell_commander.c +++ b/tests/shell_commander/test_shell_commander.c @@ -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); }