ASSERT_GE(9)
πΈ ASSERT_GE(9) β the "bestie, is it at LEAST this big?" check π
okay so real talk, this page lives in the Kernel API Manual (that's the manual name, iykyk), and the star of the show is ASSERT_GE. It's the assert that makes sure your number is not smaller than the bar you set. Genuinely iconic behaviour tbh π«Ά
β¨ NAME β¨
ASSERT_GE β the assert that goes "expected >= measured, or we're throwing hands" π
(The original NAME section is literally blank after the dash, so like⦠that's the whole vibe. No cap.)
π SYNOPSIS π
ASSERT_GE (expected , seen );
that's it, that's the whole call. two args, one job, zero drama β¨
π¦ ARGUMENTS π¦
expectedβ the expected value π the bar, the standard, the "it should be at least this" number you're holding everything to.seenβ the measured value π₯ the actual number that showed up to the function. vibe check time.
π DESCRIPTION π
so here's the tea, bestie:
ASSERT_GE(expected, measured): expected >= measured
ASSERT_GE checks that expected is greater than or equal to measured. that's the whole thing. it's giving "greater-than-or-equal-to, but make it a kernel assert" β
lowkey important: this page refers to the second thing asmeasuredin the DESCRIPTION even though the ARGUMENTS section calls itseen. that's just how the page is written β both show up, so don't come for me π
π SEE ALSO π
okay this list is long and honestly kinda iconic, so buckle up bestie π
- the Kernel file
./tools/testing/selftests/kselftest_harness.hexample(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_LT(9)ASSERT_LE(9)ASSERT_GT(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)
like I said. a whole squad. the ASSERT_* girlies, the EXPECT_* girlies, the fixture family, all of them. main character energy across the board π
and that's the page, bestie!! π§ source lives over in ./tools/testing/selftests, and this whole thing was dated October 2026 β so yeah, timestamped and slaying. go forth and assert that your values are at least as big as they should be πβ¨π
π¦ 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