summaryrefslogtreecommitdiffstats
path: root/test/API/H5_api_dataset_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_dataset_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_dataset_test.c')
-rw-r--r--test/API/H5_api_dataset_test.c1460
1 files changed, 713 insertions, 747 deletions
diff --git a/test/API/H5_api_dataset_test.c b/test/API/H5_api_dataset_test.c
index e31ed43..e3843a6 100644
--- a/test/API/H5_api_dataset_test.c
+++ b/test/API/H5_api_dataset_test.c
@@ -169,13 +169,13 @@ test_create_dataset_under_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file or dataset 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;
}
@@ -189,7 +189,7 @@ test_create_dataset_under_root(void)
if ((dset_id = H5Dcreate2(file_id, DATASET_CREATE_UNDER_ROOT_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_ROOT_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_ROOT_DSET_NAME);
goto error;
}
@@ -238,27 +238,26 @@ test_create_dataset_under_existing_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_UNDER_EXISTING_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_UNDER_EXISTING_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_CREATE_UNDER_EXISTING_GROUP_NAME);
goto error;
}
@@ -272,7 +271,7 @@ test_create_dataset_under_existing_group(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_UNDER_EXISTING_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_EXISTING_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_EXISTING_DSET_NAME);
goto error;
}
@@ -327,8 +326,7 @@ test_create_dataset_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -336,20 +334,20 @@ test_create_dataset_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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_INVALID_PARAMS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_CREATE_INVALID_PARAMS_GROUP_NAME);
goto error;
}
@@ -377,7 +375,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid loc_id!\n");
+ printf(" created dataset using H5Dcreate with an invalid loc_id!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_loc_id);
}
@@ -399,7 +397,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with a NULL dataset name!\n");
+ printf(" created dataset using H5Dcreate with a NULL dataset name!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dataset_name);
}
@@ -413,7 +411,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid dataset name of ''!\n");
+ printf(" created dataset using H5Dcreate with an invalid dataset name of ''!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dataset_name);
}
@@ -435,7 +433,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid datatype!\n");
+ printf(" created dataset using H5Dcreate with an invalid datatype!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_datatype);
}
@@ -457,7 +455,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid dataspace!\n");
+ printf(" created dataset using H5Dcreate with an invalid dataspace!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dataspace);
}
@@ -479,7 +477,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid LCPL!\n");
+ printf(" created dataset using H5Dcreate with an invalid LCPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_lcpl);
}
@@ -501,7 +499,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid DCPL!\n");
+ printf(" created dataset using H5Dcreate with an invalid DCPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dcpl);
}
@@ -523,7 +521,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid DAPL!\n");
+ printf(" created dataset using H5Dcreate with an invalid DAPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dapl);
}
@@ -584,27 +582,26 @@ test_create_anonymous_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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_ANONYMOUS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_ANONYMOUS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_CREATE_ANONYMOUS_GROUP_NAME);
goto error;
}
@@ -616,7 +613,7 @@ test_create_anonymous_dataset(void)
if ((dset_id = H5Dcreate_anon(group_id, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create anonymous dataset\n");
+ printf(" couldn't create anonymous dataset\n");
goto error;
}
@@ -672,8 +669,7 @@ test_create_anonymous_dataset_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -681,21 +677,21 @@ test_create_anonymous_dataset_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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME);
goto error;
}
@@ -722,7 +718,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid loc_id!\n");
+ printf(" created anonymous dataset using an invalid loc_id!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_loc_id);
}
@@ -743,7 +739,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid dataset datatype!\n");
+ printf(" created anonymous dataset using an invalid dataset datatype!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_datatype);
}
@@ -764,7 +760,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid dataset dataspace!\n");
+ printf(" created anonymous dataset using an invalid dataset dataspace!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_dataspace);
}
@@ -785,7 +781,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid DCPL!\n");
+ printf(" created anonymous dataset using an invalid DCPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_dcpl);
}
@@ -806,7 +802,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid DAPL!\n");
+ printf(" created anonymous dataset using an invalid DAPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_dapl);
}
@@ -868,28 +864,27 @@ test_create_dataset_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -902,7 +897,7 @@ test_create_dataset_null_space(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -911,7 +906,7 @@ test_create_dataset_null_space(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -966,28 +961,27 @@ test_create_dataset_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1000,7 +994,7 @@ test_create_dataset_scalar_space(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -1009,7 +1003,7 @@ test_create_dataset_scalar_space(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -1066,27 +1060,26 @@ test_create_zero_dim_dset(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ZERO_DIM_DSET_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", ZERO_DIM_DSET_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", ZERO_DIM_DSET_TEST_GROUP_NAME);
goto error;
}
@@ -1096,27 +1089,27 @@ test_create_zero_dim_dset(void)
if ((dset_id = H5Dcreate2(group_id, ZERO_DIM_DSET_TEST_DSET_NAME, H5T_NATIVE_INT, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create 0-sized dataset\n");
+ printf(" failed to create 0-sized dataset\n");
goto error;
}
if (H5Sselect_none(fspace_id) < 0) {
H5_FAILED();
- HDprintf(" failed to set none selection in dataset's file dataspace\n");
+ printf(" failed to set none selection in dataset's file dataspace\n");
goto error;
}
/* Attempt to write 0 elements to dataset */
if (H5Dwrite(dset_id, H5T_NATIVE_INT, fspace_id, fspace_id, H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" failed to write 0 elements to 0-sized dataset\n");
+ printf(" failed to write 0 elements to 0-sized dataset\n");
goto error;
}
/* Attempt to read 0 elements from dataset */
if (H5Dread(dset_id, H5T_NATIVE_INT, fspace_id, fspace_id, H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" failed to read 0 elements from 0-sized dataset\n");
+ printf(" failed to read 0 elements from 0-sized dataset\n");
goto error;
}
@@ -1168,27 +1161,26 @@ test_create_dataset_random_shapes(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_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, DATASET_SHAPE_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;
}
@@ -1201,7 +1193,7 @@ test_create_dataset_random_shapes(void)
if ((space_id = generate_random_dataspace(ndims, NULL, NULL, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataspace\n");
+ printf(" couldn't create dataspace\n");
goto error;
}
@@ -1210,7 +1202,7 @@ test_create_dataset_random_shapes(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_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;
}
@@ -1273,28 +1265,26 @@ test_create_dataset_predefined_types(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create sub-container group '%s'\n",
- DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create sub-container group '%s'\n", DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1310,7 +1300,7 @@ test_create_dataset_predefined_types(void)
if ((dset_id = H5Dcreate2(group_id, name, predefined_type_test_table[i], fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
goto error;
}
@@ -1321,7 +1311,7 @@ test_create_dataset_predefined_types(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", name);
+ printf(" failed to open dataset '%s'\n", name);
goto error;
}
@@ -1373,8 +1363,7 @@ test_create_dataset_string_types(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -1382,32 +1371,32 @@ test_create_dataset_string_types(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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_STRING_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_STRING_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_STRING_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
if ((type_id_fixed = H5Tcreate(H5T_STRING, DATASET_STRING_TYPE_TEST_STRING_LENGTH)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create fixed-length string type\n");
+ printf(" couldn't create fixed-length string type\n");
goto error;
}
if ((type_id_variable = H5Tcreate(H5T_STRING, H5T_VARIABLE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create variable-length string type\n");
+ printf(" couldn't create variable-length string type\n");
goto error;
}
@@ -1425,8 +1414,8 @@ test_create_dataset_string_types(void)
if ((dset_id_fixed = H5Dcreate2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME1, type_id_fixed,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create fixed-length string dataset '%s'\n",
- DATASET_STRING_TYPE_TEST_DSET_NAME1);
+ printf(" couldn't create fixed-length string dataset '%s'\n",
+ DATASET_STRING_TYPE_TEST_DSET_NAME1);
PART_ERROR(H5Dcreate_fixed_string_type);
}
@@ -1441,7 +1430,7 @@ test_create_dataset_string_types(void)
if ((dset_id_fixed = H5Dopen2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME1);
+ printf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME1);
PART_ERROR(H5Dcreate_fixed_string_type);
}
@@ -1457,8 +1446,8 @@ test_create_dataset_string_types(void)
H5Dcreate2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME2, type_id_variable, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create variable-length string dataset '%s'\n",
- DATASET_STRING_TYPE_TEST_DSET_NAME2);
+ printf(" couldn't create variable-length string dataset '%s'\n",
+ DATASET_STRING_TYPE_TEST_DSET_NAME2);
PART_ERROR(H5Dcreate_variable_string_type);
}
@@ -1474,7 +1463,7 @@ test_create_dataset_string_types(void)
if ((dset_id_variable = H5Dopen2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME2);
PART_ERROR(H5Dcreate_variable_string_type);
}
@@ -1546,8 +1535,7 @@ test_create_dataset_compound_types(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -1561,20 +1549,20 @@ test_create_dataset_compound_types(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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1601,7 +1589,7 @@ test_create_dataset_compound_types(void)
if ((compound_type = H5Tcreate(H5T_COMPOUND, 1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create compound datatype\n");
+ printf(" couldn't create compound datatype\n");
goto error;
}
@@ -1614,13 +1602,13 @@ test_create_dataset_compound_types(void)
if ((type_pool[j] = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create compound datatype member %zu\n", j);
+ printf(" couldn't create compound datatype member %zu\n", j);
goto error;
}
if (!(member_size = H5Tget_size(type_pool[j]))) {
H5_FAILED();
- HDprintf(" couldn't get compound member %zu size\n", j);
+ printf(" couldn't get compound member %zu size\n", j);
goto error;
}
@@ -1643,7 +1631,7 @@ test_create_dataset_compound_types(void)
if ((dset_id = H5Dcreate2(group_id, dset_name, compound_type, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", dset_name);
+ printf(" couldn't create dataset '%s'\n", dset_name);
goto error;
}
@@ -1652,7 +1640,7 @@ test_create_dataset_compound_types(void)
if ((dset_id = H5Dopen2(group_id, dset_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", dset_name);
+ printf(" failed to open dataset '%s'\n", dset_name);
goto error;
}
@@ -1717,33 +1705,32 @@ test_create_dataset_enum_types(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
if ((enum_native = H5Tcreate(H5T_ENUM, sizeof(int))) < 0) {
H5_FAILED();
- HDprintf(" couldn't create native enum type\n");
+ printf(" couldn't create native enum type\n");
goto error;
}
@@ -1753,7 +1740,7 @@ test_create_dataset_enum_types(void)
if ((enum_non_native = H5Tenum_create(H5T_STD_U32LE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create non-native enum type\n");
+ printf(" couldn't create non-native enum type\n");
goto error;
}
@@ -1772,14 +1759,14 @@ test_create_dataset_enum_types(void)
if ((dset_id_native = H5Dcreate2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME1, enum_native, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
+ printf(" couldn't create native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id_non_native = H5Dcreate2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME2, enum_non_native,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create non-native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
+ printf(" couldn't create non-native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
goto error;
}
@@ -1790,13 +1777,13 @@ test_create_dataset_enum_types(void)
if ((dset_id_native = H5Dopen2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
+ printf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id_non_native = H5Dopen2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
goto error;
}
@@ -1865,27 +1852,26 @@ test_create_dataset_array_types(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1899,7 +1885,7 @@ test_create_dataset_array_types(void)
if ((array_type_id1 = H5Tarray_create2(array_base_type_id1, DATASET_ARRAY_TYPE_TEST_RANK1, array_dims1)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create first array type\n");
+ printf(" couldn't create first array type\n");
goto error;
}
@@ -1912,7 +1898,7 @@ test_create_dataset_array_types(void)
if ((array_type_id2 = H5Tarray_create2(array_base_type_id2, DATASET_ARRAY_TYPE_TEST_RANK2, array_dims2)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create second array type\n");
+ printf(" couldn't create second array type\n");
goto error;
}
@@ -1926,13 +1912,13 @@ test_create_dataset_array_types(void)
if ((nested_type_id = H5Tarray_create2(array_base_type_id3, DATASET_ARRAY_TYPE_TEST_RANK3, array_dims3)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create nested array base type\n");
+ printf(" couldn't create nested array base type\n");
goto error;
}
if ((array_type_id3 = H5Tarray_create2(nested_type_id, DATASET_ARRAY_TYPE_TEST_RANK3, array_dims3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested array type\n");
+ printf(" couldn't create nested array type\n");
goto error;
}
@@ -1942,21 +1928,21 @@ test_create_dataset_array_types(void)
if ((dset_id1 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME1, array_type_id1, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
+ printf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id2 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME2, array_type_id2, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
+ printf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
goto error;
}
if ((dset_id3 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME3, array_type_id3, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
+ printf(" couldn't create nested array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
goto error;
}
@@ -1969,19 +1955,19 @@ test_create_dataset_array_types(void)
if ((dset_id1 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
+ printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id2 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
goto error;
}
if ((dset_id3 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
+ printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
goto error;
}
@@ -2063,8 +2049,8 @@ test_create_dataset_creation_properties(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)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or dataset "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset "
+ "aren't supported with this connector\n");
return 0;
}
@@ -2072,20 +2058,20 @@ test_create_dataset_creation_properties(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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME);
goto error;
}
@@ -2119,7 +2105,7 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2128,7 +2114,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_alloc_time(dcpl_id, alloc_times[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set alloc time property value\n");
+ printf(" couldn't set alloc time property value\n");
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2137,7 +2123,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2152,7 +2138,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2189,13 +2175,13 @@ test_create_dataset_creation_properties(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported by this VOL connector\n");
+ printf(" creation order tracking is not supported by this VOL connector\n");
PART_EMPTY(DCPL_attr_crt_order_test);
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2204,7 +2190,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_attr_creation_order(dcpl_id, creation_orders[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order property\n");
+ printf(" couldn't set attribute creation order property\n");
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2213,7 +2199,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2228,7 +2214,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2262,22 +2248,22 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_attr_phase_change_test);
}
if (H5Pset_attr_phase_change(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_MAX_COMPACT,
DATASET_CREATION_PROPERTIES_TEST_MIN_DENSE) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute phase change property\n");
+ printf(" couldn't set attribute phase change property\n");
PART_ERROR(DCPL_attr_phase_change_test);
}
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME,
dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
PART_ERROR(DCPL_attr_phase_change_test);
}
@@ -2293,8 +2279,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
PART_ERROR(DCPL_attr_phase_change_test);
}
@@ -2328,7 +2314,7 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2337,7 +2323,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_fill_time(dcpl_id, fill_times[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set dataset fill time property\n");
+ printf(" couldn't set dataset fill time property\n");
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2346,7 +2332,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2361,7 +2347,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2397,46 +2383,46 @@ test_create_dataset_creation_properties(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILTERS)) {
SKIPPED();
- HDprintf(" dataset filters are not supported by this VOL connector\n");
+ printf(" dataset filters are not supported by this VOL connector\n");
PART_EMPTY(DCPL_filters_test);
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_chunk(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_SHAPE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't set chunking on DCPL\n");
+ printf(" couldn't set chunking on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
/* Set all of the available filters on the DCPL */
if (H5Pset_deflate(dcpl_id, 7) < 0) {
H5_FAILED();
- HDprintf(" couldn't set deflate filter on DCPL\n");
+ printf(" couldn't set deflate filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_shuffle(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't set shuffle filter on DCPL\n");
+ printf(" couldn't set shuffle filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_fletcher32(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't set fletcher32 filter on DCPL\n");
+ printf(" couldn't set fletcher32 filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_nbit(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't set nbit filter on DCPL\n");
+ printf(" couldn't set nbit filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_scaleoffset(dcpl_id, H5Z_SO_FLOAT_ESCALE, 2) < 0) {
H5_FAILED();
- HDprintf(" couldn't set scaleoffset filter on DCPL\n");
+ printf(" couldn't set scaleoffset filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
@@ -2446,8 +2432,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME,
H5T_NATIVE_INT, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
PART_ERROR(DCPL_filters_test);
}
@@ -2463,8 +2449,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
PART_ERROR(DCPL_filters_test);
}
@@ -2499,7 +2485,7 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2508,7 +2494,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_layout(dcpl_id, layouts[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set storage layout property\n");
+ printf(" couldn't set storage layout property\n");
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2522,7 +2508,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_chunk(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_CHUNK_DIM_RANK,
local_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't set chunk dimensionality\n");
+ printf(" couldn't set chunk dimensionality\n");
PART_ERROR(DCPL_storage_layout_test);
}
}
@@ -2534,7 +2520,7 @@ test_create_dataset_creation_properties(void)
(H5D_COMPACT == layouts[i]) ? compact_fspace_id : fspace_id, H5P_DEFAULT,
dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2549,7 +2535,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2583,27 +2569,27 @@ test_create_dataset_creation_properties(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_TRACK_TIMES)) {
SKIPPED();
- HDprintf(" object time tracking is not supported by this VOL connector\n");
+ printf(" object time tracking is not supported by this VOL connector\n");
PART_EMPTY(DCPL_track_obj_times_test);
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_track_obj_times_test);
}
if (H5Pset_obj_track_times(dcpl_id, true) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object time tracking property\n");
+ printf(" couldn't set object time tracking property\n");
PART_ERROR(DCPL_track_obj_times_test);
}
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME,
dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2619,8 +2605,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2635,15 +2621,15 @@ test_create_dataset_creation_properties(void)
if (H5Pset_obj_track_times(dcpl_id, false) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object time tracking property\n");
+ printf(" couldn't set object time tracking property\n");
PART_ERROR(DCPL_track_obj_times_test);
}
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME,
dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2659,8 +2645,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2746,58 +2732,57 @@ test_create_many_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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MANY_CREATE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_MANY_CREATE_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_MANY_CREATE_GROUP_NAME);
goto error;
}
if ((dataspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create scalar data space\n");
+ printf(" couldn't create scalar data space\n");
goto error;
}
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < DATASET_NUMB; i++) {
- HDprintf("\r %u/%u", i + 1, DATASET_NUMB);
+ printf("\r %u/%u", i + 1, DATASET_NUMB);
sprintf(dset_name, "dset_%02u", i);
data = i % 256;
if ((dset_id = H5Dcreate2(group_id, dset_name, H5T_NATIVE_UCHAR, dataspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", dset_name);
+ printf(" couldn't create dataset '%s'\n", dset_name);
goto error;
}
if (H5Dwrite(dset_id, H5T_NATIVE_UCHAR, H5S_ALL, H5S_ALL, H5P_DEFAULT, &data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", dset_name);
+ printf(" couldn't write to dataset '%s'\n", dset_name);
goto error;
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close dataset '%s'\n", dset_name);
+ printf(" couldn't close dataset '%s'\n", dset_name);
goto error;
}
}
@@ -2862,8 +2847,7 @@ test_open_dataset_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -2871,20 +2855,20 @@ test_open_dataset_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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_OPEN_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_OPEN_INVALID_PARAMS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_OPEN_INVALID_PARAMS_GROUP_NAME);
goto error;
}
@@ -2898,7 +2882,7 @@ test_open_dataset_invalid_params(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_OPEN_INVALID_PARAMS_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_OPEN_INVALID_PARAMS_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_OPEN_INVALID_PARAMS_DSET_NAME);
goto error;
}
@@ -2921,7 +2905,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with an invalid loc_id!\n");
+ printf(" opened dataset using H5Dopen2 with an invalid loc_id!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_loc_id);
}
@@ -2942,7 +2926,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with a NULL dataset name!\n");
+ printf(" opened dataset using H5Dopen2 with a NULL dataset name!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_dataset_name);
}
@@ -2955,7 +2939,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with an invalid dataset name of ''!\n");
+ printf(" opened dataset using H5Dopen2 with an invalid dataset name of ''!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_dataset_name);
}
@@ -2976,7 +2960,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with an invalid DAPL!\n");
+ printf(" opened dataset using H5Dopen2 with an invalid DAPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_dapl);
}
@@ -3034,13 +3018,13 @@ test_close_dataset_invalid_params(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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file or dataset 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;
}
@@ -3052,7 +3036,7 @@ test_close_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Dclose succeeded with an invalid dataset ID!\n");
+ printf(" H5Dclose succeeded with an invalid dataset ID!\n");
goto error;
}
@@ -3098,8 +3082,7 @@ test_get_dataset_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_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -3107,20 +3090,20 @@ test_get_dataset_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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME);
goto error;
}
@@ -3134,7 +3117,7 @@ test_get_dataset_space_and_type(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
goto error;
}
@@ -3149,7 +3132,7 @@ test_get_dataset_space_and_type(void)
if ((tmp_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's datatype\n");
+ printf(" couldn't retrieve dataset's datatype\n");
PART_ERROR(H5Dget_type);
}
@@ -3158,13 +3141,13 @@ test_get_dataset_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Dget_type);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" dataset's datatype did not match\n");
+ printf(" dataset's datatype did not match\n");
PART_ERROR(H5Dget_type);
}
}
@@ -3179,7 +3162,7 @@ test_get_dataset_space_and_type(void)
if ((tmp_space_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's dataspace\n");
+ printf(" couldn't retrieve dataset's dataspace\n");
PART_ERROR(H5Dget_space);
}
@@ -3188,14 +3171,14 @@ test_get_dataset_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataspace dimensions\n");
+ printf(" couldn't retrieve dataspace dimensions\n");
PART_ERROR(H5Dget_space);
}
for (i = 0; i < DATASET_GET_SPACE_TYPE_TEST_SPACE_RANK; i++)
if (space_dims[i] != dset_dims[i]) {
H5_FAILED();
- HDprintf(" dataset's dataspace dims didn't match\n");
+ printf(" dataset's dataspace dims didn't match\n");
PART_ERROR(H5Dget_space);
}
}
@@ -3238,13 +3221,13 @@ test_get_dataset_space_and_type(void)
if ((dset_id = H5Dopen2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
PART_ERROR(H5Dget_type_reopened);
}
if ((tmp_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's datatype\n");
+ printf(" couldn't retrieve dataset's datatype\n");
PART_ERROR(H5Dget_type_reopened);
}
@@ -3253,13 +3236,13 @@ test_get_dataset_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Dget_type_reopened);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" dataset's datatype did not match\n");
+ printf(" dataset's datatype did not match\n");
PART_ERROR(H5Dget_type_reopened);
}
}
@@ -3283,13 +3266,13 @@ test_get_dataset_space_and_type(void)
if ((dset_id = H5Dopen2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
PART_ERROR(H5Dget_space_reopened);
}
if ((tmp_space_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's dataspace\n");
+ printf(" couldn't retrieve dataset's dataspace\n");
PART_ERROR(H5Dget_space_reopened);
}
@@ -3298,14 +3281,14 @@ test_get_dataset_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataspace dimensions\n");
+ printf(" couldn't retrieve dataspace dimensions\n");
PART_ERROR(H5Dget_space_reopened);
}
for (i = 0; i < DATASET_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) {
if (space_dims[i] != dset_dims[i]) {
H5_FAILED();
- HDprintf(" dataset's dataspace dims didn't match!\n");
+ printf(" dataset's dataspace dims didn't match!\n");
PART_ERROR(H5Dget_space_reopened);
}
}
@@ -3387,8 +3370,7 @@ test_get_dataset_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_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -3396,21 +3378,21 @@ test_get_dataset_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, DATASET_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",
- DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -3424,7 +3406,7 @@ test_get_dataset_space_and_type_invalid_params(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype,
dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
@@ -3444,7 +3426,7 @@ test_get_dataset_space_and_type_invalid_params(void)
if (tmp_type_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of dataset's datatype using an invalid dataset ID!\n");
+ printf(" retrieved copy of dataset's datatype using an invalid dataset ID!\n");
PART_ERROR(H5Dget_type_invalid_dset_id);
}
@@ -3464,7 +3446,7 @@ test_get_dataset_space_and_type_invalid_params(void)
if (tmp_space_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of dataset's dataspace using an invalid dataset ID!\n");
+ printf(" retrieved copy of dataset's dataspace using an invalid dataset ID!\n");
PART_ERROR(H5Dget_space_invalid_dset_id);
}
@@ -3571,8 +3553,8 @@ test_dataset_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_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
@@ -3580,27 +3562,27 @@ test_dataset_property_lists(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;
}
/** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */
if (H5VLget_connector_name(file_id, vol_name, 5) < 0) {
H5_FAILED();
- HDprintf(" couldn't get VOL connector name\n");
+ printf(" couldn't get VOL connector name\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME);
goto error;
}
@@ -3621,27 +3603,27 @@ test_dataset_property_lists(void)
if ((dcpl_id1 = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
goto error;
}
if (H5Pset_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't set DCPL property\n");
+ printf(" couldn't set DCPL property\n");
goto error;
}
if ((dset_id1 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME1, dset_dtype1, space_id,
H5P_DEFAULT, dcpl_id1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
+ printf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
goto error;
}
if ((dset_id2 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME2, dset_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
+ printf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
goto error;
}
@@ -3660,13 +3642,13 @@ test_dataset_property_lists(void)
* does not */
if ((dcpl_id1 = H5Dget_create_plist(dset_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist);
}
if ((dcpl_id2 = H5Dget_create_plist(dset_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist);
}
@@ -3678,14 +3660,14 @@ test_dataset_property_lists(void)
if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't get DCPL property value\n");
+ printf(" couldn't get DCPL property value\n");
PART_ERROR(H5Dget_create_plist);
}
for (i = 0; i < DATASET_PROPERTY_LIST_TEST_SPACE_RANK; i++)
if (tmp_chunk_dims[i] != chunk_dims[i]) {
H5_FAILED();
- HDprintf(" DCPL property values were incorrect\n");
+ printf(" DCPL property values were incorrect\n");
PART_ERROR(H5Dget_create_plist);
}
@@ -3698,8 +3680,8 @@ test_dataset_property_lists(void)
/* DAOS VOL can auto chunk, so don't fail */
if (err_ret >= 0 && strcmp(vol_name, "daos") != 0) {
H5_FAILED();
- HDprintf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
- "layout)\n");
+ printf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
+ "layout)\n");
PART_ERROR(H5Dget_create_plist);
}
}
@@ -3714,27 +3696,27 @@ test_dataset_property_lists(void)
if ((dapl_id1 = H5Pcreate(H5P_DATASET_ACCESS)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DAPL\n");
+ printf(" couldn't create DAPL\n");
PART_ERROR(H5Dget_access_plist);
}
if (H5Pset_efile_prefix(dapl_id1, path_prefix) < 0) {
H5_FAILED();
- HDprintf(" couldn't set DAPL property\n");
+ printf(" couldn't set DAPL property\n");
PART_ERROR(H5Dget_access_plist);
}
if ((dset_id3 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME3, dset_dtype3, space_id,
H5P_DEFAULT, H5P_DEFAULT, dapl_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
PART_ERROR(H5Dget_access_plist);
}
if ((dset_id4 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME4, dset_dtype4, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
PART_ERROR(H5Dget_access_plist);
}
@@ -3751,13 +3733,13 @@ test_dataset_property_lists(void)
* does not */
if ((dapl_id1 = H5Dget_access_plist(dset_id3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_access_plist);
}
if ((dapl_id2 = H5Dget_access_plist(dset_id4)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_access_plist);
}
@@ -3767,25 +3749,25 @@ test_dataset_property_lists(void)
if ((buf_size = H5Pget_efile_prefix(dapl_id1, NULL, 0)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve size for property value buffer\n");
+ printf(" couldn't retrieve size for property value buffer\n");
PART_ERROR(H5Dget_access_plist);
}
if (NULL == (tmp_prefix = (char *)HDcalloc(1, (size_t)buf_size + 1))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for property value\n");
+ printf(" couldn't allocate buffer for property value\n");
PART_ERROR(H5Dget_access_plist);
}
if (H5Pget_efile_prefix(dapl_id1, tmp_prefix, (size_t)buf_size + 1) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve property list value\n");
+ printf(" couldn't retrieve property list value\n");
PART_ERROR(H5Dget_access_plist);
}
if (HDstrncmp(tmp_prefix, path_prefix, (size_t)buf_size + 1)) {
H5_FAILED();
- HDprintf(" DAPL values were incorrect!\n");
+ printf(" DAPL values were incorrect!\n");
PART_ERROR(H5Dget_access_plist);
}
@@ -3793,13 +3775,13 @@ test_dataset_property_lists(void)
if (H5Pget_efile_prefix(dapl_id2, tmp_prefix, (size_t)buf_size) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve property list value\n");
+ printf(" couldn't retrieve property list value\n");
PART_ERROR(H5Dget_access_plist);
}
if (!HDstrncmp(tmp_prefix, path_prefix, (size_t)buf_size + 1)) {
H5_FAILED();
- HDprintf(" DAPL property value was set!\n");
+ printf(" DAPL property value was set!\n");
PART_ERROR(H5Dget_access_plist);
}
}
@@ -3850,25 +3832,25 @@ test_dataset_property_lists(void)
if ((dset_id1 = H5Dopen2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
+ printf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
PART_ERROR(H5Dget_create_plist_reopened);
}
if ((dset_id2 = H5Dopen2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
+ printf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
PART_ERROR(H5Dget_create_plist_reopened);
}
if ((dcpl_id1 = H5Dget_create_plist(dset_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
if ((dcpl_id2 = H5Dget_create_plist(dset_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
@@ -3880,14 +3862,14 @@ test_dataset_property_lists(void)
if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't get DCPL property value\n");
+ printf(" couldn't get DCPL property value\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
for (i = 0; i < DATASET_PROPERTY_LIST_TEST_SPACE_RANK; i++)
if (tmp_chunk_dims[i] != chunk_dims[i]) {
H5_FAILED();
- HDprintf(" DCPL property values were incorrect\n");
+ printf(" DCPL property values were incorrect\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
@@ -3900,8 +3882,8 @@ test_dataset_property_lists(void)
/* DAOS VOL can auto chunk, so don't fail */
if (err_ret >= 0 && strcmp(vol_name, "daos") != 0) {
H5_FAILED();
- HDprintf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
- "layout)\n");
+ printf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
+ "layout)\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
}
@@ -4088,27 +4070,26 @@ test_read_dataset_small_all(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_ALL_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_READ_TEST_ALL_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_READ_TEST_ALL_GROUP_NAME);
goto error;
}
@@ -4119,7 +4100,7 @@ test_read_dataset_small_all(void)
DATASET_SMALL_READ_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
goto error;
}
@@ -4133,7 +4114,7 @@ test_read_dataset_small_all(void)
if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_ALL_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) <
0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
goto error;
}
@@ -4198,28 +4179,27 @@ test_read_dataset_small_hyperslab(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME);
goto error;
}
@@ -4232,7 +4212,7 @@ test_read_dataset_small_hyperslab(void)
DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -4258,7 +4238,7 @@ test_read_dataset_small_hyperslab(void)
if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -4326,28 +4306,27 @@ test_read_dataset_small_point_selection(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME);
goto error;
}
@@ -4361,7 +4340,7 @@ test_read_dataset_small_point_selection(void)
DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -4381,14 +4360,14 @@ test_read_dataset_small_point_selection(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_SMALL_READ_TEST_POINT_SELECTION_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select points\n");
+ printf(" couldn't select points\n");
goto error;
}
if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -4481,8 +4460,7 @@ test_dataset_io_point_selections(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -4951,8 +4929,7 @@ test_read_dataset_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -4960,21 +4937,20 @@ test_read_dataset_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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -4985,7 +4961,7 @@ test_read_dataset_invalid_params(void)
DATASET_READ_INVALID_PARAMS_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
@@ -5013,7 +4989,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid dataset ID!\n");
+ printf(" read from dataset using H5Dread with an invalid dataset ID!\n");
PART_ERROR(H5Dread_invalid_dset_id);
}
@@ -5033,7 +5009,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid memory datatype!\n");
+ printf(" read from dataset using H5Dread with an invalid memory datatype!\n");
PART_ERROR(H5Dread_invalid_datatype);
}
@@ -5054,7 +5030,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid memory dataspace!\n");
+ printf(" read from dataset using H5Dread with an invalid memory dataspace!\n");
PART_ERROR(H5Dread_invalid_mem_dataspace);
}
@@ -5075,7 +5051,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid file dataspace!\n");
+ printf(" read from dataset using H5Dread with an invalid file dataspace!\n");
PART_ERROR(H5Dread_invalid_file_dataspace);
}
@@ -5096,7 +5072,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid DXPL!\n");
+ printf(" read from dataset using H5Dread with an invalid DXPL!\n");
PART_ERROR(H5Dread_invalid_dxpl);
}
@@ -5117,7 +5093,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid data buffer!\n");
+ printf(" read from dataset using H5Dread with an invalid data buffer!\n");
PART_ERROR(H5Dread_invalid_data_buf);
}
@@ -5187,27 +5163,26 @@ test_write_dataset_small_all(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME);
goto error;
}
@@ -5218,7 +5193,7 @@ test_write_dataset_small_all(void)
DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
goto error;
}
@@ -5230,19 +5205,19 @@ test_write_dataset_small_all(void)
if ((dset_id = H5Dopen2(group_id, DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
goto error;
}
@@ -5254,7 +5229,7 @@ test_write_dataset_small_all(void)
if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
goto error;
}
@@ -5319,28 +5294,27 @@ test_write_dataset_small_hyperslab(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME);
goto error;
}
@@ -5354,7 +5328,7 @@ test_write_dataset_small_hyperslab(void)
DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -5383,7 +5357,7 @@ test_write_dataset_small_hyperslab(void)
if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -5451,28 +5425,27 @@ test_write_dataset_small_point_selection(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME);
goto error;
}
@@ -5486,7 +5459,7 @@ test_write_dataset_small_point_selection(void)
DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -5509,14 +5482,14 @@ test_write_dataset_small_point_selection(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select points\n");
+ printf(" couldn't select points\n");
goto error;
}
if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -5590,8 +5563,8 @@ test_write_dataset_data_verification(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -5599,20 +5572,20 @@ test_write_dataset_data_verification(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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -5623,7 +5596,7 @@ test_write_dataset_data_verification(void)
DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
goto error;
}
@@ -5648,7 +5621,7 @@ test_write_dataset_data_verification(void)
if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
@@ -5676,40 +5649,40 @@ test_write_dataset_data_verification(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_all_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_all_read);
}
if (NULL ==
(data = HDmalloc((hsize_t)space_npoints * DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_all_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
for (i = 0; i < (hsize_t)space_npoints; i++)
if (((int *)data)[i] != (int)i) {
H5_FAILED();
- HDprintf(" H5S_ALL selection data verification failed\n");
+ printf(" H5S_ALL selection data verification failed\n");
PART_ERROR(H5Dwrite_all_read);
}
@@ -5730,7 +5703,7 @@ test_write_dataset_data_verification(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5743,14 +5716,14 @@ test_write_dataset_data_verification(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5771,7 +5744,7 @@ test_write_dataset_data_verification(void)
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, stride, count, block) < 0) {
H5_FAILED();
- HDprintf(" couldn't select hyperslab for dataset write\n");
+ printf(" couldn't select hyperslab for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5780,7 +5753,7 @@ test_write_dataset_data_verification(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
}
@@ -5788,7 +5761,7 @@ test_write_dataset_data_verification(void)
if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5819,39 +5792,39 @@ test_write_dataset_data_verification(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" hyperslab selection data verification failed\n");
+ printf(" hyperslab selection data verification failed\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5883,7 +5856,7 @@ test_write_dataset_data_verification(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5896,14 +5869,14 @@ test_write_dataset_data_verification(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5931,7 +5904,7 @@ test_write_dataset_data_verification(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_DATA_VERIFY_WRITE_TEST_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select elements in dataspace\n");
+ printf(" couldn't select elements in dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5940,7 +5913,7 @@ test_write_dataset_data_verification(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
}
@@ -5948,7 +5921,7 @@ test_write_dataset_data_verification(void)
if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5979,39 +5952,39 @@ test_write_dataset_data_verification(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" point selection data verification failed\n");
+ printf(" point selection data verification failed\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6097,8 +6070,7 @@ test_write_dataset_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_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -6106,21 +6078,21 @@ test_write_dataset_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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -6131,13 +6103,13 @@ test_write_dataset_invalid_params(void)
DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_WRITE_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_WRITE_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
goto error;
}
@@ -6164,7 +6136,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid dataset ID!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid dataset ID!\n");
PART_ERROR(H5Dwrite_invalid_dset_id);
}
@@ -6184,7 +6156,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid memory datatype!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid memory datatype!\n");
PART_ERROR(H5Dwrite_invalid_datatype);
}
@@ -6205,7 +6177,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid memory dataspace!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid memory dataspace!\n");
PART_ERROR(H5Dwrite_invalid_mem_dataspace);
}
@@ -6226,7 +6198,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid file dataspace!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid file dataspace!\n");
PART_ERROR(H5Dwrite_invalid_file_dataspace);
}
@@ -6247,7 +6219,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid DXPL!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid DXPL!\n");
PART_ERROR(H5Dwrite_invalid_dxpl);
}
@@ -6268,7 +6240,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid data buffer!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid data buffer!\n");
PART_ERROR(H5Dwrite_invalid_data_buf);
}
@@ -6350,8 +6322,8 @@ test_dataset_builtin_type_conversion(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -6359,7 +6331,7 @@ test_dataset_builtin_type_conversion(void)
if ((native_order = H5Tget_order(DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get native byte order\n");
+ printf(" couldn't get native byte order\n");
goto error;
}
if (native_order == H5T_ORDER_LE)
@@ -6369,20 +6341,20 @@ test_dataset_builtin_type_conversion(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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_DATA_BUILTIN_CONVERSION_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -6392,7 +6364,7 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, file_type_id,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
goto error;
}
@@ -6417,8 +6389,8 @@ test_dataset_builtin_type_conversion(void)
if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
@@ -6447,41 +6419,41 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_all_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_all_read);
}
if (NULL == (data = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_all_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
for (i = 0; i < (hsize_t)space_npoints; i++)
if (((int *)data)[i] != (int)i) {
H5_FAILED();
- HDprintf(" H5S_ALL selection data verification failed\n");
+ printf(" H5S_ALL selection data verification failed\n");
PART_ERROR(H5Dwrite_all_read);
}
@@ -6502,7 +6474,7 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6515,15 +6487,15 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6544,7 +6516,7 @@ test_dataset_builtin_type_conversion(void)
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, stride, count, block) < 0) {
H5_FAILED();
- HDprintf(" couldn't select hyperslab for dataset write\n");
+ printf(" couldn't select hyperslab for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6553,7 +6525,7 @@ test_dataset_builtin_type_conversion(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
}
@@ -6561,8 +6533,8 @@ test_dataset_builtin_type_conversion(void)
if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6594,40 +6566,40 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" hyperslab selection data verification failed\n");
+ printf(" hyperslab selection data verification failed\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6659,7 +6631,7 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6672,15 +6644,15 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6708,7 +6680,7 @@ test_dataset_builtin_type_conversion(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_DATA_BUILTIN_CONVERSION_TEST_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select elements in dataspace\n");
+ printf(" couldn't select elements in dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6717,7 +6689,7 @@ test_dataset_builtin_type_conversion(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
}
@@ -6725,8 +6697,8 @@ test_dataset_builtin_type_conversion(void)
if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6758,40 +6730,40 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" point selection data verification failed\n");
+ printf(" point selection data verification failed\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6887,8 +6859,7 @@ test_dataset_compound_partial_io(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)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -6896,21 +6867,21 @@ test_dataset_compound_partial_io(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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME);
goto error;
}
@@ -6937,7 +6908,7 @@ test_dataset_compound_partial_io(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME, full_type_id,
space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME);
goto error;
}
@@ -7144,28 +7115,28 @@ test_dataset_set_extent_chunked_unlimited(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME);
goto error;
}
@@ -7186,14 +7157,14 @@ test_dataset_set_extent_chunked_unlimited(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
goto error;
}
@@ -7209,7 +7180,7 @@ test_dataset_set_extent_chunked_unlimited(void)
if (H5Dset_extent(dset_id, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent\n");
+ printf(" failed to set dataset extent\n");
goto error;
}
@@ -7221,13 +7192,13 @@ test_dataset_set_extent_chunked_unlimited(void)
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7237,7 +7208,7 @@ test_dataset_set_extent_chunked_unlimited(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK; j++) {
if (dims[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7265,7 +7236,7 @@ test_dataset_set_extent_chunked_unlimited(void)
if (H5Dset_extent(dset_id, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent\n");
+ printf(" failed to set dataset extent\n");
goto error;
}
@@ -7280,20 +7251,19 @@ test_dataset_set_extent_chunked_unlimited(void)
if ((dset_id = H5Dopen2(group_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n",
- DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
+ printf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7303,7 +7273,7 @@ test_dataset_set_extent_chunked_unlimited(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK; j++) {
if (dims[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7377,28 +7347,28 @@ test_dataset_set_extent_chunked_fixed(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME);
goto error;
}
@@ -7423,7 +7393,7 @@ test_dataset_set_extent_chunked_fixed(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
@@ -7435,14 +7405,14 @@ test_dataset_set_extent_chunked_fixed(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME);
goto error;
}
if ((dset_id2 = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2, dset_dtype,
fspace_id2, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
goto error;
}
@@ -7471,7 +7441,7 @@ test_dataset_set_extent_chunked_fixed(void)
if (H5Dset_extent(dset_id, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent\n");
+ printf(" failed to set dataset extent\n");
goto error;
}
@@ -7483,13 +7453,13 @@ test_dataset_set_extent_chunked_fixed(void)
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7499,7 +7469,7 @@ test_dataset_set_extent_chunked_fixed(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK; j++) {
if (dims[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7540,7 +7510,7 @@ test_dataset_set_extent_chunked_fixed(void)
if (H5Dset_extent(dset_id2, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent2\n");
+ printf(" failed to set dataset extent2\n");
goto error;
}
@@ -7555,19 +7525,19 @@ test_dataset_set_extent_chunked_fixed(void)
if ((dset_id2 = H5Dopen2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
goto error;
}
if ((fspace_id2 = H5Dget_space(dset_id2)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id2, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7577,7 +7547,7 @@ test_dataset_set_extent_chunked_fixed(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK; j++) {
if (dims2[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7666,8 +7636,8 @@ test_dataset_set_extent_data(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -7675,20 +7645,20 @@ test_dataset_set_extent_data(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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
goto error;
}
@@ -7700,14 +7670,14 @@ test_dataset_set_extent_data(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_DATA_TEST_SPACE_RANK, dims_chunk) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_DATA_TEST_DSET_NAME, H5T_NATIVE_INT, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DATA_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DATA_TEST_DSET_NAME);
goto error;
}
@@ -7766,15 +7736,15 @@ test_dataset_set_extent_data(void)
if (i >= (int)dims_origin[0] || j >= (int)dims_origin[1]) {
if (buf_expand[i][j] != 0) {
H5_FAILED();
- HDprintf(" buf_expand[%d][%d] = %d. It should be 0\n", i, j, buf_expand[i][j]);
+ printf(" buf_expand[%d][%d] = %d. It should be 0\n", i, j, buf_expand[i][j]);
PART_ERROR(H5Dset_extent_data_expand);
}
}
else {
if (buf_expand[i][j] != buf_origin[i][j]) {
H5_FAILED();
- HDprintf(" buf_expand[%d][%d] = %d. It should be %d\n", i, j, buf_expand[i][j],
- buf_origin[i][j]);
+ printf(" buf_expand[%d][%d] = %d. It should be %d\n", i, j, buf_expand[i][j],
+ buf_origin[i][j]);
PART_ERROR(H5Dset_extent_data_expand);
}
}
@@ -7807,8 +7777,8 @@ test_dataset_set_extent_data(void)
for (j = 0; j < (int)dims_shrink[1]; j++) {
if (buf_shrink[i][j] != buf_origin[i][j]) {
H5_FAILED();
- HDprintf(" buf_shrink[%d][%d] = %d. It should be %d\n", i, j, buf_shrink[i][j],
- buf_origin[i][j]);
+ printf(" buf_shrink[%d][%d] = %d. It should be %d\n", i, j, buf_shrink[i][j],
+ buf_origin[i][j]);
PART_ERROR(H5Dset_extent_data_shrink);
}
}
@@ -7844,16 +7814,15 @@ test_dataset_set_extent_data(void)
if (i >= (int)dims_shrink[0] || j >= (int)dims_shrink[1]) {
if (buf_expand2[i][j] != 0) {
H5_FAILED();
- HDprintf(" buf_expand2[%d][%d] = %d. It should be 0\n", i, j,
- buf_expand2[i][j]);
+ printf(" buf_expand2[%d][%d] = %d. It should be 0\n", i, j, buf_expand2[i][j]);
PART_ERROR(H5Dset_extent_data_expand_to_origin);
}
}
else {
if (buf_expand2[i][j] != buf_origin[i][j]) {
H5_FAILED();
- HDprintf(" buf_expand2[%d][%d] = %d. It should be %d.\n", i, j,
- buf_expand2[i][j], buf_origin[i][j]);
+ printf(" buf_expand2[%d][%d] = %d. It should be %d.\n", i, j,
+ buf_expand2[i][j], buf_origin[i][j]);
PART_ERROR(H5Dset_extent_data_expand_to_origin);
}
}
@@ -7889,8 +7858,8 @@ test_dataset_set_extent_data(void)
for (i = 0; i < DATASET_SET_EXTENT_DATA_TEST_SPACE_RANK; i++)
if (dims_out[i] != 0) {
H5_FAILED();
- HDprintf(" dims_out[%d] = %llu. It should be 0.\n", i,
- (long long unsigned int)dims_out[i]);
+ printf(" dims_out[%d] = %llu. It should be 0.\n", i,
+ (long long unsigned int)dims_out[i]);
PART_ERROR(H5Dset_extent_data_shrink_to_zero);
}
@@ -7923,7 +7892,7 @@ test_dataset_set_extent_data(void)
for (j = 0; j < (int)dims_origin[1]; j++) {
if (buf_expand2[i][j] != 0) {
H5_FAILED();
- HDprintf(" buf_expand2[%d][%d] = %d. It should be 0.\n", i, j, buf_expand2[i][j]);
+ printf(" buf_expand2[%d][%d] = %d. It should be 0.\n", i, j, buf_expand2[i][j]);
PART_ERROR(H5Dset_extent_data_expand_to_origin_again);
}
}
@@ -8001,27 +7970,27 @@ test_dataset_set_extent_double_handles(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
goto error;
}
@@ -8034,7 +8003,7 @@ test_dataset_set_extent_double_handles(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_SPACE_RANK, dims_chunk) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
@@ -8042,14 +8011,14 @@ test_dataset_set_extent_double_handles(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME, H5T_NATIVE_INT,
fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
goto error;
}
/* Open the same dataset again */
if ((dset_id2 = H5Dopen2(group_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
goto error;
}
@@ -8071,8 +8040,8 @@ test_dataset_set_extent_double_handles(void)
for (i = 0; i < DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_SPACE_RANK; i++)
if (dims_out[i] != dims_expand[i]) {
H5_FAILED();
- HDprintf(" dims_out[%d] = %" PRIuHSIZE ". It should be %" PRIuHSIZE ".\n", i, dims_out[i],
- dims_expand[i]);
+ printf(" dims_out[%d] = %" PRIuHSIZE ". It should be %" PRIuHSIZE ".\n", i, dims_out[i],
+ dims_expand[i]);
goto error;
}
@@ -8141,8 +8110,8 @@ test_dataset_set_extent_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_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -8150,14 +8119,14 @@ test_dataset_set_extent_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;
}
/** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */
if (H5VLget_connector_name(file_id, vol_name, 5) < 0) {
H5_FAILED();
- HDprintf(" couldn't get VOL connector name\n");
+ printf(" couldn't get VOL connector name\n");
goto error;
}
if (strcmp(vol_name, "daos") == 0) {
@@ -8169,15 +8138,15 @@ test_dataset_set_extent_invalid_params(void)
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -8213,8 +8182,8 @@ test_dataset_set_extent_invalid_params(void)
H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME, H5T_NATIVE_INT,
compact_fspace_id, H5P_DEFAULT, compact_dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME);
goto error;
}
@@ -8229,8 +8198,8 @@ test_dataset_set_extent_invalid_params(void)
H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, contiguous_dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME);
goto error;
}
@@ -8240,14 +8209,14 @@ test_dataset_set_extent_invalid_params(void)
if (H5Pset_chunk(chunked_dcpl_id, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
if ((chunked_dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, chunked_dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
@@ -8267,7 +8236,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with an invalid layout (compact)\n");
+ printf(" setting dataset extent succeeded with an invalid layout (compact)\n");
PART_ERROR(H5Dset_extent_invalid_layout_compact);
}
@@ -8287,7 +8256,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with an invalid layout (contiguous)\n");
+ printf(" setting dataset extent succeeded with an invalid layout (contiguous)\n");
PART_ERROR(H5Dset_extent_invalid_layout_contiguous);
}
@@ -8307,7 +8276,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with an invalid dataset ID\n");
+ printf(" setting dataset extent succeeded with an invalid dataset ID\n");
PART_ERROR(H5Dset_extent_invalid_dset_id);
}
@@ -8327,7 +8296,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with a NULL dimension pointer\n");
+ printf(" setting dataset extent succeeded with a NULL dimension pointer\n");
PART_ERROR(H5Dset_extent_null_dim_pointer);
}
@@ -8465,27 +8434,27 @@ test_create_single_chunk_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_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SINGLE_CHUNK_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_TEST_GROUP_NAME);
goto error;
}
@@ -8499,14 +8468,14 @@ test_create_single_chunk_dataset(void)
if (H5Pset_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_SINGLE_CHUNK_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_TEST_DSET_NAME);
goto error;
}
@@ -8515,28 +8484,28 @@ test_create_single_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_SINGLE_CHUNK_TEST_SPACE_RANK; i++) {
if (dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8547,40 +8516,40 @@ test_create_single_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close dataset\n");
+ printf(" failed to close dataset\n");
goto error;
}
if ((dset_id = H5Dopen2(group_id, DATASET_SINGLE_CHUNK_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_SINGLE_CHUNK_TEST_SPACE_RANK; i++) {
if (dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8646,28 +8615,27 @@ test_write_single_chunk_dataset(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -8680,7 +8648,7 @@ test_write_single_chunk_dataset(void)
if (H5Pset_chunk(dcpl_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK, dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -8688,7 +8656,7 @@ test_write_single_chunk_dataset(void)
DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
@@ -8697,28 +8665,28 @@ test_write_single_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK; i++) {
if (dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8736,7 +8704,7 @@ test_write_single_chunk_dataset(void)
if (H5Dwrite(dset_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
@@ -8764,40 +8732,40 @@ test_write_single_chunk_dataset(void)
if ((dset_id = H5Dopen2(group_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
goto error;
}
if (NULL ==
(read_buf = HDmalloc((hsize_t)space_npoints * DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
goto error;
}
if (H5Dread(dset_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
for (i = 0; i < (hsize_t)space_npoints; i++)
if (((int *)read_buf)[i] != (int)i) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
goto error;
}
@@ -8865,27 +8833,27 @@ test_create_multi_chunk_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_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_MULTI_CHUNK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_MULTI_CHUNK_TEST_GROUP_NAME);
goto error;
}
@@ -8899,14 +8867,14 @@ test_create_multi_chunk_dataset(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_MULTI_CHUNK_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_MULTI_CHUNK_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_MULTI_CHUNK_TEST_DSET_NAME);
goto error;
}
@@ -8915,28 +8883,28 @@ test_create_multi_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_TEST_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8947,40 +8915,40 @@ test_create_multi_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close dataset\n");
+ printf(" failed to close dataset\n");
goto error;
}
if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_TEST_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9051,28 +9019,28 @@ test_write_multi_chunk_dataset_same_shape_read(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -9086,7 +9054,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) <
0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -9094,8 +9062,8 @@ test_write_multi_chunk_dataset_same_shape_read(void)
DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9104,13 +9072,13 @@ test_write_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -9118,15 +9086,15 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9202,8 +9170,8 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9232,14 +9200,13 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if ((dset_id =
H5Dopen2(group_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -9251,7 +9218,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if ((mspace_id = H5Screate_simple(2, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -9263,11 +9230,11 @@ test_write_multi_chunk_dataset_same_shape_read(void)
/*
* Read every chunk in the dataset, checking the data for each one.
*/
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < data_size / chunk_size; i++) {
size_t j, k;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -9284,7 +9251,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -9295,8 +9262,8 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9304,7 +9271,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
for (k = 0; k < chunk_dims[1]; k++) {
if (read_buf[j][k] != (int)((j * chunk_dims[0]) + k + i)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -9378,28 +9345,28 @@ test_write_multi_chunk_dataset_diff_shape_read(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_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -9413,7 +9380,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) <
0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -9421,8 +9388,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9431,13 +9398,13 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -9445,15 +9412,15 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9529,8 +9496,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9559,14 +9526,13 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if ((dset_id =
H5Dopen2(group_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -9575,7 +9541,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
*/
if (NULL == (read_buf = HDmalloc(chunk_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
goto error;
}
@@ -9587,7 +9553,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -9599,11 +9565,11 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
/*
* Read every chunk in the dataset, checking the data for each one.
*/
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < data_size / chunk_size; i++) {
size_t j;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -9620,7 +9586,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -9628,8 +9594,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9637,7 +9603,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
j++)
if (((int *)read_buf)[j] != (int)(j + i)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -9717,28 +9683,28 @@ test_overwrite_multi_chunk_dataset_same_shape_read(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_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -9752,7 +9718,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK,
chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -9760,8 +9726,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9770,13 +9736,13 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -9784,15 +9750,15 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9816,7 +9782,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if ((mspace_id = H5Screate_simple(2, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -9825,7 +9791,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
count[i] = chunk_dims[i];
}
- HDprintf("\n");
+ printf("\n");
for (niter = 0; niter < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_NITERS; niter++) {
memset(write_buf, 0, data_size);
@@ -9892,8 +9858,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9917,14 +9883,14 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -9934,7 +9900,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
for (i = 0; i < data_size / chunk_size; i++) {
size_t j, k;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -9951,7 +9917,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -9962,8 +9928,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, mspace_id,
fspace_id, H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9971,7 +9937,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
for (k = 0; k < chunk_dims[1]; k++) {
if (read_buf[j][k] != (int)((j * chunk_dims[0]) + k + i + niter)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -10052,28 +10018,28 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(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_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -10087,7 +10053,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK,
chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -10095,8 +10061,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -10105,13 +10071,13 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -10119,15 +10085,15 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -10148,7 +10114,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
*/
if (NULL == (read_buf = HDmalloc(chunk_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
goto error;
}
@@ -10160,7 +10126,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -10169,7 +10135,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
count[i] = chunk_dims[i];
}
- HDprintf("\n");
+ printf("\n");
for (niter = 0; niter < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_NITERS; niter++) {
memset(write_buf, 0, data_size);
@@ -10236,8 +10202,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -10261,14 +10227,14 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -10278,7 +10244,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
for (i = 0; i < data_size / chunk_size; i++) {
size_t j;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -10295,7 +10261,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -10303,8 +10269,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, mspace_id,
fspace_id, H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -10313,7 +10279,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
j++)
if (((int *)read_buf)[j] != (int)(j + i + niter)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -10397,28 +10363,28 @@ test_read_partial_chunk_all_selection(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_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME);
goto error;
}
@@ -10431,7 +10397,7 @@ test_read_partial_chunk_all_selection(void)
if (H5Pset_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -10439,7 +10405,7 @@ test_read_partial_chunk_all_selection(void)
DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT,
dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME);
goto error;
}
@@ -10448,13 +10414,13 @@ test_read_partial_chunk_all_selection(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -10462,15 +10428,15 @@ test_read_partial_chunk_all_selection(void)
if (H5Pget_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) <
0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -10486,7 +10452,7 @@ test_read_partial_chunk_all_selection(void)
if (H5Dwrite(dset_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
write_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to write to dataset\n");
+ printf(" failed to write to dataset\n");
goto error;
}
@@ -10497,14 +10463,14 @@ test_read_partial_chunk_all_selection(void)
TEST_ERROR;
if ((dset_id = H5Dopen2(group_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if (H5Dread(dset_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to read from dataset\n");
+ printf(" failed to read from dataset\n");
goto error;
}
@@ -10512,7 +10478,7 @@ test_read_partial_chunk_all_selection(void)
for (j = 0; j < FIXED_DIMSIZE; j++)
if (read_buf[i][j] != (int)((i * FIXED_DIMSIZE) + j)) {
H5_FAILED();
- HDprintf(
+ printf(
" data verification failed for read buffer element %lld: expected %lld but was %lld\n",
(long long)((i * FIXED_DIMSIZE) + j), (long long)((i * FIXED_DIMSIZE) + j),
(long long)read_buf[i][j]);
@@ -10584,28 +10550,28 @@ test_read_partial_chunk_hyperslab_selection(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_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list 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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME);
goto error;
}
@@ -10618,7 +10584,7 @@ test_read_partial_chunk_hyperslab_selection(void)
if (H5Pset_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -10626,7 +10592,7 @@ test_read_partial_chunk_hyperslab_selection(void)
DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT,
dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME);
goto error;
}
@@ -10635,13 +10601,13 @@ test_read_partial_chunk_hyperslab_selection(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -10649,15 +10615,15 @@ test_read_partial_chunk_hyperslab_selection(void)
if (H5Pget_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -10681,7 +10647,7 @@ test_read_partial_chunk_hyperslab_selection(void)
if ((mspace_id = H5Screate_simple(DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK, mdims,
NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -10734,30 +10700,30 @@ test_read_partial_chunk_hyperslab_selection(void)
if (H5Sselect_hyperslab(mspace_id, H5S_SELECT_SET, m_start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to select hyperslab in memory dataspace\n");
+ printf(" failed to select hyperslab in memory dataspace\n");
goto error;
}
}
else {
if (H5Sselect_all(mspace_id) < 0) {
H5_FAILED();
- HDprintf(" failed to select entire memory dataspace\n");
+ printf(" failed to select entire memory dataspace\n");
goto error;
}
}
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to select hyperslab\n");
+ printf(" failed to select hyperslab\n");
goto error;
}
- HDprintf("\r Writing chunk %zu", i);
+ printf("\r Writing chunk %zu", i);
if (H5Dwrite(dset_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to write to dataset\n");
+ printf(" failed to write to dataset\n");
goto error;
}
@@ -10771,28 +10737,28 @@ test_read_partial_chunk_hyperslab_selection(void)
if ((dset_id = H5Dopen2(group_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataspace from dataset\n");
+ printf(" failed to retrieve dataspace from dataset\n");
goto error;
}
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to select hyperslab\n");
+ printf(" failed to select hyperslab\n");
goto error;
}
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
if (H5Dread(dset_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to read from dataset\n");
+ printf(" failed to read from dataset\n");
goto error;
}
@@ -10800,10 +10766,10 @@ test_read_partial_chunk_hyperslab_selection(void)
for (k = 0; k < FIXED_CHUNK_DIMSIZE; k++)
if (read_buf[j][k] != (int)((j * FIXED_CHUNK_DIMSIZE) + k)) {
H5_FAILED();
- HDprintf(" data verification failed for read buffer element %lld: expected %lld but "
- "was %lld\n",
- (long long)((j * FIXED_CHUNK_DIMSIZE) + k),
- (long long)((j * FIXED_CHUNK_DIMSIZE) + k), (long long)read_buf[j][k]);
+ printf(" data verification failed for read buffer element %lld: expected %lld but "
+ "was %lld\n",
+ (long long)((j * FIXED_CHUNK_DIMSIZE) + k),
+ (long long)((j * FIXED_CHUNK_DIMSIZE) + k), (long long)read_buf[j][k]);
goto error;
}
}
@@ -10889,8 +10855,8 @@ test_get_vlen_buf_size(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_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -10905,20 +10871,20 @@ test_get_vlen_buf_size(void)
/* Open the file */
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, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME);
goto error;
}
@@ -10948,11 +10914,11 @@ test_get_vlen_buf_size(void)
((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) / 2) *
sizeof(unsigned int)) {
H5_FAILED();
- HDprintf(
- " H5Dvlen_get_buf_size returned wrong size (%lu), compared to the correct size (%lu)\n", size,
- ((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) /
- 2) *
- sizeof(unsigned int));
+ printf(" H5Dvlen_get_buf_size returned wrong size (%lu), compared to the correct size (%lu)\n",
+ size,
+ ((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) /
+ 2) *
+ sizeof(unsigned int));
goto error;
}
@@ -11005,17 +10971,17 @@ H5_api_dataset_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Dataset Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Dataset Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(dataset_tests); i++) {
nerrors += (*dataset_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}