Re: [PATCH] selftests/harness: harness-selftest: cover XFAIL_ADD ctor ordering

From: Thomas Weißschuh

Date: Mon Mar 09 2026 - 05:46:09 EST


Hi!

On 2026-03-09 17:37:52+0800, Sun Jian wrote:
> Add a fixture-based test with a single variant and mark it with
> XFAIL_ADD(). The test intentionally fails and is expected to be
> accounted as XFAIL, covering the constructor ordering dependency
> between TEST_F() registration and XFAIL_ADD() registration.
>
> Suggested-by: Thomas Weißschuh <thomas@xxxxxxxx>

I used my wrong email address for this.
Could you switch it to:
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>

> Signed-off-by: Sun Jian <sun.jian.kdev@xxxxxxxxx>
> ---
> .../kselftest_harness/harness-selftest.c | 23 +++++++++++++++++++

Also update harness-selftest.expected with the new output. To verify
that everything works, run 'make run_tests' from the test directory.

> 1 file changed, 23 insertions(+)

(...)