mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
selftests/bpf: fix clearing buffered output between tests/subtests
Clear buffered output once test or subtests finishes even if test was
successful. Not doing this leads to accumulation of output from previous
tests and on first failed tests lots of irrelevant output will be
dumped, greatly confusing things.
v1->v2: fix Fixes tag, add more context to patch
Fixes: 3a516a0a3a
("selftests/bpf: add sub-tests support for test_progs")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
116e7dbe34
commit
bf8ff0f8cf
1 changed files with 1 additions and 1 deletions
|
@ -46,8 +46,8 @@ static void dump_test_log(const struct prog_test_def *test, bool failed)
|
|||
if (env.log_buf[env.log_cnt - 1] != '\n')
|
||||
fprintf(stdout, "\n");
|
||||
}
|
||||
env.log_cnt = 0;
|
||||
}
|
||||
env.log_cnt = 0;
|
||||
}
|
||||
|
||||
void test__end_subtest()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue