EXPECT_FALSE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… EXPECT_FALSE(9) πŸ’…

ok so bestie, welcome to EXPECT_FALSE β€” a page from the Kernel API Manual (that's the manual name, we're folding it in here, you're welcome 🫢). Buckle up, this one is short but it matters.


✨ NAME ✨

EXPECT_FALSE β€”

no cap, the original literally gives you nothing after that dash. just the name and vibes. it's giving mysterious. πŸ™ˆ


✨ SYNOPSIS ✨

EXPECT_FALSE (seen );

that's it. that's the whole call. she's little but she's fierce. πŸŽ€


✨ ARGUMENTS ✨

  • seen β€” the measured value. like, the thing you actually looked at and went "hmm what is this". that's seen. πŸ’…

✨ DESCRIPTION ✨

ok so here's the whole entire lore:

EXPECT_FALSE(measured): 0 == measured

so you hand it a measured value, and the expectation is that it equals 0. that's it. zero. zilch. nada. if you were expecting a 0, this is your girl. she's literally checking 0 == measured and nothing else. simple, iconic, no notes. πŸ‘‘


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” go read these too:

  • the 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_LT(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_STREQ(9)
  • EXPECT_STRNE(9)
  • XFAIL_ADD(9)

like, the entire selftest harness squad showed up to the party. obsessed. πŸ”₯


and that's the page!! mwah πŸ’‹ β€” this lil doc lives under ./tools/testing/selftests and it's stamped October 2026, so go forth and expect your falses, bestie. πŸ¦‹βœ¨
πŸ“¦ where this page comes from