KUNIT_ASSERT_STREQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to KUNIT_ASSERT_STREQ(9) from the Kernel API Manual. The whole vibe is an assertion that strings @left and @right are equal. That's it, that's the name. 🫢

✨ SYNOPSIS ✨

KUNIT_ASSERT_STREQ (test , left , right );

πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the test context object. Your little test headquarters. πŸ’…
  • left β€” an arbitrary expression that evaluates to a null terminated string. 🧚
  • right β€” an arbitrary expression that evaluates to a null terminated string. 🌸

🌈 DESCRIPTION 🌈

Okay so this sets an assertion that the values that left and right evaluate to are equal. It is literally the same as KUNIT_EXPECT_STREQ, except it causes an assertion failure (see KUNIT_ASSERT_TRUE) when the assertion is not met. So yeah, this one is giving full assert-y main character energy, not just the gentle expect-y vibe check. πŸ’₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/kunit/test.h β€” plus the whole iconic squad:


Signed off with love from source/version ./include/kunit, dated October 2026, on manual page KUNIT_ASSERT_STREQ(9). Bye bestie! πŸ’œβœ¨

πŸ“¦ where this page comes from