projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5816b3e
)
selftests: arm64: Use a define for the number of SVE ptrace tests to be run
author
Mark Brown
<broonie@kernel.org>
Mon, 13 Sep 2021 12:54:58 +0000
(13:54 +0100)
committer
Will Deacon
<will@kernel.org>
Wed, 29 Sep 2021 13:40:31 +0000
(14:40 +0100)
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: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20210913125505.52619-2-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/sve-ptrace.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/arm64/fp/sve-ptrace.c
b/tools/testing/selftests/arm64/fp/sve-ptrace.c
index 612d3899614ac6be12c02696c204fe3a4252b96a..7f7ed1c9686760afc0805f61d5fb8e0151a44219 100644
(file)
--- a/
tools/testing/selftests/arm64/fp/sve-ptrace.c
+++ b/
tools/testing/selftests/arm64/fp/sve-ptrace.c
@@
-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");