EXPECT_TRUE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– EXPECT_TRUE(9) πŸ’–

okay so bestie, we're looking at EXPECT_TRUE, a kernel API manual page from the Kernel API Manual β€” yes that's the manual name, it lives in section 9, and honestly? it's giving "tiny function, big harness energy" ✨

It's one of those kselftest harness macros that checks stuff for you and then keeps going instead of bailing, iykyk.


🌸 NAME 🌸

EXPECT_TRUE β€” literally that's it, the original page leaves the description blank, so I'm not gonna invent one for you 🫢


✨ SYNOPSIS ✨

EXPECT_TRUE (seen );

πŸŽ€ ARGUMENTS πŸŽ€

  • seen β€” the measured value. that's the thing you're checking, bestie πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the whole vibe is:

EXPECT_TRUE(measured): 0 != measured

Which means: you hand it measured, and the check is that measured is not equal to 0. zero = not it. anything else = slay πŸ’€βœ¨


🌈 SEE ALSO 🌈

the full squad, no gatekeeping πŸ‘‘


not me ending this with the cutest little sign-off ever: this page is from ./tools/testing/selftests, dated October 2026. periodt πŸ’…πŸŽ€πŸ«Ά
πŸ“¦ where this page comes from