ASSERT_NULL(9)
β¨ 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
- 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