ASSERT_NULL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ASSERT_NULL(9) ✨

okay so real talk β€” this is a page from the Kernel API Manual, and it's a tiny one, but it's lowkey iconic πŸŽ€ stay with me bestie, it's like four lines of substance and then a huge friend group in SEE ALSO.


πŸ’– NAME πŸ’–

ASSERT_NULL β€” that's it, that's the whole name section πŸ’… (the original didn't give it a tagline, so we're not inventing one, periodt).


πŸ¦‹ SYNOPSIS πŸ¦‹

ASSERT_NULL (seen );

literally exactly that, spaces and all β€” I'm not touching it πŸ™ˆ


🌸 ARGUMENTS 🌸

  • seen β€” the measured value. that's the thing you're checking, bestie. that's the whole assignment 🫢

⭐ DESCRIPTION ⭐

here's the entire vibe, fr fr:

ASSERT_NULL(measured): NULL == measured

so like. you hand it a measured value and it asserts that NULL == measured β€” the check is that your value is NULL. that's it, that's the function πŸ’€ simple, clean, main character energy.


πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where the group chat gets LONG β€” but I'm listing every single one because nobody gets left on read 😀:

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_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. huge friend group. the ASSERT_* girlies, the EXPECT_* girlies, the whole FIXTURE_* clique, and XFAIL_ADD(9) showing up fashionably late πŸ’…βœ¨

ngl the whole harness family lives in ./tools/testing/selftests/kselftest_harness.h β€” go say hi 🧚

and that's the page!! mwah πŸ’– this one came from ./tools/testing/selftests, dated October 2026 β€” so like, mark your calendar bestie, slay πŸŽ€πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from