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