ASSERT_STRNE(9)
π NAME
ASSERT_STRNE β and that's it, bestie π the description slot on this page is literally empty. The man page shipped with a dangling dash and nothing after it, so the name is all we get. No cap. We work with what we've got π«Ά
β¨ SYNOPSIS
ASSERT_STRNE (expected , seen );
That's the whole call. Two things go in, and yes the spacing is exactly that cursed β expected then , then seen β don't come for me, I'm just reading the page πβ¨
π ARGUMENTS
expectedβ the expected value. The one you thought it was gonna be πseenβ the measured value. The one reality actually handed you π
π¦ DESCRIPTION
Okay so here's the line, verbatim, because I refuse to paraphrase code:
ASSERT_STRNE(expected, measured): strcmp(expected, measured)
Notice something? π The synopsis up there called the second argument seen, and the description down here calls it measured. That's not me being messy β that's literally what the page says, both spellings, both living on the same man page, iconic behavior honestly π
And the shape of it is strcmp(expected, measured) β that's the whole description, that's the whole vibe. strcmp, in parens, on the two arguments. That's it. That's the page π₯
π SEE ALSO
The whole friend group showed up for this one π«Ά so here's everybody, no one left behind:
Kernel file ./tools/testing/selftests/kselftest_harness.h example(9)β the actual header file, the source of truth, the main character π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)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)
Ngl, theASSERT_*girlies and theEXPECT_*girlies are both fully represented here, plus all theFIXTURE_*lore. Go read them, they're literally one page away πΈ
That's the whole thing, bestie β no hidden sections, no surprise environment variables, no exit statuses, just a very short page living its best life π
Signed off from ./tools/testing/selftests, dated October 2026, manual name ASSERT_STRNE(9) β slay, periodt πβ¨
π¦ 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