]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Better verification in test_tcpbpf
authorAndrey Ignatov <rdna@fb.com>
Thu, 12 Jul 2018 00:33:36 +0000 (17:33 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 14 Jul 2018 22:08:41 +0000 (00:08 +0200)
commitfe68a6105190986bf0ecc32588efe256f9a2cbac
tree2a5f06e211ac5eb6e7b6e2688fad7ad49a6c7129
parentac7a020d41c7248c252841791b6792ededc99ee1
selftests/bpf: Better verification in test_tcpbpf

Reduce amount of copy/paste for debug info when result is verified in
the test and keep that info together with values being checked so that
they won't get out of sync.

It also improves debug experience: instead of checking manually what
doesn't match in debug output for all fields, only unexpected field is
printed.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_tcpbpf_user.c