[PATCH v3 2/2] test: simplify spawning extra test processes

Bruce Richardson bruce.richardson at intel.com
Tue Apr 21 17:27:13 CEST 2026


On Wed, Apr 08, 2026 at 06:44:04PM +0100, Bruce Richardson wrote:
> A number of tests require secondary processes or additional primary
> process instances, so we have common code for managing that in the test
> binary. Simplify that code a little, in the process removing dependency
> on procfs on FreeBSD, by using argv[0] as the binary to run, rather than
> querying procfs for /proc/self/exe (or /proc/curproc/file on FreeBSD).
> The unit tests should never be running in a way that leads to argv[0]
> not being the actual test binary.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> Tested-by: Adam Hassick <ahassick at iol.unh.edu>
> ---
>  app/test/process.h | 20 ++------------------
>  1 file changed, 2 insertions(+), 18 deletions(-)
> 
Recheck-request: loongson-unit-loongarch64


More information about the dev mailing list