linux/tools/testing/selftests/riscv/vector
Charlie Jenkins 511361fe7a selftests: riscv: Add braces around EXPECT_EQ()
EXPECT_EQ() expands to multiple lines, breaking up one-line if
statements. This issue was not present in the patch on the mailing list
but was instead introduced by the maintainer when attempting to fix up
checkpatch warnings. Add braces around EXPECT_EQ() to avoid the error
even though checkpatch suggests them to be removed:

validate_v_ptrace.c:626:17: error: ‘else’ without a previous ‘if’

Fixes: 3789d5eecd ("selftests: riscv: verify syscalls discard vector context")
Fixes: 30eb191c89 ("selftests: riscv: verify ptrace rejects invalid vector csr inputs")
Fixes: 849f05ae1e ("selftests: riscv: verify ptrace accepts valid vector csr values")
Signed-off-by: Charlie Jenkins <thecharlesjenkins@gmail.com>
Reviewed-and-tested-by: Sergey Matyukevich <geomatsi@gmail.com>
Link: https://patch.msgid.link/20260309-fix_selftests-v2-2-9d5a553a531e@gmail.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
2026-04-04 18:37:57 -06:00
..
.gitignore selftests: riscv: test ptrace vector interface 2026-02-09 15:27:33 -07:00
Makefile selftests: riscv: test ptrace vector interface 2026-02-09 15:27:33 -07:00
v_exec_initval_nolibc.c selftests: riscv: fix v_exec_initval_nolibc.c 2025-04-01 07:03:04 +00:00
v_helpers.c selftests: riscv: test ptrace vector interface 2026-02-09 15:27:33 -07:00
v_helpers.h selftests: riscv: test ptrace vector interface 2026-02-09 15:27:33 -07:00
v_initval.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
validate_v_ptrace.c selftests: riscv: Add braces around EXPECT_EQ() 2026-04-04 18:37:57 -06:00
vstate_exec_nolibc.c selftests: riscv: vstate_exec_nolibc: Use the regular prctl() function 2026-02-09 15:27:33 -07:00
vstate_prctl.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
vstate_ptrace.c selftests: riscv: Add test for the Vector ptrace interface 2025-11-19 09:19:28 -07:00