From nobody Thu Feb 8 17:01:04 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 4TW3Ch6kspz5B2GT; Thu, 8 Feb 2024 17:01:04 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TW3Ch5gb6z4V2l; Thu, 8 Feb 2024 17:01:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707411664; 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=mvYhd7D2h466hALEZpPmXcIjJBW5HRsu9Fi3NfRUh1s=; b=KVmlAPSP4F1nziGIAtHfZ9EauTjxvwCkr/LwY9BIM90Gi4ttaCWH06fzge9XPM1V28vLnF 5EREE25XB4h9MjMncB57Uxt33NUFUlV+VLQg+uwxSiu7tXj8+XG1OoPB98KiG5hR/Jyps4 fdJjWjFcALYu8eY2l8hhkhGnW6egH5n+ubO/KV2iVBlql27eHnNTzmWJHdcI40/7s7dJg9 9RCt3sYacHIxjf5bq2bn+TwyWznXA4in9ag7BG9Gb1Ur8hCGcgISmMeALfiusqjqNh2EpM /0pfgm5iMZJdfSZdvylf4tkytLgyVtwWA/vPzAL9R0uehmdlkd2r4bwvWxhpeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707411664; 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=mvYhd7D2h466hALEZpPmXcIjJBW5HRsu9Fi3NfRUh1s=; b=umbAgva/8NdK+FLSlqtkNHpi071xIVZ7orSQoKnmVFaxHH0UpXYqQ4BM6D0+Fl9GX5YWK0 KHgDYHbDC2/Y7pv1oui01AMyyMXIsFh5WG4kYCKhlDnCTOFapNNuIE74vkRRypvS6CKyD0 H6yiDinXQbLCFDQe7mmOC/JR3nhOg+qKwl3HnpdBn83+pJBdxVuIEJxaF1N66qS/BB6EHh kxfBKGj2g+jwl48HJIvbcMxdLKItzJSs9VIaDe3fad6M3haQeBSUP4XZpsb1xyIIlgkhA9 z3RBRXKYExY/m7h8+onYd0AwBx30v2HcjSb6NOWV7p4IP6eTBDEvhK+2911pzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707411664; a=rsa-sha256; cv=none; b=lZvSQksf1LMYGwDByme/0aX+JqnnB1W0NkAtnkQXYbNrjNQb2eIQ7W8+coQllW+kVv21sD HuJfmsSU4+Zx+hwNudF+xAEYeWv08qLoqg5DWMU0Hhgbr8JmE/VIx1uiiTgfXUSpElBBse vx7bv9LdY/U4M+yp07+3+wRwoILDjA+XUjbWc/K94vdY+HgG70rjzLsHlFAPhpZnLeTwTT 5JNPYSh+yTSJVJa0teELNLavGHe/nIExOIa+qolnSo21v9CJIJO2WvLikHV0tt95XFj8Dv pqhoCM2CJe/Pkg/yhHwsbBcEVY7mr5D+C/6c5bBSknuvRfrowgE4fjsBPhOD5w== 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 4TW3Ch4m3fzyKg; Thu, 8 Feb 2024 17:01:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 418H14l3065684; Thu, 8 Feb 2024 17:01:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 418H14q8065681; Thu, 8 Feb 2024 17:01:04 GMT (envelope-from git) Date: Thu, 8 Feb 2024 17:01:04 GMT Message-Id: <202402081701.418H14q8065681@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 45eae45d91cb - main - tests/unix_passfd: fix typos - assignment instead of comparison 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 45eae45d91cb308396e15d6dabc764fc4c701f9f Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=45eae45d91cb308396e15d6dabc764fc4c701f9f commit 45eae45d91cb308396e15d6dabc764fc4c701f9f Author: Gleb Smirnoff AuthorDate: 2024-02-08 17:00:23 +0000 Commit: Gleb Smirnoff CommitDate: 2024-02-08 17:00:37 +0000 tests/unix_passfd: fix typos - assignment instead of comparison This typos were actually hiding a kernel bug, see 541e6a989cae. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D43734 --- tests/sys/kern/unix_passfd_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/kern/unix_passfd_test.c b/tests/sys/kern/unix_passfd_test.c index 9c9a6a175ceb..67171e62c963 100644 --- a/tests/sys/kern/unix_passfd_test.c +++ b/tests/sys/kern/unix_passfd_test.c @@ -912,7 +912,7 @@ ATF_TC_BODY(empty_rights_message, tc) /* Only the non-empty message should be received. */ len = recvmsg(fd[1], &msghdr, 0); ATF_REQUIRE_MSG(len == 0, "recvmsg failed: %s", strerror(errno)); - ATF_REQUIRE(msghdr.msg_controllen = CMSG_SPACE(sizeof(int))); + ATF_REQUIRE(msghdr.msg_controllen == CMSG_SPACE(sizeof(int))); error = close(*(int *)CMSG_DATA(msghdr.msg_control)); ATF_REQUIRE_MSG(error == 0, "close failed: %s", strerror(errno)); @@ -938,7 +938,7 @@ ATF_TC_BODY(empty_rights_message, tc) /* Only the non-empty message should be received. */ len = recvmsg(fd[1], &msghdr, 0); ATF_REQUIRE_MSG(len == 0, "recvmsg failed: %s", strerror(errno)); - ATF_REQUIRE(msghdr.msg_controllen = CMSG_SPACE(sizeof(int))); + ATF_REQUIRE(msghdr.msg_controllen == CMSG_SPACE(sizeof(int))); error = close(*(int *)CMSG_DATA(msghdr.msg_control)); ATF_REQUIRE_MSG(error == 0, "close failed: %s", strerror(errno));