>From 5ec4d920e4acb45225320c3df9ae32fdff928413 Mon Sep 17 00:00:00 2001 From: Bruno Haible
Date: Tue, 28 Apr 2020 12:35:19 +0200 Subject: [PATCH 2/2] posix_spawn_file_actions_addfchdir tests: Enhance test. * tests/test-posix_spawn5.c: Include findprog.h. (test): New function, extracted from main. (main): Invoke it. Also, invoke it with a program name such as "bin/pwd". * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add findprog. --- ChangeLog | 10 +++++++++ modules/posix_spawn_file_actions_addfchdir-tests | 1 + tests/test-posix_spawn5.c | 27 +++++++++++++++++++++--- 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4986ad2..ec8db18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2020-04-28 Bruno Haible + posix_spawn_file_actions_addfchdir tests: Enhance test. + * tests/test-posix_spawn5.c: Include findprog.h. + (test): New function, extracted from main. + (main): Invoke it. Also, invoke it with a program name such as + "bin/pwd". + * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add + findprog. + +2020-04-28 Bruno Haible + posix_spawn_file_actions_addchdir tests: Enhance test. * tests/test-posix_spawn4.c: Include findprog.h. (test): New function, extracted from main. diff --git a/modules/posix_spawn_file_actions_addfchdir-tests b/modules/posix_spawn_file_actions_addfchdir-tests index 5e50695..809d238 100644 --- a/modules/posix_spawn_file_actions_addfchdir-tests +++ b/modules/posix_spawn_file_actions_addfchdir-tests @@ -7,6 +7,7 @@ tests/macros.h Depends-on: posix_spawn_file_actions_init posix_spawnp-tests +findprog configure.ac: diff --git a/tests/test-posix_spawn5.c b/tests/test-posix_spawn5.c index 375f08f..c5ca2a3 100644 --- a/tests/test-posix_spawn5.c +++ b/tests/test-posix_spawn5.c @@ -31,6 +31,8 @@ #include