Mercurial > hg > octave-jordi > gnulib-hg
changeset 12739:28283035637b
posix_spawn: Avoid test failure on Cygwin.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 12 Jan 2010 23:26:57 +0100 |
parents | 906355caec2a |
children | a9f31dbb3cae |
files | ChangeLog tests/test-posix_spawn3.c |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-01-12 Bruno Haible <bruno@clisp.org> + + posix_spawn: Avoid test failure on Cygwin. + * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky + characters. + Reported by Simon Josefsson. + 2010-01-12 Bruno Haible <bruno@clisp.org> * tests/test-cond.c (main): When skipping the test, show the reason.
--- a/tests/test-posix_spawn3.c +++ b/tests/test-posix_spawn3.c @@ -1,5 +1,5 @@ /* Test of posix_spawn() function. - Copyright (C) 2008, 2009, 2010 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 @@ -42,6 +42,11 @@ #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)