kunit_fail_current_test(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– kunit_fail_current_test β€” the Kernel API Manual, bestie edition πŸ’–

okay so welcome to the Kernel API Manual, specifically the page for kunit_fail_current_test(9), and honestly? she's a lil icon. sit down, grab a strawberry πŸ“, let's get into it.


✨ NAME ✨

kunit_fail_current_test β€” if a KUnit test is running, fail it. that's it. that's the whole vibe. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

kunit_fail_current_test (fmt , ... );

πŸŽ€ ARGUMENTS πŸŽ€

  • fmt β€” lowkey the manpage just says -- undescribed -- 😭 so like... bestie, we don't have lore on this one. it's there, it's a parameter, that's what we know. 🫢
  • ... β€” variable arguments, aka the little squad of extras that come along for the ride ✨

🌸 DESCRIPTION 🌸

so here's the tea: if a KUnit test is running in the current task, mark that test as failed. that's the whole job. she clocks in, she checks if there's a test running in the current task, and if there is β€” boom, that test is marked failed. main character energy, honestly. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

go read those next, iykyk 🧚


and that's the page!! source: ./include/kunit, dated October 2026, living in the Kernel API Manual β€” mwah, love u, go fail some tests (the controlled way) πŸ’œπŸŽ€πŸ’€

πŸ“¦ where this page comes from