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)
commit76790c7c66ccc8695afc75e73f54c0ca86267ed2
treef57b2f1c024d8461b12d43dc66fc0e7e1de13af2
parent6e05abc9abd5dc4dc9e6b98e01564f4a2659f0fe
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: 2d2a3ad872f8 ("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