Commit 19aa37f
committed
selftests/bpf: Skip stream_deadlock test if unsupported
Test stream_deadlock currently fails on 32-bit armhf:
run_subtest:PASS:obj_open_mem 0 nsec
run_subtest:PASS:unexpected_load_failure 0 nsec
do_prog_test_run:PASS:bpf_prog_test_run 0 nsec
get_stream:FAIL:stream read unexpected stream read: actual 0 <= expected 0
run_subtest:FAIL:1201 Unexpected retval from get_stream(): 0, errno = 95
torvalds#399/3 stream_success/stream_deadlock:FAIL
This fails because the test depends on arch_bpf_stack_walk() i.e. support
for BPF Exceptions, which is only availble on x86_64, arm64 and s390x.
Update the BPF source with tags for these 3 archs so the test is skipped
when unsupported, as with test stream_cond_break and "may_goto" support:
root@qemu-armhf:/usr/libexec/kselftests-bpf# ./test_progs -t stream
torvalds#398/1 stream_failure/stream_vprintk_null_arg:OK
torvalds#398/2 stream_failure/stream_vprintk_scalar_arg:OK
torvalds#398/3 stream_failure/stream_vprintk_string_arg:OK
torvalds#398 stream_failure:OK
torvalds#399/1 stream_success/stream_exhaust:OK
torvalds#399/2 stream_success/stream_cond_break:SKIP
torvalds#399/3 stream_success/stream_deadlock:SKIP
torvalds#399/4 stream_success/stream_syscall:OK
torvalds#399 stream_success:OK (SKIP: 2/4)
torvalds#400 stream_syscall:OK
Summary: 3/5 PASSED, 2 SKIPPED, 0 FAILED
Signed-off-by: Tony Ambardar <[email protected]>1 parent 1d0f093 commit 19aa37f
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments