X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-posix_spawn3.c;h=c8a1db4bf1142d734ca5bf0901638c128571715d;hb=c5728261c324a75f8d23dd7d10cb42dde9420227;hp=ec5d46826bd27c367491cd64a162f4143aa2b5f6;hpb=0153b9171b1b4592f27bd5ce664a3b390d5c17f6;p=gnulib.git diff --git a/tests/test-posix_spawn3.c b/tests/test-posix_spawn3.c index ec5d46826..c8a1db4bf 100644 --- a/tests/test-posix_spawn3.c +++ b/tests/test-posix_spawn3.c @@ -1,5 +1,5 @@ /* Test of posix_spawn() function. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,6 +23,11 @@ #include +#include "signature.h" +SIGNATURE_CHECK (posix_spawn, int, (pid_t *, char const *, + posix_spawn_file_actions_t const *, + posix_spawnattr_t const *, + char *const[], char *const[])); #include #include #include @@ -35,18 +40,13 @@ extern char **environ; -#ifndef STDIN_FILENO -# define STDIN_FILENO 0 -#endif -#ifndef STDOUT_FILENO -# define STDOUT_FILENO 1 -#endif -#ifndef STDERR_FILENO -# define STDERR_FILENO 2 -#endif - #define CHILD_PROGRAM_FILENAME "test-posix_spawn3" #define DATA_FILENAME "t!#$%&'()*+,-;=?@[\\]^_`{|}~.tmp" +/* On Cygwin, '*' '?' '\\' '|' cannot be used in file names. */ +#if defined __CYGWIN__ +# undef DATA_FILENAME +# define DATA_FILENAME "t!#$%&'()+,-;=@[]^_`{}~.tmp" +#endif static int parent_main (void)