]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
tools: selftests: riscv: Add pass message for v_initval_nolibc
authorYong-Xuan Wang <yongxuan.wang@sifive.com>
Fri, 20 Dec 2024 09:17:26 +0000 (17:17 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 9 Jan 2025 17:35:36 +0000 (09:35 -0800)
Add the pass message after we successfully complete the test.

Fixes: 5c93c4c72fbc ("selftests: Test RISC-V Vector's first-use handler")
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-2-yongxuan.wang@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
tools/testing/selftests/riscv/vector/v_initval_nolibc.c

index 1dd94197da30cc5d17c3aa731e6a50b48d3569f4..6174ffe016dc11a974c8929a7d3b98f4e7dd563a 100644 (file)
@@ -25,6 +25,8 @@ int main(void)
        unsigned long vl;
        char *datap, *tmp;
 
+       ksft_set_plan(1);
+
        datap = malloc(MAX_VSIZE);
        if (!datap) {
                ksft_test_result_fail("fail to allocate memory for size = %d\n", MAX_VSIZE);
@@ -63,6 +65,8 @@ int main(void)
        }
 
        free(datap);
+
+       ksft_test_result_pass("tests for v_initval_nolibc pass\n");
        ksft_exit_pass();
        return 0;
 }