summaryrefslogtreecommitdiffstats
path: root/test/API/H5_api_attribute_test.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 15:31:32 (GMT)
committerGitHub <noreply@github.com>2023-06-28 15:31:32 (GMT)
commit187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98 (patch)
treebaffa167d0796786241aef6b0ce76d4adec3b66e /test/API/H5_api_attribute_test.c
parent7a44581a84778a1346a2fd5b6cca7d9db905a321 (diff)
downloadhdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.zip
hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.gz
hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.bz2
Rename HD(f)printf() to (f)printf() (#3194)
Diffstat (limited to 'test/API/H5_api_attribute_test.c')
-rw-r--r--test/API/H5_api_attribute_test.c2262
1 files changed, 1124 insertions, 1138 deletions
diff --git a/test/API/H5_api_attribute_test.c b/test/API/H5_api_attribute_test.c
index f1409a4..84ddbb0 100644
--- a/test/API/H5_api_attribute_test.c
+++ b/test/API/H5_api_attribute_test.c
@@ -126,7 +126,7 @@ test_create_attribute_on_root(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or attribute aren't supported with this connector\n");
+ printf(" API functions for basic file or attribute aren't supported with this connector\n");
return 0;
}
@@ -134,7 +134,7 @@ test_create_attribute_on_root(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -157,22 +157,22 @@ test_create_attribute_on_root(void)
if ((attr_id = H5Acreate2(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME, attr_dtype1, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' using H5Acreate\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" couldn't create attribute '%s' using H5Acreate\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
@@ -187,21 +187,21 @@ test_create_attribute_on_root(void)
if ((attr_id2 = H5Acreate_by_name(file_id, "/", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2, attr_dtype2,
space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on root group using H5Acreate_by_name\n");
+ printf(" couldn't create attribute on root group using H5Acreate_by_name\n");
PART_ERROR(H5Acreate_by_name);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name);
}
@@ -269,8 +269,8 @@ test_create_attribute_on_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or attribute aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, dataset, or attribute aren't supported with this "
+ "connector\n");
return 0;
}
@@ -278,20 +278,20 @@ test_create_attribute_on_dataset(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME);
goto error;
}
@@ -312,7 +312,7 @@ test_create_attribute_on_dataset(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_CREATE_ON_DATASET_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -327,21 +327,21 @@ test_create_attribute_on_dataset(void)
if ((attr_id = H5Acreate2(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME, attr_dtype1,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
PART_ERROR(H5Acreate_on_dataset);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
PART_ERROR(H5Acreate_on_dataset);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
PART_ERROR(H5Acreate_on_dataset);
}
@@ -357,21 +357,21 @@ test_create_attribute_on_dataset(void)
ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2, attr_dtype2,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on dataset by name\n");
+ printf(" couldn't create attribute on dataset by name\n");
PART_ERROR(H5Acreate_by_name_on_dataset);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name_on_dataset);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name_on_dataset);
}
@@ -453,8 +453,8 @@ test_create_attribute_on_datatype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, stored datatype, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, stored datatype, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -462,33 +462,33 @@ test_create_attribute_on_datatype(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, ATTRIBUTE_CREATE_ON_DATATYPE_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype\n");
+ printf(" couldn't commit datatype\n");
goto error;
}
@@ -511,19 +511,19 @@ test_create_attribute_on_datatype(void)
if ((attr_id = H5Acreate2(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME, attr_dtype1, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on datatype using H5Acreate\n");
+ printf(" couldn't create attribute on datatype using H5Acreate\n");
PART_ERROR(H5Acreate_on_datatype);
}
if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Acreate_on_datatype);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
PART_ERROR(H5Acreate_on_datatype);
}
@@ -539,20 +539,20 @@ test_create_attribute_on_datatype(void)
ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2, attr_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on datatype using H5Acreate_by_name\n");
+ printf(" couldn't create attribute on datatype using H5Acreate_by_name\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
@@ -625,27 +625,27 @@ test_create_attribute_with_null_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -658,20 +658,20 @@ test_create_attribute_with_null_space(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -680,7 +680,7 @@ test_create_attribute_with_null_space(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -736,27 +736,27 @@ test_create_attribute_with_scalar_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -769,20 +769,20 @@ test_create_attribute_with_scalar_space(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -791,7 +791,7 @@ test_create_attribute_with_scalar_space(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -849,28 +849,27 @@ test_create_attribute_with_space_in_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME);
goto error;
}
@@ -884,20 +883,20 @@ test_create_attribute_with_space_in_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -953,7 +952,7 @@ test_create_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -962,20 +961,20 @@ test_create_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group\n");
+ printf(" couldn't create container group\n");
goto error;
}
@@ -1002,7 +1001,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid loc_id!\n");
+ printf(" created attribute using H5Acreate with an invalid loc_id!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_loc_id);
}
@@ -1023,7 +1022,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with a NULL name!\n");
+ printf(" created attribute using H5Acreate with a NULL name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_attr_name);
}
@@ -1036,7 +1035,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid name of ''!\n");
+ printf(" created attribute using H5Acreate with an invalid name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_attr_name);
}
@@ -1058,7 +1057,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid datatype!\n");
+ printf(" created attribute using H5Acreate with an invalid datatype!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_datatype);
}
@@ -1080,7 +1079,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid dataspace!\n");
+ printf(" created attribute using H5Acreate with an invalid dataspace!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_dataspace);
}
@@ -1102,7 +1101,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid ACPL!\n");
+ printf(" created attribute using H5Acreate with an invalid ACPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_acpl);
}
@@ -1124,7 +1123,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid AAPL!\n");
+ printf(" created attribute using H5Acreate with an invalid AAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_aapl);
}
@@ -1147,7 +1146,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_loc_id);
}
@@ -1169,7 +1168,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with a NULL object name!\n");
+ printf(" created attribute using H5Acreate_by_name with a NULL object name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_obj_name);
}
@@ -1183,8 +1182,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " created attribute using H5Acreate_by_name with an invalid object name of ''!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid object name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_obj_name);
}
@@ -1206,7 +1204,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n");
+ printf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_attr_name);
}
@@ -1220,7 +1218,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" created attribute using H5Acreate_by_name with an invalid attribute name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_attr_name);
@@ -1244,7 +1242,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid datatype!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid datatype!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_datatype);
}
@@ -1267,7 +1265,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_dataspace);
}
@@ -1290,7 +1288,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_acpl);
}
@@ -1313,7 +1311,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_aapl);
}
@@ -1336,7 +1334,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_lapl);
}
@@ -1398,8 +1396,8 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -1407,26 +1405,26 @@ test_open_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -1434,7 +1432,7 @@ test_open_attribute(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME);
goto error;
}
@@ -1448,7 +1446,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
goto error;
}
@@ -1458,7 +1456,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME2, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
goto error;
}
@@ -1468,7 +1466,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME3, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
goto error;
}
@@ -1485,13 +1483,13 @@ test_open_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen);
}
@@ -1506,14 +1504,14 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_name(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME,
ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' using H5Aopen_by_name\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s' using H5Aopen_by_name\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_name);
}
@@ -1527,52 +1525,52 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported with this VOL connector\n");
+ printf(" creation order tracking is not supported with this VOL connector\n");
PART_EMPTY(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
@@ -1586,52 +1584,52 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported with this VOL connector\n");
+ printf(" creation order tracking is not supported with this VOL connector\n");
PART_EMPTY(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
@@ -1646,45 +1644,45 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
@@ -1699,45 +1697,45 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
@@ -1801,7 +1799,7 @@ test_open_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -1810,20 +1808,20 @@ test_open_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -1837,7 +1835,7 @@ test_open_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME, attr_type, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
goto error;
}
@@ -1860,8 +1858,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_loc_id);
}
@@ -1882,8 +1880,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_attr_name);
}
@@ -1896,8 +1894,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_attr_name);
}
@@ -1918,8 +1916,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_aapl);
}
@@ -1942,8 +1940,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_loc_id);
}
@@ -1965,8 +1963,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_obj_name);
}
@@ -1980,9 +1978,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_obj_name);
}
@@ -2004,8 +2001,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_attr_name);
}
@@ -2019,7 +2016,7 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" opened attribute '%s' using H5Aopen_by_name with an invalid attribute name of ''!\n",
ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
@@ -2044,8 +2041,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_aapl);
}
@@ -2068,8 +2065,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_lapl);
}
@@ -2091,8 +2088,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_loc_id);
}
@@ -2114,8 +2111,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_obj_name);
}
@@ -2129,9 +2126,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_obj_name);
}
@@ -2153,9 +2149,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_index_type);
}
@@ -2169,9 +2165,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_index_type);
}
@@ -2193,9 +2188,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_iter_order);
}
@@ -2209,9 +2204,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
- "H5_ITER_N!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
+ "H5_ITER_N!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_iter_order);
}
@@ -2233,8 +2228,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_aapl);
}
@@ -2256,8 +2251,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_lapl);
}
@@ -2323,27 +2318,27 @@ test_write_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or file flush aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, attribute, or file flush aren't supported with "
+ "this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -2353,20 +2348,20 @@ test_write_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2382,14 +2377,14 @@ test_write_attribute(void)
if (H5Awrite(attr_id, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
/* Make sure that the attribute can be flushed to the file */
if (H5Fflush(file_id, H5F_SCOPE_GLOBAL) < 0) {
H5_FAILED();
- HDprintf(" couldn't flush the attribute\n");
+ printf(" couldn't flush the attribute\n");
goto error;
}
@@ -2453,7 +2448,7 @@ test_write_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -2462,21 +2457,20 @@ test_write_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -2488,20 +2482,20 @@ test_write_attribute_invalid_params(void)
ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2531,7 +2525,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid attr_id!\n");
+ printf(" wrote to attribute using an invalid attr_id!\n");
PART_ERROR(H5Awrite_invalid_attr_id);
}
@@ -2551,7 +2545,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid datatype!\n");
+ printf(" wrote to attribute using an invalid datatype!\n");
PART_ERROR(H5Awrite_invalid_datatype);
}
@@ -2571,7 +2565,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid data buffer!\n");
+ printf(" wrote to attribute using an invalid data buffer!\n");
PART_ERROR(H5Awrite_invalid_data_buf);
}
@@ -2644,27 +2638,27 @@ test_read_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -2674,20 +2668,20 @@ test_read_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, ATTRIBUTE_READ_TEST_ATTR_DTYPE,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2705,7 +2699,7 @@ test_read_attribute(void)
if (H5Awrite(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
@@ -2719,20 +2713,20 @@ test_read_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
if (H5Aread(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from attribute\n");
+ printf(" couldn't read from attribute\n");
goto error;
}
for (i = 0; i < data_size / ATTRIBUTE_READ_TEST_ATTR_DTYPE_SIZE; i++) {
if (((int *)read_buf)[i] != (int)i) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
goto error;
}
}
@@ -2800,7 +2794,7 @@ test_read_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -2809,20 +2803,20 @@ test_read_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -2834,20 +2828,20 @@ test_read_attribute_invalid_params(void)
ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2865,7 +2859,7 @@ test_read_attribute_invalid_params(void)
if (H5Awrite(attr_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
@@ -2879,7 +2873,7 @@ test_read_attribute_invalid_params(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -2899,7 +2893,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid attr_id!\n");
+ printf(" read attribute with an invalid attr_id!\n");
PART_ERROR(H5Aread_invalid_attr_id);
}
@@ -2919,7 +2913,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid datatype!\n");
+ printf(" read attribute with an invalid datatype!\n");
PART_ERROR(H5Aread_invalid_datatype);
}
@@ -2939,7 +2933,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid read buffer!\n");
+ printf(" read attribute with an invalid read buffer!\n");
PART_ERROR(H5Aread_invalid_read_buf);
}
@@ -3011,27 +3005,27 @@ test_read_empty_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME);
goto error;
}
@@ -3041,20 +3035,20 @@ test_read_empty_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, ATTRIBUTE_READ_EMPTY_DTYPE, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3063,7 +3057,7 @@ test_read_empty_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -3076,7 +3070,7 @@ test_read_empty_attribute(void)
if (H5Aread(attr_id, ATTRIBUTE_READ_EMPTY_DTYPE, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from attribute\n");
+ printf(" couldn't read from attribute\n");
goto error;
}
@@ -3130,13 +3124,13 @@ test_close_attribute_invalid_id(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or attribute aren't supported with this connector\n");
+ printf(" API functions for basic file or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -3148,7 +3142,7 @@ test_close_attribute_invalid_id(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aclose succeeded with an invalid attribute ID!\n");
+ printf(" H5Aclose succeeded with an invalid attribute ID!\n");
goto error;
}
@@ -3195,8 +3189,8 @@ test_get_attribute_space_and_type(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or attribute aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, attribute, or attribute aren't supported with "
+ "this connector\n");
return 0;
}
@@ -3204,20 +3198,20 @@ test_get_attribute_space_and_type(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME);
goto error;
}
@@ -3231,20 +3225,20 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3259,7 +3253,7 @@ test_get_attribute_space_and_type(void)
if ((tmp_type_id = H5Aget_type(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's datatype\n");
+ printf(" couldn't retrieve attribute's datatype\n");
PART_ERROR(H5Aget_type);
}
@@ -3268,13 +3262,13 @@ test_get_attribute_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Aget_type);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" attribute's datatype did not match\n");
+ printf(" attribute's datatype did not match\n");
PART_ERROR(H5Aget_type);
}
}
@@ -3289,7 +3283,7 @@ test_get_attribute_space_and_type(void)
if ((tmp_space_id = H5Aget_space(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's dataspace\n");
+ printf(" couldn't retrieve attribute's dataspace\n");
PART_ERROR(H5Aget_space);
}
@@ -3298,14 +3292,14 @@ test_get_attribute_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dimensions of dataspace\n");
+ printf(" couldn't retrieve dimensions of dataspace\n");
PART_ERROR(H5Aget_space);
}
for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++)
if (space_dims[i] != attr_dims[i]) {
H5_FAILED();
- HDprintf(" attribute's dataspace dims didn't match\n");
+ printf(" attribute's dataspace dims didn't match\n");
PART_ERROR(H5Aget_space);
}
}
@@ -3348,13 +3342,13 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
PART_ERROR(H5Aget_type_reopened);
}
if ((tmp_type_id = H5Aget_type(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's datatype\n");
+ printf(" couldn't retrieve attribute's datatype\n");
PART_ERROR(H5Aget_type_reopened);
}
@@ -3363,13 +3357,13 @@ test_get_attribute_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Aget_type_reopened);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" attribute's datatype did not match\n");
+ printf(" attribute's datatype did not match\n");
PART_ERROR(H5Aget_type_reopened);
}
}
@@ -3393,13 +3387,13 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
PART_ERROR(H5Aget_space_reopened);
}
if ((tmp_space_id = H5Aget_space(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's dataspace\n");
+ printf(" couldn't retrieve attribute's dataspace\n");
PART_ERROR(H5Aget_space_reopened);
}
@@ -3408,14 +3402,14 @@ test_get_attribute_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dimensions of dataspace\n");
+ printf(" couldn't retrieve dimensions of dataspace\n");
PART_ERROR(H5Aget_space_reopened);
}
for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) {
if (space_dims[i] != attr_dims[i]) {
H5_FAILED();
- HDprintf(" dataspace dims didn't match!\n");
+ printf(" dataspace dims didn't match!\n");
PART_ERROR(H5Aget_space_reopened);
}
}
@@ -3498,7 +3492,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -3507,21 +3501,21 @@ test_get_attribute_space_and_type_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -3535,20 +3529,20 @@ test_get_attribute_space_and_type_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3569,7 +3563,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (tmp_type_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of attribute's datatype using an invalid attr_id!\n");
+ printf(" retrieved copy of attribute's datatype using an invalid attr_id!\n");
PART_ERROR(H5Aget_type_invalid_attr_id);
}
@@ -3589,7 +3583,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (tmp_space_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n");
+ printf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n");
PART_ERROR(H5Aget_space_invalid_attr_id);
}
@@ -3658,8 +3652,8 @@ test_attribute_property_lists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or getting property list aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, or getting property list aren't "
+ "supported with this connector\n");
return 0;
}
@@ -3667,20 +3661,20 @@ test_attribute_property_lists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group\n");
+ printf(" couldn't create container sub-group\n");
goto error;
}
@@ -3694,27 +3688,27 @@ test_attribute_property_lists(void)
if ((acpl_id1 = H5Pcreate(H5P_ATTRIBUTE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create ACPL\n");
+ printf(" couldn't create ACPL\n");
goto error;
}
if (H5Pset_char_encoding(acpl_id1, encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't set ACPL property value\n");
+ printf(" couldn't set ACPL property value\n");
goto error;
}
if ((attr_id1 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, attr_dtype1, space_id,
acpl_id1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, attr_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
@@ -3724,25 +3718,25 @@ test_attribute_property_lists(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3758,13 +3752,13 @@ test_attribute_property_lists(void)
* does not */
if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist);
}
if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3773,13 +3767,13 @@ test_attribute_property_lists(void)
if (H5Pget_char_encoding(acpl_id1, &encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve ACPL property value\n");
+ printf(" couldn't retrieve ACPL property value\n");
PART_ERROR(H5Aget_create_plist);
}
if (H5T_CSET_UTF8 != encoding) {
H5_FAILED();
- HDprintf(" ACPL property value was incorrect\n");
+ printf(" ACPL property value was incorrect\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3787,13 +3781,13 @@ test_attribute_property_lists(void)
if (H5Pget_char_encoding(acpl_id2, &encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve ACPL property value\n");
+ printf(" couldn't retrieve ACPL property value\n");
PART_ERROR(H5Aget_create_plist);
}
if (H5T_CSET_UTF8 == encoding) {
H5_FAILED();
- HDprintf(" ACPL property value was set!\n");
+ printf(" ACPL property value was set!\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3844,26 +3838,26 @@ test_attribute_property_lists(void)
if ((attr_id1 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1);
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist_reopened);
}
@@ -3945,8 +3939,8 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -3954,26 +3948,26 @@ test_get_attribute_name(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -3981,7 +3975,7 @@ test_get_attribute_name(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME);
goto error;
}
@@ -3995,7 +3989,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
@@ -4005,7 +3999,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
@@ -4015,7 +4009,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
@@ -4025,39 +4019,37 @@ test_get_attribute_name(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
@@ -4065,7 +4057,7 @@ test_get_attribute_name(void)
name_buf_size = strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 2;
if (NULL == (name_buf = (char *)HDmalloc((size_t)name_buf_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for storing attribute's name\n");
+ printf(" couldn't allocate buffer for storing attribute's name\n");
goto error;
}
@@ -4079,28 +4071,28 @@ test_get_attribute_name(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
*name_buf = '\0';
if (H5Aget_name(attr_id, (size_t)name_buf_size, name_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute name\n");
+ printf(" couldn't retrieve attribute name\n");
PART_ERROR(H5Aget_name);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
@@ -4121,7 +4113,7 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4129,17 +4121,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4147,17 +4139,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4165,17 +4157,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4189,7 +4181,7 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4197,17 +4189,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4215,17 +4207,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4233,17 +4225,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4259,17 +4251,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4277,17 +4269,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4295,17 +4287,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4321,17 +4313,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4339,17 +4331,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4357,17 +4349,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4443,7 +4435,7 @@ test_get_attribute_name_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -4452,21 +4444,21 @@ test_get_attribute_name_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -4480,20 +4472,20 @@ test_get_attribute_name_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -4503,7 +4495,7 @@ test_get_attribute_name_invalid_params(void)
if ((name_buf_size = H5Aget_name(attr_id, 0, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name buf size\n");
+ printf(" couldn't retrieve name buf size\n");
goto error;
}
@@ -4526,7 +4518,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n");
+ printf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n");
PART_ERROR(H5Aget_name_invalid_attr_id);
}
@@ -4547,7 +4539,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n");
+ printf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n");
PART_ERROR(H5Aget_name_invalid_name_buf);
}
@@ -4569,7 +4561,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_loc_id);
}
@@ -4590,7 +4582,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_obj_name);
}
@@ -4603,8 +4595,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_obj_name);
}
@@ -4626,8 +4618,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_index_type);
}
@@ -4641,8 +4633,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_index_type);
}
@@ -4664,8 +4656,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_iter_order);
}
@@ -4679,8 +4671,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
- "H5_ITER_N!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_iter_order);
}
@@ -4703,7 +4695,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" retrieved attribute name using H5Aget_name_by_idx with an invalid name buffer!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_name_buf);
}
@@ -4726,7 +4718,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_lapl);
}
@@ -4812,8 +4804,8 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -4821,26 +4813,26 @@ test_get_attribute_info(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -4848,7 +4840,7 @@ test_get_attribute_info(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME);
goto error;
}
@@ -4862,7 +4854,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
@@ -4872,7 +4864,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
@@ -4882,7 +4874,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
@@ -4892,37 +4884,37 @@ test_get_attribute_info(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
@@ -4936,21 +4928,21 @@ test_get_attribute_info(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info);
}
HDmemset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info(attr_id, &attr_info) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info\n");
+ printf(" couldn't get attribute info\n");
PART_ERROR(H5Aget_info);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info);
}
@@ -4958,13 +4950,13 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info);
}
@@ -4987,14 +4979,14 @@ test_get_attribute_info(void)
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5002,7 +4994,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
@@ -5010,15 +5002,14 @@ test_get_attribute_info(void)
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n",
- ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5026,7 +5017,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
@@ -5034,15 +5025,14 @@ test_get_attribute_info(void)
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n",
- ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5050,7 +5040,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
@@ -5064,7 +5054,7 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5072,16 +5062,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5089,7 +5079,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5097,16 +5087,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5114,7 +5104,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5122,16 +5112,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5139,7 +5129,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5153,7 +5143,7 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5161,16 +5151,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5178,7 +5168,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5186,16 +5176,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5203,7 +5193,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5211,16 +5201,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5228,7 +5218,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5244,16 +5234,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5261,7 +5251,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5269,16 +5259,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5286,7 +5276,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5294,16 +5284,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5311,7 +5301,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5327,16 +5317,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5344,7 +5334,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5352,16 +5342,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5369,7 +5359,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5377,16 +5367,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5394,7 +5384,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5462,7 +5452,7 @@ test_get_attribute_info_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -5471,21 +5461,21 @@ test_get_attribute_info_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -5499,20 +5489,20 @@ test_get_attribute_info_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -5532,7 +5522,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
+ printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
PART_ERROR(H5Aget_info_invalid_attr_id);
}
@@ -5552,7 +5542,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
+ printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
PART_ERROR(H5Aget_info_invalid_attr_info_pointer);
}
@@ -5574,7 +5564,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n");
PART_ERROR(H5Aget_info_by_name_invalid_loc_id);
}
@@ -5596,7 +5586,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n");
PART_ERROR(H5Aget_info_by_name_invalid_obj_name);
}
@@ -5609,8 +5599,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_info_by_name_invalid_obj_name);
}
@@ -5630,7 +5620,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" retrieved attribute info using H5Aget_info_by_name with a NULL attribute name!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_name);
}
@@ -5643,8 +5633,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
- "name of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
+ "name of ''!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_name);
}
@@ -5665,8 +5655,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
- "info pointer!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
+ "info pointer!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_info_pointer);
}
@@ -5687,7 +5677,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n");
PART_ERROR(H5Aget_info_by_name_invalid_lapl);
}
@@ -5708,7 +5698,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_loc_id);
}
@@ -5729,7 +5719,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_obj_name);
}
@@ -5742,8 +5732,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_obj_name);
}
@@ -5764,8 +5754,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_index_type);
}
@@ -5778,8 +5768,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_index_type);
}
@@ -5800,8 +5790,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_iter_order);
}
@@ -5814,8 +5804,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
- "H5_ITER_N!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_iter_order);
}
@@ -5835,8 +5825,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute "
- "info pointer!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute "
+ "info pointer!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_attr_info_pointer);
}
@@ -5857,7 +5847,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_lapl);
}
@@ -5922,7 +5912,7 @@ test_rename_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -5931,20 +5921,20 @@ test_rename_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME);
goto error;
}
@@ -5957,39 +5947,39 @@ test_rename_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -6003,33 +5993,33 @@ test_rename_attribute(void)
if (H5Arename(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME) < 0) {
H5_FAILED();
- HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename\n",
- ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME);
+ printf(" couldn't rename attribute '%s' to '%s' using H5Arename\n",
+ ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME);
PART_ERROR(H5Arename);
}
/* Verify the attribute has been renamed */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename);
}
@@ -6045,33 +6035,33 @@ test_rename_attribute(void)
ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n",
- ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2);
+ printf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n",
+ ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2);
PART_ERROR(H5Arename_by_name);
}
/* Verify the attribute has been renamed */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename_by_name);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename_by_name);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename_by_name);
}
@@ -6140,7 +6130,7 @@ test_rename_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -6149,21 +6139,20 @@ test_rename_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -6177,39 +6166,39 @@ test_rename_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -6230,7 +6219,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid loc_id!\n");
+ printf(" renamed attribute using H5Arename with an invalid loc_id!\n");
PART_ERROR(H5Arename_invalid_loc_id);
}
@@ -6250,7 +6239,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with a NULL old attribute name!\n");
+ printf(" renamed attribute using H5Arename with a NULL old attribute name!\n");
PART_ERROR(H5Arename_invalid_old_attr_name);
}
@@ -6262,7 +6251,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n");
+ printf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n");
PART_ERROR(H5Arename_invalid_old_attr_name);
}
@@ -6282,7 +6271,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with a NULL new attribute name!\n");
+ printf(" renamed attribute using H5Arename with a NULL new attribute name!\n");
PART_ERROR(H5Arename_invalid_new_attr_name);
}
@@ -6294,7 +6283,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n");
+ printf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n");
PART_ERROR(H5Arename_invalid_new_attr_name);
}
@@ -6316,7 +6305,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n");
PART_ERROR(H5Arename_by_name_invalid_loc_id);
}
@@ -6337,7 +6326,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL object name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL object name!\n");
PART_ERROR(H5Arename_by_name_invalid_obj_name);
}
@@ -6350,8 +6339,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " renamed attribute using H5Arename_by_name with an invalid object name of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid object name of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_obj_name);
}
@@ -6372,7 +6360,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n");
PART_ERROR(H5Arename_by_name_invalid_old_attr_name);
}
@@ -6385,8 +6373,8 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid old attribute name "
- "of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid old attribute name "
+ "of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_old_attr_name);
}
@@ -6407,7 +6395,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n");
PART_ERROR(H5Arename_by_name_invalid_new_attr_name);
}
@@ -6420,8 +6408,8 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid new attribute name "
- "of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid new attribute name "
+ "of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_new_attr_name);
}
@@ -6442,7 +6430,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n");
PART_ERROR(H5Arename_by_name_invalid_lapl);
}
@@ -6515,8 +6503,8 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or iterate aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, or iterate aren't "
+ "supported with this connector\n");
return 0;
}
@@ -6524,26 +6512,26 @@ test_attribute_iterate_group(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -6551,7 +6539,7 @@ test_attribute_iterate_group(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME);
goto error;
}
@@ -6571,26 +6559,26 @@ test_attribute_iterate_group(void)
if ((attr_id = H5Acreate2(group_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -6617,15 +6605,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -6642,15 +6630,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -6664,7 +6652,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -6674,15 +6662,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -6696,7 +6684,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -6706,15 +6694,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -6733,15 +6721,15 @@ test_attribute_iterate_group(void)
file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -6760,15 +6748,15 @@ test_attribute_iterate_group(void)
file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -6782,7 +6770,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -6794,15 +6782,15 @@ test_attribute_iterate_group(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -6816,7 +6804,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -6828,15 +6816,15 @@ test_attribute_iterate_group(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -6911,8 +6899,8 @@ test_attribute_iterate_dataset(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -6920,33 +6908,33 @@ test_attribute_iterate_dataset(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME);
goto error;
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL for attribute creation order tracking\n");
+ printf(" couldn't create DCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(dcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -6966,7 +6954,7 @@ test_attribute_iterate_dataset(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME);
goto error;
}
@@ -6980,26 +6968,26 @@ test_attribute_iterate_dataset(void)
if ((attr_id = H5Acreate2(dset_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -7026,15 +7014,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -7051,15 +7039,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -7073,7 +7061,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -7083,15 +7071,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -7105,7 +7093,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -7115,15 +7103,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -7144,15 +7132,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -7173,15 +7161,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -7195,7 +7183,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -7208,15 +7196,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -7230,7 +7218,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -7243,15 +7231,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -7333,8 +7321,8 @@ test_attribute_iterate_datatype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, stored datatype, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, stored datatype, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -7342,33 +7330,33 @@ test_attribute_iterate_datatype(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME);
goto error;
}
if ((tcpl_id = H5Pcreate(H5P_DATATYPE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create TCPL for attribute creation order tracking\n");
+ printf(" couldn't create TCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(tcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -7385,7 +7373,7 @@ test_attribute_iterate_datatype(void)
if (H5Tcommit2(group_id, ATTRIBUTE_ITERATE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, tcpl_id, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME);
goto error;
}
@@ -7399,26 +7387,26 @@ test_attribute_iterate_datatype(void)
if ((attr_id = H5Acreate2(type_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(type_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -7445,15 +7433,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -7470,15 +7458,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -7492,7 +7480,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -7502,15 +7490,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -7524,7 +7512,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -7534,15 +7522,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -7563,15 +7551,15 @@ test_attribute_iterate_datatype(void)
"/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -7592,15 +7580,15 @@ test_attribute_iterate_datatype(void)
"/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -7614,7 +7602,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -7628,15 +7616,15 @@ test_attribute_iterate_datatype(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -7650,7 +7638,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -7664,15 +7652,15 @@ test_attribute_iterate_datatype(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -7760,8 +7748,8 @@ test_attribute_iterate_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or iterate aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, attribute, or iterate aren't supported with this "
+ "connector\n");
return 0;
}
@@ -7769,20 +7757,20 @@ test_attribute_iterate_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -7796,77 +7784,77 @@ test_attribute_iterate_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id3 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id4 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -7887,7 +7875,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n");
+ printf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n");
PART_ERROR(H5Aiterate_invalid_loc_id);
}
@@ -7908,8 +7896,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aiterate_invalid_index_type);
}
@@ -7921,8 +7909,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Aiterate_invalid_index_type);
}
@@ -7943,8 +7930,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aiterate_invalid_index_order);
}
@@ -7956,7 +7943,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" iterated over attributes using H5Aiterate with invalid index ordering H5_ITER_N!\n");
PART_ERROR(H5Aiterate_invalid_index_order);
}
@@ -7978,7 +7965,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n");
PART_ERROR(H5Aiterate_by_name_invalid_loc_id);
}
@@ -7999,7 +7986,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n");
PART_ERROR(H5Aiterate_by_name_invalid_obj_name);
}
@@ -8012,8 +7999,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid object name "
- "of ''!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aiterate_by_name_invalid_obj_name);
}
@@ -8034,8 +8021,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_type);
}
@@ -8048,8 +8035,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_type);
}
@@ -8070,8 +8057,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_order);
}
@@ -8084,8 +8071,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
- "H5_ITER_N!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_order);
}
@@ -8106,7 +8093,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n");
PART_ERROR(H5Aiterate_by_name_invalid_lapl);
}
@@ -8180,8 +8167,8 @@ test_attribute_iterate_0_attributes(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -8189,20 +8176,20 @@ test_attribute_iterate_0_attributes(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -8216,7 +8203,7 @@ test_attribute_iterate_0_attributes(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, dset_dtype,
dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -8230,7 +8217,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_native);
}
@@ -8244,7 +8231,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_inc);
}
@@ -8258,7 +8245,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_dec);
}
@@ -8273,7 +8260,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_native);
}
@@ -8288,7 +8275,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_INC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_inc);
}
@@ -8302,7 +8289,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_DEC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_dec);
}
@@ -8368,8 +8355,8 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -8377,26 +8364,26 @@ test_delete_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -8404,7 +8391,7 @@ test_delete_attribute(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME);
goto error;
}
@@ -8426,49 +8413,49 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Delete the attribute */
if (H5Adelete(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Verify the attribute has been deleted */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
@@ -8491,22 +8478,22 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
@@ -8514,27 +8501,27 @@ test_delete_attribute(void)
if (H5Adelete_by_name(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME,
ATTRIBUTE_DELETION_TEST_ATTR_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
/* Verify the attribute has been deleted */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
@@ -8555,7 +8542,7 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8563,82 +8550,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8646,50 +8633,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8697,95 +8684,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8806,7 +8793,7 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8814,82 +8801,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8897,50 +8884,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8948,95 +8935,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -9059,82 +9046,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9142,50 +9129,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9193,95 +9180,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9304,82 +9291,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9387,50 +9374,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9438,95 +9425,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9601,7 +9588,7 @@ test_delete_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -9610,21 +9597,21 @@ test_delete_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -9638,20 +9625,20 @@ test_delete_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute didn't exists\n");
+ printf(" attribute didn't exists\n");
goto error;
}
@@ -9671,7 +9658,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete with an invalid loc_id!\n");
PART_ERROR(H5Adelete_invalid_loc_id);
}
@@ -9691,7 +9678,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with a NULL attribute name!\n");
+ printf(" deleted an attribute using H5Adelete with a NULL attribute name!\n");
PART_ERROR(H5Adelete_invalid_attr_name);
}
@@ -9703,7 +9690,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n");
+ printf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n");
PART_ERROR(H5Adelete_invalid_attr_name);
}
@@ -9724,7 +9711,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n");
PART_ERROR(H5Adelete_by_name_invalid_loc_id);
}
@@ -9745,7 +9732,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n");
PART_ERROR(H5Adelete_by_name_invalid_obj_name);
}
@@ -9758,7 +9745,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_name with an invalid object name of ''!\n");
PART_ERROR(H5Adelete_by_name_invalid_obj_name);
}
@@ -9779,7 +9766,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n");
PART_ERROR(H5Adelete_by_name_invalid_attr_name);
}
@@ -9791,8 +9778,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of "
- "''!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of "
+ "''!\n");
PART_ERROR(H5Adelete_by_name_invalid_attr_name);
}
@@ -9813,7 +9800,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n");
PART_ERROR(H5Adelete_by_name_invalid_lapl);
}
@@ -9833,7 +9820,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Adelete_by_idx_invalid_loc_id);
}
@@ -9853,7 +9840,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n");
PART_ERROR(H5Adelete_by_idx_invalid_obj_name);
}
@@ -9865,7 +9852,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_idx with an invalid object name of ''!\n");
PART_ERROR(H5Adelete_by_idx_invalid_obj_name);
}
@@ -9886,8 +9873,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_type);
}
@@ -9899,7 +9886,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_idx with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_type);
}
@@ -9920,8 +9907,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_order);
}
@@ -9933,8 +9920,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
- "H5_ITER_N!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
+ "H5_ITER_N!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_order);
}
@@ -9954,7 +9941,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Adelete_by_idx_invalid_lapl);
}
@@ -10018,7 +10005,7 @@ test_attribute_exists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -10027,20 +10014,20 @@ test_attribute_exists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME);
goto error;
}
@@ -10053,7 +10040,7 @@ test_attribute_exists(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
@@ -10067,13 +10054,13 @@ test_attribute_exists(void)
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Aexists);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
PART_ERROR(H5Aexists);
}
@@ -10088,13 +10075,13 @@ test_attribute_exists(void)
if ((attr_exists = H5Aexists_by_name(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME,
ATTRIBUTE_EXISTS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists by name\n");
+ printf(" couldn't determine if attribute exists by name\n");
PART_ERROR(H5Aexists_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
PART_ERROR(H5Aexists_by_name);
}
@@ -10160,7 +10147,7 @@ test_attribute_exists_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -10169,21 +10156,20 @@ test_attribute_exists_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -10197,20 +10183,20 @@ test_attribute_exists_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute didn't exists\n");
+ printf(" attribute didn't exists\n");
goto error;
}
@@ -10230,7 +10216,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with an invalid loc_id succeeded!\n");
+ printf(" H5Aexists with an invalid loc_id succeeded!\n");
PART_ERROR(H5Aexists_invalid_loc_id);
}
@@ -10250,7 +10236,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with a NULL attribute name succeeded!\n");
+ printf(" H5Aexists with a NULL attribute name succeeded!\n");
PART_ERROR(H5Aexists_invalid_attr_name);
}
@@ -10262,7 +10248,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with an invalid attribute name of '' succeeded!\n");
+ printf(" H5Aexists with an invalid attribute name of '' succeeded!\n");
PART_ERROR(H5Aexists_invalid_attr_name);
}
@@ -10283,7 +10269,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid loc_id succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid loc_id succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_loc_id);
}
@@ -10304,7 +10290,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with a NULL object name succeeded!\n");
+ printf(" H5Aexists_by_name with a NULL object name succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_obj_name);
}
@@ -10317,7 +10303,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_obj_name);
}
@@ -10338,7 +10324,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with a NULL attribute name succeeded!\n");
+ printf(" H5Aexists_by_name with a NULL attribute name succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_attr_name);
}
@@ -10351,7 +10337,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_attr_name);
}
@@ -10372,7 +10358,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid link access property list succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid link access property list succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_lapl);
}
@@ -10439,27 +10425,27 @@ test_attribute_many(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_MANY_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME);
goto error;
}
@@ -10475,20 +10461,20 @@ test_attribute_many(void)
if ((attr_id = H5Acreate2(group_id, attrname, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, attrname)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -10547,27 +10533,27 @@ test_attribute_duplicate_id(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DUPLICATE_ID_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME);
goto error;
}
@@ -10580,27 +10566,27 @@ test_attribute_duplicate_id(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
/* Open the attribute just created and get a second ID */
if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" attribute can't be opened for a second time\n");
+ printf(" attribute can't be opened for a second time\n");
goto error;
}
@@ -10663,8 +10649,8 @@ test_get_number_attributes(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or object aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, attribute, or object aren't supported with this "
+ "connector\n");
return 0;
}
@@ -10672,20 +10658,20 @@ test_get_number_attributes(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME);
goto error;
}
@@ -10698,20 +10684,20 @@ test_get_number_attributes(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -10726,13 +10712,13 @@ test_get_number_attributes(void)
/* Now get the number of attributes from the group */
if (H5Oget_info3(group_id, &obj_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info3\n");
+ printf(" couldn't retrieve group info using H5Oget_info3\n");
PART_ERROR(H5Oget_info);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info);
}
@@ -10747,13 +10733,13 @@ test_get_number_attributes(void)
if (H5Oget_info_by_name3(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, &obj_info,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve group info using H5Oget_info_by_name3\n");
PART_ERROR(H5Oget_info_by_name);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info_by_name);
}
@@ -10768,13 +10754,13 @@ test_get_number_attributes(void)
if (H5Oget_info_by_idx3(container_group, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &obj_info,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info_by_idx3\n");
+ printf(" couldn't retrieve group info using H5Oget_info_by_idx3\n");
PART_ERROR(H5Oget_info_by_idx);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info_by_idx);
}
@@ -10845,27 +10831,27 @@ test_attr_shared_dtype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, stored datatype, or object aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, stored datatype, or object aren't "
+ "supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_SHARED_DTYPE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME);
goto error;
}
@@ -10879,73 +10865,73 @@ test_attr_shared_dtype(void)
if (H5Tcommit2(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, attr_dtype, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype\n");
+ printf(" couldn't commit datatype\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 1) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 2) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_SHARED_DTYPE_DSET_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 3) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
@@ -11016,7 +11002,7 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t *
}
if (HDstrncmp(attr_name, expected_attr_name, ATTRIBUTE_ITERATE_TEST_ATTR_NAME_BUF_SIZE)) {
- HDprintf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name);
+ printf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -11043,8 +11029,8 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t *
if (ainfo->corder != expected_crt_order) {
H5_FAILED();
- HDprintf(" attribute's creation order value of %lld didn't match expected value of %lld\n",
- (long long)ainfo->corder, (long long)expected_crt_order);
+ printf(" attribute's creation order value of %lld didn't match expected value of %lld\n",
+ (long long)ainfo->corder, (long long)expected_crt_order);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -11073,17 +11059,17 @@ H5_api_attribute_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Attribute Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Attribute Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(attribute_tests); i++) {
nerrors += (*attribute_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}