mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
selftests: af_unix: don't use SKIP for expected failures
netdev CI reserves SKIP in selftests for cases which can't be executed due to setup issues, like missing or old commands. Tests which are expected to fail must use XFAIL. Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20251123021601.158709-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -161,8 +161,12 @@ TEST_F(unix_sock, reset_closed_embryo)
|
||||
char buf[16] = {};
|
||||
ssize_t n;
|
||||
|
||||
if (variant->socket_type == SOCK_DGRAM)
|
||||
SKIP(return, "This test only applies to SOCK_STREAM and SOCK_SEQPACKET");
|
||||
if (variant->socket_type == SOCK_DGRAM) {
|
||||
snprintf(_metadata->results->reason,
|
||||
sizeof(_metadata->results->reason),
|
||||
"Test only applies to SOCK_STREAM and SOCK_SEQPACKET");
|
||||
exit(KSFT_XFAIL);
|
||||
}
|
||||
|
||||
/* Close server without accept()ing */
|
||||
close(self->server);
|
||||
|
||||
Reference in New Issue
Block a user