changeset 39848:b7ec445e40de

posix_spawn tests: Fix link error on 64-bit Cygwin. * tests/test-posix_spawn1.c (environ): Remove declaration. * tests/test-posix_spawn2.c (environ): Likewise. * tests/test-posix_spawn3.c (environ): Likewise. * tests/test-posix_spawn4.c (environ): Likewise. * modules/posix_spawn-tests (Depends-on): Add 'environ'. * modules/posix_spawnp-tests (Depends-on): Likewise.
author Bruno Haible <bruno@clisp.org>
date Tue, 18 Sep 2018 20:18:38 +0200
parents 7245e73971d4
children 482fa4c640fc
files ChangeLog modules/posix_spawn-tests modules/posix_spawnp-tests tests/test-posix_spawn1.c tests/test-posix_spawn2.c tests/test-posix_spawn3.c tests/test-posix_spawn4.c
diffstat 7 files changed, 13 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Sep 16 14:41:36 2018 -0700
+++ b/ChangeLog	Tue Sep 18 20:18:38 2018 +0200
@@ -1,3 +1,13 @@
+2018-09-18  Bruno Haible  <bruno@clisp.org>
+
+	posix_spawn tests: Fix link error on 64-bit Cygwin.
+	* tests/test-posix_spawn1.c (environ): Remove declaration.
+	* tests/test-posix_spawn2.c (environ): Likewise.
+	* tests/test-posix_spawn3.c (environ): Likewise.
+	* tests/test-posix_spawn4.c (environ): Likewise.
+	* modules/posix_spawn-tests (Depends-on): Add 'environ'.
+	* modules/posix_spawnp-tests (Depends-on): Likewise.
+
 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
 
 	timespec: new function current_timespec
--- a/modules/posix_spawn-tests	Sun Sep 16 14:41:36 2018 -0700
+++ b/modules/posix_spawn-tests	Tue Sep 18 20:18:38 2018 +0200
@@ -9,6 +9,7 @@
 stdbool
 unistd
 sys_wait
+environ
 
 configure.ac:
 AC_EGREP_CPP([notposix], [[
--- a/modules/posix_spawnp-tests	Sun Sep 16 14:41:36 2018 -0700
+++ b/modules/posix_spawnp-tests	Tue Sep 18 20:18:38 2018 +0200
@@ -15,11 +15,12 @@
 posix_spawnattr_setsigmask
 posix_spawnattr_setflags
 posix_spawnattr_destroy
-sigprocmask
 stdbool
 unistd
 sys_wait
 dup
+environ
+sigprocmask
 
 configure.ac:
 AC_EGREP_CPP([notposix], [[
--- a/tests/test-posix_spawn1.c	Sun Sep 16 14:41:36 2018 -0700
+++ b/tests/test-posix_spawn1.c	Tue Sep 18 20:18:38 2018 +0200
@@ -53,8 +53,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 #define CHILD_PROGRAM_FILENAME "test-posix_spawn1.sh"
 
 static int
--- a/tests/test-posix_spawn2.c	Sun Sep 16 14:41:36 2018 -0700
+++ b/tests/test-posix_spawn2.c	Tue Sep 18 20:18:38 2018 +0200
@@ -31,8 +31,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 #define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh"
 
 static int
--- a/tests/test-posix_spawn3.c	Sun Sep 16 14:41:36 2018 -0700
+++ b/tests/test-posix_spawn3.c	Tue Sep 18 20:18:38 2018 +0200
@@ -38,8 +38,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 #define CHILD_PROGRAM_FILENAME "test-posix_spawn3"
 #define DATA_FILENAME "t!#$%&'()*+,-;=?@[\\]^_`{|}~.tmp"
 /* On Cygwin, '*' '?' '\\' '|' cannot be used in file names.  */
--- a/tests/test-posix_spawn4.c	Sun Sep 16 14:41:36 2018 -0700
+++ b/tests/test-posix_spawn4.c	Tue Sep 18 20:18:38 2018 +0200
@@ -31,8 +31,6 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-extern char **environ;
-
 static int
 fd_safer (int fd)
 {