Subject: Re: [PATCH] y2038: testsuite/smokey: Skip recvmmsg64 test if kernel support is missing References: <20211020125240.52313-1-florian.bezdeka@siemens.com> From: Jan Kiszka Message-ID: Date: Thu, 21 Oct 2021 18:37:54 +0200 MIME-Version: 1.0 In-Reply-To: <20211020125240.52313-1-florian.bezdeka@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Florian Bezdeka , xenomai@xenomai.org On 20.10.21 14:52, Florian Bezdeka wrote: > It might happen that the kernel does not support the combination of > address family and protocol we use for this test. Skip the test and > simulate success in such cases. > > Signed-off-by: Florian Bezdeka > --- > testsuite/smokey/y2038/syscall-tests.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/testsuite/smokey/y2038/syscall-tests.c b/testsuite/smokey/y2038/syscall-tests.c > index f025fd55d..a1a5d12f6 100644 > --- a/testsuite/smokey/y2038/syscall-tests.c > +++ b/testsuite/smokey/y2038/syscall-tests.c > @@ -1016,6 +1016,10 @@ static int test_sc_cobalt_recvmmsg64(void) > }; > > sock = smokey_check_errno(socket(AF_RTIPC, SOCK_DGRAM, IPCPROTO_XDDP)); > + if (sock == -EAFNOSUPPORT) { > + smokey_note("recvmmsg64: skipped. (no kernel support)"); > + return 0; > + } > if (sock < 0) > return sock; > > Thanks, applied. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux