KUNIT_EXPECT_STREQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– KUNIT_EXPECT_STREQ πŸ’–

okay bestie, welcome to the Kernel API Manual page for KUNIT_EXPECT_STREQ β€” the string-equality expectation that’s here to make your tests feel iconic. ✨

🌸 NAME 🌸

  • KUNIT_EXPECT_STREQ β€” Expects that strings @left and @right are equal.

πŸŽ€ SYNOPSIS πŸŽ€

KUNIT_EXPECT_STREQ (test , left , right );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” The test context object.
  • left β€” an arbitrary expression that evaluates to a null terminated string.
  • right β€” an arbitrary expression that evaluates to a null terminated string.

✨ DESCRIPTION ✨

She sets an expectation that the values that left and right evaluate to are equal. This is semantically equivalent to KUNIT_EXPECT_TRUE(test, !strcmp((left), (right))). See KUNIT_EXPECT_TRUE for more information.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/kunit/test.h, plus the whole KUnit extended universe:

okay byeee bestie β€” this page’s source/version spot is ./include/kunit, the date on the stamp is October 2026, and the manpage title is KUNIT_EXPECT_STREQ(9). πŸ’–βœ¨

πŸ“¦ where this page comes from