Kees Cook
fc07839203
seq_buf: Introduce KUnit tests
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>
2025-07-19 23:03:24 -07:00
..
2025-03-10 11:54:13 +01:00
2025-02-10 18:25:39 -08:00
2025-03-26 21:48:21 -07:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-05-21 15:40:17 -07:00
2025-07-14 22:43:52 -07:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-03-27 19:06:07 -07:00
2025-07-19 23:03:24 -07:00
2025-02-10 18:25:39 -08:00
2025-05-08 09:42:05 -07:00
2025-04-29 09:29:33 -04:00
2025-05-08 09:42:40 -07:00
2025-03-14 13:56:15 -07:00
2025-07-19 23:03:24 -07:00
2025-02-10 18:25:39 -08:00
2025-04-11 17:32:39 -07:00
2025-04-30 21:57:09 +02:00
2025-02-10 18:25:39 -08:00
2025-03-24 15:18:08 -07:00
2025-04-29 15:58:38 -04:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-02-10 18:25:39 -08:00
2025-04-28 10:32:43 -07:00
2025-02-10 18:25:39 -08:00