]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Switch test_tcpbpf_user to cgroup_helpers
authorAndrey Ignatov <rdna@fb.com>
Thu, 12 Jul 2018 00:33:35 +0000 (17:33 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 14 Jul 2018 22:08:41 +0000 (00:08 +0200)
commit95041352dc50fe73dda49b9429e4033fbaad43cd
tree19c9059a137c4e9639e33c54e562b1fcce9276b5
parent9e842f800b9d280178ce1eb3400b51070d55b013
selftests/bpf: Switch test_tcpbpf_user to cgroup_helpers

Switch to cgroup_helpers to simplify the code and fix cgroup cleanup:
before cgroup was not cleaned up after the test.

It also removes SYSTEM macro, that only printed error, but didn't
terminate the test.

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/Makefile
tools/testing/selftests/bpf/test_tcpbpf_user.c