bpf, selftests: Fold test_current_pid_tgid_new_ns into test_progs.
authorCarlos Neira <cneirabustos@gmail.com>
Thu, 14 Jan 2021 14:10:36 +0000 (11:10 -0300)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 20 Jan 2021 22:10:35 +0000 (14:10 -0800)
commit09c02d553c49fa6965fe39e28355b62f6ad02792
tree02c1d4dfd566853a39280166798d68915ad08542
parent0fe2f273ab892bbba3f8d85e3f237bc0802e5709
bpf, selftests: Fold test_current_pid_tgid_new_ns into test_progs.

Currently tests for bpf_get_ns_current_pid_tgid() are outside test_progs.
This change folds test cases into test_progs.

Changes from v11:

 - Fixed test failure is not detected.
 - Removed EXIT(3) call as it will stop test_progs execution.

Signed-off-by: Carlos Neira <cneirabustos@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210114141033.GA17348@localhost
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c
tools/testing/selftests/bpf/progs/test_ns_current_pid_tgid.c
tools/testing/selftests/bpf/test_current_pid_tgid_new_ns.c [deleted file]