[kvm-unit-tests PATCH v2 0/3] riscv: sbi: Provide sbiret_report/check

Andrew Jones andrew.jones at linux.dev
Tue Feb 18 10:54:01 PST 2025


It's commom for SBI tests to expect a particular error return (or no
error, which case it expects the returned error to be SBI_SUCCESS).
When we don't get the expected error it'd be nice to output what we
did get. gen_report() in the SBI tests were doing that for the BASE
tests, improve it and export it to be used by all SBI tests.

v2:
 - Output expected error string with sbiret_report_error() [Clément]
 - Picked up Clément's tags except for patch3 since it changed a
   decent amount.

Andrew Jones (3):
  riscv: sbi: Improve gen_report
  riscv: sbi: Export sbiret_report/check
  riscv: sbi: Add sbiret_report_error

 riscv/sbi-tests.h | 36 ++++++++++++++++++++++++++++++++++++
 riscv/sbi.c       | 30 ++++++++----------------------
 2 files changed, 44 insertions(+), 22 deletions(-)

-- 
2.48.1




More information about the kvm-riscv mailing list