freebsd-dev/contrib/netbsd-tests/lib/libc/gen
Alex Richardson 2aa3ef285a libc: Fix t_spawn_fileactions test 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 above 3 to get a
deterministic fd table allocation for the child. Instead of using closefrom
(which will close the ATF output file FD) I've changed this test use
the lowest available fd and pass that to the helper program as a string.

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/D28684
2021-02-18 14:02:47 +00:00
..
exect Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123 2017-01-14 06:49:17 +00:00
execve Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
posix_spawn libc: Fix t_spawn_fileactions test after ATF update 2021-02-18 14:02:47 +00:00
isqemu.h Detect virtual machines on FreeBSD using the kern.vm_guest sysctl 2016-08-26 03:46:43 +00:00
t_alarm.c
t_assert.c Import testcase updates with code contributed back to NetBSD 2017-01-11 09:51:34 +00:00
t_basedirname.c Disable tests for non-standard behaviour of dirname(3)/basename(3). 2016-08-15 19:05:41 +00:00
t_closefrom.c
t_cpuset.c libc: tests: hook CPUSET(9) test up to the build 2020-12-31 12:26:01 -06:00
t_dir.c o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
t_floatunditf.c Expect :floatunditf to fail on FreeBSD/i386 2017-02-07 04:15:41 +00:00
t_fmtcheck.c
t_fnmatch.c Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
t_fpclassify.c
t_fpsetmask.c Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
t_fpsetround.c
t_ftok.c Add missing mode in open(2) calls with O_CREAT. 2019-07-16 22:27:49 +00:00
t_getcwd.c
t_getgrent.c
t_glob.c Add GLOB_STAR #ifdef to testcases which require GLOB_STAR support 2017-01-16 07:41:39 +00:00
t_humanize_number.c r312133 should have used the non-FreeBSD block 2017-01-14 07:50:29 +00:00
t_isnan.c
t_nice.c Use right piece of code for FreeBSD. 2016-09-28 08:45:42 +00:00
t_pause.c
t_raise.c Merge the grammar fix for lib/libc/gen/raise_test:raise_stress 2017-01-10 10:12:36 +00:00
t_randomid.c Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
t_realpath.c lib/libc/gen/realpath_test: make check result from getcwd(3) 2017-05-15 19:58:01 +00:00
t_setdomainname.c Remove an extraneous strlen from t_setdomainname.c 2017-07-12 14:51:32 +00:00
t_sethostname.c Fix whitespace in comment 2017-01-11 09:34:42 +00:00
t_siginfo.c Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
t_sleep.c Diff reduce with upstream and consolidate #ifdefs where possible 2017-01-15 22:00:59 +00:00
t_syslog.c
t_time.c Import testcase updates with code contributed back to NetBSD 2017-01-11 09:51:34 +00:00
t_ttyname.c Import testcase updates with code contributed back to NetBSD 2017-01-11 09:51:34 +00:00
t_vis.c Import testcase updates with code contributed back to NetBSD 2017-01-11 09:51:34 +00:00