From 2ef8c372c5d3c0b6af7fe6fdce4c6559af581e59 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Wed, 3 Dec 2008 21:25:21 -0500 Subject: [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 --- test/set_extent.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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; + } + + + + } /*------------------------------------------------------------------------- -- cgit v0.12