mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
tools: selftests: riscv: Add pass message for v_initval_nolibc
Add the pass message after we successfully complete the test.
Fixes: 5c93c4c72f ("selftests: Test RISC-V Vector's first-use handler")
Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Andy Chiu <AndybnAC@gmail.com>
Link: https://lore.kernel.org/r/20241220091730.28006-2-yongxuan.wang@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
40384c840e
commit
503465d4dc
|
|
@ -25,6 +25,8 @@ int main(void)
|
|||
unsigned long vl;
|
||||
char *datap, *tmp;
|
||||
|
||||
ksft_set_plan(1);
|
||||
|
||||
datap = malloc(MAX_VSIZE);
|
||||
if (!datap) {
|
||||
ksft_test_result_fail("fail to allocate memory for size = %d\n", MAX_VSIZE);
|
||||
|
|
@ -63,6 +65,8 @@ int main(void)
|
|||
}
|
||||
|
||||
free(datap);
|
||||
|
||||
ksft_test_result_pass("tests for v_initval_nolibc pass\n");
|
||||
ksft_exit_pass();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user