summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2020-08-10 18:14:02 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2020-08-10 18:14:02 (GMT)
commit98c184e1306196e47e4bacdca5ac54c808c565bc (patch)
treedb08c0e198dc8e35fb4ed3d29a6a91da3cc49113 /test
parent79a2e34f88af7c7290401607f1dd1fed822dc414 (diff)
parentc0ff30d23948dd8801f231ea178fd8051c5c08dd (diff)
downloadhdf5-98c184e1306196e47e4bacdca5ac54c808c565bc.zip
hdf5-98c184e1306196e47e4bacdca5ac54c808c565bc.tar.gz
hdf5-98c184e1306196e47e4bacdca5ac54c808c565bc.tar.bz2
Merge remote-tracking branch 'origin/develop' into namespace_cleanup_01
Diffstat (limited to 'test')
-rw-r--r--test/h5test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 255932a..497a5f2 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -2255,15 +2255,15 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-h5_check_if_file_locking_enabled(hbool_t *are_enabled)
+h5_check_if_file_locking_enabled(hbool_t *is_enabled)
{
const char *filename = "locking_test_file";
- mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
+ int pmode = O_RDWR | O_CREAT | O_TRUNC;
int fd = -1;
- *are_enabled = TRUE;
+ *is_enabled = TRUE;
- if((fd = HDcreat(filename, mode)) < 0)
+ if((fd = HDopen(filename, pmode, H5_POSIX_CREATE_MODE_RW)) < 0)
goto error;
/* Test HDflock() to see if it works */
@@ -2277,7 +2277,7 @@ h5_check_if_file_locking_enabled(hbool_t *are_enabled)
* error condition.
*/
errno = 0;
- *are_enabled = FALSE;
+ *is_enabled = FALSE;
}
else
goto error;
@@ -2293,7 +2293,7 @@ h5_check_if_file_locking_enabled(hbool_t *are_enabled)
return SUCCEED;
error:
- *are_enabled = FALSE;
+ *is_enabled = FALSE;
if (fd > -1) {
HDclose(fd);
HDremove(filename);