# HG changeset patch # User Bruno Haible # Date 1180749330 0 # Node ID a7e0b65d5c7812aa05a78cb796b1c8b2c82f0292 # Parent dcf6f4e1ef96ed3fdbcca03f35c649582333df56 Attempt to fix a test failure on Solaris (open fails with EACCES). diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-01 Bruno Haible + + * tests/test-binary-io.c (main): Pass a third argument to open(). + Reported by Gary V. Vaughan . + 2007-06-01 Bruno Haible * 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 . 2007-05-28 Bruno Haible diff --git a/tests/test-binary-io.c b/tests/test-binary-io.c --- 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);