summaryrefslogtreecommitdiffstats
path: root/test/set_extent.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-12-04 02:25:21 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-12-04 02:25:21 (GMT)
commit2ef8c372c5d3c0b6af7fe6fdce4c6559af581e59 (patch)
treeaf4654f9d2a1ea0c6b35077a434c923c05ad5ec0 /test/set_extent.c
parent0e3797d58ab9c9fe455e7a8311207e1d681f421d (diff)
downloadhdf5-2ef8c372c5d3c0b6af7fe6fdce4c6559af581e59.zip
hdf5-2ef8c372c5d3c0b6af7fe6fdce4c6559af581e59.tar.gz
hdf5-2ef8c372c5d3c0b6af7fe6fdce4c6559af581e59.tar.bz2
[svn-r16156] 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;
+ }
+
+
+
+ }
/*-------------------------------------------------------------------------