EXPECT_STRNE(9)
π EXPECT_STRNE(9) π
okay so bestie, welcome to the Kernel API Manual entry for EXPECT_STRNE β yes, the (9) is part of the whole name, and we are keeping it β¨. This page is short, iconic, and lowkey just gives you the name, the call, the args, the description line, and the whole SEE ALSO friend group. No cap π«Ά.
π NAME π
EXPECT_STRNE -β the original literally just gives us the name and the dash, bestie; thereβs no description after it, so weβre not inventing one π .
β¨ SYNOPSIS β¨
hereβs the signature, exactly as it appears β spaces and all, do not touch:
EXPECT_STRNE (expected , seen );
periodt. thatβs the whole synopsis πΈ.
πΈ ARGUMENTS πΈ
expectedβ the expected value πseenβ the measured value β¨
π¦ DESCRIPTION π¦
the description is literally this exact line, no extra lore:
EXPECT_STRNE(expected, measured): strcmp(expected, measured)
thatβs it, thatβs the tea β. itβs giving the call and the strcmp(expected, measured) line exactly, and we are not adding anything that isnβt there, bestie π―.
π₯ SEE ALSO π₯
go check out the whole friend group, iykyk π :
- Kernel file
./tools/testing/selftests/kselftest_harness.hexample(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_FALSE(9)EXPECT_STREQ(9)XFAIL_ADD(9)
thatβs the whole page, bestie π. signed off from the ./tools/testing/selftests source/version corner, dated October 2026, and yes, this is still the Kernel API Manual β mwah ππ
π¦ 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