freebsd-dev/contrib/netbsd-tests/lib/libc/sys
Alex Richardson 10fc4c3218 Fix two failing tests after ATF update
Since 4581cefc1e
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
2021-02-15 22:55:12 +00:00
..
t_access.c Add missing mode in open(2) calls with O_CREAT. 2019-07-16 22:27:49 +00:00
t_bind.c
t_chroot.c
t_clock_gettime.c Diff reduce with upstream 2017-01-14 08:36:43 +00:00
t_clock_nanosleep.c Add clock_nanosleep() 2017-03-19 00:51:12 +00:00
t_clone.c
t_connect.c Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
t_dup.c Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
t_fsync.c
t_getcontext.c Replace __riscv__ with __riscv. 2018-08-03 12:47:54 +00:00
t_getgroups.c
t_getitimer.c [tests] Fix itimer test warning-errors on gcc-6.4 2020-10-15 14:55:07 +00:00
t_getlogin.c
t_getpid.c
t_getrusage.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_getsid.c
t_getsockname.c
t_gettimeofday.c
t_issetugid.c
t_kevent.c Diff reduce with upstream and consolidate #ifdefs where possible 2017-01-15 22:00:59 +00:00
t_kill.c
t_link.c Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
t_listen.c Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
t_lwp_create.c
t_lwp_ctl.c
t_mincore.c Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
t_minherit.c
t_mkdir.c
t_mkfifo.c
t_mknod.c
t_mlock.c Provide separate accounting for user-wired pages. 2019-05-13 16:38:48 +00:00
t_mmap.c Adjust tests after page fault changes in r352807 2019-09-29 15:17:58 +00:00
t_mprotect.c Add missing mode in open(2) calls with O_CREAT. 2019-07-16 22:27:49 +00:00
t_msgctl.c Annotate all changes made in r316178-r316180 with __FreeBSD__ 2017-03-30 07:13:47 +00:00
t_msgget.c Stop writing past the end of the buffer in the msgget_limit test. The value 2018-07-19 17:13:46 +00:00
t_msgrcv.c Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
t_msgsnd.c Annotate all changes made in r316178-r316180 with __FreeBSD__ 2017-03-30 07:13:47 +00:00
t_msync.c Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
t_nanosleep.c nanosleep(2): Fix bogus incrementing of rmtp by tc_tick_sbt on [EINTR]. 2018-02-14 18:43:50 +00:00
t_pipe2.c Fix two failing tests after ATF update 2021-02-15 22:55:12 +00:00
t_pipe.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_poll.c
t_posix_fadvise.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_posix_fallocate.c
t_recvmmsg.c
t_revoke.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_select.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_setrlimit.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_setuid.c
t_sigaction.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_sigqueue.c Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
t_sigtimedwait.c
t_socketpair.c Fix two failing tests after ATF update 2021-02-15 22:55:12 +00:00
t_stat.c Temporarily skip flakey test case lib.libc.sys.stat_test.stat_socket 2019-09-17 14:08:09 +00:00
t_swapcontext.c
t_timer_create.c Merge ^/vendor/NetBSD/tests/dist@r312294 2017-01-16 17:43:43 +00:00
t_truncate.c Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
t_ucontext.c
t_umask.c Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
t_unlink.c Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
t_wait_noproc_wnohang.c Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
t_wait_noproc.c Diff reduce with upstream and consolidate #ifdefs where possible 2017-01-15 22:00:59 +00:00
t_wait.c Skip tests depending on coredumps if coredumps are disabled via kern.coredump. 2017-05-16 18:42:44 +00:00
t_write.c Add missing mode in open(2) calls with O_CREAT. 2019-07-16 22:27:49 +00:00