]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
tools: selftests: riscv: Add test count for vstate_prctl
authorYong-Xuan Wang <yongxuan.wang@sifive.com>
Fri, 20 Dec 2024 09:17:27 +0000 (17:17 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 9 Jan 2025 17:35:40 +0000 (09:35 -0800)
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>
tools/testing/selftests/riscv/vector/vstate_prctl.c

index 895177f6bf4c865e894b16ed8662184f0c20b30f..40b3bffcbb409d673b498cf3eeabee7a126d2e2c 100644 (file)
@@ -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) {