aboutsummaryrefslogtreecommitdiff
path: root/contrib/netbsd-tests/lib/libdes
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2021-02-15 22:11:30 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-03-17 12:22:15 +0000
commitd97a4cb221d5f52a92473a4709aa97f812739f34 (patch)
tree85a1d55d14bca53834d6b9f64322a6744b00fe82 /contrib/netbsd-tests/lib/libdes
parent4643e1e846164be5fe0599eb9fbabdeaf87459c6 (diff)
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 (cherry picked from commit 10fc4c3218381fef7189a5b8d46a757cd1989dff)
Diffstat (limited to 'contrib/netbsd-tests/lib/libdes')
0 files changed, 0 insertions, 0 deletions