changeset 8910:a7e0b65d5c78

Attempt to fix a test failure on Solaris (open fails with EACCES).
author Bruno Haible <bruno@clisp.org>
date Sat, 02 Jun 2007 01:55:30 +0000
parents dcf6f4e1ef96
children c7bb3a4ffc9b
files ChangeLog tests/test-binary-io.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
@@ -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>
 
--- a/tests/test-binary-io.c
+++ b/tests/test-binary-io.c
@@ -44,7 +44,8 @@
 {
   /* 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);