diff options
author | 2025-03-07 17:08:58 -0500 | |
---|---|---|
committer | 2025-03-13 10:26:33 -0700 | |
commit | 034bee685fd48101aff31591273258be0377b1ef (patch) | |
tree | 75ce3e18c3531271565e61da4ae6a53eb563af78 /scripts/generate_rust_analyzer.py | |
parent | printf: break kunit into test cases (diff) | |
download | wireguard-linux-034bee685fd48101aff31591273258be0377b1ef.tar.xz wireguard-linux-034bee685fd48101aff31591273258be0377b1ef.zip |
printf: implicate test line in failure messages
This improves the failure output by pointing to the failing line at the
top level of the test, e.g.:
# test_number: EXPECTATION FAILED at lib/printf_kunit.c:103
lib/printf_kunit.c:167: vsnprintf(buf, 256, "%#-12x", ...) wrote '0x1234abcd ', expected '0x1234abce '
# test_number: EXPECTATION FAILED at lib/printf_kunit.c:142
lib/printf_kunit.c:167: kvasprintf(..., "%#-12x", ...) returned '0x1234abcd ', expected '0x1234abce '
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250307-printf-kunit-convert-v6-3-4d85c361c241@gmail.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions