Commit 78d2d816 authored by Mark Brown's avatar Mark Brown Committed by Will Deacon

selftests: arm64: Use a define for the number of SVE ptrace tests to be run

Partly in preparation for future refactoring move from hard coding the
number of tests in main() to putting #define at the top of the source
instead.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210913125505.52619-2-broonie@kernel.orgSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 5816b3e6
......@@ -19,6 +19,8 @@
#include "../../kselftest.h"
#define EXPECTED_TESTS 20
/* <linux/elf.h> and <sys/auxv.h> don't like each other, so: */
#ifndef NT_ARM_SVE
#define NT_ARM_SVE 0x405
......@@ -313,7 +315,7 @@ int main(void)
pid_t child;
ksft_print_header();
ksft_set_plan(20);
ksft_set_plan(EXPECTED_TESTS);
if (!(getauxval(AT_HWCAP) & HWCAP_SVE))
ksft_exit_skip("SVE not available\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment