]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix test_progs's parsing of test numbers
authorAndrii Nakryiko <andriin@fb.com>
Sat, 14 Mar 2020 01:39:31 +0000 (18:39 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 17 Mar 2020 18:30:46 +0000 (19:30 +0100)
commit5fb4800fbb2a4ddab66383199fa8fee494354315
tree5776c7a29cbec9405fbde8d5cba00412fce235e4
parent72b3987026b0bd56e80ab8ebf23bfe2c33df63af
selftests/bpf: Fix test_progs's parsing of test numbers

When specifying disjoint set of tests, test_progs doesn't set skipped test's
array elements to false. This leads to spurious execution of tests that should
have been skipped. Fix it by explicitly initializing them to false.

Fixes: 73e73d5e2ee3 ("selftests/bpf: add sub-tests support for test_progs")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200314013932.4035712-2-andriin@fb.com
tools/testing/selftests/bpf/test_progs.c