EXPECT_NE(9)
๐ EXPECT_NE(9) โ Kernel API Manual ๐
okay bestie, this is the page for EXPECT_NE(9). Itโs short, itโs iconic, and itโs literally about checking that two things are not equal. Letโs get into it. ๐ซถ
โจ NAME โจ
EXPECT_NE - the macro, and thatโs the whole NAME entry. ๐
๐ SYNOPSIS ๐
EXPECT_NE (expected , seen );
๐ฆ ARGUMENTS ๐ฆ
expectedโ expected value. Thatโs the one you thought youโd see. ๐seenโ measured value. Thatโs the one that actually showed up. ๐
๐ธ DESCRIPTION ๐ธ
okay so the whole description is this exact little line: EXPECT_NE(expected, measured): expected != measured. Translation: expected is not equal to measured, and thatโs the vibe check this macro is doing. Slay. ๐ฅ
๐ฎ SEE ALSO ๐ฎ
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_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)
Thatโs the EXPECT_NE(9) page, from source/version ./tools/testing/selftests, dated October 2026. Bye bestie, go check stuff! ๐ซถ๐
๐ฆ 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