XFAIL_ADD(9)
π
XFAIL_ADD β Kernel API Manual (section 9) β¨
okay bestie, gather round π«Ά this one is short and iconic: it's the manpage for XFAIL_ADD, straight out of the Kernel API Manual. No cap, we're keeping every detail exactly where it belongs π
πΈ NAME πΈ
mark a variant + test case combination as expected to fail β yes, that's the whole vibe check π
β¨ SYNOPSIS β¨
XFAIL_ADD (fixture_name , variant_name , test_name );
π ARGUMENTS π
fixture_nameβ name of the fixture. literally the fixture's name, periodt πvariant_nameβ name of the variant. which variant we're talking about, no guessing π₯test_nameβ name of the test case. the test case's name, bestie β¨
π DESCRIPTION π
Okay so XFAIL_ADD marks a combination of variant + test case for a given fixture as expected to fail. That's the main character move π
Tests marked this way will report XPASS / XFAIL return codes, instead of PASS / FAIL,and and use the respective counters. slay, the counters know what's up πβ¨
π¦ SEE ALSO π¦
- Kernel file
./tools/testing/selftests/kselftest_harness.handexample(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)EXPECT_STRNE(9)
byeee bestie π«Ά this page lives under ./tools/testing/selftests, dated October 2026, and it's filed as XFAIL_ADD(9) πβ¨
π¦ 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