[Bug 240621] Flakey test case: lib.libc.sys.stat_test.stat_socket
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jan 2022 00:54:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240621 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=812345b1d469e5bb90f5487fef1e4ab16890cc7a commit 812345b1d469e5bb90f5487fef1e4ab16890cc7a Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-01-14 20:00:01 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-01-21 00:52:36 +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 Sponsored by: The FreeBSD Foundation (cherry picked from commit 95c75073d3d1ca9dcae41784453172f199bb2c0f) contrib/netbsd-tests/lib/libc/sys/t_stat.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.