tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Which way for posix_spawn close-on-exec improvements?



Am 19.04.2026 um 02:47 schrieb Chris Hanson:
> On Apr 18, 2026, at 5:37 PM, Chris Hanson <cmhanson%eschatologist.net@localhost> wrote:
>>
>> Where should I look for test cases that cover posix_spawn and how to run them?
> 
> Aha, I’ve found tests/lib/libc/gen/posix_spawn and am getting an idea of how to write the tests.
> 
> Now I just need to figure out how to run them…

$ cd tests/lib/libc/gen/posix_spawn
$ make
$ su root -c "make install"
$ make test

If you need a shortcut to the "make install" part, and you only want to
run a single test case, maybe in a loop, you can also:

$ cd tests/lib/libc/gen/posix_spawn
$ make
$ ./t_spawn -l
$ watch ./t_spawn t_spawn_zero

Roland



Home | Main Index | Thread Index | Old Index