posix_spawn_file_actions_addchdir tests: Enhance test.
commit038d5b4a42cf1e242ef97c8f29c152e35782ed10
authorBruno Haible <bruno@clisp.org>
Tue, 28 Apr 2020 10:34:19 +0000 (28 12:34 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 28 Apr 2020 10:34:19 +0000 (28 12:34 +0200)
tree79411acfe97c4945009bd07cf83fe42e8f60709e
parent5d0516ca8513f9346fb6a0ded2ba1569fe0f806a
posix_spawn_file_actions_addchdir tests: Enhance test.

* tests/test-posix_spawn4.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_addchdir-tests (Depends-on): Add
findprog.
ChangeLog
modules/posix_spawn_file_actions_addchdir-tests
tests/test-posix_spawn4.c