From: Bruno Haible Date: Tue, 12 Jan 2010 22:26:57 +0000 (+0100) Subject: posix_spawn: Avoid test failure on Cygwin. X-Git-Tag: v0.1~4748 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=4c52807f41f238cf0e352317b2dc54f9ba0f0c4f;p=gnulib.git posix_spawn: Avoid test failure on Cygwin. --- diff --git a/ChangeLog b/ChangeLog index d7b9374db..5c1b157c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-01-12 Bruno Haible + 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 + * tests/test-cond.c (main): When skipping the test, show the reason. 2010-01-12 Simon Josefsson diff --git a/tests/test-posix_spawn3.c b/tests/test-posix_spawn3.c index 56923b440..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, 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 @@ extern char **environ; #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)