Mercurial > hg > octave-kai > gnulib-hg
changeset 10686:fed096a2c3cd
Use gnulib's sys/wait.h replacement.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 21 Oct 2008 00:58:48 +0200 |
parents | 6473cab5bf8b |
children | 8ddeb7137f43 |
files | ChangeLog modules/posix_spawnp-tests tests/test-posix_spawn1.c tests/test-posix_spawn2.c |
diffstat | 4 files changed, 9 insertions(+), 38 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-20 Bruno Haible <bruno@clisp.org> + + * modules/posix_spawnp-tests (Depends-on): Add sys_wait. + * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS, + WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions. + * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS, + WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise. + 2008-10-20 Bruno Haible <bruno@clisp.org> * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
--- a/modules/posix_spawnp-tests +++ b/modules/posix_spawnp-tests @@ -17,6 +17,7 @@ sigprocmask stdbool unistd +sys_wait configure.ac:
--- a/tests/test-posix_spawn1.c +++ b/tests/test-posix_spawn1.c @@ -43,25 +43,6 @@ # define STDERR_FILENO 2 #endif -#ifndef WTERMSIG -# define WTERMSIG(x) ((x) & 0x7f) -#endif -#ifndef WCOREDUMP -# define WCOREDUMP(x) ((x) & 0x80) -#endif -#ifndef WEXITSTATUS -# define WEXITSTATUS(x) (((x) >> 8) & 0xff) -#endif -#ifndef WIFSIGNALED -# define WIFSIGNALED(x) (WTERMSIG (x) != 0 && WTERMSIG(x) != 0x7f) -#endif -#ifndef WIFEXITED -# define WIFEXITED(x) (WTERMSIG (x) == 0) -#endif -#ifndef WIFSTOPPED -# define WIFSTOPPED(x) (WTERMSIG (x) == 0x7f) -#endif - #define CHILD_PROGRAM_FILENAME "test-posix_spawn1.sh" static int
--- a/tests/test-posix_spawn2.c +++ b/tests/test-posix_spawn2.c @@ -43,25 +43,6 @@ # define STDERR_FILENO 2 #endif -#ifndef WTERMSIG -# define WTERMSIG(x) ((x) & 0x7f) -#endif -#ifndef WCOREDUMP -# define WCOREDUMP(x) ((x) & 0x80) -#endif -#ifndef WEXITSTATUS -# define WEXITSTATUS(x) (((x) >> 8) & 0xff) -#endif -#ifndef WIFSIGNALED -# define WIFSIGNALED(x) (WTERMSIG (x) != 0 && WTERMSIG(x) != 0x7f) -#endif -#ifndef WIFEXITED -# define WIFEXITED(x) (WTERMSIG (x) == 0) -#endif -#ifndef WIFSTOPPED -# define WIFSTOPPED(x) (WTERMSIG (x) == 0x7f) -#endif - #define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh" static int