Skip to content

Commit 503465d

Browse files
yong-xuanpalmer-dabbelt
authored andcommitted
tools: selftests: riscv: Add pass message for v_initval_nolibc
Add the pass message after we successfully complete the test. Fixes: 5c93c4c ("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>
1 parent 40384c8 commit 503465d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/testing/selftests/riscv/vector/v_initval_nolibc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ int main(void)
2525
unsigned long vl;
2626
char *datap, *tmp;
2727

28+
ksft_set_plan(1);
29+
2830
datap = malloc(MAX_VSIZE);
2931
if (!datap) {
3032
ksft_test_result_fail("fail to allocate memory for size = %d\n", MAX_VSIZE);
@@ -63,6 +65,8 @@ int main(void)
6365
}
6466

6567
free(datap);
68+
69+
ksft_test_result_pass("tests for v_initval_nolibc pass\n");
6670
ksft_exit_pass();
6771
return 0;
6872
}

0 commit comments

Comments
 (0)