ASSERT_LT(9)
π ASSERT_LT(9) π
okay so bestie, this is a section 9 kernel API manual page, and it's literally the shortest glow-up ever β but we're gonna make it iconic anyway. It's called ASSERT_LT, and yes, it's about to be your new fave comparison macro. π
β¨ SYNOPSIS β¨
ASSERT_LT (expected , seen );
like, that's it. that's the whole vibe. π¦
πΈ ARGUMENTS πΈ
expectedβ the expected value, aka the number you were manifesting β¨seenβ the measured value, aka the number that actually showed up to the party π
π DESCRIPTION π
ASSERT_LT(expected, measured): expected < measured
no cap, that's the entire description. it checks that expected is less than measured, periodt. the way this macro does exactly one thing and does it flawlessly β main character energy fr fr. π₯
π SEE ALSO π
the whole squad, bestie, no one's getting left out:
Kernel file ./tools/testing/selftests/kselftest_harness.h example(9)TH_LOG(9)SKIP(9)TEST(9)TEST_SIGNAL(9)FIXTURE_DATA(9)FIXTURE(9)FIXTURE_SETUP(9)FIXTURE_TEARDOWN(9)FIXTURE_TEARDOWN_PARENT(9)FIXTURE_VARIANT(9)FIXTURE_VARIANT_ADD(9)TEST_F(9)TEST_HARNESS_MAIN(9)operators(9)ASSERT_EQ(9)ASSERT_NE(9)ASSERT_LE(9)ASSERT_GT(9)ASSERT_GE(9)ASSERT_NULL(9)ASSERT_TRUE(9)ASSERT_FALSE(9)ASSERT_STREQ(9)ASSERT_STRNE(9)EXPECT_EQ(9)EXPECT_NE(9)EXPECT_LT(9)EXPECT_LE(9)EXPECT_GT(9)EXPECT_GE(9)EXPECT_NULL(9)EXPECT_TRUE(9)EXPECT_FALSE(9)EXPECT_STREQ(9)EXPECT_STRNE(9)XFAIL_ADD(9)
ngl this page had zero warnings, zero exit statuses, zero environment variables β nothing to be dramatic about. so just go read the friends above if you want lore. π
and that's a wrap, bestie! π«Ά this little gem lives under ./tools/testing/selftests and it's stamped October 2026 β screenshot it, frame it, put it on the fridge. ASSERT_LT(9) out. πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms