summaryrefslogtreecommitdiffstats
path: root/src/H5Ffake.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-03-09 22:11:07 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-03-09 22:11:07 (GMT)
commit6b99b7b02edfbeba9c12f608839c91ba0a0d87b0 (patch)
tree5bb7de1264420dbe1d95b60f4cd17b8d4e856c82 /src/H5Ffake.c
parent496af1be89de67fee06f23e4e6354a0d18c3be92 (diff)
downloadhdf5-6b99b7b02edfbeba9c12f608839c91ba0a0d87b0.zip
hdf5-6b99b7b02edfbeba9c12f608839c91ba0a0d87b0.tar.gz
hdf5-6b99b7b02edfbeba9c12f608839c91ba0a0d87b0.tar.bz2
Resolve compilation errors.
Diffstat (limited to 'src/H5Ffake.c')
-rw-r--r--src/H5Ffake.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/H5Ffake.c b/src/H5Ffake.c
index 6072f2e..6720dd2 100644
--- a/src/H5Ffake.c
+++ b/src/H5Ffake.c
@@ -40,9 +40,10 @@
*-------------------------------------------------------------------------
*/
H5F_t *
-H5F_fake_alloc(uint8_t sizeof_size)
+H5F_fake_alloc(uint8_t sizeof_size, hid_t fapl_id)
{
H5F_t *f = NULL; /* Pointer to fake file struct */
+ H5P_genplist_t *plist; /* Property list */
H5F_t *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI(NULL)
@@ -59,6 +60,14 @@ H5F_fake_alloc(uint8_t sizeof_size)
else
f->shared->sizeof_size = sizeof_size;
+ /* Set low/high bounds according to the setting in fapl_id */
+ /* See H5F_new() in H5Fint.c */
+ if(NULL == (plist = (H5P_genplist_t *)H5I_object(fapl_id)))
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not file access property list")
+
+ f->shared->low_bound = H5F_LOW_BOUND(f);
+ f->shared->high_bound = H5F_HIGH_BOUND(f);
+
/* Set return value */
ret_value = f;