diff options
author | Yong-Xuan Wang <yongxuan.wang@sifive.com> | 2024-12-20 10:17:27 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2025-01-09 18:35:40 +0100 |
commit | ebdc22c51acee963e26cacb2cb63f8fa2f483808 (patch) | |
tree | 095f4cd1a015d4280a1276420d6d0b6c1a5f8cf0 /tools/testing | |
parent | tools: selftests: riscv: Add pass message for v_initval_nolibc (diff) | |
download | linux-ebdc22c51acee963e26cacb2cb63f8fa2f483808.tar.xz linux-ebdc22c51acee963e26cacb2cb63f8fa2f483808.zip |
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: 7cf6198ce22d ("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>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/riscv/vector/vstate_prctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/riscv/vector/vstate_prctl.c b/tools/testing/selftests/riscv/vector/vstate_prctl.c index 895177f6bf4c..40b3bffcbb40 100644 --- a/tools/testing/selftests/riscv/vector/vstate_prctl.c +++ b/tools/testing/selftests/riscv/vector/vstate_prctl.c @@ -76,6 +76,8 @@ int main(void) long flag, expected; long rc; + ksft_set_plan(1); + pair.key = RISCV_HWPROBE_KEY_IMA_EXT_0; rc = riscv_hwprobe(&pair, 1, 0, NULL, 0); if (rc < 0) { |