mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
Merge pull request #1951 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit 'a08b3adecea1034cf0a20a6ff35b9980fb3d8cb8': Add new versioned filename to list
This commit is contained in:
commit
7b09c325cb
@ -53,6 +53,7 @@ const char *FILENAME[] = {
|
||||
"tchunk_info_v18",
|
||||
"tchunk_info_v110",
|
||||
"tchunk_info_v112",
|
||||
"tchunk_info_v114",
|
||||
NULL
|
||||
};
|
||||
|
||||
@ -786,7 +787,7 @@ test_chunk_info_single_chunk(const char *filename, hid_t fapl)
|
||||
/* Open the file for reading/writing */
|
||||
if((chunkfile = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
|
||||
TEST_ERROR
|
||||
|
||||
|
||||
/* Create dataspace */
|
||||
if((dspace = H5Screate_simple(RANK, dims, NULL)) < 0)
|
||||
TEST_ERROR
|
||||
@ -840,7 +841,7 @@ test_chunk_info_single_chunk(const char *filename, hid_t fapl)
|
||||
/* Get and verify info of the first and only chunk */
|
||||
if(verify_get_chunk_info(dset, H5S_ALL, 0, SINGLE_CHK_SIZE, offset, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification H5Dget_chunk_info failed\n");
|
||||
|
||||
|
||||
/* Get and verify info of the chunk at logical coordinates (0,0) */
|
||||
if(verify_get_chunk_info_by_coord(dset, offset, SINGLE_CHK_SIZE, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification of H5Dget_chunk_info_by_coord failed\n");
|
||||
@ -912,7 +913,7 @@ test_chunk_info_implicit(char *filename, hid_t fapl)
|
||||
/* Open the file for reading/writing */
|
||||
if((chunkfile = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
|
||||
TEST_ERROR
|
||||
|
||||
|
||||
/* Create dataspace */
|
||||
if((dspace = H5Screate_simple(RANK, dims, NULL)) < 0)
|
||||
TEST_ERROR
|
||||
@ -984,7 +985,7 @@ error:
|
||||
H5_FAILED();
|
||||
return FAIL;
|
||||
} /* test_chunk_info_implicit() */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: test_chunk_info_fixed_array
|
||||
*
|
||||
@ -1029,7 +1030,7 @@ test_chunk_info_fixed_array(const char *filename, hid_t fapl)
|
||||
/* Open the file for reading/writing */
|
||||
if((chunkfile = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
|
||||
TEST_ERROR
|
||||
|
||||
|
||||
/* Create dataspace */
|
||||
if((dspace = H5Screate_simple(RANK, dims, NULL)) < 0)
|
||||
TEST_ERROR
|
||||
@ -1115,7 +1116,7 @@ error:
|
||||
H5_FAILED();
|
||||
return FAIL;
|
||||
} /* test_chunk_info_fixed_array() */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: test_chunk_info_extensible_array
|
||||
*
|
||||
@ -1161,7 +1162,7 @@ test_chunk_info_extensible_array(const char *filename, hid_t fapl)
|
||||
/* Open the file for reading/writing */
|
||||
if((chunkfile = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
|
||||
TEST_ERROR
|
||||
|
||||
|
||||
/* Create dataspace */
|
||||
if((dspace = H5Screate_simple(RANK, dims, maxdims)) < 0)
|
||||
TEST_ERROR
|
||||
@ -1298,7 +1299,7 @@ test_chunk_info_version2_btrees(const char *filename, hid_t fapl)
|
||||
/* Open the file for reading/writing */
|
||||
if((chunkfile = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
|
||||
TEST_ERROR
|
||||
|
||||
|
||||
/* Create dataspace */
|
||||
if((dspace = H5Screate_simple(RANK, dims, maxdims)) < 0)
|
||||
TEST_ERROR
|
||||
@ -1475,7 +1476,7 @@ test_basic_query(hid_t fapl)
|
||||
/* Get and verify info of the first and only chunk */
|
||||
if(verify_get_chunk_info(dset, H5S_ALL, 0, CHK_SIZE, offset, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification H5Dget_chunk_info failed\n");
|
||||
|
||||
|
||||
/* Get and verify info of the chunk at the offset (CHUNK_NX,CHUNK_NY) */
|
||||
if(verify_get_chunk_info_by_coord(dset, offset, CHK_SIZE, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification of H5Dget_chunk_info_by_coord failed\n");
|
||||
@ -1504,7 +1505,7 @@ test_basic_query(hid_t fapl)
|
||||
offset should be (0,0) */
|
||||
if(verify_get_chunk_info(dset, H5S_ALL, 0, CHK_SIZE, offset, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification H5Dget_chunk_info failed\n");
|
||||
|
||||
|
||||
/* Get and verify info of the chunk at the offset (0,0) */
|
||||
if(verify_get_chunk_info_by_coord(dset, offset, CHK_SIZE, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification of H5Dget_chunk_info_by_coord failed\n");
|
||||
@ -1515,12 +1516,12 @@ test_basic_query(hid_t fapl)
|
||||
offset[1] = CHUNK_NY;
|
||||
if(verify_get_chunk_info(dset, H5S_ALL, 1, CHK_SIZE, offset, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification H5Dget_chunk_info failed\n");
|
||||
|
||||
|
||||
/* Get and verify info of the chunk at the offset (CHUNK_NX, CHUNK_NY) */
|
||||
if(verify_get_chunk_info_by_coord(dset, offset, CHK_SIZE, flt_msk) == FAIL)
|
||||
FAIL_PUTS_ERROR("Verification of H5Dget_chunk_info_by_coord failed\n");
|
||||
|
||||
/* Get and verify info of an empty chunk, at offset
|
||||
/* Get and verify info of an empty chunk, at offset
|
||||
(2*CHUNK_NX, 2*CHUNK_NY) */
|
||||
offset[0] = 2*CHUNK_NX;
|
||||
offset[1] = 2*CHUNK_NY;
|
||||
@ -1591,7 +1592,7 @@ test_failed_attempts(const char *filename, hid_t fapl)
|
||||
/* Open the file for reading/writing */
|
||||
if((chunkfile = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
|
||||
TEST_ERROR
|
||||
|
||||
|
||||
/* Create dataspace */
|
||||
if((dspace = H5Screate_simple(RANK, dims, NULL)) < 0)
|
||||
TEST_ERROR
|
||||
|
Loading…
Reference in New Issue
Block a user