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
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) · 28 unmodified lines
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

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