The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3ac001620e286a7a1125ca171adbe76960a68180

commit 3ac001620e286a7a1125ca171adbe76960a68180
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2024-02-20 22:31:06 +0000
Commit:     Gleb Smirnoff <[email protected]>
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);

Reply via email to