EXPECT_STREQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ EXPECT_STREQ ✨ (the kselftest harness one, bestie)

okay so this page lives in the Kernel API Manual β€” it's section 9, kernel-space energy only πŸ’…


🌸 NAME 🌸

EXPECT_STREQ β€” bestie, this is the soft string-equality check πŸ‘€

πŸŽ€ SYNOPSIS πŸŽ€

EXPECT_STREQ (expected , seen );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • expected β€” the expected value 🫢 like, the thing you think should be there
  • seen β€” the measured value 🌸 the thing that actually showed up

πŸ’– DESCRIPTION πŸ’–

EXPECT_STREQ(expected, measured): !strcmp(expected, measured)

that's it, that's the whole vibe, no cap ✨ it literally runs !strcmp(expected, measured) β€” so it's true when the two strings match, false when they don't πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” go read these too:


πŸ’€ tiny lil sign-off before you go: this masterpiece ships from ./tools/testing/selftests and it's dated October 2026 β€” so when someone asks where you learned EXPECT_STREQ(9), tell 'em the Kernel API Manual said it first πŸ§šπŸ’œ

πŸ“¦ where this page comes from