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 <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-3-yongxuan.wang@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 503465d commit ebdc22c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)