mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01: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:
parent
00f3b32518
commit
e254c212cd
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue