History

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.

Cristian Marussi committed 4 years ago

Commit 78c09c01 parent 73e2d821 file · +2 −0Browse files

Unified · Split

tools/testing/selftests/arm64/signal/testcases/fake_sigreturn_sve_change_vl.c+2−0
@@ -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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t