History log of /freebsd-src/contrib/netbsd-tests/lib/libc/sys/t_socketpair.c (Results 1 – 5 of 5)
Revision Date Author Comments
# 10fc4c32 15-Feb-2021 Alex Richardson <arichardson@FreeBSD.org>

Fix two failing tests after ATF update

Since https://github.com/freebsd/atf/commit/4581cefc1e3811dd3c926b5dd4b15fd63d2e19da
ATF opens the results file on startup. This fixes problems like
capsicumiz

Fix two failing tests after ATF update

Since https://github.com/freebsd/atf/commit/4581cefc1e3811dd3c926b5dd4b15fd63d2e19da
ATF opens the results file on startup. This fixes problems like
capsicumized tests not being able to open the file on exit.

However, this test closes all file descriptors just to check that
socketpair returns fd 3+4 and thereby also closes the ATF results file.
This then results in an EBADF when writing the result so the test is
reported as broken.

While system calls that create new file descriptors (must?) use the lowest
available file descriptor number, it does not seem useful to test this
property here. Drop the check for FD==3/4 to unbreak the testsuite.

We could also try to re-open the results file in ATF if we get a EBADF
error, but that will fail when running under Capsicum.

Reviewed By: cem
Differential Revision: https://reviews.freebsd.org/D28683

show more ...


# dc4e221c 10-Feb-2018 Alan Somers <asomers@FreeBSD.org>

Convert tools/regression/sockets/socketpair to ATF

Reviewed by: cem
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D14305


# 63d1fd59 14-Jan-2017 Enji Cooper <ngie@FreeBSD.org>

Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123

Sponsored by: Dell EMC Isilon


# e90f6cb5 23-Oct-2014 Enji Cooper <ngie@FreeBSD.org>

Convert "fcntl(n, F_CLOSEM)" to "closefrom(n)"

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division


# 57718be8 02-Oct-2014 Enji Cooper <ngie@FreeBSD.org>

Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks

Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division

show more ...