History log of /src/tests/lib/libc/gen/posix_spawn/t_fileactions.c |
Revision | | Date | Author | Comments |
1.11 |
| 12-Jul-2025 |
gutteridge | t_fileactions.c: fix typos in comments
|
1.10 |
| 10-Jul-2025 |
martin | In the test code for PR 59523 move the redirect of stdout to the end of the fileactions, to avoid any interference with the assumptions of the test-relevant file actions. We can not guarantee anny of this anyway (but it did trigger the original problem and both paths in the kernel before the bug was fixed). Pointed out by kre.
|
1.9 |
| 09-Jul-2025 |
martin | Add two test cases triggereing the two paths in posix_spawn that cause PR 59523.
|
1.8 |
| 16-Mar-2025 |
riastradh | tests/lib/libc/gen/posix_spawn: Spruce up a bit.
- KNF - Don't touch files outside the test working directory. - No need to pre-clean files -- atf gives us an empty tempdir. - Use h_macros.h to simplify a lot of checks. - Use names for enumerated arguments, not magic numbers. - Check some more syscalls. - Add include guard.
|
1.7 |
| 07-Nov-2021 |
christos | branches: 1.7.4; new tests for posix_spawn_chdir from Piyush Sachdeva
|
1.6 |
| 10-Jan-2017 |
christos | more tests needing <sys/stat.h>
|
1.5 |
| 09-Apr-2012 |
martin | branches: 1.5.2; 1.5.16; Fix asynchronous posix_spawn child exit status (and test for it).
|
1.4 |
| 08-Apr-2012 |
martin | Rework posix_spawn locking and memory management: - always provide a vmspace for the new proc, initially borrowing from proc0 (this part fixes PR 46286) - increase parallelism between parent and child if arguments allow this, avoiding a potential deadlock on exec_lock - add a new flag for userland to request old (lockstepped) behaviour for better error reporting - adapt test cases to the previous two and add a new variant to test the diagnostics flag - fix a few memory (and lock) leaks - provide netbsd32 compat
|
1.3 |
| 20-Feb-2012 |
martin | Add a test case to call posix_spawn with empty file actions, which reproduced the (now fixed) PR kern/46038.
|
1.2 |
| 14-Feb-2012 |
martin | branches: 1.2.2; Add a few more posix_spawn testcases, which should detect everything that was wrong in the initial version, causing the failure reported in PR kern/45991.
|
1.1 |
| 13-Feb-2012 |
martin | Move posix_spawn tests to lib/libc/gen/posix_spawn - they test both libc and kernel, but that is an implementation detail unrelated to the tests themselfs. Ok: releng
|
1.2.2.2 |
| 12-Apr-2012 |
riz | Pull up following revision(s) (requested by martin in ticket #175): sys/kern/kern_exit.c: revision 1.238 tests/lib/libc/gen/posix_spawn/t_fileactions.c: revision 1.4 tests/lib/libc/gen/posix_spawn/t_fileactions.c: revision 1.5 sys/uvm/uvm_extern.h: revision 1.183 lib/libc/gen/posix_spawn_fileactions.c: revision 1.2 sys/kern/kern_exec.c: revision 1.348 sys/kern/kern_exec.c: revision 1.349 sys/compat/netbsd32/syscalls.master: revision 1.95 sys/uvm/uvm_glue.c: revision 1.159 sys/uvm/uvm_map.c: revision 1.317 sys/compat/netbsd32/netbsd32.h: revision 1.95 sys/kern/exec_elf.c: revision 1.38 sys/sys/spawn.h: revision 1.2 sys/sys/exec.h: revision 1.135 sys/compat/netbsd32/netbsd32_execve.c: revision 1.34 Rework posix_spawn locking and memory management: - always provide a vmspace for the new proc, initially borrowing from proc0 (this part fixes PR 46286) - increase parallelism between parent and child if arguments allow this, avoiding a potential deadlock on exec_lock - add a new flag for userland to request old (lockstepped) behaviour for better error reporting - adapt test cases to the previous two and add a new variant to test the diagnostics flag - fix a few memory (and lock) leaks - provide netbsd32 compat Fix asynchronous posix_spawn child exit status (and test for it).
|
1.2.2.1 |
| 20-Feb-2012 |
sborrill | Pull up the following revisions(s) (requested by martin in ticket #14): include/spawn.h: revision 1.2 sys/kern/kern_exec.c: revision 1.341 sys/uvm/uvm_glue.c: revision 1.157 tests/lib/libc/gen/posix_spawn/t_fileactions.c: revision 1.3
posix_spawn: fix kernel bug when passing empty fileactions (PR kern/46038) and add a test case for this. Fix potential race condition, doublefreeing of memory and memory leaks in error cases.
|
1.5.16.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.5.2.2 |
| 17-Apr-2012 |
yamt | sync with head
|
1.5.2.1 |
| 09-Apr-2012 |
yamt | file t_fileactions.c was added on branch yamt-pagecache on 2012-04-17 00:09:11 +0000
|
1.7.4.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|