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.
Unified · Split
| @@ -6,6 +6,7 @@ · 5 unmodified lines | ||
| 6 | 6 | * supported and is expected to segfault. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | +#include <kselftest.h> | |
| 9 | 10 | #include <signal.h> |
| 10 | 11 | #include <ucontext.h> |
| 11 | 12 | #include <sys/prctl.h> |
| @@ -40,6 +41,7 @@ static bool sve_get_vls(struct tdescr *td) · 28 unmodified lines | ||
| 40 | 41 | /* We need at least two VLs */ |
| 41 | 42 | if (nvls < 2) { |
| 42 | 43 | fprintf(stderr, "Only %d VL supported\n", nvls); |
| 44 | + td->result = KSFT_SKIP; | |
| 43 | 45 | return false; |
| 44 | 46 | } |
| 45 | 47 | |