[PATCH 0/2] Add string test to SBI unit test suite
cp0613 at linux.alibaba.com
cp0613 at linux.alibaba.com
Fri Mar 6 01:44:23 PST 2026
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
--
2.50.1
More information about the opensbi
mailing list