summaryrefslogtreecommitdiffstats
path: root/test/tmisc.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-07-12 18:55:45 (GMT)
committerM. Scot Breitenfeld <brtnfld@hdfgroup.org>2018-07-26 22:17:12 (GMT)
commit114a63a2588a4886ebd120d3b5e90c4363a6ed78 (patch)
treed748385c5f496f3b4c1c54c9bf467992b788ee0d /test/tmisc.c
parentd79475c4822816c780bd622f73c3740024595343 (diff)
downloadhdf5-114a63a2588a4886ebd120d3b5e90c4363a6ed78.zip
hdf5-114a63a2588a4886ebd120d3b5e90c4363a6ed78.tar.gz
hdf5-114a63a2588a4886ebd120d3b5e90c4363a6ed78.tar.bz2
Fix test_misc33() in test/tmisc.c
Open the test file read-only so that it can be accessed for testing.
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) */