summaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2025-04-04 01:08:41 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-04-05 08:56:32 +0300
commit9bae8f4f21689b96a4b4fc505740dd97b9142c41 (patch)
treec5f728222babc0f37d6eb0b111e67225874931c9 /lib/test_fortify/write_overflow-memcpy.c
parenta8662bcd2ff152bfbc751cab20f33053d74d0963 (diff)
downloadlinux-9bae8f4f21689b96a4b4fc505740dd97b9142c41.tar.xz
selftests/bpf: Make res_spin_lock test less verbose
Currently, the res_spin_lock test is too chatty as it constantly prints the test_run results for each iteration in each thread, so in case verbose output is requested or things go wrong, it will flood the logs of CI and other systems with repeated messages that offer no valuable insight. Reduce this by doing assertions when the condition actually flips, and proceed to break out and exit the threads. We still assert to mark the test as failed and print the expected and reported values. Suggested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20250403220841.66654-1-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions