HDFFV-9055 add test files
This commit is contained in:
@@ -48,6 +48,7 @@ size_t H5TOOLS_MALLOCSIZE = (128 * 1024 * 1024);
|
||||
#define FILE6 "h5diff_attr2.h5"
|
||||
#define FILE7 "h5diff_dset1.h5"
|
||||
#define FILE8 "h5diff_dset2.h5"
|
||||
#define FILE8A "h5diff_dset3.h5"
|
||||
#define FILE9 "h5diff_hyper1.h5"
|
||||
#define FILE10 "h5diff_hyper2.h5"
|
||||
#define FILE11 "h5diff_empty.h5"
|
||||
@@ -197,6 +198,7 @@ int main(void)
|
||||
/* generate 2 files, the second call creates a similar file with differences */
|
||||
test_datasets(FILE7,0);
|
||||
test_datasets(FILE8,1);
|
||||
test_datasets(FILE8A,2);
|
||||
|
||||
/* generate 2 files, the second call creates a similar file with differences */
|
||||
test_hyperslab(FILE9,0);
|
||||
@@ -1328,7 +1330,7 @@ int test_datasets(const char *file,
|
||||
herr_t status;
|
||||
int buf[2]={1,2};
|
||||
|
||||
if(make_diffs)
|
||||
if(make_diffs > 0)
|
||||
memset(buf, 0, sizeof buf);
|
||||
|
||||
/* Create a file */
|
||||
@@ -1399,9 +1401,8 @@ int test_special_datasets(const char *file,
|
||||
|
||||
/* Create a dataset with zero dimension size in one file but the other one
|
||||
* has a dataset with a non-zero dimension size */
|
||||
if(make_diffs) {
|
||||
if(make_diffs)
|
||||
dims[1] = SPACE1_DIM2 + 4;
|
||||
}
|
||||
|
||||
sid = H5Screate_simple(SPACE1_RANK, dims, NULL);
|
||||
did = H5Dcreate2(fid, "dset2", H5T_NATIVE_INT, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
@@ -5470,12 +5471,12 @@ static void test_objs_strings(const char *fname1, const char *fname2)
|
||||
string4A[0][10] = 0;
|
||||
string4A[0][11] = 0;
|
||||
string4B[0][10] = 0;
|
||||
|
||||
|
||||
string4A[1][10] = 0;
|
||||
string4A[1][11] = 'Z';
|
||||
string4B[1][10] = 0;
|
||||
string4B[1][11] = 'x';
|
||||
|
||||
|
||||
string4A[2][10] = 0;
|
||||
string4B[2][10] = 0;
|
||||
string4B[2][11] = 'a';
|
||||
@@ -6641,6 +6642,9 @@ void write_dset_in(hid_t loc_id,
|
||||
int buf73[4][3][2]; /* integer */
|
||||
float buf83[4][3][2]; /* float */
|
||||
|
||||
if(make_diffs == 2) {
|
||||
dimarray[0] = 4;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* H5S_SCALAR
|
||||
@@ -6649,11 +6653,8 @@ void write_dset_in(hid_t loc_id,
|
||||
|
||||
|
||||
|
||||
if ( make_diffs )
|
||||
{
|
||||
|
||||
if(make_diffs)
|
||||
scalar_data = 1;
|
||||
}
|
||||
|
||||
/* create a space */
|
||||
sid = H5Screate(H5S_SCALAR);
|
||||
|
||||
Reference in New Issue
Block a user