From nobody Tue Feb 20 22:31:22 2024 X-Original-To: dev-commits-src-main@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 4TfYzG5C0jz59mpQ; Tue, 20 Feb 2024 22:31:22 +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 4TfYzG2t8sz41LZ; Tue, 20 Feb 2024 22:31:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708468282; 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=p+J5lGyWRrT8EsFZukqpZxgydOR5UL8RR4ireMXKm90=; b=FFdDSMZyln0ge5BEIYo0mtn2KFc8FB0KJwI06481hBvFQ7rSz6NjZxJ/ZgEfwcZ35X1th3 2tJRNnPfwRbcZh53AD9psfzNabSPe9J6wKSMqPeaNQnH3sCh4FSrib2GRxi4OjRo5TjX0c XgOtGfGRqLXn/WfvG1TQGEyBUMDzwQCq+1uHMf0F5NW4t5nLsm0tOzhlSPWCBMqHTE3VIo mrmApXntvApj6NPExwdUxFF1OtWS3trtO4ZxKyaxBl49jBit1/Pav3ejUMYMLCmyVP33og 9ZslDPN0jY/9UighD5nnTc/jtZu2Sl6ONH6rkIEexmU3CEAe6QuT/DZu7bZ3Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708468282; 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=p+J5lGyWRrT8EsFZukqpZxgydOR5UL8RR4ireMXKm90=; b=ufEaIP02f66OmGG3qsX85BxopP10Hl2j3brXi2HNlsWB1hWtYSs8Kjm946owQgkOmiiLS8 Vsc6ISkxz1j+Z1XbFN+hwX25XWAeskwsnxVqL9YpERnWhOh0e4S5nEDAj1eV1XfIbFfdIH ezsHXV+v/fBI3ES/e/jPXPIC8ZRuuhJc3jvbYfjrag9vM0ZiSDG+VQeHYkaBKx3tYTSi9h KwzHZX0wGC00LWvGuupW2Nvnirg7+8FLpFj0TTxGXyYfQW0Jm6SVIwNvkvCP5XSa2EDz0h mdtSthJUVZKGGxjaBUdfOk7p2Gqs+ceRiVE1d/nPO5AaJK76Ovgk7ikg/pK2FQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708468282; a=rsa-sha256; cv=none; b=PiRfRkFWmMbIHRG5dhqABUrG7Dfe/9CtUENsXPCurYn7F6UfdXlln2TN6BL22oOnW1WQnd jSnDZXWQptnciF22he7E76BwP1Oha/zGMppmxGwQpAl640x7zNSF6fSKz2/nmNlgw3lM/0 wtvVqZSe4IRDq9Bh97GmA1xL2HuYw4lYaZ5uEpg55PiG38LC8qhDYb5qePJimBKS3hO2Jw 0rOyL0G21EzX8u5XmogMcr/flHvvBJ/a2zYPLTsIkqOLlc1BRuAMGsp0WDRJEy7seTnfiZ UjZi3zdXU+TcJH1o+ur14fUMC8GzGx+jq0HDUvcvR++Tm0TcIUkSdE5/NkmjFA== 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 4TfYzG1xxczcss; Tue, 20 Feb 2024 22:31:22 +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 41KMVMrS011316; Tue, 20 Feb 2024 22:31:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41KMVMED011313; Tue, 20 Feb 2024 22:31:22 GMT (envelope-from git) Date: Tue, 20 Feb 2024 22:31:22 GMT Message-Id: <202402202231.41KMVMED011313@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: 3ac001620e28 - main - tests/fdgrowtable: remove always true check List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 3ac001620e286a7a1125ca171adbe76960a68180 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=3ac001620e286a7a1125ca171adbe76960a68180 commit 3ac001620e286a7a1125ca171adbe76960a68180 Author: Gleb Smirnoff AuthorDate: 2024-02-20 22:31:06 +0000 Commit: Gleb Smirnoff CommitDate: 2024-02-20 22:31:06 +0000 tests/fdgrowtable: remove always true check We are always the parent in this code path. --- tests/sys/kern/fdgrowtable_test.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/sys/kern/fdgrowtable_test.c b/tests/sys/kern/fdgrowtable_test.c index 6ea42bd076ad..2eea274a64ee 100644 --- a/tests/sys/kern/fdgrowtable_test.c +++ b/tests/sys/kern/fdgrowtable_test.c @@ -242,14 +242,12 @@ ATF_TC_BODY(oldtables_shared_via_process, tc) * otherwise we'll lose a reference count * to the file descriptor table */ - if (child != 0) { - kp = read_kinfo(kd); + kp = read_kinfo(kd); - ATF_CHECK(filedesc_refcnt(kd,kp) > 1); - ATF_CHECK(old_tables(kd,kp) > 1); + ATF_CHECK(filedesc_refcnt(kd,kp) > 1); + ATF_CHECK(old_tables(kd,kp) > 1); - kill(child, SIGCONT); - } + kill(child, SIGCONT); /* child should have exited */ wpid = waitpid(child, &status, 0);