From ef84c90130342a435395d64a1bb10cf43764ac57 Mon Sep 17 00:00:00 2001 From: Jordan Henderson Date: Thu, 9 Jan 2025 17:25:56 -0600 Subject: [PATCH] Fix some versioned API misuses --- test/API/H5_api_attribute_test.c | 8 ++++---- test/API/H5_api_dataset_test.c | 6 +++--- test/API/H5_api_object_test.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/API/H5_api_attribute_test.c b/test/API/H5_api_attribute_test.c index f44355f3bcb..dc18be8bc27 100644 --- a/test/API/H5_api_attribute_test.c +++ b/test/API/H5_api_attribute_test.c @@ -8641,14 +8641,14 @@ test_attribute_string_encodings(void H5_ATTR_UNUSED *params) goto error; } - if ((dset_id1 = H5Dcreate(container_group, ATTRIBUTE_STRING_ENCODINGS_DSET_NAME1, type_id1, space_id, + if ((dset_id1 = H5Dcreate2(container_group, ATTRIBUTE_STRING_ENCODINGS_DSET_NAME1, type_id1, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); printf(" couldn't create dataset with ascii string\n"); goto error; } - if ((attr_id1 = H5Acreate(dset_id1, ATTRIBUTE_STRING_ENCODINGS_ATTR_NAME1, type_id1, space_id, + if ((attr_id1 = H5Acreate2(dset_id1, ATTRIBUTE_STRING_ENCODINGS_ATTR_NAME1, type_id1, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); printf(" couldn't create attribute with ascii string\n"); @@ -8673,14 +8673,14 @@ test_attribute_string_encodings(void H5_ATTR_UNUSED *params) goto error; } - if ((dset_id2 = H5Dcreate(container_group, ATTRIBUTE_STRING_ENCODINGS_DSET_NAME2, type_id2, space_id, + if ((dset_id2 = H5Dcreate2(container_group, ATTRIBUTE_STRING_ENCODINGS_DSET_NAME2, type_id2, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); printf(" couldn't create dataset with UTF-8 string\n"); goto error; } - if ((attr_id2 = H5Acreate(dset_id2, ATTRIBUTE_STRING_ENCODINGS_ATTR_NAME2, type_id2, space_id, + if ((attr_id2 = H5Acreate2(dset_id2, ATTRIBUTE_STRING_ENCODINGS_ATTR_NAME2, type_id2, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); printf(" couldn't create attribute with ascii string\n"); diff --git a/test/API/H5_api_dataset_test.c b/test/API/H5_api_dataset_test.c index bc4efe60d25..0abe8fbb390 100644 --- a/test/API/H5_api_dataset_test.c +++ b/test/API/H5_api_dataset_test.c @@ -2386,7 +2386,7 @@ test_create_dataset_creation_properties(void H5_ATTR_UNUSED *params) } if ((dset_id = - H5Dcreate(group_id, DATASET_FILL_VALUE_TEST_DSET_NAME1, DATASET_FILL_VALUE_TEST_INT_TYPE, + H5Dcreate2(group_id, DATASET_FILL_VALUE_TEST_DSET_NAME1, DATASET_FILL_VALUE_TEST_INT_TYPE, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) { H5_FAILED(); printf(" couldn't create dataset with integer fill value"); @@ -8218,7 +8218,7 @@ test_dataset_string_encodings(void H5_ATTR_UNUSED *params) goto error; } - if ((dset_id1 = H5Dcreate(container_group, DATASET_STRING_ENCODINGS_DSET_NAME1, type_id1, space_id, + if ((dset_id1 = H5Dcreate2(container_group, DATASET_STRING_ENCODINGS_DSET_NAME1, type_id1, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); printf(" couldn't create dataset with ascii string\n"); @@ -8243,7 +8243,7 @@ test_dataset_string_encodings(void H5_ATTR_UNUSED *params) goto error; } - if ((dset_id2 = H5Dcreate(container_group, DATASET_STRING_ENCODINGS_DSET_NAME2, type_id2, space_id, + if ((dset_id2 = H5Dcreate2(container_group, DATASET_STRING_ENCODINGS_DSET_NAME2, type_id2, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); printf(" couldn't create dataset with UTF-8 string\n"); diff --git a/test/API/H5_api_object_test.c b/test/API/H5_api_object_test.c index 1e1bad38192..68d31da8088 100644 --- a/test/API/H5_api_object_test.c +++ b/test/API/H5_api_object_test.c @@ -5638,7 +5638,7 @@ test_object_visit(void H5_ATTR_UNUSED *params) i = 0; - if (H5Ovisit_by_name(attr_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_simple_callback, + if (H5Ovisit_by_name3(attr_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_simple_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) { H5_FAILED(); printf(" H5Ovisit_by_name on an attribute failed!\n");