]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: remove logic duplication in test_verifier
authorAndrii Nakryiko <andriin@fb.com>
Fri, 12 Jul 2019 17:44:41 +0000 (10:44 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Jul 2019 23:01:04 +0000 (01:01 +0200)
commit2d3d0150e388352981747fa66e6e999c2982f7e3
tree5a2b9581879f5820945f1a8f9ec35094f1c2c5b4
parent4d64521c1d711db22a965435015d82fc1e7fef8b
selftests/bpf: remove logic duplication in test_verifier

test_verifier tests can specify single- and multi-runs tests. Internally
logic of handling them is duplicated. Get rid of it by making single run
retval/data specification to be a first run spec.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Cc: Krzesimir Nowak <krzesimir@kinvolk.io>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c