ASSERT_FALSE(9)
π ASSERT_FALSE(9) π
okay bestie, so this is a page out of the Kernel API Manual β yes, the kernel, that big scary thing β and it's actually a tiny little baby of a page, so you'll be fine, I promise π«Ά
β¨ NAME β¨
ASSERT_FALSE β
and thenβ¦ literally nothing π the description slot is empty. no cap, the original leaves it blank. so the name is just the name, and the vibes do the rest π
β¨ SYNOPSIS β¨
ASSERT_FALSE (seen );
that's it. that's the whole call. one argument, one job, and it's the moment of truth π
β¨ ARGUMENTS β¨
seenβ the measured value. like, the actual thing you peeped at and want to check up on π that's the whole game.
β¨ DESCRIPTION β¨
so here's the tea, and it's a short one:
ASSERT_FALSE(measured): measured == 0
translation: you hand over your measured value, and this macro is lowkey asserting that it equals 0 β zero, nothing, the void, empty π³οΈ if it's 0 you're slaying; if it's anything else, that's a whole different conversation bestie π
β οΈ heads up: the equality is written exactly as the original puts it β measured == 0 β so don't go reinterpreting it, mwah π
π SEE ALSO π
the whole group chat, fr fr β everyone's here π«Ά
- 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_GE(9)
- ASSERT_NULL(9)
- ASSERT_TRUE(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, the entire ASSERT and EXPECT family reunion plus the fixture crowd β iconique π
β¨ cute sign-off time β¨
this little cutie lives under ./tools/testing/selftests (yep, that's the source/version bit πΈ), stamped October 2026 π
, and it's page ASSERT_FALSE(9) of the Kernel API Manual of course π
that's the whole page bestie β short, sweet, and == 0. periodt. π
β¨
π¦ 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