[PATCH 0/2] Add string test to SBI unit test suite
Anup Patel
anup at brainfault.org
Mon Apr 6 05:29:24 PDT 2026
On Fri, Mar 6, 2026 at 3:14 PM <cp0613 at linux.alibaba.com> wrote:
>
> From: Chen Pei <cp0613 at linux.alibaba.com>
>
> The string tests were added to the SBI SBI unit test framework; then,
> it was discovered that the implementation of sbi_strchr was not aligned
> with the C standard behavior, which was fixed in the second patch.
>
> Chen Pei (2):
> lib: tests: Add test for string
> lib: Fix sbi_strchr to correctly handle null terminator search
>
> lib/sbi/sbi_string.c | 11 +-
> lib/sbi/tests/objects.mk | 3 +
> lib/sbi/tests/sbi_string_test.c | 372 ++++++++++++++++++++++++++++++++
> 3 files changed, 380 insertions(+), 6 deletions(-)
> create mode 100644 lib/sbi/tests/sbi_string_test.c
>
LGTM.
Reviewed-by: Anup Patel <anup at brainfault.org>
Applied this series to the riscv/opensbi repo.
Thanks,
Anup
More information about the opensbi
mailing list