selftests/bpf: Make res_spin_lock AA test condition stronger
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Thu, 10 Apr 2025 17:00:23 +0000 (10:00 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 10 Apr 2025 19:45:37 +0000 (12:45 -0700)
commit1ddb9ad2ac6e527f220d5821ad54d37d3f9d122a
tree69f2f2baec33f28a6d57ec6129c162c37a891c44
parent7bbb38f1f920e761d56fec257bc8df67566084b9
selftests/bpf: Make res_spin_lock AA test condition stronger

Let's make sure that we see a EDEADLK and ETIMEDOUT whenever checking
for the AA tests (in case of simple AA and AA after exhausting 31
entries).

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250410170023.2670683-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/res_spin_lock.c