Re: [PATCH bpf-next 0/3] selftests/bpf: switch test_progs back to stdio

2019-08-02 Thread Stanislav Fomichev
On 08/02, Andrii Nakryiko wrote: > > On 8/2/19 10:17 AM, Stanislav Fomichev wrote: > > 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 > >

Re: [PATCH bpf-next 0/3] selftests/bpf: switch test_progs back to stdio

2019-08-02 Thread Andrii Nakryiko
On 8/2/19 10:17 AM, Stanislav Fomichev wrote: > 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 w

[PATCH bpf-next 0/3] selftests/bpf: switch test_progs back to stdio

2019-08-02 Thread Stanislav Fomichev
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 subt