Date: Tue, 20 Feb 2024 22:31:22 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 3ac001620e28 - main - tests/fdgrowtable: remove always true check Message-ID: <202402202231.41KMVMED011313@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=3ac001620e286a7a1125ca171adbe76960a68180 commit 3ac001620e286a7a1125ca171adbe76960a68180 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2024-02-20 22:31:06 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402202231.41KMVMED011313>