From: Eric Pouech Subject: Re: [PATCH] programs/cmd/test: don't output more data than available Message-Id: Date: Tue, 25 Jan 2022 08:29:06 +0100 In-Reply-To: <164266561041.7330.4598339233728078730.stgit@euterpe> References: <164266561041.7330.4598339233728078730.stgit@euterpe> 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 > > --- > 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) > >