Re: [PATCH] lib/tests: extend cmdline next_arg() coverage with mixed tokens
From: Andy Shevchenko
Date: Mon Mar 16 2026 - 17:25:35 EST
On Tue, Mar 17, 2026 at 02:57:49AM +0545, Shuvam Pandey wrote:
> The cmdline KUnit suite now covers quoted values and the bare quote
> regression path in next_arg(), but it still does not exercise a mixed
> sequence containing an empty value, a bare token, and a quoted value
> with '='.
>
> Andy Shevchenko suggested covering a sequence such as
> "bbb= jjj kkk=\"a=b\"". Add that case so the suite checks all three
> forms in one parse stream.
>
> Validated with the arm64 cmdline KUnit suite and a W=1 rebuild of
> lib/tests/cmdline_kunit.o.
Thanks!
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Andrew, I believe it can be folded into the original patch.
--
With Best Regards,
Andy Shevchenko