From nobody Sun Feb 25 08:15:34 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 4TjGlV664Jz5By2h; Sun, 25 Feb 2024 08:15:34 +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 4TjGlV3l4qz4VHn; Sun, 25 Feb 2024 08:15:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708848934; 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=KsN7vp6I3pS8v5IwtCI/fBZkUpg6m3mf0P1yPD73La8=; b=d5xnBovNIG5rhIie/mtzh7B8Eo3Vh77tTuAePzB5iB3hXdlKMPm030XVTCKrCcA3+toCgV REPnYPQyrFcz6bbEWn4c+accbwP8449zO8HgamcSIT8w/Y27rxlYKb1HiVotcbuSfCE+n7 f7HE/SPtTelaVsY7uPuShfDufvbb7t+xbTdZkZ48viFJrdHLCP7T8v3cvtRQQemRIPOjN3 EH36uZS8PitSZ5HNTvtIyEfQt8K9xjH0lFgkwjDBpiiqKrKKKFXVYH/1LqWnZ9xeanhiI8 fyUrpgoWLRg8cw2Yl468f9LudK3oH0VmtKp8cQubiNfj333h7ol44v5ayFQq0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708848934; a=rsa-sha256; cv=none; b=Sr2gZeJisovH/1pbozoHVoDZiImKl0RCMVDXKRfNDpCwLfmnOzee0Za0dSmKKCKN+DPxkT mjTpFe3mMEFQFRFTuyar7WcgOquvjtBiGMMBqleTk7OsQ1Wa99Y5okBi3Zb8wyT8Tig+aK 7bTnbujz4Uzz6sX6ydcranWzLNKaL8yj5WLiyu2kLWmE7MoeJN5BAgLld2f3labWkkFi50 yxZQoqqFXPGBq+qvqASoIENfXa5IMqnxYhvzWGWIk3YK6ORWxq7e0RoJryU3JriG9d0aUQ +rdxr2AVHn+p/SJjrkLWfTBcW5No0qi/usRL/NdxU9n780z4fnEz8jKlnu3NmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708848934; 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=KsN7vp6I3pS8v5IwtCI/fBZkUpg6m3mf0P1yPD73La8=; b=rQYHxXgAFZnjM7XMBd//ndbBYNuVt+VRVENH5zGU3hGyKpepp++4ZHIAuT2Uw8RC7NGeOK 7s0DDWKOT0eWrHpvMzSfMJOoA4eAhrDmOrbjp2CaVso8pkRHyVFqWLEKPKB2dM0gaAJp08 Qr1UL67swGT/+MHxy7vLbefqdHfGJ3xOHb4YXtvaQ4or0OV32DL3pS7n9GheibvUTjElQL jTfVVZ+FzvyIUs4eflmyTsOmc4XQcg8iVauzcmNQIKSasGNgd1OT8djXvwqra/MgW1wqQt xV2ewqHSfIfAxX4ufuQEUyjgVyDe/gqrxSISzrlk+8oUMStQpglAH6gqfrsc/w== 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 4TjGlV2q6Hzc7c; Sun, 25 Feb 2024 08:15:34 +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 41P8FYl1026658; Sun, 25 Feb 2024 08:15:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41P8FY7h026655; Sun, 25 Feb 2024 08:15:34 GMT (envelope-from git) Date: Sun, 25 Feb 2024 08:15:34 GMT Message-Id: <202402250815.41P8FY7h026655@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 09dd7240acf1 - main - sigsys test: correct count of delivered signals 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 09dd7240acf1fc50061246013ce318404d70c4e0 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=09dd7240acf1fc50061246013ce318404d70c4e0 commit 09dd7240acf1fc50061246013ce318404d70c4e0 Author: Konstantin Belousov AuthorDate: 2024-02-25 01:36:27 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-25 08:11:49 +0000 sigsys test: correct count of delivered signals When knob is zero, intent is that no SIGSYS signals are delivered. Comparing zero to zero does not test much, we should compare the count of delivered SIGSYSs to zero. Reviewed by: dchagin, imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44077 --- tests/sys/kern/sigsys.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/sys/kern/sigsys.c b/tests/sys/kern/sigsys.c index 8b9a4e8516e7..d135ed777498 100644 --- a/tests/sys/kern/sigsys.c +++ b/tests/sys/kern/sigsys.c @@ -41,23 +41,23 @@ sigsys_test(int knob) ATF_REQUIRE(syscall(273) == -1); /* reserved */ ATF_CHECK_ERRNO(ENOSYS, true); atomic_signal_fence(memory_order_seq_cst); - ATF_CHECK_EQ(1 * knob, sigsys_cnt * knob); + ATF_CHECK_EQ(1 * knob, sigsys_cnt); ATF_REQUIRE(syscall(440) == -1); /* SYS_kse_switchin */ ATF_CHECK_ERRNO(ENOSYS, true); atomic_signal_fence(memory_order_seq_cst); - ATF_CHECK_EQ(2 * knob, sigsys_cnt * knob); + ATF_CHECK_EQ(2 * knob, sigsys_cnt); /* Hope this is enough for say next two months */ ATF_REQUIRE(syscall(3000000) == -1); ATF_CHECK_ERRNO(ENOSYS, true); atomic_signal_fence(memory_order_seq_cst); - ATF_CHECK_EQ(3 * knob, sigsys_cnt * knob); + ATF_CHECK_EQ(3 * knob, sigsys_cnt); ATF_REQUIRE(syscall(SYS_afs3_syscall) == -1); ATF_CHECK_ERRNO(ENOSYS, true); atomic_signal_fence(memory_order_seq_cst); - ATF_CHECK_EQ(4 * knob, sigsys_cnt * knob); + ATF_CHECK_EQ(4 * knob, sigsys_cnt); } static void