Skip to content

Commit ebdc22c

Browse files
yong-xuanpalmer-dabbelt
authored andcommitted
tools: selftests: riscv: Add test count for vstate_prctl
Add the test count to drop the warning message. "Planned tests != run tests (0 != 1)" Fixes: 7cf6198 ("selftests: Test RISC-V Vector prctl interface") 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 503465d commit ebdc22c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ int main(void)
7676
long flag, expected;
7777
long rc;
7878

79+
ksft_set_plan(1);
80+
7981
pair.key = RISCV_HWPROBE_KEY_IMA_EXT_0;
8082
rc = riscv_hwprobe(&pair, 1, 0, NULL, 0);
8183
if (rc < 0) {

0 commit comments

Comments
 (0)