Re: [PATCH v6 2/2] scanf: break kunit into test cases

2025-02-11 Thread Tamir Duberstein
On Tue, Feb 11, 2025 at 6:54 AM Petr Mladek wrote: > > On Mon 2025-02-10 13:13:49, Tamir Duberstein wrote: > > Use `suite_init` and move some tests into `scanf_test_cases`. This > > gives us nicer output in the event of a failure. > > Hmm, simulate the following failure in the original test module

Re: [PATCH v6 2/2] scanf: break kunit into test cases

2025-02-11 Thread Petr Mladek
On Mon 2025-02-10 13:13:49, Tamir Duberstein wrote: > Use `suite_init` and move some tests into `scanf_test_cases`. This > gives us nicer output in the event of a failure. Hmm, simulate the following failure in the original test module: diff --git a/lib/test_scanf.c b/lib/test_scanf.c index 44f8

[PATCH v6 2/2] scanf: break kunit into test cases

2025-02-10 Thread Tamir Duberstein
Use `suite_init` and move some tests into `scanf_test_cases`. This gives us nicer output in the event of a failure. Reviewed-by: David Gow Signed-off-by: Tamir Duberstein --- lib/scanf_kunit.c | 88 ++- 1 file changed, 48 insertions(+), 40 del