Skip to content

Commit 78c09c0

Browse files
cris-mactmarinas
authored andcommitted
kselftest/arm64: signal: Skip SVE signal test if not enough VLs supported
On platform where SVE is supported but there are less than 2 VLs available the signal SVE change test should be skipped instead of failing. Reported-by: Andre Przywara <[email protected]> Tested-by: Andre Przywara <[email protected]> Cc: Mark Brown <[email protected]> Signed-off-by: Cristian Marussi <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 73e2d82 commit 78c09c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* supported and is expected to segfault.
77
*/
88

9+
#include <kselftest.h>
910
#include <signal.h>
1011
#include <ucontext.h>
1112
#include <sys/prctl.h>
@@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td)
4041
/* We need at least two VLs */
4142
if (nvls < 2) {
4243
fprintf(stderr, "Only %d VL supported\n", nvls);
44+
td->result = KSFT_SKIP;
4345
return false;
4446
}
4547

0 commit comments

Comments
 (0)