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 <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Andy Chiu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 40384c8 commit 503465d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)