From nobody Wed Oct 09 00:33:36 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XNYlh4p9Zz5YZsg; Wed, 09 Oct 2024 00:33:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XNYlh3ngfz4kZp; Wed, 9 Oct 2024 00:33:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728434016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A+KKDvmuSOn85igF40zOSQQCly+I3FLYjvhUhXBQp0o=; b=UY8LreuRUAQrFopZaMgaSyKx9LObrYaRv+h3zr8yIqoNu5mSUx2+1rOLhT8R1LTDMRyi9c gvobxiR10b8Mqyl4K/XSLz9fsUJf5YotMmBYFKHrUFSKTsDx8mUJaiTLsbn32nFnroRhgA ShKz4fbKOBaOe5wK1ITUBpOJ2UHxTokddTMPmjlFcwblSz7xQYkS16nP3Sw5B/M7C8iphN KnZXf9KVBp5CZYxI5x5h6fHw1T5xtrSNSurJ9L7vJed35h5yDME6peqGx8cN6pMSCHJVjV TPg/hskgxqedu0rtnPsSnqXNDq9s641ULlwKdCs3R+VZSDcQcr0cBEoxDgqLcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728434016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A+KKDvmuSOn85igF40zOSQQCly+I3FLYjvhUhXBQp0o=; b=phm2THWeLpl0fGfyc9pDg2PXwWGKXZSJex05V/xIKMej7QO4GtYufmIojLF73n5I5zH0JZ TAs90/SAgzTonMkhc1YE+sTsIyqZb0HrUSpKVqq8vMEwhjORdbfponRdHPdbY9w9rTczWS 8Sjo71pkNgwCmitnWAcjBN5pzdgiX6wNr5aE+WkCPJ0myP+9yHUXQ7NTxTdo6BnQPhCmi8 dcZwQM3Q3i/eXs/QcbXMyeVwYqw0aZm/xv9divJGZbufJDpZdtarUAuSpuohsuqGAAJqwr N0D2Gi+vPp54SMk164uTBRhKjaF5Mi4NgXfgK+pQXHhNxsM8wHwUKBf9a2YpkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728434016; a=rsa-sha256; cv=none; b=AxXUQTF1DcwvVxoxkko3KVb+7vP9xkteMiaEAIrSufMHjW7ZF/p+XpTSfOL8OfwJUdHHq/ Sbu0IlOaW+8miNhBUNNnMEi3J1ZBqHYASnKEu7Kn4moQ7S991U9LVXyoiOUM7zvVJPRbIu wuDWZkVB7ABJMEScNmacd6bTwEpOQezsH58mChY9uA1Xt6wnEjib9WilcT7IqF9fWhSMNT e5g5VWFcnQLAjnvNvEaQkK1Atig6ZVenm6eg9wt6M2IeazMnVhDoUsxL+NohuE4/WotB0m jUytw58c99Pi4m8X+Z9jj2w5hznZY18g5399unI0OO53VYcj4lY7zKMnRGVLHQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XNYlh3NhdzsVV; Wed, 9 Oct 2024 00:33:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4990XaRn033459; Wed, 9 Oct 2024 00:33:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4990XaTK033456; Wed, 9 Oct 2024 00:33:36 GMT (envelope-from git) Date: Wed, 9 Oct 2024 00:33:36 GMT Message-Id: <202410090033.4990XaTK033456@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 1d83090d850f - main - capsicum-test: skip SCTP tests if SCTP not available List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d83090d850f627b6d6ebe7837e807df5d29799f Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1d83090d850f627b6d6ebe7837e807df5d29799f commit 1d83090d850f627b6d6ebe7837e807df5d29799f Author: Ed Maste AuthorDate: 2024-10-07 20:04:05 +0000 Commit: Ed Maste CommitDate: 2024-10-09 00:32:45 +0000 capsicum-test: skip SCTP tests if SCTP not available Skip the test rather than failing if SCTP is not available (e.g., if sctp.ko is not loaded). Also submitted upstream as https://github.com/google/capsicum-test/pull/61 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46999 --- contrib/capsicum-test/sctp.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/capsicum-test/sctp.cc b/contrib/capsicum-test/sctp.cc index 5f0d169456a8..76302059fa19 100644 --- a/contrib/capsicum-test/sctp.cc +++ b/contrib/capsicum-test/sctp.cc @@ -61,6 +61,9 @@ static int SctpClient(int port, unsigned char byte) { TEST(Sctp, Socket) { int sock = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); + if (sock == -1 && errno == EPROTONOSUPPORT) { + GTEST_SKIP() << "socket(..., IPPROTO_SCTP) -> EPROTONOSUPPORT"; + } EXPECT_OK(sock); if (sock < 0) return;