]> 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)
commit631c50c49515b18bfc91b24d1d2e67e1ffd98626
treef57b2f1c024d8461b12d43dc66fc0e7e1de13af2
parent6276e88accf24331fb92b051d788ab6bc35d5322
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: cc6c47746513 ("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