posix_spawn: Avoid test failure on Cygwin.
authorBruno Haible <bruno@clisp.org>
Tue, 12 Jan 2010 22:26:57 +0000 (23:26 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 12 Jan 2010 22:26:57 +0000 (23:26 +0100)
ChangeLog
tests/test-posix_spawn3.c

index d7b9374dbaf2a690166451400be850a7587c4402..5c1b157c2b0f074baa56525f883593fa5085bf09 100644 (file)
--- 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.
index 56923b44078349228e7d7029f43ba618aaf10cac..c8a1db4bf1142d734ca5bf0901638c128571715d 100644 (file)
@@ -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)