Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2022 20:39:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@FreeBSD.org
Subject:   [Bug 240621] Flakey test case: lib.libc.sys.stat_test.stat_socket
Message-ID:  <bug-240621-32464-GGGF6tonmv@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240621-32464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240621-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240621

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D95c75073d3d1ca9dcae41784453172f19=
9bb2c0f

commit 95c75073d3d1ca9dcae41784453172f199bb2c0f
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-01-14 20:00:01 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-01-14 20:01:41 +0000

    netbsd-tests: Fix the libc stat_socket test

    The test tries to connect a socket to a closed port at 127.0.0.1.  It
    sets O_NONBLOCK on the socket first and expects to get EINPROGRESS from
    connect(2), but this is not guaranteed, ECONNREFUSED is possible.
    Handle both cases, and re-enable the test.

    PR:             240621
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation

 contrib/netbsd-tests/lib/libc/sys/t_stat.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240621-32464-GGGF6tonmv>