Skip to content
Commit 682cdbdc authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

Merge branch 'test_progs-stdio'



Stanislav Fomichev says:

====================
I was looking into converting test_sockops* to test_progs framework
and that requires using cgroup_helpers.c which rely on stdio/stderr.
Let's use open_memstream to override stdout into buffer during
subtests instead of custom test_{v,}printf wrappers. That lets
us continue to use stdio in the subtests and dump it on failure
if required.

That would also fix bpf_find_map which currently uses printf to
signal failure (missed during test_printf conversion).
====================

Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parents 8c303960 16e910d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment