summaryrefslogtreecommitdiffstats
path: root/test/set_extent.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-12-04 02:31:12 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-12-04 02:31:12 (GMT)
commit4cb7515496888e93917b64648aaf3674e89b95df (patch)
tree1ada906a8c7ecede8c22de8489dfcb5deb93bed2 /test/set_extent.c
parent7c5468f27f846eeb7eccdddb7641445c4a9302cd (diff)
downloadhdf5-4cb7515496888e93917b64648aaf3674e89b95df.zip
hdf5-4cb7515496888e93917b64648aaf3674e89b95df.tar.gz
hdf5-4cb7515496888e93917b64648aaf3674e89b95df.tar.bz2
[svn-r16157] merge 16156
close & re-open the file for the test of non-default B-tree internal 'K' value (There was a bug where a non-default B-tree internal 'K' value was not being stored in the file) this is a rewrite of the old set_extent.c test program tested: windows, linux
Diffstat (limited to 'test/set_extent.c')
-rw-r--r--test/set_extent.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/set_extent.c b/test/set_extent.c
index baf7aad..5963182 100644
--- a/test/set_extent.c
+++ b/test/set_extent.c
@@ -497,6 +497,35 @@ static int test( hbool_t do_compress, hbool_t do_fill_value, hbool_t set_istore_
if (dims_r[i] != dims_s[i])
goto error;
}
+
+
+
+ /* for this case we close and reopen file */
+ if ( set_istore_k )
+ {
+
+ if (H5Dclose(did) < 0)
+ {
+ goto error;
+ }
+ if (H5Fclose(fid) < 0)
+ {
+ goto error;
+ }
+
+ if ((fid = H5Fopen( "set_extent1.h5", H5F_ACC_RDWR, H5P_DEFAULT ))<0)
+ {
+ goto error;
+ }
+
+ if ((did = H5Dopen2( fid , "dset1", H5P_DEFAULT ))<0)
+ {
+ goto error;
+ }
+
+
+
+ }
/*-------------------------------------------------------------------------