EXPECT_LT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 EXPECT_LT(9) β€” the "is it actually smaller tho" check 🌸

okay so real talk, this one lives in the Kernel API Manual and it's one of the kselftest harness assertion macros. bestie, it's giving "tiny but mighty" and i'm obsessed πŸ’…


✨ NAME ✨

EXPECT_LT β€”

that's it. that's the whole name section. no description, no follow-up, no nothing. she said "my name is enough" and honestly? main character energy πŸ‘‘ like, the confidence. we love to see it.


🫢 SYNOPSIS 🫢

EXPECT_LT (expected , seen );

(yes the spacing is like that, don't @ me, that's literally how it's written, copy it exactly bestie πŸ’–)


πŸŽ€ ARGUMENTS πŸŽ€

  • expected β€” the value you expect to see. your hopes, your dreams, your predictions 🌈
  • seen β€” the value you actually measured. the reality check. the "well, we ran it" πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the whole entire deal, and it's literally one line:

EXPECT_LT(expected, measured): expected < measured

so it's checking that expected is less than measured. that's the vibe check. expected < measured, and if that's true you slay, and if it's not... well, it's an EXPECT, not an ASSERT, iykyk 😌 (EXPECT macros keep going after a failure, unlike the ASSERT family β€” but hey, that's a whole other manpage, go read ASSERT_LT(9) if you want the strict one).

it's fr fr just the < operator in a little fancy harness outfit. iconic. periodt. πŸ¦‹


πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad, assembled. all of these are literally listed, so here they are, all of them, no skipping, no cap:

like, that's the entire friend group. go read them, they're all bangers πŸ“


heads up bestie: this page is source-ified from the actual kselftest harness docs, so if anything looks weirdly terse, that's just how the kernel rolls. it's not you, it's the manpage πŸ’œ

and that's the page!! mwah πŸ’‹ sign-off time: this lil cutie came out of ./tools/testing/selftests and it's dated October 2026, manual section EXPECT_LT(9) β€” go forth and compare things, you're gonna do amazing 🧚✨

πŸ“¦ where this page comes from