[PATCH] programs/cmd/test: don't output more data than available
Eric Pouech
eric.pouech at orange.fr
Tue Jan 25 01:29:06 CST 2022
Hi Alexandre,
what's the status of this patch?
A+
Le 20/01/2022 à 09:00, Eric Pouech a écrit :
> Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
>
> ---
> programs/cmd/tests/batch.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/programs/cmd/tests/batch.c b/programs/cmd/tests/batch.c
> index 162e9cfa151..0b48d7fa039 100644
> --- a/programs/cmd/tests/batch.c
> +++ b/programs/cmd/tests/batch.c
> @@ -344,8 +344,8 @@ static void test_output(const char *out_data, DWORD out_size, const char *exp_da
> }
> }
>
> - ok(exp_ptr >= exp_data+exp_size, "unexpected end of output in line %d, missing %s\n", line, exp_ptr);
> - ok(out_ptr >= out_data+out_size, "too long output, got additional %s\n", out_ptr);
> + ok(exp_ptr >= exp_data+exp_size, "unexpected end of output in line %d, missing %.*s\n", line, exp_data + exp_size - exp_ptr, exp_ptr);
> + ok(out_ptr >= out_data+out_size, "too long output, got additional %.*s\n", out_data + out_size - out_ptr, out_ptr);
> }
>
> static void run_test(const char *cmd_data, DWORD cmd_size, const char *exp_data, DWORD exp_size)
>
>
More information about the wine-devel
mailing list