summaryrefslogtreecommitdiffstats
path: root/test/tmisc.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2018-07-12 19:31:02 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2018-07-12 19:31:02 (GMT)
commit08a8202eda7a79495a6d48f6be2c0b114e11750f (patch)
treea9e9b75fccae8e28ce7d07075808687979eb5e2d /test/tmisc.c
parentb6fcbf4bb0f693fd6a0517f0ff3f74d52b329d1e (diff)
downloadhdf5-08a8202eda7a79495a6d48f6be2c0b114e11750f.zip
hdf5-08a8202eda7a79495a6d48f6be2c0b114e11750f.tar.gz
hdf5-08a8202eda7a79495a6d48f6be2c0b114e11750f.tar.bz2
Vailin's fix for H5open fail when file doesn't have write permissions
for user in test_misc33(). The test file can be opened read-only because the test doesn't write to it.
Diffstat (limited to 'test/tmisc.c')
-rw-r--r--test/tmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tmisc.c b/test/tmisc.c
index 07234e9..1e62302 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -5499,7 +5499,7 @@ test_misc33(void)
MESSAGE(5, ("Testing that bad offset into the heap returns error"));
/* Open the test file */
- fid = H5Fopen(testfile, H5F_ACC_RDWR, H5P_DEFAULT);
+ fid = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT);
CHECK(fid, FAIL, "H5Fopen");
/* Case (1) */