* tests/test-execle-main.c (main): On Cygwin, add /bin to the new PATH.
* tests/test-execve-main.c (main): Likewise.
* tests/test-execvpe-main.c (main): Likewise.
+2021-01-20 Bruno Haible <bruno@clisp.org>
+
+ exec*e tests: Avoid test failures on Cygwin.
+ * tests/test-execle-main.c (main): On Cygwin, add /bin to the new PATH.
+ * tests/test-execve-main.c (main): Likewise.
+ * tests/test-execvpe-main.c (main): Likewise.
+
2021-01-20 Bruno Haible <bruno@clisp.org>
canonicalize-lgpl: Work around a Cygwin bug.
main ()
{
const char *progname = "./test-exec-child";
- const char *env[3] = { "PATH=.", "Hommingberg=Gepardenforelle", NULL };
+ const char *env[3] =
+ {
+ #ifdef __CYGWIN__
+ /* The Cygwin DLLs needed by the program are in /bin. */
+ "PATH=.:/bin",
+ #else
+ "PATH=.",
+ #endif
+ "Hommingberg=Gepardenforelle",
+ NULL
+ };
execle (progname,
progname,
"abc def",
main ()
{
const char *progname = "./test-exec-child";
- const char *env[3] = { "PATH=.", "Hommingberg=Gepardenforelle", NULL };
+ const char *env[3] =
+ {
+ #ifdef __CYGWIN__
+ /* The Cygwin DLLs needed by the program are in /bin. */
+ "PATH=.:/bin",
+ #else
+ "PATH=.",
+ #endif
+ "Hommingberg=Gepardenforelle",
+ NULL
+ };
const char *argv[12] =
{
progname,
main ()
{
const char *progname = "test-exec-child";
- const char *env[3] = { "PATH=.", "Hommingberg=Gepardenforelle", NULL };
+ const char *env[3] =
+ {
+ #ifdef __CYGWIN__
+ /* The Cygwin DLLs needed by the program are in /bin. */
+ "PATH=.:/bin",
+ #else
+ "PATH=.",
+ #endif
+ "Hommingberg=Gepardenforelle",
+ NULL
+ };
const char *argv[12] =
{
progname,