Attempt to fix a test failure on Solaris (open fails with EACCES).
authorBruno Haible <bruno@clisp.org>
Sat, 2 Jun 2007 01:55:30 +0000 (01:55 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 2 Jun 2007 01:55:30 +0000 (01:55 +0000)
ChangeLog
tests/test-binary-io.c

index a68b1e9..b79f1df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-06-01  Bruno Haible  <bruno@clisp.org>
 
+       * tests/test-binary-io.c (main): Pass a third argument to open().
+       Reported by Gary V. Vaughan <gary@gnu.org>.
+
+2007-06-01  Bruno Haible  <bruno@clisp.org>
+
        * doc/functions/frexpl.texi: Update for mingw.
 
 2007-06-01  Bruno Haible  <bruno@clisp.org>
@@ -7,6 +12,7 @@
        * tests/test-lseek.c (main): Disable test of errno for invalid third
        argument.
        * doc/functions/lseek.texi: Update.
+       Reported by Gary V. Vaughan <gary@gnu.org>.
 
 2007-05-28  Bruno Haible  <bruno@clisp.org>
 
index 98fe3e1..7a0fa5d 100644 (file)
@@ -44,7 +44,8 @@ main ()
 {
   /* Test the O_BINARY macro.  */
   {
-    int fd = open ("t-bin-out2.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
+    int fd =
+      open ("t-bin-out2.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY, 0600);
     if (write (fd, "Hello\n", 6) < 0)
       exit (1);
     close (fd);