]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix btf_dump padding test case
authorAndrii Nakryiko <andriin@fb.com>
Tue, 8 Oct 2019 23:10:08 +0000 (16:10 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 9 Oct 2019 22:38:36 +0000 (15:38 -0700)
commit9ab89d999e404344fbe2c7ecda29fc01ec644d2d
treef57b2f1c024d8461b12d43dc66fc0e7e1de13af2
parent02ae91b3f58c86a54272f8153c408c1f00216c94
selftests/bpf: Fix btf_dump padding test case

Existing padding test case for btf_dump has a good test that was
supposed to test padding generation at the end of a struct, but its
expected output was specified incorrectly. Fix this.

Fixes: 476eb023697e ("selftests/bpf: add btf_dump BTF-to-C conversion tests")
Reported-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191008231009.2991130-4-andriin@fb.com
tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c