EXPECT_NE(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’– 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