]> Git Repo - linux.git/commitdiff
tools: selftests: riscv: Add test count for vstate_prctl
authorYong-Xuan Wang <[email protected]>
Fri, 20 Dec 2024 09:17:27 +0000 (17:17 +0800)
committerPalmer Dabbelt <[email protected]>
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 <[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]>
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) {
This page took 0.044484 seconds and 4 git commands to generate.