summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorIhor Solodrai <ihor.solodrai@linux.dev>2026-09-29 16:46:06 -0700
committerAlexei Starovoitov <ast@kernel.org>2026-09-30 09:04:25 +0000
commit1c36a1a41a47c6ebd8d64bd76a67e74d7a39ee19 (patch)
tree50143c499e2eeea24e09489101eca7ad0675fe71 /include/linux/timerqueue.h
parent76ea312390211c03dcba741b48ef82c861ff6a4c (diff)
downloadlinux-next-1c36a1a41a47c6ebd8d64bd76a67e74d7a39ee19.tar.gz
linux-next-1c36a1a41a47c6ebd8d64bd76a67e74d7a39ee19.zip
selftests/bpf: Add ASSERT_TEXT_EQ()
Text comparisons in test_progs repeat the same two statements: compare_text_to_expected() to print the diff, then an assert to record the failure. ASSERT_OK() on the raw return also appends a stale errno to the failure output. Add ASSERT_TEXT_EQ() after ASSERT_HAS_SUBSTR(). The assert cannot move into compare_text_to_expected() itself: the helper is linked into standalone binaries without test__fail(), and the framework unit test checks the raw mismatch return. Convert the 3 test_progs call sites plus test_ctx__dump_and_compare(), so multi-line dumps fail with a diff; prog_tests_framework.c keeps calling the helper directly. Suggested-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20260929234608.48503-4-ihor.solodrai@linux.dev
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions