tools: selftests: riscv: Add pass message for v_initval_nolibc

Add the pass message after we successfully complete the test.

Fixes: 5c93c4c72fbc ("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:
Yong-Xuan Wang 2024-12-20 17:17:26 +08:00 committed by Palmer Dabbelt
parent 40384c840e
commit 503465d4dc
No known key found for this signature in database
GPG Key ID: 2E1319F35FBB1889

View File

@ -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;
}