mirror of
https://github.com/torvalds/linux.git
synced 2026-08-07 16:03:49 +02:00
Add KUnit tests for the seq_buf API to ensure its correctness and prevent future regressions, covering the following functions: - seq_buf_init() - DECLARE_SEQ_BUF() - seq_buf_clear() - seq_buf_puts() - seq_buf_putc() - seq_buf_printf() - seq_buf_get_buf() - seq_buf_commit() $ tools/testing/kunit/kunit.py run seq_buf =================== seq_buf (9 subtests) =================== [PASSED] seq_buf_init_test [PASSED] seq_buf_declare_test [PASSED] seq_buf_clear_test [PASSED] seq_buf_puts_test [PASSED] seq_buf_puts_overflow_test [PASSED] seq_buf_putc_test [PASSED] seq_buf_printf_test [PASSED] seq_buf_printf_overflow_test [PASSED] seq_buf_get_buf_commit_test ===================== [PASSED] seq_buf ===================== Link: https://lore.kernel.org/r/20250717085156.work.363-kees@kernel.org Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Kees Cook <kees@kernel.org> |
||
|---|---|---|
| .. | ||
| module | ||
| bitfield_kunit.c | ||
| blackhole_dev_kunit.c | ||
| checksum_kunit.c | ||
| cmdline_kunit.c | ||
| cpumask_kunit.c | ||
| crc_kunit.c | ||
| fortify_kunit.c | ||
| hashtable_test.c | ||
| is_signed_type_kunit.c | ||
| kfifo_kunit.c | ||
| kunit_iov_iter.c | ||
| list-test.c | ||
| longest_symbol_kunit.c | ||
| Makefile | ||
| memcpy_kunit.c | ||
| overflow_kunit.c | ||
| printf_kunit.c | ||
| randstruct_kunit.c | ||
| scanf_kunit.c | ||
| seq_buf_kunit.c | ||
| siphash_kunit.c | ||
| slub_kunit.c | ||
| stackinit_kunit.c | ||
| string_helpers_kunit.c | ||
| string_kunit.c | ||
| test_bits.c | ||
| test_fprobe.c | ||
| test_hash.c | ||
| test_kprobes.c | ||
| test_linear_ranges.c | ||
| test_list_sort.c | ||
| test_sort.c | ||
| usercopy_kunit.c | ||
| util_macros_kunit.c | ||