diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/extend.c | 3 | ||||
-rw-r--r-- | test/set_extent.c | 2 | ||||
-rw-r--r-- | test/tmisc.c | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/test/extend.c b/test/extend.c index 23625fd..07c8dba 100644 --- a/test/extend.c +++ b/test/extend.c @@ -48,7 +48,7 @@ static int buf1[NY][NX], buf2[NX/2][NY/2]; * *------------------------------------------------------------------------- */ -int +static int write_data(const char *msg, hid_t file, const char *name, hid_t cparms, hid_t mem_space) { hid_t dataset, file_space, half_space; @@ -105,7 +105,6 @@ write_data(const char *msg, hid_t file, const char *name, hid_t cparms, hid_t me for (k=0; k<NX/2; k++) { for (m=0; m<NY/2; m++) { if (buf2[k][m]!=buf1[(i%2)*NX/2+k][(j%2)*NY/2+m]) { - H5_FAILED(); printf(" i=%d, j=%d, k=%d, m=%d\n", i, j, k, m); printf(" buf2[%d][%d]=%d\n",k,m,buf2[k][m]); printf(" buf1[%d][%d]=%d\n",(i%2)*NX/2+k,(j%2)*NY/2+m,buf1[(i%2)*NX/2+k][(j%2)*NY/2+m]); diff --git a/test/set_extent.c b/test/set_extent.c index 220c376..0c77123 100644 --- a/test/set_extent.c +++ b/test/set_extent.c @@ -177,6 +177,7 @@ int main( void ) /* Modify dataset creation properties, i.e. enable chunking. */ if ((plist_id = H5Pcreate (H5P_DATASET_CREATE ))<0) goto out; if (H5Pset_chunk( plist_id, RANK, dims_chunk )<0) goto out; + if (H5Pset_fill_time( plist_id, H5D_FILL_TIME_ALLOC)<0) goto out; /*------------------------------------------------------------------------- * Create and write one dataset @@ -383,6 +384,7 @@ int main( void ) /* Modify dataset creation properties, i.e. enable chunking. */ if ((plist_id = H5Pcreate (H5P_DATASET_CREATE ))<0) goto out; if (H5Pset_chunk( plist_id, RANK, dims_chunk )<0) goto out; + if (H5Pset_fill_time( plist_id, H5D_FILL_TIME_ALLOC)<0) goto out; /* Create a new dataset within the file using cparms creation properties. */ if ((dataset_id = H5Dcreate( file_id , "Dataset2", H5T_NATIVE_INT, space_id, plist_id ))<0) goto out; diff --git a/test/tmisc.c b/test/tmisc.c index b14fb8e..71d7563 100644 --- a/test/tmisc.c +++ b/test/tmisc.c @@ -1223,6 +1223,10 @@ test_misc8(void) ret = H5Pset_alloc_time(dcpl,H5D_ALLOC_TIME_EARLY); CHECK(ret, FAIL, "H5Pset_alloc_time"); + /* Set the fill time to allocation */ + ret = H5Pset_fill_time(dcpl,H5D_FILL_TIME_ALLOC); + CHECK(ret, FAIL, "H5Pset_alloc_time"); + /* Create a contiguous dataset, with space allocation early */ did = H5Dcreate(fid, MISC8_DSETNAME4, H5T_NATIVE_INT, sid, dcpl); CHECK(did, FAIL, "H5Dcreate"); |