mirror of
https://github.com/torvalds/linux.git
synced 2026-08-06 15:31:47 +02:00
Add KUnit tests for the kfifo data structure. They test the vast majority of macros defined in the kfifo header (include/linux/kfifo.h). These are inspired by the existing tests for the doubly linked list in lib/tests/list-test.c (previously at lib/list-test.c) [1]. Note that this patch depends on the patch that moves the KUnit tests on lib/ into lib/tests/ [2]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/list-test.c?h=v6.11-rc6 [2] https://lore.kernel.org/all/20240720181025.work.002-kees@kernel.org/ Signed-off-by: Diego Vieira <diego.daniel.professional@gmail.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Rae Moar <rmoar@google.com> Link: https://lore.kernel.org/r/20241202075545.3648096-5-davidgow@google.com Signed-off-by: Kees Cook <kees@kernel.org> |
||
|---|---|---|
| .. | ||
| module | ||
| bitfield_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 | ||
| Makefile | ||
| memcpy_kunit.c | ||
| overflow_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 | ||