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>pull/1354/merge
parent
00f3b32518
commit
e254c212cd
|
|
@ -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…
Reference in New Issue