Use version 2 functions in test file to address compile errors for
--with-default-api-version=v16 option.
This commit is contained in:
@@ -880,7 +880,7 @@ static void test_write_same_element(void)
|
||||
fspace = H5Screate_simple(SPACE1_RANK, fdim, NULL);
|
||||
CHECK(fspace, FAIL, "H5Screate_simple");
|
||||
|
||||
dataset1 = H5Dcreate(file1, DATASET, dtype, fspace, H5P_DEFAULT,
|
||||
dataset1 = H5Dcreate2(file1, DATASET, dtype, fspace, H5P_DEFAULT,
|
||||
H5P_DEFAULT, H5P_DEFAULT);
|
||||
CHECK(dataset1, FAIL, "H5Dcreate");
|
||||
|
||||
@@ -905,7 +905,7 @@ static void test_write_same_element(void)
|
||||
file1 = H5Fopen(DATAFILE3, H5F_ACC_RDWR, H5P_DEFAULT);
|
||||
CHECK(file1, FAIL, "H5Fopen");
|
||||
|
||||
dataset1 = H5Dopen(file1, DATASET, H5P_DEFAULT);
|
||||
dataset1 = H5Dopen2(file1, DATASET, H5P_DEFAULT);
|
||||
CHECK(dataset1, FAIL, "H5Dopen");
|
||||
|
||||
fspace = H5Dget_space(dataset1);
|
||||
|
||||
Reference in New Issue
Block a user