Re: [PATCH v2] selftests/harness: harness-selftest: cover XFAIL_ADD ctor ordering
From: Bjoern Doebel
Date: Wed Apr 29 2026 - 12:16:39 EST
On Mon, Mar 09, 2026 at 06:10:44PM +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 <linux@xxxxxxxxxxxxxx>
> Signed-off-by: Sun Jian <sun.jian.kdev@xxxxxxxxx>
Tested-by: Bjoern Doebel <doebel@xxxxxxxxx>
Tested on Amazon Linux 2023 kernel 6.18.20 on both x86_64 and arm64.
Best,
Bjoern
Amazon Web Services Development Center Germany GmbH
Tamara-Danz-Str. 13
10243 Berlin
Geschaeftsfuehrung: Christof Hellmis, Andreas Stieger
Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597