summaryrefslogtreecommitdiffstats
path: root/test/btree2.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-06-02 17:37:37 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-06-02 17:37:37 (GMT)
commit3525de8fede588e143fcff837ebd1c7b0ad59252 (patch)
tree9d830f27f725c0de3ff5d7300e3cc48fe840132e /test/btree2.c
parent0a3f8239e65b9405634560bc5e648247748bcdfa (diff)
parent5cb9c40847d1706ce82a2b2cda4c6c5596b10994 (diff)
downloadhdf5-3525de8fede588e143fcff837ebd1c7b0ad59252.zip
hdf5-3525de8fede588e143fcff837ebd1c7b0ad59252.tar.gz
hdf5-3525de8fede588e143fcff837ebd1c7b0ad59252.tar.bz2
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit '5cb9c40847d1706ce82a2b2cda4c6c5596b10994': Fixed typo in vfd.c from 'updated VFD feature flag' checkin. Rework of the POSIX file open permissions and macros to clean up HDopen() calls. Changed the Windows POSIX open() file permissions to be correct according to MSDN. Partial fix for HDFFV-9630.
Diffstat (limited to 'test/btree2.c')
-rw-r--r--test/btree2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/btree2.c b/test/btree2.c
index ec3e20e..4c820b3 100644
--- a/test/btree2.c
+++ b/test/btree2.c
@@ -8736,7 +8736,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
/* Make a copy of the file in memory, in order to speed up deletion testing */
/* Open the file just created */
- if((fd = HDopen(filename, O_RDONLY, 0)) < 0)
+ if((fd = HDopen(filename, O_RDONLY)) < 0)
TEST_ERROR
/* Retrieve the file's size */
@@ -8833,7 +8833,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
/* Re-write the file's data with the copy in memory */
/* Open the file just created */
- if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0)
+ if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, H5_POSIX_CREATE_MODE_RW)) < 0)
TEST_ERROR
/* Write file's data from memory */
@@ -8920,7 +8920,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
/* Re-write the file's data with the copy in memory */
/* Open the file just created */
- if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0)
+ if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, H5_POSIX_CREATE_MODE_RW)) < 0)
TEST_ERROR
/* Write file's data from memory */
@@ -9005,7 +9005,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
/* Re-write the file's data with the copy in memory */
/* Open the file just created */
- if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0)
+ if((fd = HDopen(filename, O_RDWR|O_CREAT|O_TRUNC, H5_POSIX_CREATE_MODE_RW)) < 0)
TEST_ERROR
/* Write file's data from memory */