summaryrefslogtreecommitdiffstats
path: root/test/API
diff options
context:
space:
mode:
Diffstat (limited to 'test/API')
-rw-r--r--test/API/H5_api_async_test.c92
-rw-r--r--test/API/H5_api_attribute_test.c2348
-rw-r--r--test/API/H5_api_dataset_test.c1664
-rw-r--r--test/API/H5_api_datatype_test.c450
-rw-r--r--test/API/H5_api_file_test.c455
-rw-r--r--test/API/H5_api_group_test.c372
-rw-r--r--test/API/H5_api_link_test.c7192
-rw-r--r--test/API/H5_api_misc_test.c150
-rw-r--r--test/API/H5_api_object_test.c1346
-rw-r--r--test/API/H5_api_test.c64
-rw-r--r--test/API/H5_api_test_util.c118
-rw-r--r--test/API/tarray.c26
-rw-r--r--test/API/tattr.c202
-rw-r--r--test/API/tchecksum.c16
-rw-r--r--test/API/tcoords.c42
-rw-r--r--test/API/testhdf5.c132
-rw-r--r--test/API/tfile.c46
-rw-r--r--test/API/tgenprop.c100
-rw-r--r--test/API/th5o.c36
-rw-r--r--test/API/th5s.c146
-rw-r--r--test/API/tid.c56
-rw-r--r--test/API/titerate.c30
-rw-r--r--test/API/tmisc.c148
-rw-r--r--test/API/trefer.c188
-rw-r--r--test/API/tselect.c756
-rw-r--r--test/API/ttime.c4
-rw-r--r--test/API/tunicode.c34
-rw-r--r--test/API/tvlstr.c18
-rw-r--r--test/API/tvltypes.c80
29 files changed, 8053 insertions, 8258 deletions
diff --git a/test/API/H5_api_async_test.c b/test/API/H5_api_async_test.c
index 3d676c0..4afea50 100644
--- a/test/API/H5_api_async_test.c
+++ b/test/API/H5_api_async_test.c
@@ -73,8 +73,7 @@ test_one_dataset_io(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, dataset, or flush aren't supported with this connector\n");
+ printf(" API functions for basic file, dataset, or flush aren't supported with this connector\n");
return 0;
}
@@ -135,7 +134,7 @@ test_one_dataset_io(void)
for (j = 0; j < 10; j++)
if (wbuf[i][j] != rbuf[i][j]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(single_dset_eswait);
} /* end if */
@@ -177,7 +176,7 @@ test_one_dataset_io(void)
for (j = 0; j < 10; j++)
if (wbuf[i][j] != rbuf[i][j]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(single_dset_dclose);
} /* end if */
@@ -222,7 +221,7 @@ test_one_dataset_io(void)
for (j = 0; j < 10; j++)
if (wbuf[i][j] != rbuf[i][j]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(single_dset_dflush);
} /* end if */
@@ -276,7 +275,7 @@ test_one_dataset_io(void)
for (j = 0; j < 10; j++)
if (wbuf[i][j] != rbuf[i][j]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(single_dset_fclose);
} /* end if */
@@ -341,8 +340,7 @@ test_multi_dataset_io(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, dataset, or flush aren't supported with this connector\n");
+ printf(" API functions for basic file, dataset, or flush aren't supported with this connector\n");
return 0;
}
@@ -432,7 +430,7 @@ test_multi_dataset_io(void)
for (k = 0; k < 10; k++)
if (wbuf[i][j][k] != rbuf[i][j][k]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(multi_dset_open);
} /* end if */
@@ -526,7 +524,7 @@ test_multi_dataset_io(void)
for (k = 0; k < 10; k++)
if (wbuf[i][j][k] != rbuf[i][j][k]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(multi_dset_close);
} /* end if */
@@ -596,8 +594,7 @@ test_multi_file_dataset_io(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, dataset, or flush aren't supported with this connector\n");
+ printf(" API functions for basic file, dataset, or flush aren't supported with this connector\n");
return 0;
}
@@ -673,7 +670,7 @@ test_multi_file_dataset_io(void)
for (k = 0; k < 10; k++)
if (wbuf[i][j][k] != rbuf[i][j][k]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(multi_file_dset_open);
} /* end if */
@@ -744,7 +741,7 @@ test_multi_file_dataset_io(void)
for (k = 0; k < 10; k++)
if (wbuf[i][j][k] != rbuf[i][j][k]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(multi_file_dset_dclose);
} /* end if */
@@ -838,7 +835,7 @@ test_multi_file_dataset_io(void)
for (k = 0; k < 10; k++)
if (wbuf[i][j][k] != rbuf[i][j][k]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(multi_file_dset_fclose);
} /* end if */
@@ -907,8 +904,7 @@ test_multi_file_grp_dset_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;
}
@@ -1028,7 +1024,7 @@ test_multi_file_grp_dset_io(void)
for (k = 0; k < 10; k++)
if (wbuf[i][j][k] != rbuf[i][j][k]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(multi_file_grp_dset_no_kick);
} /* end if */
@@ -1149,7 +1145,7 @@ test_multi_file_grp_dset_io(void)
for (k = 0; k < 10; k++)
if (wbuf[i][j][k] != rbuf[i][j][k]) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
PART_ERROR(multi_file_grp_dset_kick);
} /* end if */
@@ -1224,8 +1220,8 @@ test_set_extent(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) ||
!(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, dataset, dataset more, or flush aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, dataset, dataset more, or flush aren't supported with "
+ "this connector\n");
return 0;
}
@@ -1428,8 +1424,8 @@ test_attribute_exists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't "
+ "supported with this connector\n");
return 0;
}
@@ -1549,8 +1545,8 @@ test_attribute_io(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, dataset, dataset more, attribute, or flush aren't "
+ "supported with this connector\n");
return 0;
}
@@ -1691,7 +1687,7 @@ test_attribute_io_tconv(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, attribute, or flush aren't supported with this connector\n");
return 0;
}
@@ -1837,7 +1833,7 @@ test_attribute_io_compound(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, attribute, or flush aren't supported with this connector\n");
return 0;
}
@@ -2143,8 +2139,8 @@ test_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_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or group more aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or group more aren't supported "
+ "with this connector\n");
return 0;
}
@@ -2314,8 +2310,8 @@ test_link(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" API functions for basic file, link, hard link, soft link, flush, or creation order "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, link, hard link, soft link, flush, or creation order "
+ "aren't supported with this connector\n");
return 0;
}
@@ -2505,8 +2501,8 @@ test_ocopy_orefresh(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, object more, flush, or refresh aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, object more, flush, or refresh aren't "
+ "supported with this connector\n");
return 0;
}
@@ -2615,7 +2611,7 @@ test_file_reopen(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_FILE_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file or file more aren't supported with this connector\n");
+ printf(" API functions for basic file or file more aren't supported with this connector\n");
return 0;
}
@@ -2691,16 +2687,16 @@ H5_api_async_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Async Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Async Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ASYNC)) {
SKIPPED();
- HDprintf(" Async APIs aren't supported with this connector\n");
+ printf(" Async APIs aren't supported with this connector\n");
return 0;
}
@@ -2708,9 +2704,9 @@ H5_api_async_test(void)
nerrors += (*async_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
- HDprintf("Cleaning up testing files\n");
+ printf("Cleaning up testing files\n");
cleanup_files();
return nerrors;
@@ -2721,13 +2717,13 @@ H5_api_async_test(void)
int
H5_api_async_test(void)
{
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Async Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Async Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
- HDprintf("SKIPPED due to no async support in HDF5 library\n");
+ printf("SKIPPED due to no async support in HDF5 library\n");
return 0;
}
diff --git a/test/API/H5_api_attribute_test.c b/test/API/H5_api_attribute_test.c
index f1409a4..144b0a4 100644
--- a/test/API/H5_api_attribute_test.c
+++ b/test/API/H5_api_attribute_test.c
@@ -126,7 +126,7 @@ test_create_attribute_on_root(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or attribute aren't supported with this connector\n");
+ printf(" API functions for basic file or attribute aren't supported with this connector\n");
return 0;
}
@@ -134,7 +134,7 @@ test_create_attribute_on_root(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -157,22 +157,22 @@ test_create_attribute_on_root(void)
if ((attr_id = H5Acreate2(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME, attr_dtype1, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' using H5Acreate\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" couldn't create attribute '%s' using H5Acreate\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
@@ -187,21 +187,21 @@ test_create_attribute_on_root(void)
if ((attr_id2 = H5Acreate_by_name(file_id, "/", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2, attr_dtype2,
space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on root group using H5Acreate_by_name\n");
+ printf(" couldn't create attribute on root group using H5Acreate_by_name\n");
PART_ERROR(H5Acreate_by_name);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name);
}
@@ -269,8 +269,8 @@ test_create_attribute_on_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or attribute aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, dataset, or attribute aren't supported with this "
+ "connector\n");
return 0;
}
@@ -278,20 +278,20 @@ test_create_attribute_on_dataset(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME);
goto error;
}
@@ -312,7 +312,7 @@ test_create_attribute_on_dataset(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_CREATE_ON_DATASET_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -327,21 +327,21 @@ test_create_attribute_on_dataset(void)
if ((attr_id = H5Acreate2(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME, attr_dtype1,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
PART_ERROR(H5Acreate_on_dataset);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
PART_ERROR(H5Acreate_on_dataset);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
PART_ERROR(H5Acreate_on_dataset);
}
@@ -357,21 +357,21 @@ test_create_attribute_on_dataset(void)
ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2, attr_dtype2,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on dataset by name\n");
+ printf(" couldn't create attribute on dataset by name\n");
PART_ERROR(H5Acreate_by_name_on_dataset);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name_on_dataset);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name_on_dataset);
}
@@ -453,8 +453,8 @@ test_create_attribute_on_datatype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, stored datatype, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, stored datatype, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -462,33 +462,33 @@ test_create_attribute_on_datatype(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, ATTRIBUTE_CREATE_ON_DATATYPE_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype\n");
+ printf(" couldn't commit datatype\n");
goto error;
}
@@ -511,19 +511,19 @@ test_create_attribute_on_datatype(void)
if ((attr_id = H5Acreate2(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME, attr_dtype1, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on datatype using H5Acreate\n");
+ printf(" couldn't create attribute on datatype using H5Acreate\n");
PART_ERROR(H5Acreate_on_datatype);
}
if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Acreate_on_datatype);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
PART_ERROR(H5Acreate_on_datatype);
}
@@ -539,20 +539,20 @@ test_create_attribute_on_datatype(void)
ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2, attr_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on datatype using H5Acreate_by_name\n");
+ printf(" couldn't create attribute on datatype using H5Acreate_by_name\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
@@ -625,27 +625,27 @@ test_create_attribute_with_null_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -658,20 +658,20 @@ test_create_attribute_with_null_space(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -680,7 +680,7 @@ test_create_attribute_with_null_space(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -736,27 +736,27 @@ test_create_attribute_with_scalar_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -769,20 +769,20 @@ test_create_attribute_with_scalar_space(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -791,7 +791,7 @@ test_create_attribute_with_scalar_space(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -849,28 +849,27 @@ test_create_attribute_with_space_in_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME);
goto error;
}
@@ -884,20 +883,20 @@ test_create_attribute_with_space_in_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -953,7 +952,7 @@ test_create_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -962,20 +961,20 @@ test_create_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group\n");
+ printf(" couldn't create container group\n");
goto error;
}
@@ -1002,7 +1001,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid loc_id!\n");
+ printf(" created attribute using H5Acreate with an invalid loc_id!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_loc_id);
}
@@ -1023,7 +1022,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with a NULL name!\n");
+ printf(" created attribute using H5Acreate with a NULL name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_attr_name);
}
@@ -1036,7 +1035,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid name of ''!\n");
+ printf(" created attribute using H5Acreate with an invalid name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_attr_name);
}
@@ -1058,7 +1057,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid datatype!\n");
+ printf(" created attribute using H5Acreate with an invalid datatype!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_datatype);
}
@@ -1080,7 +1079,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid dataspace!\n");
+ printf(" created attribute using H5Acreate with an invalid dataspace!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_dataspace);
}
@@ -1102,7 +1101,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid ACPL!\n");
+ printf(" created attribute using H5Acreate with an invalid ACPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_acpl);
}
@@ -1124,7 +1123,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid AAPL!\n");
+ printf(" created attribute using H5Acreate with an invalid AAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_aapl);
}
@@ -1147,7 +1146,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_loc_id);
}
@@ -1169,7 +1168,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with a NULL object name!\n");
+ printf(" created attribute using H5Acreate_by_name with a NULL object name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_obj_name);
}
@@ -1183,8 +1182,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " created attribute using H5Acreate_by_name with an invalid object name of ''!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid object name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_obj_name);
}
@@ -1206,7 +1204,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n");
+ printf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_attr_name);
}
@@ -1220,7 +1218,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" created attribute using H5Acreate_by_name with an invalid attribute name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_attr_name);
@@ -1244,7 +1242,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid datatype!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid datatype!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_datatype);
}
@@ -1267,7 +1265,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_dataspace);
}
@@ -1290,7 +1288,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_acpl);
}
@@ -1313,7 +1311,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_aapl);
}
@@ -1336,7 +1334,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_lapl);
}
@@ -1398,8 +1396,8 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -1407,26 +1405,26 @@ test_open_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -1434,7 +1432,7 @@ test_open_attribute(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME);
goto error;
}
@@ -1448,7 +1446,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
goto error;
}
@@ -1458,7 +1456,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME2, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
goto error;
}
@@ -1468,7 +1466,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME3, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
goto error;
}
@@ -1485,13 +1483,13 @@ test_open_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen);
}
@@ -1506,14 +1504,14 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_name(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME,
ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' using H5Aopen_by_name\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s' using H5Aopen_by_name\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_name);
}
@@ -1527,52 +1525,52 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported with this VOL connector\n");
+ printf(" creation order tracking is not supported with this VOL connector\n");
PART_EMPTY(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
@@ -1586,52 +1584,52 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported with this VOL connector\n");
+ printf(" creation order tracking is not supported with this VOL connector\n");
PART_EMPTY(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
@@ -1646,45 +1644,45 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
@@ -1699,45 +1697,45 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
@@ -1801,7 +1799,7 @@ test_open_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -1810,20 +1808,20 @@ test_open_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -1837,7 +1835,7 @@ test_open_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME, attr_type, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
goto error;
}
@@ -1860,8 +1858,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_loc_id);
}
@@ -1882,8 +1880,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_attr_name);
}
@@ -1896,8 +1894,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_attr_name);
}
@@ -1918,8 +1916,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_aapl);
}
@@ -1942,8 +1940,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_loc_id);
}
@@ -1965,8 +1963,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_obj_name);
}
@@ -1980,9 +1978,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_obj_name);
}
@@ -2004,8 +2001,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_attr_name);
}
@@ -2019,7 +2016,7 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" opened attribute '%s' using H5Aopen_by_name with an invalid attribute name of ''!\n",
ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
@@ -2044,8 +2041,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_aapl);
}
@@ -2068,8 +2065,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_lapl);
}
@@ -2091,8 +2088,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_loc_id);
}
@@ -2114,8 +2111,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_obj_name);
}
@@ -2129,9 +2126,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_obj_name);
}
@@ -2153,9 +2149,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_index_type);
}
@@ -2169,9 +2165,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_index_type);
}
@@ -2193,9 +2188,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_iter_order);
}
@@ -2209,9 +2204,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
- "H5_ITER_N!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
+ "H5_ITER_N!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_iter_order);
}
@@ -2233,8 +2228,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_aapl);
}
@@ -2256,8 +2251,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_lapl);
}
@@ -2323,27 +2318,27 @@ test_write_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or file flush aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, attribute, or file flush aren't supported with "
+ "this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -2353,20 +2348,20 @@ test_write_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2374,7 +2369,7 @@ test_write_attribute(void)
data_size *= dims[i];
data_size *= ATTRIBUTE_WRITE_TEST_ATTR_DTYPE_SIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < data_size / ATTRIBUTE_WRITE_TEST_ATTR_DTYPE_SIZE; i++)
@@ -2382,19 +2377,19 @@ test_write_attribute(void)
if (H5Awrite(attr_id, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
/* Make sure that the attribute can be flushed to the file */
if (H5Fflush(file_id, H5F_SCOPE_GLOBAL) < 0) {
H5_FAILED();
- HDprintf(" couldn't flush the attribute\n");
+ printf(" couldn't flush the attribute\n");
goto error;
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -2417,7 +2412,7 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
H5Sclose(space_id);
H5Aclose(attr_id);
H5Gclose(group_id);
@@ -2453,7 +2448,7 @@ test_write_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -2462,21 +2457,20 @@ test_write_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -2488,20 +2482,20 @@ test_write_attribute_invalid_params(void)
ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2509,7 +2503,7 @@ test_write_attribute_invalid_params(void)
data_size *= dims[i];
data_size *= ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_DTYPE_SIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < data_size / ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_DTYPE_SIZE; i++)
@@ -2531,7 +2525,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid attr_id!\n");
+ printf(" wrote to attribute using an invalid attr_id!\n");
PART_ERROR(H5Awrite_invalid_attr_id);
}
@@ -2551,7 +2545,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid datatype!\n");
+ printf(" wrote to attribute using an invalid datatype!\n");
PART_ERROR(H5Awrite_invalid_datatype);
}
@@ -2571,7 +2565,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid data buffer!\n");
+ printf(" wrote to attribute using an invalid data buffer!\n");
PART_ERROR(H5Awrite_invalid_data_buf);
}
@@ -2584,7 +2578,7 @@ test_write_attribute_invalid_params(void)
TESTING_2("test cleanup");
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -2607,7 +2601,7 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
H5Sclose(space_id);
H5Aclose(attr_id);
H5Gclose(group_id);
@@ -2644,27 +2638,27 @@ test_read_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -2674,20 +2668,20 @@ test_read_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, ATTRIBUTE_READ_TEST_ATTR_DTYPE,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2695,9 +2689,9 @@ test_read_attribute(void)
data_size *= dims[i];
data_size *= ATTRIBUTE_READ_TEST_ATTR_DTYPE_SIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
- if (NULL == (read_buf = HDcalloc(1, data_size)))
+ if (NULL == (read_buf = calloc(1, data_size)))
TEST_ERROR;
for (i = 0; i < data_size / ATTRIBUTE_READ_TEST_ATTR_DTYPE_SIZE; i++)
@@ -2705,12 +2699,12 @@ test_read_attribute(void)
if (H5Awrite(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -2719,26 +2713,26 @@ test_read_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
if (H5Aread(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from attribute\n");
+ printf(" couldn't read from attribute\n");
goto error;
}
for (i = 0; i < data_size / ATTRIBUTE_READ_TEST_ATTR_DTYPE_SIZE; i++) {
if (((int *)read_buf)[i] != (int)i) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
goto error;
}
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -2761,9 +2755,9 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(space_id);
H5Aclose(attr_id);
H5Gclose(group_id);
@@ -2800,7 +2794,7 @@ test_read_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -2809,20 +2803,20 @@ test_read_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -2834,20 +2828,20 @@ test_read_attribute_invalid_params(void)
ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2855,9 +2849,9 @@ test_read_attribute_invalid_params(void)
data_size *= dims[i];
data_size *= ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE_SIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
- if (NULL == (read_buf = HDcalloc(1, data_size)))
+ if (NULL == (read_buf = calloc(1, data_size)))
TEST_ERROR;
for (i = 0; i < data_size / ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE_SIZE; i++)
@@ -2865,12 +2859,12 @@ test_read_attribute_invalid_params(void)
if (H5Awrite(attr_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -2879,7 +2873,7 @@ test_read_attribute_invalid_params(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -2899,7 +2893,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid attr_id!\n");
+ printf(" read attribute with an invalid attr_id!\n");
PART_ERROR(H5Aread_invalid_attr_id);
}
@@ -2919,7 +2913,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid datatype!\n");
+ printf(" read attribute with an invalid datatype!\n");
PART_ERROR(H5Aread_invalid_datatype);
}
@@ -2939,7 +2933,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid read buffer!\n");
+ printf(" read attribute with an invalid read buffer!\n");
PART_ERROR(H5Aread_invalid_read_buf);
}
@@ -2952,7 +2946,7 @@ test_read_attribute_invalid_params(void)
TESTING_2("test cleanup");
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -2975,9 +2969,9 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(space_id);
H5Aclose(attr_id);
H5Gclose(group_id);
@@ -3011,27 +3005,27 @@ test_read_empty_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME);
goto error;
}
@@ -3041,20 +3035,20 @@ test_read_empty_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, ATTRIBUTE_READ_EMPTY_DTYPE, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3063,7 +3057,7 @@ test_read_empty_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -3071,17 +3065,17 @@ test_read_empty_attribute(void)
data_size *= dims[i];
data_size *= ATTRIBUTE_READ_EMPTY_DTYPE_SIZE;
- if (NULL == (read_buf = HDcalloc(1, data_size)))
+ if (NULL == (read_buf = calloc(1, data_size)))
TEST_ERROR;
if (H5Aread(attr_id, ATTRIBUTE_READ_EMPTY_DTYPE, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from attribute\n");
+ printf(" couldn't read from attribute\n");
goto error;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -3104,7 +3098,7 @@ error:
H5E_BEGIN_TRY
{
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(space_id);
H5Aclose(attr_id);
H5Gclose(group_id);
@@ -3130,13 +3124,13 @@ test_close_attribute_invalid_id(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or attribute aren't supported with this connector\n");
+ printf(" API functions for basic file or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -3148,7 +3142,7 @@ test_close_attribute_invalid_id(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aclose succeeded with an invalid attribute ID!\n");
+ printf(" H5Aclose succeeded with an invalid attribute ID!\n");
goto error;
}
@@ -3195,8 +3189,8 @@ test_get_attribute_space_and_type(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or attribute aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, attribute, or attribute aren't supported with "
+ "this connector\n");
return 0;
}
@@ -3204,20 +3198,20 @@ test_get_attribute_space_and_type(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME);
goto error;
}
@@ -3231,20 +3225,20 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3259,7 +3253,7 @@ test_get_attribute_space_and_type(void)
if ((tmp_type_id = H5Aget_type(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's datatype\n");
+ printf(" couldn't retrieve attribute's datatype\n");
PART_ERROR(H5Aget_type);
}
@@ -3268,13 +3262,13 @@ test_get_attribute_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Aget_type);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" attribute's datatype did not match\n");
+ printf(" attribute's datatype did not match\n");
PART_ERROR(H5Aget_type);
}
}
@@ -3289,7 +3283,7 @@ test_get_attribute_space_and_type(void)
if ((tmp_space_id = H5Aget_space(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's dataspace\n");
+ printf(" couldn't retrieve attribute's dataspace\n");
PART_ERROR(H5Aget_space);
}
@@ -3298,14 +3292,14 @@ test_get_attribute_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dimensions of dataspace\n");
+ printf(" couldn't retrieve dimensions of dataspace\n");
PART_ERROR(H5Aget_space);
}
for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++)
if (space_dims[i] != attr_dims[i]) {
H5_FAILED();
- HDprintf(" attribute's dataspace dims didn't match\n");
+ printf(" attribute's dataspace dims didn't match\n");
PART_ERROR(H5Aget_space);
}
}
@@ -3348,13 +3342,13 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
PART_ERROR(H5Aget_type_reopened);
}
if ((tmp_type_id = H5Aget_type(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's datatype\n");
+ printf(" couldn't retrieve attribute's datatype\n");
PART_ERROR(H5Aget_type_reopened);
}
@@ -3363,13 +3357,13 @@ test_get_attribute_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Aget_type_reopened);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" attribute's datatype did not match\n");
+ printf(" attribute's datatype did not match\n");
PART_ERROR(H5Aget_type_reopened);
}
}
@@ -3393,13 +3387,13 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
PART_ERROR(H5Aget_space_reopened);
}
if ((tmp_space_id = H5Aget_space(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's dataspace\n");
+ printf(" couldn't retrieve attribute's dataspace\n");
PART_ERROR(H5Aget_space_reopened);
}
@@ -3408,14 +3402,14 @@ test_get_attribute_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dimensions of dataspace\n");
+ printf(" couldn't retrieve dimensions of dataspace\n");
PART_ERROR(H5Aget_space_reopened);
}
for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) {
if (space_dims[i] != attr_dims[i]) {
H5_FAILED();
- HDprintf(" dataspace dims didn't match!\n");
+ printf(" dataspace dims didn't match!\n");
PART_ERROR(H5Aget_space_reopened);
}
}
@@ -3498,7 +3492,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -3507,21 +3501,21 @@ test_get_attribute_space_and_type_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -3535,20 +3529,20 @@ test_get_attribute_space_and_type_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3569,7 +3563,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (tmp_type_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of attribute's datatype using an invalid attr_id!\n");
+ printf(" retrieved copy of attribute's datatype using an invalid attr_id!\n");
PART_ERROR(H5Aget_type_invalid_attr_id);
}
@@ -3589,7 +3583,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (tmp_space_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n");
+ printf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n");
PART_ERROR(H5Aget_space_invalid_attr_id);
}
@@ -3658,8 +3652,8 @@ test_attribute_property_lists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or getting property list aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, or getting property list aren't "
+ "supported with this connector\n");
return 0;
}
@@ -3667,20 +3661,20 @@ test_attribute_property_lists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group\n");
+ printf(" couldn't create container sub-group\n");
goto error;
}
@@ -3694,27 +3688,27 @@ test_attribute_property_lists(void)
if ((acpl_id1 = H5Pcreate(H5P_ATTRIBUTE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create ACPL\n");
+ printf(" couldn't create ACPL\n");
goto error;
}
if (H5Pset_char_encoding(acpl_id1, encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't set ACPL property value\n");
+ printf(" couldn't set ACPL property value\n");
goto error;
}
if ((attr_id1 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, attr_dtype1, space_id,
acpl_id1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, attr_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
@@ -3724,25 +3718,25 @@ test_attribute_property_lists(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3758,13 +3752,13 @@ test_attribute_property_lists(void)
* does not */
if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist);
}
if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3773,13 +3767,13 @@ test_attribute_property_lists(void)
if (H5Pget_char_encoding(acpl_id1, &encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve ACPL property value\n");
+ printf(" couldn't retrieve ACPL property value\n");
PART_ERROR(H5Aget_create_plist);
}
if (H5T_CSET_UTF8 != encoding) {
H5_FAILED();
- HDprintf(" ACPL property value was incorrect\n");
+ printf(" ACPL property value was incorrect\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3787,13 +3781,13 @@ test_attribute_property_lists(void)
if (H5Pget_char_encoding(acpl_id2, &encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve ACPL property value\n");
+ printf(" couldn't retrieve ACPL property value\n");
PART_ERROR(H5Aget_create_plist);
}
if (H5T_CSET_UTF8 == encoding) {
H5_FAILED();
- HDprintf(" ACPL property value was set!\n");
+ printf(" ACPL property value was set!\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3844,26 +3838,26 @@ test_attribute_property_lists(void)
if ((attr_id1 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1);
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist_reopened);
}
@@ -3945,8 +3939,8 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -3954,26 +3948,26 @@ test_get_attribute_name(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -3981,7 +3975,7 @@ test_get_attribute_name(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME);
goto error;
}
@@ -3995,7 +3989,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
@@ -4005,7 +3999,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
@@ -4015,7 +4009,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
@@ -4025,47 +4019,45 @@ test_get_attribute_name(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
/* Allocate the name buffer */
name_buf_size = strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 2;
- if (NULL == (name_buf = (char *)HDmalloc((size_t)name_buf_size))) {
+ if (NULL == (name_buf = (char *)malloc((size_t)name_buf_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for storing attribute's name\n");
+ printf(" couldn't allocate buffer for storing attribute's name\n");
goto error;
}
@@ -4079,28 +4071,28 @@ test_get_attribute_name(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
*name_buf = '\0';
if (H5Aget_name(attr_id, (size_t)name_buf_size, name_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute name\n");
+ printf(" couldn't retrieve attribute name\n");
PART_ERROR(H5Aget_name);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
@@ -4121,7 +4113,7 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4129,17 +4121,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4147,17 +4139,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4165,17 +4157,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4189,7 +4181,7 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4197,17 +4189,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4215,17 +4207,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4233,17 +4225,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4259,17 +4251,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4277,17 +4269,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4295,17 +4287,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4321,17 +4313,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4339,17 +4331,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4357,17 +4349,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4380,7 +4372,7 @@ test_get_attribute_name(void)
TESTING_2("test cleanup");
if (name_buf) {
- HDfree(name_buf);
+ free(name_buf);
name_buf = NULL;
}
@@ -4405,7 +4397,7 @@ error:
H5E_BEGIN_TRY
{
if (name_buf)
- HDfree(name_buf);
+ free(name_buf);
H5Sclose(space_id);
H5Tclose(attr_dtype);
H5Aclose(attr_id);
@@ -4443,7 +4435,7 @@ test_get_attribute_name_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -4452,21 +4444,21 @@ test_get_attribute_name_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -4480,20 +4472,20 @@ test_get_attribute_name_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -4503,11 +4495,11 @@ test_get_attribute_name_invalid_params(void)
if ((name_buf_size = H5Aget_name(attr_id, 0, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name buf size\n");
+ printf(" couldn't retrieve name buf size\n");
goto error;
}
- if (NULL == (name_buf = (char *)HDmalloc((size_t)name_buf_size + 1)))
+ if (NULL == (name_buf = (char *)malloc((size_t)name_buf_size + 1)))
TEST_ERROR;
PASSED();
@@ -4526,7 +4518,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n");
+ printf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n");
PART_ERROR(H5Aget_name_invalid_attr_id);
}
@@ -4547,7 +4539,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n");
+ printf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n");
PART_ERROR(H5Aget_name_invalid_name_buf);
}
@@ -4569,7 +4561,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_loc_id);
}
@@ -4590,7 +4582,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_obj_name);
}
@@ -4603,8 +4595,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_obj_name);
}
@@ -4626,8 +4618,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_index_type);
}
@@ -4641,8 +4633,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_index_type);
}
@@ -4664,8 +4656,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_iter_order);
}
@@ -4679,8 +4671,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
- "H5_ITER_N!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_iter_order);
}
@@ -4703,7 +4695,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" retrieved attribute name using H5Aget_name_by_idx with an invalid name buffer!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_name_buf);
}
@@ -4726,7 +4718,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_lapl);
}
@@ -4739,7 +4731,7 @@ test_get_attribute_name_invalid_params(void)
TESTING_2("test cleanup");
if (name_buf) {
- HDfree(name_buf);
+ free(name_buf);
name_buf = NULL;
}
@@ -4764,7 +4756,7 @@ error:
H5E_BEGIN_TRY
{
if (name_buf)
- HDfree(name_buf);
+ free(name_buf);
H5Sclose(space_id);
H5Tclose(attr_dtype);
H5Aclose(attr_id);
@@ -4812,8 +4804,8 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -4821,26 +4813,26 @@ test_get_attribute_info(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -4848,7 +4840,7 @@ test_get_attribute_info(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME);
goto error;
}
@@ -4862,7 +4854,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
@@ -4872,7 +4864,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
@@ -4882,7 +4874,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
@@ -4892,37 +4884,37 @@ test_get_attribute_info(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
@@ -4936,21 +4928,21 @@ test_get_attribute_info(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info(attr_id, &attr_info) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info\n");
+ printf(" couldn't get attribute info\n");
PART_ERROR(H5Aget_info);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info);
}
@@ -4958,13 +4950,13 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info);
}
@@ -4983,18 +4975,18 @@ test_get_attribute_info(void)
{
TESTING_2("H5Aget_info_by_name");
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5002,23 +4994,22 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n",
- ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5026,23 +5017,22 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n",
- ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5050,7 +5040,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
@@ -5064,24 +5054,24 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_info_by_idx_crt_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5089,24 +5079,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5114,24 +5104,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5139,7 +5129,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5153,24 +5143,24 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_info_by_idx_crt_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5178,24 +5168,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5203,24 +5193,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5228,7 +5218,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5240,20 +5230,20 @@ test_get_attribute_info(void)
{
TESTING_2("H5Aget_info_by_idx by alphabetical order in increasing order");
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5261,24 +5251,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5286,24 +5276,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5311,7 +5301,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5323,20 +5313,20 @@ test_get_attribute_info(void)
{
TESTING_2("H5Aget_info_by_idx by alphabetical order in decreasing order");
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5344,24 +5334,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5369,24 +5359,24 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
- HDmemset(&attr_info, 0, sizeof(attr_info));
+ memset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5394,7 +5384,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5462,7 +5452,7 @@ test_get_attribute_info_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -5471,21 +5461,21 @@ test_get_attribute_info_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -5499,20 +5489,20 @@ test_get_attribute_info_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -5532,7 +5522,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
+ printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
PART_ERROR(H5Aget_info_invalid_attr_id);
}
@@ -5552,7 +5542,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
+ printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
PART_ERROR(H5Aget_info_invalid_attr_info_pointer);
}
@@ -5574,7 +5564,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n");
PART_ERROR(H5Aget_info_by_name_invalid_loc_id);
}
@@ -5596,7 +5586,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n");
PART_ERROR(H5Aget_info_by_name_invalid_obj_name);
}
@@ -5609,8 +5599,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_info_by_name_invalid_obj_name);
}
@@ -5630,7 +5620,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" retrieved attribute info using H5Aget_info_by_name with a NULL attribute name!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_name);
}
@@ -5643,8 +5633,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
- "name of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
+ "name of ''!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_name);
}
@@ -5665,8 +5655,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
- "info pointer!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
+ "info pointer!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_info_pointer);
}
@@ -5687,7 +5677,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n");
PART_ERROR(H5Aget_info_by_name_invalid_lapl);
}
@@ -5708,7 +5698,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_loc_id);
}
@@ -5729,7 +5719,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_obj_name);
}
@@ -5742,8 +5732,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_obj_name);
}
@@ -5764,8 +5754,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_index_type);
}
@@ -5778,8 +5768,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_index_type);
}
@@ -5800,8 +5790,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_iter_order);
}
@@ -5814,8 +5804,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
- "H5_ITER_N!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_iter_order);
}
@@ -5835,8 +5825,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute "
- "info pointer!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute "
+ "info pointer!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_attr_info_pointer);
}
@@ -5857,7 +5847,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_lapl);
}
@@ -5922,7 +5912,7 @@ test_rename_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -5931,20 +5921,20 @@ test_rename_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME);
goto error;
}
@@ -5957,39 +5947,39 @@ test_rename_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -6003,33 +5993,33 @@ test_rename_attribute(void)
if (H5Arename(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME) < 0) {
H5_FAILED();
- HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename\n",
- ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME);
+ printf(" couldn't rename attribute '%s' to '%s' using H5Arename\n",
+ ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME);
PART_ERROR(H5Arename);
}
/* Verify the attribute has been renamed */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename);
}
@@ -6045,33 +6035,33 @@ test_rename_attribute(void)
ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n",
- ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2);
+ printf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n",
+ ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2);
PART_ERROR(H5Arename_by_name);
}
/* Verify the attribute has been renamed */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename_by_name);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename_by_name);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename_by_name);
}
@@ -6140,7 +6130,7 @@ test_rename_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -6149,21 +6139,20 @@ test_rename_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -6177,39 +6166,39 @@ test_rename_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -6230,7 +6219,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid loc_id!\n");
+ printf(" renamed attribute using H5Arename with an invalid loc_id!\n");
PART_ERROR(H5Arename_invalid_loc_id);
}
@@ -6250,7 +6239,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with a NULL old attribute name!\n");
+ printf(" renamed attribute using H5Arename with a NULL old attribute name!\n");
PART_ERROR(H5Arename_invalid_old_attr_name);
}
@@ -6262,7 +6251,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n");
+ printf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n");
PART_ERROR(H5Arename_invalid_old_attr_name);
}
@@ -6282,7 +6271,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with a NULL new attribute name!\n");
+ printf(" renamed attribute using H5Arename with a NULL new attribute name!\n");
PART_ERROR(H5Arename_invalid_new_attr_name);
}
@@ -6294,7 +6283,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n");
+ printf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n");
PART_ERROR(H5Arename_invalid_new_attr_name);
}
@@ -6316,7 +6305,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n");
PART_ERROR(H5Arename_by_name_invalid_loc_id);
}
@@ -6337,7 +6326,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL object name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL object name!\n");
PART_ERROR(H5Arename_by_name_invalid_obj_name);
}
@@ -6350,8 +6339,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " renamed attribute using H5Arename_by_name with an invalid object name of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid object name of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_obj_name);
}
@@ -6372,7 +6360,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n");
PART_ERROR(H5Arename_by_name_invalid_old_attr_name);
}
@@ -6385,8 +6373,8 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid old attribute name "
- "of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid old attribute name "
+ "of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_old_attr_name);
}
@@ -6407,7 +6395,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n");
PART_ERROR(H5Arename_by_name_invalid_new_attr_name);
}
@@ -6420,8 +6408,8 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid new attribute name "
- "of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid new attribute name "
+ "of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_new_attr_name);
}
@@ -6442,7 +6430,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n");
PART_ERROR(H5Arename_by_name_invalid_lapl);
}
@@ -6515,8 +6503,8 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or iterate aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, or iterate aren't "
+ "supported with this connector\n");
return 0;
}
@@ -6524,26 +6512,26 @@ test_attribute_iterate_group(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -6551,7 +6539,7 @@ test_attribute_iterate_group(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME);
goto error;
}
@@ -6571,26 +6559,26 @@ test_attribute_iterate_group(void)
if ((attr_id = H5Acreate2(group_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -6617,15 +6605,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -6642,15 +6630,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -6664,7 +6652,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -6674,15 +6662,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -6696,7 +6684,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -6706,15 +6694,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -6733,15 +6721,15 @@ test_attribute_iterate_group(void)
file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -6760,15 +6748,15 @@ test_attribute_iterate_group(void)
file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -6782,7 +6770,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -6794,15 +6782,15 @@ test_attribute_iterate_group(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -6816,7 +6804,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -6828,15 +6816,15 @@ test_attribute_iterate_group(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -6911,8 +6899,8 @@ test_attribute_iterate_dataset(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -6920,33 +6908,33 @@ test_attribute_iterate_dataset(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME);
goto error;
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL for attribute creation order tracking\n");
+ printf(" couldn't create DCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(dcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -6966,7 +6954,7 @@ test_attribute_iterate_dataset(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME);
goto error;
}
@@ -6980,26 +6968,26 @@ test_attribute_iterate_dataset(void)
if ((attr_id = H5Acreate2(dset_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -7026,15 +7014,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -7051,15 +7039,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -7073,7 +7061,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -7083,15 +7071,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -7105,7 +7093,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -7115,15 +7103,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -7144,15 +7132,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -7173,15 +7161,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -7195,7 +7183,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -7208,15 +7196,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -7230,7 +7218,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -7243,15 +7231,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -7333,8 +7321,8 @@ test_attribute_iterate_datatype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, stored datatype, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, stored datatype, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -7342,33 +7330,33 @@ test_attribute_iterate_datatype(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME);
goto error;
}
if ((tcpl_id = H5Pcreate(H5P_DATATYPE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create TCPL for attribute creation order tracking\n");
+ printf(" couldn't create TCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(tcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -7385,7 +7373,7 @@ test_attribute_iterate_datatype(void)
if (H5Tcommit2(group_id, ATTRIBUTE_ITERATE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, tcpl_id, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME);
goto error;
}
@@ -7399,26 +7387,26 @@ test_attribute_iterate_datatype(void)
if ((attr_id = H5Acreate2(type_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(type_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -7445,15 +7433,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -7470,15 +7458,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -7492,7 +7480,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -7502,15 +7490,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -7524,7 +7512,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -7534,15 +7522,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -7563,15 +7551,15 @@ test_attribute_iterate_datatype(void)
"/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -7592,15 +7580,15 @@ test_attribute_iterate_datatype(void)
"/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -7614,7 +7602,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -7628,15 +7616,15 @@ test_attribute_iterate_datatype(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -7650,7 +7638,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -7664,15 +7652,15 @@ test_attribute_iterate_datatype(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -7760,8 +7748,8 @@ test_attribute_iterate_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or iterate aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, attribute, or iterate aren't supported with this "
+ "connector\n");
return 0;
}
@@ -7769,20 +7757,20 @@ test_attribute_iterate_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -7796,77 +7784,77 @@ test_attribute_iterate_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id3 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id4 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -7887,7 +7875,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n");
+ printf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n");
PART_ERROR(H5Aiterate_invalid_loc_id);
}
@@ -7908,8 +7896,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aiterate_invalid_index_type);
}
@@ -7921,8 +7909,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Aiterate_invalid_index_type);
}
@@ -7943,8 +7930,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aiterate_invalid_index_order);
}
@@ -7956,7 +7943,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" iterated over attributes using H5Aiterate with invalid index ordering H5_ITER_N!\n");
PART_ERROR(H5Aiterate_invalid_index_order);
}
@@ -7978,7 +7965,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n");
PART_ERROR(H5Aiterate_by_name_invalid_loc_id);
}
@@ -7999,7 +7986,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n");
PART_ERROR(H5Aiterate_by_name_invalid_obj_name);
}
@@ -8012,8 +7999,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid object name "
- "of ''!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aiterate_by_name_invalid_obj_name);
}
@@ -8034,8 +8021,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_type);
}
@@ -8048,8 +8035,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_type);
}
@@ -8070,8 +8057,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_order);
}
@@ -8084,8 +8071,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
- "H5_ITER_N!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_order);
}
@@ -8106,7 +8093,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n");
PART_ERROR(H5Aiterate_by_name_invalid_lapl);
}
@@ -8180,8 +8167,8 @@ test_attribute_iterate_0_attributes(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -8189,20 +8176,20 @@ test_attribute_iterate_0_attributes(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -8216,7 +8203,7 @@ test_attribute_iterate_0_attributes(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, dset_dtype,
dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -8230,7 +8217,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_native);
}
@@ -8244,7 +8231,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_inc);
}
@@ -8258,7 +8245,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_dec);
}
@@ -8273,7 +8260,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_native);
}
@@ -8288,7 +8275,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_INC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_inc);
}
@@ -8302,7 +8289,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_DEC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_dec);
}
@@ -8368,8 +8355,8 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -8377,26 +8364,26 @@ test_delete_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -8404,7 +8391,7 @@ test_delete_attribute(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME);
goto error;
}
@@ -8426,49 +8413,49 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Delete the attribute */
if (H5Adelete(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Verify the attribute has been deleted */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
@@ -8491,22 +8478,22 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
@@ -8514,27 +8501,27 @@ test_delete_attribute(void)
if (H5Adelete_by_name(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME,
ATTRIBUTE_DELETION_TEST_ATTR_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
/* Verify the attribute has been deleted */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
@@ -8555,7 +8542,7 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8563,82 +8550,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8646,50 +8633,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8697,95 +8684,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8806,7 +8793,7 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8814,82 +8801,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8897,50 +8884,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8948,95 +8935,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -9059,82 +9046,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9142,50 +9129,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9193,95 +9180,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9304,82 +9291,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9387,50 +9374,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9438,95 +9425,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9601,7 +9588,7 @@ test_delete_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -9610,21 +9597,21 @@ test_delete_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -9638,20 +9625,20 @@ test_delete_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute didn't exists\n");
+ printf(" attribute didn't exists\n");
goto error;
}
@@ -9671,7 +9658,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete with an invalid loc_id!\n");
PART_ERROR(H5Adelete_invalid_loc_id);
}
@@ -9691,7 +9678,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with a NULL attribute name!\n");
+ printf(" deleted an attribute using H5Adelete with a NULL attribute name!\n");
PART_ERROR(H5Adelete_invalid_attr_name);
}
@@ -9703,7 +9690,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n");
+ printf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n");
PART_ERROR(H5Adelete_invalid_attr_name);
}
@@ -9724,7 +9711,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n");
PART_ERROR(H5Adelete_by_name_invalid_loc_id);
}
@@ -9745,7 +9732,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n");
PART_ERROR(H5Adelete_by_name_invalid_obj_name);
}
@@ -9758,7 +9745,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_name with an invalid object name of ''!\n");
PART_ERROR(H5Adelete_by_name_invalid_obj_name);
}
@@ -9779,7 +9766,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n");
PART_ERROR(H5Adelete_by_name_invalid_attr_name);
}
@@ -9791,8 +9778,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of "
- "''!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of "
+ "''!\n");
PART_ERROR(H5Adelete_by_name_invalid_attr_name);
}
@@ -9813,7 +9800,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n");
PART_ERROR(H5Adelete_by_name_invalid_lapl);
}
@@ -9833,7 +9820,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Adelete_by_idx_invalid_loc_id);
}
@@ -9853,7 +9840,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n");
PART_ERROR(H5Adelete_by_idx_invalid_obj_name);
}
@@ -9865,7 +9852,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_idx with an invalid object name of ''!\n");
PART_ERROR(H5Adelete_by_idx_invalid_obj_name);
}
@@ -9886,8 +9873,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_type);
}
@@ -9899,7 +9886,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_idx with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_type);
}
@@ -9920,8 +9907,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_order);
}
@@ -9933,8 +9920,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
- "H5_ITER_N!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
+ "H5_ITER_N!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_order);
}
@@ -9954,7 +9941,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Adelete_by_idx_invalid_lapl);
}
@@ -10018,7 +10005,7 @@ test_attribute_exists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -10027,20 +10014,20 @@ test_attribute_exists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME);
goto error;
}
@@ -10053,7 +10040,7 @@ test_attribute_exists(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
@@ -10067,13 +10054,13 @@ test_attribute_exists(void)
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Aexists);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
PART_ERROR(H5Aexists);
}
@@ -10088,13 +10075,13 @@ test_attribute_exists(void)
if ((attr_exists = H5Aexists_by_name(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME,
ATTRIBUTE_EXISTS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists by name\n");
+ printf(" couldn't determine if attribute exists by name\n");
PART_ERROR(H5Aexists_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
PART_ERROR(H5Aexists_by_name);
}
@@ -10160,7 +10147,7 @@ test_attribute_exists_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -10169,21 +10156,20 @@ test_attribute_exists_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -10197,20 +10183,20 @@ test_attribute_exists_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute didn't exists\n");
+ printf(" attribute didn't exists\n");
goto error;
}
@@ -10230,7 +10216,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with an invalid loc_id succeeded!\n");
+ printf(" H5Aexists with an invalid loc_id succeeded!\n");
PART_ERROR(H5Aexists_invalid_loc_id);
}
@@ -10250,7 +10236,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with a NULL attribute name succeeded!\n");
+ printf(" H5Aexists with a NULL attribute name succeeded!\n");
PART_ERROR(H5Aexists_invalid_attr_name);
}
@@ -10262,7 +10248,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with an invalid attribute name of '' succeeded!\n");
+ printf(" H5Aexists with an invalid attribute name of '' succeeded!\n");
PART_ERROR(H5Aexists_invalid_attr_name);
}
@@ -10283,7 +10269,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid loc_id succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid loc_id succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_loc_id);
}
@@ -10304,7 +10290,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with a NULL object name succeeded!\n");
+ printf(" H5Aexists_by_name with a NULL object name succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_obj_name);
}
@@ -10317,7 +10303,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_obj_name);
}
@@ -10338,7 +10324,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with a NULL attribute name succeeded!\n");
+ printf(" H5Aexists_by_name with a NULL attribute name succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_attr_name);
}
@@ -10351,7 +10337,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_attr_name);
}
@@ -10372,7 +10358,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid link access property list succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid link access property list succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_lapl);
}
@@ -10439,27 +10425,27 @@ test_attribute_many(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_MANY_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME);
goto error;
}
@@ -10475,20 +10461,20 @@ test_attribute_many(void)
if ((attr_id = H5Acreate2(group_id, attrname, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, attrname)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -10547,27 +10533,27 @@ test_attribute_duplicate_id(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DUPLICATE_ID_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME);
goto error;
}
@@ -10580,27 +10566,27 @@ test_attribute_duplicate_id(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
/* Open the attribute just created and get a second ID */
if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" attribute can't be opened for a second time\n");
+ printf(" attribute can't be opened for a second time\n");
goto error;
}
@@ -10663,8 +10649,8 @@ test_get_number_attributes(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or object aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, attribute, or object aren't supported with this "
+ "connector\n");
return 0;
}
@@ -10672,20 +10658,20 @@ test_get_number_attributes(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME);
goto error;
}
@@ -10698,20 +10684,20 @@ test_get_number_attributes(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -10726,13 +10712,13 @@ test_get_number_attributes(void)
/* Now get the number of attributes from the group */
if (H5Oget_info3(group_id, &obj_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info3\n");
+ printf(" couldn't retrieve group info using H5Oget_info3\n");
PART_ERROR(H5Oget_info);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info);
}
@@ -10747,13 +10733,13 @@ test_get_number_attributes(void)
if (H5Oget_info_by_name3(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, &obj_info,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve group info using H5Oget_info_by_name3\n");
PART_ERROR(H5Oget_info_by_name);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info_by_name);
}
@@ -10768,13 +10754,13 @@ test_get_number_attributes(void)
if (H5Oget_info_by_idx3(container_group, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &obj_info,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info_by_idx3\n");
+ printf(" couldn't retrieve group info using H5Oget_info_by_idx3\n");
PART_ERROR(H5Oget_info_by_idx);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info_by_idx);
}
@@ -10845,27 +10831,27 @@ test_attr_shared_dtype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, stored datatype, or object aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, stored datatype, or object aren't "
+ "supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_SHARED_DTYPE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME);
goto error;
}
@@ -10879,73 +10865,73 @@ test_attr_shared_dtype(void)
if (H5Tcommit2(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, attr_dtype, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype\n");
+ printf(" couldn't commit datatype\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 1) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 2) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_SHARED_DTYPE_DSET_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 3) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
@@ -11016,7 +11002,7 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t *
}
if (HDstrncmp(attr_name, expected_attr_name, ATTRIBUTE_ITERATE_TEST_ATTR_NAME_BUF_SIZE)) {
- HDprintf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name);
+ printf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -11043,8 +11029,8 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t *
if (ainfo->corder != expected_crt_order) {
H5_FAILED();
- HDprintf(" attribute's creation order value of %lld didn't match expected value of %lld\n",
- (long long)ainfo->corder, (long long)expected_crt_order);
+ printf(" attribute's creation order value of %lld didn't match expected value of %lld\n",
+ (long long)ainfo->corder, (long long)expected_crt_order);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -11073,17 +11059,17 @@ H5_api_attribute_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Attribute Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Attribute Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(attribute_tests); i++) {
nerrors += (*attribute_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}
diff --git a/test/API/H5_api_dataset_test.c b/test/API/H5_api_dataset_test.c
index e31ed43..d99516f 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);
}
@@ -3674,18 +3656,18 @@ test_dataset_property_lists(void)
{
hsize_t tmp_chunk_dims[DATASET_PROPERTY_LIST_TEST_SPACE_RANK];
- HDmemset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
+ memset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
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,39 +3749,39 @@ 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))) {
+ if (NULL == (tmp_prefix = (char *)calloc(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);
}
- HDmemset(tmp_prefix, 0, (size_t)buf_size + 1);
+ memset(tmp_prefix, 0, (size_t)buf_size + 1);
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);
}
@@ -3876,18 +3858,18 @@ test_dataset_property_lists(void)
{
hsize_t tmp_chunk_dims[DATASET_PROPERTY_LIST_TEST_SPACE_RANK];
- HDmemset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
+ memset(tmp_chunk_dims, 0, sizeof(tmp_chunk_dims));
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);
}
}
@@ -3915,7 +3897,7 @@ test_dataset_property_lists(void)
TESTING_2("test cleanup");
if (tmp_prefix) {
- HDfree(tmp_prefix);
+ free(tmp_prefix);
tmp_prefix = NULL;
}
@@ -3960,7 +3942,7 @@ error:
H5E_BEGIN_TRY
{
if (tmp_prefix)
- HDfree(tmp_prefix);
+ free(tmp_prefix);
H5Pclose(dcpl_id1);
H5Pclose(dcpl_id2);
H5Pclose(dapl_id1);
@@ -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;
}
@@ -4127,18 +4108,18 @@ test_read_dataset_small_all(void)
data_size *= dims[i];
data_size *= DATASET_SMALL_READ_TEST_ALL_DSET_DTYPESIZE;
- if (NULL == (read_buf = HDmalloc(data_size)))
+ if (NULL == (read_buf = malloc(data_size)))
TEST_ERROR;
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;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -4161,7 +4142,7 @@ error:
H5E_BEGIN_TRY
{
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(fspace_id);
H5Dclose(dset_id);
H5Gclose(group_id);
@@ -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;
}
@@ -4252,18 +4232,18 @@ test_read_dataset_small_hyperslab(void)
data_size *= dims[i];
data_size *= DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_DTYPESIZE;
- if (NULL == (read_buf = HDmalloc(data_size)))
+ if (NULL == (read_buf = malloc(data_size)))
TEST_ERROR;
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;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -4288,7 +4268,7 @@ error:
H5E_BEGIN_TRY
{
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
H5Dclose(dset_id);
@@ -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,14 +4340,14 @@ 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;
}
data_size = DATASET_SMALL_READ_TEST_POINT_SELECTION_NUM_POINTS *
DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < DATASET_SMALL_READ_TEST_POINT_SELECTION_NUM_POINTS; i++) {
@@ -4381,19 +4360,19 @@ 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;
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -4418,7 +4397,7 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
H5Dclose(dset_id);
@@ -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;
}
@@ -4993,7 +4969,7 @@ test_read_dataset_invalid_params(void)
data_size *= dims[i];
data_size *= DATASET_READ_INVALID_PARAMS_TEST_DSET_DTYPESIZE;
- if (NULL == (read_buf = HDmalloc(data_size)))
+ if (NULL == (read_buf = malloc(data_size)))
TEST_ERROR;
PASSED();
@@ -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);
}
@@ -5130,7 +5106,7 @@ test_read_dataset_invalid_params(void)
TESTING_2("test cleanup");
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -5153,7 +5129,7 @@ error:
H5E_BEGIN_TRY
{
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(fspace_id);
H5Dclose(dset_id);
H5Gclose(group_id);
@@ -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,23 +5205,23 @@ 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;
}
- if (NULL == (data = HDmalloc((hsize_t)space_npoints * DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPESIZE)))
+ if (NULL == (data = malloc((hsize_t)space_npoints * DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPESIZE)))
TEST_ERROR;
for (i = 0; i < (hsize_t)space_npoints; i++)
@@ -5254,12 +5229,12 @@ 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;
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -5282,7 +5257,7 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
H5Sclose(fspace_id);
H5Dclose(dset_id);
H5Gclose(group_id);
@@ -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;
}
@@ -5362,7 +5336,7 @@ test_write_dataset_small_hyperslab(void)
data_size *= dims[i];
data_size *= DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < data_size / DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPESIZE; i++)
@@ -5383,12 +5357,12 @@ 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;
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -5413,7 +5387,7 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
H5Dclose(dset_id);
@@ -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,14 +5459,14 @@ 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;
}
data_size = DATASET_SMALL_WRITE_TEST_POINT_SELECTION_NUM_POINTS *
DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < data_size / DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPESIZE; i++)
@@ -5509,19 +5482,19 @@ 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;
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -5546,7 +5519,7 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
H5Dclose(dset_id);
@@ -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;
}
@@ -5631,7 +5604,7 @@ test_write_dataset_data_verification(void)
data_size *= dims[i];
data_size *= DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < data_size / DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE; i++)
@@ -5648,12 +5621,12 @@ 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);
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -5676,45 +5649,45 @@ 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))) {
+ (data = malloc((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);
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -5728,9 +5701,9 @@ test_write_dataset_data_verification(void)
data_size = dims[1] * 2 * DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size))) {
+ if (NULL == (write_buf = malloc(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);
}
@@ -5741,16 +5714,16 @@ test_write_dataset_data_verification(void)
data_size *= dims[i];
data_size *= DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size))) {
+ if (NULL == (data = malloc(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,54 +5792,54 @@ 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))) {
+ if (NULL ==
+ (read_buf = malloc((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);
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -5881,9 +5854,9 @@ test_write_dataset_data_verification(void)
data_size =
DATASET_DATA_VERIFY_WRITE_TEST_NUM_POINTS * DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size))) {
+ if (NULL == (write_buf = malloc(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);
}
@@ -5894,16 +5867,16 @@ test_write_dataset_data_verification(void)
data_size *= dims[i];
data_size *= DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size))) {
+ if (NULL == (data = malloc(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))) {
+ if (NULL ==
+ (read_buf = malloc((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);
}
@@ -6024,17 +5997,17 @@ test_write_dataset_data_verification(void)
TESTING_2("test cleanup");
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -6057,11 +6030,11 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
if (write_buf)
- HDfree(write_buf);
+ free(write_buf);
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
H5Dclose(dset_id);
@@ -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,17 +6103,17 @@ 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;
}
- if (NULL == (data = HDmalloc((hsize_t)space_npoints * DATASET_WRITE_INVALID_PARAMS_TEST_DSET_DTYPESIZE)))
+ if (NULL == (data = malloc((hsize_t)space_npoints * DATASET_WRITE_INVALID_PARAMS_TEST_DSET_DTYPESIZE)))
TEST_ERROR;
for (i = 0; i < (hsize_t)space_npoints; i++)
@@ -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);
}
@@ -6281,7 +6253,7 @@ test_write_dataset_invalid_params(void)
TESTING_2("test cleanup");
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -6304,7 +6276,7 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
H5Sclose(fspace_id);
H5Dclose(dset_id);
H5Gclose(group_id);
@@ -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;
}
@@ -6400,7 +6372,7 @@ test_dataset_builtin_type_conversion(void)
data_size *= dims[i];
data_size *= DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size)))
+ if (NULL == (data = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < data_size / DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE; i++)
@@ -6417,13 +6389,13 @@ 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);
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -6447,46 +6419,46 @@ 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))) {
+ if (NULL == (data = malloc((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);
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
@@ -6500,9 +6472,9 @@ test_dataset_builtin_type_conversion(void)
data_size = dims[1] * 2 * DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size))) {
+ if (NULL == (write_buf = malloc(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);
}
@@ -6513,17 +6485,17 @@ test_dataset_builtin_type_conversion(void)
data_size *= dims[i];
data_size *= DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size))) {
+ if (NULL == (data = malloc(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,55 +6566,55 @@ 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))) {
+ if (NULL == (read_buf = malloc((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);
}
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -6657,9 +6629,9 @@ test_dataset_builtin_type_conversion(void)
data_size = DATASET_DATA_BUILTIN_CONVERSION_TEST_NUM_POINTS *
DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size))) {
+ if (NULL == (write_buf = malloc(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);
}
@@ -6670,17 +6642,17 @@ test_dataset_builtin_type_conversion(void)
data_size *= dims[i];
data_size *= DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE;
- if (NULL == (data = HDmalloc(data_size))) {
+ if (NULL == (data = malloc(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))) {
+ if (NULL == (read_buf = malloc((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);
}
@@ -6804,17 +6776,17 @@ test_dataset_builtin_type_conversion(void)
TESTING_2("test cleanup");
if (data) {
- HDfree(data);
+ free(data);
data = NULL;
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -6837,11 +6809,11 @@ error:
H5E_BEGIN_TRY
{
if (data)
- HDfree(data);
+ free(data);
if (write_buf)
- HDfree(write_buf);
+ free(write_buf);
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
H5Dclose(dset_id);
@@ -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;
}
}
@@ -7246,7 +7217,7 @@ test_dataset_set_extent_chunked_unlimited(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims, new_dims, sizeof(new_dims));
+ memcpy(dims, new_dims, sizeof(new_dims));
}
/*
@@ -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;
}
}
@@ -7312,7 +7282,7 @@ test_dataset_set_extent_chunked_unlimited(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims, new_dims, sizeof(new_dims));
+ memcpy(dims, new_dims, sizeof(new_dims));
}
if (H5Pclose(dcpl_id) < 0)
@@ -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;
}
}
@@ -7508,7 +7478,7 @@ test_dataset_set_extent_chunked_fixed(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims, new_dims, sizeof(new_dims));
+ memcpy(dims, new_dims, sizeof(new_dims));
}
/*
@@ -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;
}
}
@@ -7586,7 +7556,7 @@ test_dataset_set_extent_chunked_fixed(void)
* Remember the current dimensionality of the dataset before
* changing them again.
*/
- HDmemcpy(dims2, new_dims, sizeof(new_dims));
+ memcpy(dims2, new_dims, sizeof(new_dims));
}
if (H5Pclose(dcpl_id) < 0)
@@ -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;
}
}
@@ -8727,7 +8695,7 @@ test_write_single_chunk_dataset(void)
data_size *= dims[i];
data_size *= DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size)))
+ if (NULL == (write_buf = malloc(data_size)))
TEST_ERROR;
for (i = 0; i < data_size / DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPESIZE; i++)
@@ -8736,12 +8704,12 @@ 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;
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
@@ -8764,45 +8732,45 @@ 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))) {
+ (read_buf = malloc((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;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -8827,9 +8795,9 @@ error:
H5E_BEGIN_TRY
{
if (write_buf)
- HDfree(write_buf);
+ free(write_buf);
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Pclose(dcpl_id);
H5Sclose(fspace_id);
H5Dclose(dset_id);
@@ -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;
}
}
@@ -9139,7 +9107,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
data_size *= dims[i];
data_size *= DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size)))
+ if (NULL == (write_buf = malloc(data_size)))
TEST_ERROR;
/*
@@ -9202,13 +9170,13 @@ 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;
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
@@ -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;
}
}
@@ -9334,7 +9301,7 @@ error:
H5E_BEGIN_TRY
{
if (write_buf)
- HDfree(write_buf);
+ free(write_buf);
H5Pclose(dcpl_id);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
@@ -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;
}
}
@@ -9466,7 +9433,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
data_size *= dims[i];
data_size *= DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size)))
+ if (NULL == (write_buf = malloc(data_size)))
TEST_ERROR;
/*
@@ -9529,13 +9496,13 @@ 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;
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
@@ -9559,23 +9526,22 @@ 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;
}
/*
* Allocate single chunk-sized read buffer.
*/
- if (NULL == (read_buf = HDmalloc(chunk_size))) {
+ if (NULL == (read_buf = malloc(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,13 +9603,13 @@ 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;
}
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -9670,9 +9636,9 @@ error:
H5E_BEGIN_TRY
{
if (write_buf)
- HDfree(write_buf);
+ free(write_buf);
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Pclose(dcpl_id);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
@@ -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;
}
}
@@ -9805,7 +9771,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
data_size *= dims[i];
data_size *= DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size)))
+ if (NULL == (write_buf = malloc(data_size)))
TEST_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;
}
}
@@ -9980,7 +9946,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
@@ -10007,7 +9973,7 @@ error:
H5E_BEGIN_TRY
{
if (write_buf)
- HDfree(write_buf);
+ free(write_buf);
H5Pclose(dcpl_id);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
@@ -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;
}
}
@@ -10140,15 +10106,15 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
data_size *= dims[i];
data_size *= DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPESIZE;
- if (NULL == (write_buf = HDmalloc(data_size)))
+ if (NULL == (write_buf = malloc(data_size)))
TEST_ERROR;
/*
* Allocate single chunk-sized read buffer.
*/
- if (NULL == (read_buf = HDmalloc(chunk_size))) {
+ if (NULL == (read_buf = malloc(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,19 +10279,19 @@ 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;
}
}
}
if (write_buf) {
- HDfree(write_buf);
+ free(write_buf);
write_buf = NULL;
}
if (read_buf) {
- HDfree(read_buf);
+ free(read_buf);
read_buf = NULL;
}
@@ -10352,9 +10318,9 @@ error:
H5E_BEGIN_TRY
{
if (write_buf)
- HDfree(write_buf);
+ free(write_buf);
if (read_buf)
- HDfree(read_buf);
+ free(read_buf);
H5Pclose(dcpl_id);
H5Sclose(mspace_id);
H5Sclose(fspace_id);
@@ -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,14 +10855,14 @@ 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;
}
/* Allocate and initialize VL data to write */
for (i = 0; i < DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM; i++) {
- wdata[i].p = HDmalloc((i + 1) * sizeof(unsigned int));
+ wdata[i].p = malloc((i + 1) * sizeof(unsigned int));
wdata[i].len = i + 1;
for (j = 0; j < (i + 1); j++)
((unsigned int *)wdata[i].p)[j] = i * 10 + j;
@@ -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;
}
diff --git a/test/API/H5_api_datatype_test.c b/test/API/H5_api_datatype_test.c
index 8bcd19a..7a67210 100644
--- a/test/API/H5_api_datatype_test.c
+++ b/test/API/H5_api_datatype_test.c
@@ -90,40 +90,40 @@ test_create_committed_datatype(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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype 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, DATATYPE_CREATE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_TEST_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype to commit\n");
+ printf(" couldn't create datatype to commit\n");
goto error;
}
if (H5Tcommit2(group_id, DATATYPE_CREATE_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_CREATE_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", DATATYPE_CREATE_TEST_TYPE_NAME);
goto error;
}
@@ -171,8 +171,8 @@ test_create_committed_datatype_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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype aren't supported with this "
+ "connector\n");
return 0;
}
@@ -180,27 +180,27 @@ test_create_committed_datatype_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, 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, DATATYPE_CREATE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATATYPE_CREATE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATATYPE_CREATE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype to commit\n");
+ printf(" couldn't create datatype to commit\n");
goto error;
}
@@ -221,7 +221,7 @@ test_create_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit2 succeeded with an invalid loc_id!\n");
+ printf(" H5Tcommit2 succeeded with an invalid loc_id!\n");
PART_ERROR(H5Tcommit2_invalid_loc_id);
}
@@ -241,7 +241,7 @@ test_create_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit2 succeeded with an invalid datatype name!\n");
+ printf(" H5Tcommit2 succeeded with an invalid datatype name!\n");
PART_ERROR(H5Tcommit2_invalid_type_name);
}
@@ -253,7 +253,7 @@ test_create_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit2 succeeded with an invalid datatype name!\n");
+ printf(" H5Tcommit2 succeeded with an invalid datatype name!\n");
PART_ERROR(H5Tcommit2_invalid_type_name);
}
@@ -274,7 +274,7 @@ test_create_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit2 succeeded with an invalid datatype ID!\n");
+ printf(" H5Tcommit2 succeeded with an invalid datatype ID!\n");
PART_ERROR(H5Tcommit2_invalid_type_id);
}
@@ -295,7 +295,7 @@ test_create_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit2 succeeded with an invalid LCPL!\n");
+ printf(" H5Tcommit2 succeeded with an invalid LCPL!\n");
PART_ERROR(H5Tcommit2_invalid_lcpl);
}
@@ -316,7 +316,7 @@ test_create_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit2 succeeded with an invalid TCPL!\n");
+ printf(" H5Tcommit2 succeeded with an invalid TCPL!\n");
PART_ERROR(H5Tcommit2_invalid_tcpl);
}
@@ -337,7 +337,7 @@ test_create_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit2 succeeded with an invalid TAPL!\n");
+ printf(" H5Tcommit2 succeeded with an invalid TAPL!\n");
PART_ERROR(H5Tcommit2_invalid_tapl);
}
@@ -392,39 +392,39 @@ test_create_anonymous_committed_datatype(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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype 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, DATATYPE_CREATE_ANONYMOUS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_ANONYMOUS_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_ANONYMOUS_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit_anon(group_id, type_id, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit anonymous datatype\n");
+ printf(" couldn't commit anonymous datatype\n");
goto error;
}
@@ -472,8 +472,8 @@ test_create_anonymous_committed_datatype_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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype aren't supported with this "
+ "connector\n");
return 0;
}
@@ -481,27 +481,27 @@ test_create_anonymous_committed_datatype_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, 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, DATATYPE_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATATYPE_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATATYPE_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
@@ -521,7 +521,7 @@ test_create_anonymous_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit_anon succeeded with an invalid loc_id!\n");
+ printf(" H5Tcommit_anon succeeded with an invalid loc_id!\n");
PART_ERROR(H5Tcommit_anon_invalid_loc_id);
}
@@ -541,7 +541,7 @@ test_create_anonymous_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit_anon succeeded with an invalid datatype ID!\n");
+ printf(" H5Tcommit_anon succeeded with an invalid datatype ID!\n");
PART_ERROR(H5Tcommit_anon_invalid_type_id);
}
@@ -561,7 +561,7 @@ test_create_anonymous_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit_anon succeeded with an invalid TCPL!\n");
+ printf(" H5Tcommit_anon succeeded with an invalid TCPL!\n");
PART_ERROR(H5Tcommit_anon_invalid_tcpl);
}
@@ -581,7 +581,7 @@ test_create_anonymous_committed_datatype_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tcommit_anon succeeded with an invalid TAPL!\n");
+ printf(" H5Tcommit_anon succeeded with an invalid TAPL!\n");
PART_ERROR(H5Tcommit_anon_invalid_tapl);
}
@@ -638,8 +638,8 @@ test_create_committed_datatype_empty_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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype aren't supported with this "
+ "connector\n");
return 0;
}
@@ -647,21 +647,20 @@ test_create_committed_datatype_empty_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, 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, DATATYPE_CREATE_EMPTY_TYPES_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATATYPE_CREATE_EMPTY_TYPES_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATATYPE_CREATE_EMPTY_TYPES_TEST_GROUP_NAME);
goto error;
}
@@ -675,7 +674,7 @@ test_create_committed_datatype_empty_types(void)
if ((type_id = H5Tcreate(H5T_COMPOUND, (size_t)32)) < 0) {
H5_FAILED();
- HDprintf(" failed to create compound type\n");
+ printf(" failed to create compound type\n");
PART_ERROR(H5Tcommit_empty_compound_type);
}
@@ -688,14 +687,14 @@ test_create_committed_datatype_empty_types(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" committed empty compound datatype!\n");
+ printf(" committed empty compound datatype!\n");
PART_ERROR(H5Tcommit_empty_compound_type);
}
/* Add a field to the compound datatype */
if (H5Tinsert(type_id, "a", (size_t)0, H5T_NATIVE_INT) < 0) {
H5_FAILED();
- HDprintf(" failed to insert field into compound datatype\n");
+ printf(" failed to insert field into compound datatype\n");
PART_ERROR(H5Tcommit_empty_compound_type);
}
@@ -703,7 +702,7 @@ test_create_committed_datatype_empty_types(void)
if (H5Tcommit2(group_id, DATATYPE_CREATE_EMPTY_TYPES_TEST_CMPD_TYPE_NAME, type_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit non-empty compound datatype\n");
+ printf(" failed to commit non-empty compound datatype\n");
PART_ERROR(H5Tcommit_empty_compound_type);
}
@@ -728,7 +727,7 @@ test_create_committed_datatype_empty_types(void)
if ((type_id = H5Tenum_create(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create enum type\n");
+ printf(" failed to create enum type\n");
PART_ERROR(H5Tcommit_empty_enum_type);
}
@@ -741,14 +740,14 @@ test_create_committed_datatype_empty_types(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" committed empty enum datatype!\n");
+ printf(" committed empty enum datatype!\n");
PART_ERROR(H5Tcommit_empty_enum_type);
}
/* Add a field to the enum datatype */
if (H5Tenum_insert(type_id, "a", &enum_val) < 0) {
H5_FAILED();
- HDprintf(" failed to insert field into enum datatype\n");
+ printf(" failed to insert field into enum datatype\n");
PART_ERROR(H5Tcommit_empty_enum_type);
}
@@ -756,7 +755,7 @@ test_create_committed_datatype_empty_types(void)
if (H5Tcommit2(group_id, DATATYPE_CREATE_EMPTY_TYPES_TEST_ENUM_TYPE_NAME, type_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit non-empty enum datatype\n");
+ printf(" failed to commit non-empty enum datatype\n");
PART_ERROR(H5Tcommit_empty_enum_type);
}
@@ -814,52 +813,52 @@ test_recommit_committed_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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype 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, RECOMMIT_COMMITTED_TYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", RECOMMIT_COMMITTED_TYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", RECOMMIT_COMMITTED_TYPE_TEST_GROUP_NAME);
goto error;
}
/* Copy a predefined datatype and commit the copy */
if ((type_id = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" failed to copy predefined integer datatype\n");
+ printf(" failed to copy predefined integer datatype\n");
goto error;
}
if (H5Tcommit2(group_id, "native_int", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit datatype\n");
+ printf(" failed to commit datatype\n");
goto error;
}
if ((is_committed = H5Tcommitted(type_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to determine if datatype is committed\n");
+ printf(" failed to determine if datatype is committed\n");
goto error;
}
if (!is_committed) {
H5_FAILED();
- HDprintf(" H5Tcommitted() returned false!\n");
+ printf(" H5Tcommitted() returned false!\n");
goto error;
}
@@ -872,7 +871,7 @@ test_recommit_committed_type(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" re-committed an already committed datatype!\n");
+ printf(" re-committed an already committed datatype!\n");
goto error;
}
@@ -919,40 +918,40 @@ test_open_committed_datatype(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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype 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, DATATYPE_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_OPEN_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATATYPE_OPEN_TEST_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype to commit\n");
+ printf(" couldn't create datatype to commit\n");
goto error;
}
if (H5Tcommit2(group_id, DATATYPE_OPEN_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME);
goto error;
}
@@ -961,7 +960,7 @@ test_open_committed_datatype(void)
if ((type_id = H5Topen2(group_id, DATATYPE_OPEN_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open committed datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME);
+ printf(" couldn't open committed datatype '%s'\n", DATATYPE_OPEN_TEST_TYPE_NAME);
goto error;
}
@@ -1008,8 +1007,8 @@ test_open_committed_datatype_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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype aren't supported with this "
+ "connector\n");
return 0;
}
@@ -1017,34 +1016,34 @@ test_open_committed_datatype_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, 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, DATATYPE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATATYPE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATATYPE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype to commit\n");
+ printf(" couldn't create datatype to commit\n");
goto error;
}
if (H5Tcommit2(group_id, DATATYPE_OPEN_INVALID_PARAMS_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_INVALID_PARAMS_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", DATATYPE_OPEN_INVALID_PARAMS_TEST_TYPE_NAME);
goto error;
}
@@ -1067,7 +1066,7 @@ test_open_committed_datatype_invalid_params(void)
if (type_id >= 0) {
H5_FAILED();
- HDprintf(" opened committed datatype with an invalid location ID!\n");
+ printf(" opened committed datatype with an invalid location ID!\n");
H5Tclose(type_id);
PART_ERROR(H5Topen2_invalid_loc_id);
}
@@ -1088,7 +1087,7 @@ test_open_committed_datatype_invalid_params(void)
if (type_id >= 0) {
H5_FAILED();
- HDprintf(" opened committed datatype with an invalid datatype name!\n");
+ printf(" opened committed datatype with an invalid datatype name!\n");
H5Tclose(type_id);
PART_ERROR(H5Topen2_invalid_type_name);
}
@@ -1101,7 +1100,7 @@ test_open_committed_datatype_invalid_params(void)
if (type_id >= 0) {
H5_FAILED();
- HDprintf(" opened committed datatype with an invalid datatype name!\n");
+ printf(" opened committed datatype with an invalid datatype name!\n");
H5Tclose(type_id);
PART_ERROR(H5Topen2_invalid_type_name);
}
@@ -1122,7 +1121,7 @@ test_open_committed_datatype_invalid_params(void)
if (type_id >= 0) {
H5_FAILED();
- HDprintf(" opened committed datatype with an invalid TAPL!\n");
+ printf(" opened committed datatype with an invalid TAPL!\n");
H5Tclose(type_id);
PART_ERROR(H5Topen2_invalid_tapl);
}
@@ -1182,8 +1181,8 @@ test_reopen_committed_datatype_indirect(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(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, dataset, or stored datatype aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, dataset, or stored datatype aren't supported with "
+ "this connector\n");
return 0;
}
@@ -1191,20 +1190,20 @@ test_reopen_committed_datatype_indirect(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, 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, DATATYPE_REOPEN_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_REOPEN_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATATYPE_REOPEN_TEST_GROUP_NAME);
goto error;
}
@@ -1221,51 +1220,51 @@ test_reopen_committed_datatype_indirect(void)
if ((strtype = H5Tcopy(H5T_C_S1)) < 0) {
H5_FAILED();
- HDprintf(" failed to copy C-string datatype\n");
+ printf(" failed to copy C-string datatype\n");
PART_ERROR(reopen_compound_type);
}
if (H5Tset_size(strtype, H5T_VARIABLE) < 0) {
H5_FAILED();
- HDprintf(" failed to set string datatype's size to variable\n");
+ printf(" failed to set string datatype's size to variable\n");
PART_ERROR(reopen_compound_type);
}
if ((type_id = H5Tcreate(H5T_COMPOUND, sizeof(char *))) < 0) {
H5_FAILED();
- HDprintf(" failed to create compound datatype\n");
+ printf(" failed to create compound datatype\n");
PART_ERROR(reopen_compound_type);
}
if (H5Tinsert(type_id, "vlstr", (size_t)0, strtype) < 0) {
H5_FAILED();
- HDprintf(" failed to insert field into compound datatype\n");
+ printf(" failed to insert field into compound datatype\n");
PART_ERROR(reopen_compound_type);
}
if (H5Tclose(strtype) < 0) {
H5_FAILED();
- HDprintf(" failed to close string datatype\n");
+ printf(" failed to close string datatype\n");
PART_ERROR(reopen_compound_type);
}
/* Get size of compound type */
if ((dt_size = H5Tget_size(type_id)) == 0) {
H5_FAILED();
- HDprintf(" failed to retrieve size of compound datatype\n");
+ printf(" failed to retrieve size of compound datatype\n");
PART_ERROR(reopen_compound_type);
}
/* Commit compound type and verify the size doesn't change */
if (H5Tcommit2(group_id, "cmpd_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit compound datatype\n");
+ printf(" failed to commit compound datatype\n");
PART_ERROR(reopen_compound_type);
}
if (dt_size != H5Tget_size(type_id)) {
H5_FAILED();
- HDprintf(" committing datatype caused its size to change!\n");
+ printf(" committing datatype caused its size to change!\n");
PART_ERROR(reopen_compound_type);
}
@@ -1273,20 +1272,20 @@ test_reopen_committed_datatype_indirect(void)
if ((dset_id = H5Dcreate2(group_id, "cmpd_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create dataset using committed datatype\n");
+ printf(" failed to create dataset using committed datatype\n");
PART_ERROR(reopen_compound_type);
}
/* Indirectly reopen type and verify that the size doesn't change */
if ((reopened_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open committed datatype using H5Dget_type\n");
+ printf(" failed to re-open committed datatype using H5Dget_type\n");
PART_ERROR(reopen_compound_type);
}
if (dt_size != H5Tget_size(reopened_type_id)) {
H5_FAILED();
- HDprintf(" size of re-opened datatype didn't match size of original datatype\n");
+ printf(" size of re-opened datatype didn't match size of original datatype\n");
PART_ERROR(reopen_compound_type);
}
@@ -1315,41 +1314,41 @@ test_reopen_committed_datatype_indirect(void)
if ((type_id = H5Tenum_create(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create enum datatype\n");
+ printf(" failed to create enum datatype\n");
PART_ERROR(reopen_enum_type);
}
enum_value = 0;
if (H5Tenum_insert(type_id, "val1", &enum_value) < 0) {
H5_FAILED();
- HDprintf(" failed to insert value into enum datatype\n");
+ printf(" failed to insert value into enum datatype\n");
PART_ERROR(reopen_enum_type);
}
enum_value = 1;
if (H5Tenum_insert(type_id, "val2", &enum_value) < 0) {
H5_FAILED();
- HDprintf(" failed to insert value into enum datatype\n");
+ printf(" failed to insert value into enum datatype\n");
PART_ERROR(reopen_enum_type);
}
/* Get size of enum type */
if ((dt_size = H5Tget_size(type_id)) == 0) {
H5_FAILED();
- HDprintf(" failed to retrieve size of enum datatype\n");
+ printf(" failed to retrieve size of enum datatype\n");
PART_ERROR(reopen_enum_type);
}
/* Commit enum type and verify the size doesn't change */
if (H5Tcommit2(group_id, "enum_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit enum datatype\n");
+ printf(" failed to commit enum datatype\n");
PART_ERROR(reopen_enum_type);
}
if (dt_size != H5Tget_size(type_id)) {
H5_FAILED();
- HDprintf(" committing datatype caused its size to change!\n");
+ printf(" committing datatype caused its size to change!\n");
PART_ERROR(reopen_enum_type);
}
@@ -1357,20 +1356,20 @@ test_reopen_committed_datatype_indirect(void)
if ((dset_id = H5Dcreate2(group_id, "enum_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create dataset using committed datatype\n");
+ printf(" failed to create dataset using committed datatype\n");
PART_ERROR(reopen_enum_type);
}
/* Indirectly reopen type and verify that the size doesn't change */
if ((reopened_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open committed datatype using H5Dget_type\n");
+ printf(" failed to re-open committed datatype using H5Dget_type\n");
PART_ERROR(reopen_enum_type);
}
if (dt_size != H5Tget_size(reopened_type_id)) {
H5_FAILED();
- HDprintf(" size of re-opened datatype didn't match size of original datatype\n");
+ printf(" size of re-opened datatype didn't match size of original datatype\n");
PART_ERROR(reopen_enum_type);
}
@@ -1395,27 +1394,27 @@ test_reopen_committed_datatype_indirect(void)
if ((type_id = H5Tvlen_create(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create variable-length datatype\n");
+ printf(" failed to create variable-length datatype\n");
PART_ERROR(reopen_vlen_type);
}
/* Get size of variable-length type */
if ((dt_size = H5Tget_size(type_id)) == 0) {
H5_FAILED();
- HDprintf(" failed to retrieve size of variable-length datatype\n");
+ printf(" failed to retrieve size of variable-length datatype\n");
PART_ERROR(reopen_vlen_type);
}
/* Commit variable-length type and verify the size doesn't change */
if (H5Tcommit2(group_id, "vlen_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit variable-length datatype\n");
+ printf(" failed to commit variable-length datatype\n");
PART_ERROR(reopen_vlen_type);
}
if (dt_size != H5Tget_size(type_id)) {
H5_FAILED();
- HDprintf(" committing datatype caused its size to change!\n");
+ printf(" committing datatype caused its size to change!\n");
PART_ERROR(reopen_vlen_type);
}
@@ -1423,20 +1422,20 @@ test_reopen_committed_datatype_indirect(void)
if ((dset_id = H5Dcreate2(group_id, "vlen_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create dataset using committed datatype\n");
+ printf(" failed to create dataset using committed datatype\n");
PART_ERROR(reopen_vlen_type);
}
/* Indirectly reopen type and verify that the size doesn't change */
if ((reopened_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open committed datatype using H5Dget_type\n");
+ printf(" failed to re-open committed datatype using H5Dget_type\n");
PART_ERROR(reopen_vlen_type);
}
if (dt_size != H5Tget_size(reopened_type_id)) {
H5_FAILED();
- HDprintf(" size of re-opened datatype didn't match size of original datatype\n");
+ printf(" size of re-opened datatype didn't match size of original datatype\n");
PART_ERROR(reopen_vlen_type);
}
@@ -1463,33 +1462,33 @@ test_reopen_committed_datatype_indirect(void)
if ((type_id = H5Tcreate(H5T_OPAQUE, (size_t)13)) < 0) {
H5_FAILED();
- HDprintf(" failed to create opaque datatype\n");
+ printf(" failed to create opaque datatype\n");
PART_ERROR(reopen_opaque_type);
}
if (H5Tset_tag(type_id, tag) < 0) {
H5_FAILED();
- HDprintf(" failed to set tag on opaque datatype\n");
+ printf(" failed to set tag on opaque datatype\n");
PART_ERROR(reopen_opaque_type);
}
/* Get size of opaque type */
if ((dt_size = H5Tget_size(type_id)) == 0) {
H5_FAILED();
- HDprintf(" failed to retrieve size of opaque datatype\n");
+ printf(" failed to retrieve size of opaque datatype\n");
PART_ERROR(reopen_opaque_type);
}
/* Commit opaque type and verify the size doesn't change */
if (H5Tcommit2(group_id, "opaque_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit opaque datatype\n");
+ printf(" failed to commit opaque datatype\n");
PART_ERROR(reopen_opaque_type);
}
if (dt_size != H5Tget_size(type_id)) {
H5_FAILED();
- HDprintf(" committing datatype caused its size to change!\n");
+ printf(" committing datatype caused its size to change!\n");
PART_ERROR(reopen_opaque_type);
}
@@ -1497,20 +1496,20 @@ test_reopen_committed_datatype_indirect(void)
if ((dset_id = H5Dcreate2(group_id, "opaque_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create dataset using committed datatype\n");
+ printf(" failed to create dataset using committed datatype\n");
PART_ERROR(reopen_opaque_type);
}
/* Indirectly reopen type and verify that the size doesn't change */
if ((reopened_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open committed datatype using H5Dget_type\n");
+ printf(" failed to re-open committed datatype using H5Dget_type\n");
PART_ERROR(reopen_opaque_type);
}
if (dt_size != H5Tget_size(reopened_type_id)) {
H5_FAILED();
- HDprintf(" size of re-opened datatype didn't match size of original datatype\n");
+ printf(" size of re-opened datatype didn't match size of original datatype\n");
PART_ERROR(reopen_opaque_type);
}
@@ -1537,27 +1536,27 @@ test_reopen_committed_datatype_indirect(void)
if ((type_id = H5Tarray_create2(H5T_NATIVE_INT, 1, array_dims)) < 0) {
H5_FAILED();
- HDprintf(" failed to create array datatype\n");
+ printf(" failed to create array datatype\n");
PART_ERROR(reopen_array_type);
}
/* Get size of array type */
if ((dt_size = H5Tget_size(type_id)) == 0) {
H5_FAILED();
- HDprintf(" failed to retrieve size of array datatype\n");
+ printf(" failed to retrieve size of array datatype\n");
PART_ERROR(reopen_array_type);
}
/* Commit array type and verify the size doesn't change */
if (H5Tcommit2(group_id, "array_type", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit array datatype\n");
+ printf(" failed to commit array datatype\n");
PART_ERROR(reopen_array_type);
}
if (dt_size != H5Tget_size(type_id)) {
H5_FAILED();
- HDprintf(" committing datatype caused its size to change!\n");
+ printf(" committing datatype caused its size to change!\n");
PART_ERROR(reopen_array_type);
}
@@ -1565,20 +1564,20 @@ test_reopen_committed_datatype_indirect(void)
if ((dset_id = H5Dcreate2(group_id, "array_dset", type_id, space_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create dataset using committed datatype\n");
+ printf(" failed to create dataset using committed datatype\n");
PART_ERROR(reopen_array_type);
}
/* Indirectly reopen type and verify that the size doesn't change */
if ((reopened_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open committed datatype using H5Dget_type\n");
+ printf(" failed to re-open committed datatype using H5Dget_type\n");
PART_ERROR(reopen_array_type);
}
if (dt_size != H5Tget_size(reopened_type_id)) {
H5_FAILED();
- HDprintf(" size of re-opened datatype didn't match size of original datatype\n");
+ printf(" size of re-opened datatype didn't match size of original datatype\n");
PART_ERROR(reopen_array_type);
}
@@ -1647,14 +1646,13 @@ test_close_committed_datatype_invalid_id(void)
if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(
- " API functions for basic file or stored datatype aren't supported with this connector\n");
+ printf(" API functions for basic file or stored datatype 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;
}
@@ -1666,7 +1664,7 @@ test_close_committed_datatype_invalid_id(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Tclose succeeded with an invalid committed datatype ID!\n");
+ printf(" H5Tclose succeeded with an invalid committed datatype ID!\n");
goto error;
}
@@ -1706,8 +1704,8 @@ test_datatype_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_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, stored datatype, or getting property list aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, stored datatype, or getting property list aren't "
+ "supported with this connector\n");
return 0;
}
@@ -1715,38 +1713,38 @@ test_datatype_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;
}
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, DATATYPE_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_PROPERTY_LIST_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATATYPE_PROPERTY_LIST_TEST_SUBGROUP_NAME);
goto error;
}
if ((type_id1 = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if ((type_id2 = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if ((tcpl_id1 = H5Pcreate(H5P_DATATYPE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create TCPL\n");
+ printf(" couldn't create TCPL\n");
goto error;
}
@@ -1755,14 +1753,14 @@ test_datatype_property_lists(void)
if (H5Tcommit2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1, type_id1, H5P_DEFAULT, tcpl_id1,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1);
+ printf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1);
goto error;
}
if (H5Tcommit2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2, type_id2, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2);
+ printf(" couldn't commit datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2);
goto error;
}
@@ -1780,13 +1778,13 @@ test_datatype_property_lists(void)
/* Try to receive copies for the two property lists */
if ((tcpl_id1 = H5Tget_create_plist(type_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Tget_create_plist);
}
if ((tcpl_id2 = H5Tget_create_plist(type_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Tget_create_plist);
}
@@ -1837,26 +1835,26 @@ test_datatype_property_lists(void)
if ((type_id1 = H5Topen2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1);
+ printf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME1);
PART_ERROR(H5Tget_create_plist_reopened);
}
if ((type_id2 = H5Topen2(group_id, DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2);
+ printf(" couldn't open datatype '%s'\n", DATATYPE_PROPERTY_LIST_TEST_DATATYPE_NAME2);
PART_ERROR(H5Tget_create_plist_reopened);
}
if ((tcpl_id1 = H5Tget_create_plist(type_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Tget_create_plist_reopened);
}
if ((tcpl_id2 = H5Tget_create_plist(type_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Tget_create_plist_reopened);
}
@@ -1923,40 +1921,40 @@ test_create_dataset_with_committed_type(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or stored datatype aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, dataset, or stored datatype 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, DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME);
goto error;
}
@@ -1971,26 +1969,26 @@ test_create_dataset_with_committed_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, 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 = H5Gopen2(container_group, DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_GROUP_NAME);
goto error;
}
if ((type_id = H5Topen2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open committed datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME);
+ printf(" couldn't open committed datatype '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_TYPE_NAME);
goto error;
}
@@ -2000,8 +1998,8 @@ test_create_dataset_with_committed_type(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME, type_id, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s' using committed datatype\n",
- DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s' using committed datatype\n",
+ DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME);
goto error;
}
@@ -2010,7 +2008,7 @@ test_create_dataset_with_committed_type(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME);
+ printf(" failed to open dataset '%s'\n", DATASET_CREATE_WITH_DATATYPE_TEST_DSET_NAME);
goto error;
}
@@ -2067,41 +2065,40 @@ test_create_attribute_with_committed_type(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or stored datatype aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, attribute, or stored datatype 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, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, TRUE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME);
goto error;
}
@@ -2110,8 +2107,7 @@ test_create_attribute_with_committed_type(void)
if ((type_id = H5Topen2(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open committed datatype '%s'\n",
- ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME);
+ printf(" couldn't open committed datatype '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_DTYPE_NAME);
goto error;
}
@@ -2122,21 +2118,21 @@ test_create_attribute_with_committed_type(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME, type_id, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2145,7 +2141,7 @@ test_create_attribute_with_committed_type(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_CREATE_WITH_DATATYPE_TEST_ATTR_NAME);
goto error;
}
@@ -2200,70 +2196,70 @@ test_delete_committed_type(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or stored datatype aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, attribute, or stored datatype 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, DATATYPE_DELETE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATATYPE_DELETE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATATYPE_DELETE_TEST_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
goto error;
}
if ((type_exists = H5Lexists(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
+ printf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
goto error;
}
if (!type_exists) {
H5_FAILED();
- HDprintf(" datatype didn't exist\n");
+ printf(" datatype didn't exist\n");
goto error;
}
if (H5Ldelete(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
+ printf(" couldn't delete datatype '%s'\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
goto error;
}
if ((type_exists = H5Lexists(group_id, DATATYPE_DELETE_TEST_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
+ printf(" couldn't determine if datatype '%s' exists\n", DATATYPE_DELETE_TEST_DTYPE_NAME);
goto error;
}
if (type_exists) {
H5_FAILED();
- HDprintf(" datatype exists\n");
+ printf(" datatype exists\n");
goto error;
}
@@ -2312,55 +2308,55 @@ test_resurrect_datatype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, hard link, or stored datatype aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, or stored datatype 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, DATATYPE_RESURRECT_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME);
goto error;
}
/* Create a named datatype in the file */
if ((type_id = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" failed to copy predefined integer type\n");
+ printf(" failed to copy predefined integer type\n");
goto error;
}
if (H5Tcommit2(group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit datatype\n");
+ printf(" failed to commit datatype\n");
goto error;
}
/* Unlink the datatype while it's open (will mark it for deletion when closed) */
if (H5Ldelete(group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete datatype\n");
+ printf(" failed to delete datatype\n");
goto error;
}
/* Check that datatype name is NULL */
if (H5Iget_name(type_id, NULL, (size_t)0) != 0) {
H5_FAILED();
- HDprintf(" deleted datatype name was not NULL!\n");
+ printf(" deleted datatype name was not NULL!\n");
goto error;
}
@@ -2368,7 +2364,7 @@ test_resurrect_datatype(void)
if (H5Lcreate_hard(type_id, ".", group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create new link for deleted datatype\n");
+ printf(" failed to create new link for deleted datatype\n");
goto error;
}
@@ -2385,26 +2381,26 @@ test_resurrect_datatype(void)
/* Re-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, 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 = H5Gopen2(container_group, DATATYPE_RESURRECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME);
+ printf(" couldn't open container sub-group '%s'\n", DATATYPE_RESURRECT_TEST_GROUP_NAME);
goto error;
}
/* Attempt to open the datatype under the new name */
if ((type_id = H5Topen2(group_id, DATATYPE_RESURRECT_TEST_DTYPE_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open resurrected datatype\n");
+ printf(" failed to open resurrected datatype\n");
goto error;
}
@@ -2494,27 +2490,27 @@ test_cant_commit_predefined(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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype 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, PREDEFINED_TYPE_COMMIT_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", PREDEFINED_TYPE_COMMIT_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", PREDEFINED_TYPE_COMMIT_TEST_GROUP_NAME);
goto error;
}
@@ -2527,7 +2523,7 @@ test_cant_commit_predefined(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" committed a predefined datatype directly (without copying it)!\n");
+ printf(" committed a predefined datatype directly (without copying it)!\n");
goto error;
}
@@ -2574,52 +2570,52 @@ test_cant_modify_committed_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_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or stored datatype aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or stored datatype 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, MODIFY_COMMITTED_TYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", MODIFY_COMMITTED_TYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", MODIFY_COMMITTED_TYPE_TEST_GROUP_NAME);
goto error;
}
/* Copy a predefined datatype and commit the copy */
if ((type_id = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" failed to copy predefined integer datatype\n");
+ printf(" failed to copy predefined integer datatype\n");
goto error;
}
if (H5Tcommit2(group_id, "native_int", type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to commit datatype\n");
+ printf(" failed to commit datatype\n");
goto error;
}
if ((is_committed = H5Tcommitted(type_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to determine if datatype is committed\n");
+ printf(" failed to determine if datatype is committed\n");
goto error;
}
if (!is_committed) {
H5_FAILED();
- HDprintf(" H5Tcommitted() returned false!\n");
+ printf(" H5Tcommitted() returned false!\n");
goto error;
}
@@ -2632,7 +2628,7 @@ test_cant_modify_committed_type(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" modified committed datatype!\n");
+ printf(" modified committed datatype!\n");
goto error;
}
@@ -2668,17 +2664,17 @@ H5_api_datatype_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Datatype Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Datatype Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(datatype_tests); i++) {
nerrors += (*datatype_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}
diff --git a/test/API/H5_api_file_test.c b/test/API/H5_api_file_test.c
index a8169e2..d3d686c 100644
--- a/test/API/H5_api_file_test.c
+++ b/test/API/H5_api_file_test.c
@@ -67,26 +67,26 @@ test_create_file(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
if (prefix_filename(test_path_prefix, FILE_CREATE_TEST_FILENAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename);
+ printf(" couldn't create file '%s'\n", prefixed_filename);
goto error;
}
if (H5Fclose(file_id) < 0)
TEST_ERROR;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -100,7 +100,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -120,13 +120,13 @@ test_create_file_invalid_params(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
if (prefix_filename(test_path_prefix, FILE_CREATE_INVALID_PARAMS_FILE_NAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
@@ -144,7 +144,7 @@ test_create_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was created with a NULL name!\n");
+ printf(" file was created with a NULL name!\n");
H5Fclose(file_id);
PART_ERROR(H5Fcreate_invalid_name);
}
@@ -157,7 +157,7 @@ test_create_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was created with an invalid name of ''!\n");
+ printf(" file was created with an invalid name of ''!\n");
H5Fclose(file_id);
PART_ERROR(H5Fcreate_invalid_name);
}
@@ -178,7 +178,7 @@ test_create_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was created with invalid flag H5F_ACC_RDWR!\n");
+ printf(" file was created with invalid flag H5F_ACC_RDWR!\n");
H5Fclose(file_id);
PART_ERROR(H5Fcreate_invalid_flags);
}
@@ -191,7 +191,7 @@ test_create_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was created with invalid flag H5F_ACC_CREAT!\n");
+ printf(" file was created with invalid flag H5F_ACC_CREAT!\n");
H5Fclose(file_id);
PART_ERROR(H5Fcreate_invalid_flags);
}
@@ -204,7 +204,7 @@ test_create_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was created with invalid flag H5F_ACC_SWMR_READ!\n");
+ printf(" file was created with invalid flag H5F_ACC_SWMR_READ!\n");
H5Fclose(file_id);
PART_ERROR(H5Fcreate_invalid_flags);
}
@@ -225,7 +225,7 @@ test_create_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was created with invalid FCPL!\n");
+ printf(" file was created with invalid FCPL!\n");
H5Fclose(file_id);
PART_ERROR(H5Fcreate_invalid_fcpl);
}
@@ -236,7 +236,7 @@ test_create_file_invalid_params(void)
}
END_MULTIPART;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
return 0;
@@ -251,7 +251,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -272,19 +272,19 @@ test_create_file_excl(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
if (prefix_filename(test_path_prefix, FILE_CREATE_EXCL_FILE_NAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_EXCL, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first file\n");
+ printf(" couldn't create first file\n");
goto error;
}
@@ -303,21 +303,21 @@ test_create_file_excl(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" created already existing file using H5F_ACC_EXCL flag!\n");
+ printf(" created already existing file using H5F_ACC_EXCL flag!\n");
goto error;
}
/* Test creating with H5F_ACC_TRUNC. This will truncate the existing file on disk. */
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't truncate the existing file\n");
+ printf(" couldn't truncate the existing file\n");
goto error;
}
if (H5Fclose(file_id) < 0)
TEST_ERROR;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -332,7 +332,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -350,7 +350,7 @@ test_open_file(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
@@ -362,7 +362,7 @@ test_open_file(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" unable to open file '%s' in read-only mode\n", H5_api_test_filename);
+ printf(" unable to open file '%s' in read-only mode\n", H5_api_test_filename);
PART_ERROR(H5Fopen_rdonly);
}
@@ -385,7 +385,7 @@ test_open_file(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" unable to open file '%s' in read-write mode\n", H5_api_test_filename);
+ printf(" unable to open file '%s' in read-write mode\n", H5_api_test_filename);
PART_ERROR(H5Fopen_rdwrite);
}
@@ -434,7 +434,7 @@ test_open_file_invalid_params(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
@@ -452,7 +452,7 @@ test_open_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was opened with a NULL name!\n");
+ printf(" file was opened with a NULL name!\n");
H5Fclose(file_id);
PART_ERROR(H5Fopen_invalid_name);
}
@@ -465,7 +465,7 @@ test_open_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was opened with an invalid name of ''!\n");
+ printf(" file was opened with an invalid name of ''!\n");
H5Fclose(file_id);
PART_ERROR(H5Fopen_invalid_name);
}
@@ -486,7 +486,7 @@ test_open_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was opened with invalid flag H5F_ACC_TRUNC!\n");
+ printf(" file was opened with invalid flag H5F_ACC_TRUNC!\n");
H5Fclose(file_id);
PART_ERROR(H5Fopen_invalid_flags);
}
@@ -499,7 +499,7 @@ test_open_file_invalid_params(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" file was opened with invalid flag H5F_ACC_EXCL!\n");
+ printf(" file was opened with invalid flag H5F_ACC_EXCL!\n");
H5Fclose(file_id);
PART_ERROR(H5Fopen_invalid_flags);
}
@@ -536,13 +536,13 @@ test_open_nonexistent_file(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
if (prefix_filename(test_path_prefix, NONEXISTENT_FILENAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
@@ -556,11 +556,11 @@ test_open_nonexistent_file(void)
if (file_id >= 0) {
H5_FAILED();
- HDprintf(" non-existent file was opened!\n");
+ printf(" non-existent file was opened!\n");
goto error;
}
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -574,7 +574,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -602,8 +602,8 @@ test_file_permission(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, attribute, or stored datatype aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, attribute, or stored datatype aren't "
+ "supported with this connector\n");
return 0;
}
@@ -611,26 +611,26 @@ test_file_permission(void)
if (prefix_filename(test_path_prefix, FILE_PERMISSION_TEST_FILENAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename);
+ printf(" couldn't create file '%s'\n", prefixed_filename);
goto error;
}
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create data space\n");
+ printf(" couldn't create data space\n");
goto error;
}
if ((dset_id = H5Dcreate2(file_id, FILE_PERMISSION_TEST_DSET_NAME, H5T_STD_U32LE, dspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create data set: %s\n", FILE_PERMISSION_TEST_DSET_NAME);
+ printf(" couldn't create data set: %s\n", FILE_PERMISSION_TEST_DSET_NAME);
goto error;
}
@@ -642,7 +642,7 @@ test_file_permission(void)
/* Open the file (with read-only permission) */
if ((file_id = H5Fopen(prefixed_filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
@@ -664,7 +664,7 @@ test_file_permission(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" a group was created in a read-only file!\n");
+ printf(" a group was created in a read-only file!\n");
PART_ERROR(H5Gcreate_rdonly_file);
}
@@ -676,7 +676,7 @@ test_file_permission(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" a group was created in a read-only file!\n");
+ printf(" a group was created in a read-only file!\n");
PART_ERROR(H5Gcreate_rdonly_file);
}
@@ -698,7 +698,7 @@ test_file_permission(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" a dataset was created in a read-only file!\n");
+ printf(" a dataset was created in a read-only file!\n");
PART_ERROR(H5Dcreate_rdonly_file);
}
@@ -710,7 +710,7 @@ test_file_permission(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" a dataset was created in a read-only file!\n");
+ printf(" a dataset was created in a read-only file!\n");
PART_ERROR(H5Dcreate_rdonly_file);
}
@@ -732,7 +732,7 @@ test_file_permission(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" an attribute was created in a read-only file!\n");
+ printf(" an attribute was created in a read-only file!\n");
PART_ERROR(H5Acreate_rdonly_file);
}
@@ -746,7 +746,7 @@ test_file_permission(void)
if ((dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't copy a native datatype\n");
+ printf(" couldn't copy a native datatype\n");
PART_ERROR(H5Tcommit_rdonly_file);
}
@@ -760,7 +760,7 @@ test_file_permission(void)
if (h5_ret >= 0) {
H5_FAILED();
- HDprintf(" a named datatype was committed in a read-only file!\n");
+ printf(" a named datatype was committed in a read-only file!\n");
PART_ERROR(H5Tcommit_rdonly_file);
}
@@ -772,7 +772,7 @@ test_file_permission(void)
if (h5_ret >= 0) {
H5_FAILED();
- HDprintf(" a named datatype was committed in a read-only file!\n");
+ printf(" a named datatype was committed in a read-only file!\n");
PART_ERROR(H5Tcommit_rdonly_file);
}
@@ -791,7 +791,7 @@ test_file_permission(void)
if (H5Fclose(file_id) < 0)
TEST_ERROR;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -810,7 +810,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -829,19 +829,19 @@ test_reopen_file(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((file_id2 = H5Freopen(file_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't re-open file\n");
+ printf(" couldn't re-open file\n");
goto error;
}
@@ -878,7 +878,7 @@ test_close_file_invalid_id(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
@@ -890,7 +890,7 @@ test_close_file_invalid_id(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" closed an invalid file ID!\n");
+ printf(" closed an invalid file ID!\n");
goto error;
}
@@ -921,8 +921,8 @@ test_flush_file(void)
if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, dataset, or file flush aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, dataset, or file flush aren't supported with this "
+ "connector\n");
return 0;
}
@@ -930,20 +930,20 @@ test_flush_file(void)
if (prefix_filename(test_path_prefix, FILE_FLUSH_TEST_FILENAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename);
+ printf(" couldn't create file '%s'\n", prefixed_filename);
goto error;
}
/* Create multiple small datasets in file */
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create data space\n");
+ printf(" couldn't create data space\n");
goto error;
}
@@ -953,7 +953,7 @@ test_flush_file(void)
if ((dset_id = H5Dcreate2(file_id, dset_name, H5T_STD_U32LE, dspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create data set: %s\n", dset_name);
+ printf(" couldn't create data set: %s\n", dset_name);
goto error;
}
@@ -971,7 +971,7 @@ test_flush_file(void)
if (H5Fflush(file_id, H5F_SCOPE_LOCAL) < 0) {
H5_FAILED();
- HDprintf(" unable to flush file with scope H5F_SCOPE_LOCAL\n");
+ printf(" unable to flush file with scope H5F_SCOPE_LOCAL\n");
PART_ERROR(H5Fflush_local);
}
@@ -985,7 +985,7 @@ test_flush_file(void)
if (H5Fflush(file_id, H5F_SCOPE_GLOBAL) < 0) {
H5_FAILED();
- HDprintf(" unable to flush file with scope H5F_SCOPE_GLOBAL\n");
+ printf(" unable to flush file with scope H5F_SCOPE_GLOBAL\n");
PART_ERROR(H5Fflush_global);
}
@@ -1002,7 +1002,7 @@ test_flush_file(void)
if (H5Fclose(file_id) < 0)
TEST_ERROR;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -1018,7 +1018,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -1038,13 +1038,13 @@ test_file_is_accessible(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file aren't supported with this connector\n");
+ printf(" API functions for basic file aren't supported with this connector\n");
return 0;
}
if (prefix_filename(test_path_prefix, fake_filename, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
@@ -1056,14 +1056,14 @@ test_file_is_accessible(void)
if ((is_accessible = H5Fis_accessible(H5_api_test_filename, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if file '%s' is accessible with default FAPL\n",
- H5_api_test_filename);
+ printf(" couldn't determine if file '%s' is accessible with default FAPL\n",
+ H5_api_test_filename);
PART_ERROR(H5Fis_accessible_valid_file);
}
if (!is_accessible) {
H5_FAILED();
- HDprintf(" file '%s' is not accessible with default FAPL\n", H5_api_test_filename);
+ printf(" file '%s' is not accessible with default FAPL\n", H5_api_test_filename);
PART_ERROR(H5Fis_accessible_valid_file);
}
@@ -1085,8 +1085,8 @@ test_file_is_accessible(void)
if (is_accessible > 0) {
H5_FAILED();
- HDprintf(" non-existent file '%s' was accessible with default FAPL: is_accessible=%d!\n",
- prefixed_filename, is_accessible);
+ printf(" non-existent file '%s' was accessible with default FAPL: is_accessible=%d!\n",
+ prefixed_filename, is_accessible);
PART_ERROR(H5Fis_accessible_invalid_file);
}
@@ -1096,13 +1096,13 @@ test_file_is_accessible(void)
}
END_MULTIPART;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
return 0;
error:
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -1133,8 +1133,8 @@ test_file_property_lists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic or more file or get property list aren't supported with this "
- "connector\n");
+ printf(" API functions for basic or more file or get property list aren't supported with this "
+ "connector\n");
return 0;
}
@@ -1142,36 +1142,36 @@ test_file_property_lists(void)
if (prefix_filename(test_path_prefix, FILE_PROPERTY_LIST_TEST_FNAME1, &prefixed_filename1) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if (prefix_filename(test_path_prefix, FILE_PROPERTY_LIST_TEST_FNAME2, &prefixed_filename2) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((fcpl_id1 = H5Pcreate(H5P_FILE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create FCPL\n");
+ printf(" couldn't create FCPL\n");
goto error;
}
if (H5Pset_userblock(fcpl_id1, FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) < 0) {
H5_FAILED();
- HDprintf(" failed to set test property on FCPL\n");
+ printf(" failed to set test property on FCPL\n");
goto error;
}
if ((file_id1 = H5Fcreate(prefixed_filename1, H5F_ACC_TRUNC, fcpl_id1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file\n");
+ printf(" couldn't create file\n");
goto error;
}
if ((file_id2 = H5Fcreate(prefixed_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file\n");
+ printf(" couldn't create file\n");
goto error;
}
@@ -1190,42 +1190,42 @@ test_file_property_lists(void)
* does not */
if ((fcpl_id1 = H5Fget_create_plist(file_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get FCPL\n");
+ printf(" couldn't get FCPL\n");
PART_ERROR(H5Fget_create_plist);
}
if ((fcpl_id2 = H5Fget_create_plist(file_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get FCPL\n");
+ printf(" couldn't get FCPL\n");
PART_ERROR(H5Fget_create_plist);
}
/* Ensure that property list 1 has the property set and property list 2 does not */
if (H5Pget_userblock(fcpl_id1, &prop_val) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve test property from FCPL\n");
+ printf(" failed to retrieve test property from FCPL\n");
PART_ERROR(H5Fget_create_plist);
}
if (prop_val != FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) {
H5_FAILED();
- HDprintf(" retrieved test property value '%llu' did not match expected value '%llu'\n",
- (long long unsigned)prop_val,
- (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
+ printf(" retrieved test property value '%llu' did not match expected value '%llu'\n",
+ (long long unsigned)prop_val,
+ (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
PART_ERROR(H5Fget_create_plist);
}
if (H5Pget_userblock(fcpl_id2, &prop_val) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve test property from FCPL\n");
+ printf(" failed to retrieve test property from FCPL\n");
PART_ERROR(H5Fget_create_plist);
}
if (prop_val == FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) {
- HDprintf(" retrieved test property value '%llu' matched control value '%llu' when it "
- "shouldn't have\n",
- (long long unsigned)prop_val,
- (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
+ printf(" retrieved test property value '%llu' matched control value '%llu' when it "
+ "shouldn't have\n",
+ (long long unsigned)prop_val,
+ (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
PART_ERROR(H5Fget_create_plist);
}
@@ -1244,13 +1244,13 @@ test_file_property_lists(void)
*/
if ((fapl_id1 = H5Fget_access_plist(file_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get FAPL\n");
+ printf(" couldn't get FAPL\n");
PART_ERROR(H5Fget_access_plist);
}
if ((fapl_id2 = H5Fget_access_plist(file_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get FAPL\n");
+ printf(" couldn't get FAPL\n");
PART_ERROR(H5Fget_access_plist);
}
@@ -1318,54 +1318,54 @@ test_file_property_lists(void)
if ((file_id1 = H5Fopen(prefixed_filename1, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
PART_ERROR(H5Fget_create_plist_reopened);
}
if ((file_id2 = H5Fopen(prefixed_filename2, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
PART_ERROR(H5Fget_create_plist_reopened);
}
if ((fcpl_id1 = H5Fget_create_plist(file_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get FCPL\n");
+ printf(" couldn't get FCPL\n");
PART_ERROR(H5Fget_create_plist_reopened);
}
if ((fcpl_id2 = H5Fget_create_plist(file_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get FCPL\n");
+ printf(" couldn't get FCPL\n");
PART_ERROR(H5Fget_create_plist_reopened);
}
/* Check the values of the test property */
if (H5Pget_userblock(fcpl_id1, &prop_val) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve test property from FCPL\n");
+ printf(" failed to retrieve test property from FCPL\n");
PART_ERROR(H5Fget_create_plist_reopened);
}
if (prop_val != FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) {
H5_FAILED();
- HDprintf(" retrieved test property value '%llu' did not match expected value '%llu'\n",
- (long long unsigned)prop_val,
- (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
+ printf(" retrieved test property value '%llu' did not match expected value '%llu'\n",
+ (long long unsigned)prop_val,
+ (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
PART_ERROR(H5Fget_create_plist_reopened);
}
if (H5Pget_userblock(fcpl_id2, &prop_val) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve test property from FCPL\n");
+ printf(" failed to retrieve test property from FCPL\n");
PART_ERROR(H5Fget_create_plist_reopened);
}
if (prop_val == FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL) {
- HDprintf(" retrieved test property value '%llu' matched control value '%llu' when it "
- "shouldn't have\n",
- (long long unsigned)prop_val,
- (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
+ printf(" retrieved test property value '%llu' matched control value '%llu' when it "
+ "shouldn't have\n",
+ (long long unsigned)prop_val,
+ (long long unsigned)FILE_PROPERTY_LIST_TEST_FCPL_PROP_VAL);
PART_ERROR(H5Fget_create_plist_reopened);
}
@@ -1386,9 +1386,9 @@ test_file_property_lists(void)
if (H5Fclose(file_id2) < 0)
TEST_ERROR;
- HDfree(prefixed_filename1);
+ free(prefixed_filename1);
prefixed_filename1 = NULL;
- HDfree(prefixed_filename2);
+ free(prefixed_filename2);
prefixed_filename2 = NULL;
PASSED();
@@ -1407,8 +1407,8 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename1);
- HDfree(prefixed_filename2);
+ free(prefixed_filename1);
+ free(prefixed_filename2);
return 1;
}
@@ -1428,7 +1428,7 @@ test_get_file_intent(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_FILE_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic or more file aren't supported with this connector\n");
+ printf(" API functions for basic or more file aren't supported with this connector\n");
return 0;
}
@@ -1436,14 +1436,14 @@ test_get_file_intent(void)
if (prefix_filename(test_path_prefix, FILE_INTENT_TEST_FILENAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
/* Test that file intent retrieval works correctly for file create */
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename);
+ printf(" couldn't create file '%s'\n", prefixed_filename);
goto error;
}
@@ -1457,13 +1457,13 @@ test_get_file_intent(void)
if (H5Fget_intent(file_id, &file_intent) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve file intent\n");
+ printf(" failed to retrieve file intent\n");
PART_ERROR(H5Fget_intent_file_creation);
}
if (H5F_ACC_RDWR != file_intent) {
H5_FAILED();
- HDprintf(" received incorrect file intent for file creation\n");
+ printf(" received incorrect file intent for file creation\n");
PART_ERROR(H5Fget_intent_file_creation);
}
@@ -1487,19 +1487,19 @@ test_get_file_intent(void)
/* Test that file intent retrieval works correctly for file open */
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDONLY, 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);
PART_ERROR(H5Fget_intent_rdonly_file_open);
}
if (H5Fget_intent(file_id, &file_intent) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve file intent\n");
+ printf(" failed to retrieve file intent\n");
PART_ERROR(H5Fget_intent_rdonly_file_open);
}
if (H5F_ACC_RDONLY != file_intent) {
H5_FAILED();
- HDprintf(" received incorrect file intent for read-only file open\n");
+ printf(" received incorrect file intent for read-only file open\n");
PART_ERROR(H5Fget_intent_rdonly_file_open);
}
@@ -1522,19 +1522,19 @@ test_get_file_intent(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);
PART_ERROR(H5Fget_intent_rdwrite_file_open);
}
if (H5Fget_intent(file_id, &file_intent) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve file intent\n");
+ printf(" failed to retrieve file intent\n");
PART_ERROR(H5Fget_intent_rdwrite_file_open);
}
if (H5F_ACC_RDWR != file_intent) {
H5_FAILED();
- HDprintf(" received incorrect file intent\n");
+ printf(" received incorrect file intent\n");
PART_ERROR(H5Fget_intent_rdwrite_file_open);
}
@@ -1553,7 +1553,7 @@ test_get_file_intent(void)
}
END_MULTIPART;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
return 0;
@@ -1565,7 +1565,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -1597,7 +1597,7 @@ test_get_file_obj_count(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic or more file, basic dataset, group, stored datatypes, or attribute "
"aren't supported with this connector\n");
return 0;
@@ -1607,53 +1607,53 @@ test_get_file_obj_count(void)
if (prefix_filename(test_path_prefix, GET_OBJ_COUNT_TEST_FILENAME1, &prefixed_filename1) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if (prefix_filename(test_path_prefix, GET_OBJ_COUNT_TEST_FILENAME2, &prefixed_filename2) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename1);
+ printf(" couldn't create file '%s'\n", prefixed_filename1);
goto error;
}
if ((group_id = H5Gcreate2(file_id, GET_OBJ_COUNT_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", GET_OBJ_COUNT_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", GET_OBJ_COUNT_TEST_GRP_NAME);
goto error;
}
/* Create a second file while keeping the first file open */
if ((file_id2 = H5Fcreate(prefixed_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename2);
+ printf(" couldn't create file '%s'\n", prefixed_filename2);
goto error;
}
/* Create a named datatype */
if ((named_dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't copy a native datatype\n");
+ printf(" couldn't copy a native datatype\n");
goto error;
}
if (H5Tcommit2(file_id2, GET_OBJ_COUNT_TEST_NAMED_DTYPE, named_dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit a named datatype\n");
+ printf(" couldn't commit a named datatype\n");
goto error;
}
/* Create a dataspace for the attribute and dataset */
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create data space for attribute\n");
+ printf(" couldn't create data space for attribute\n");
goto error;
}
@@ -1661,7 +1661,7 @@ test_get_file_obj_count(void)
if ((attr_id = H5Acreate2(file_id2, GET_OBJ_COUNT_TEST_ATTR_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the attribute '%s'\n", GET_OBJ_COUNT_TEST_ATTR_NAME);
+ printf(" couldn't create the attribute '%s'\n", GET_OBJ_COUNT_TEST_ATTR_NAME);
goto error;
}
@@ -1669,7 +1669,7 @@ test_get_file_obj_count(void)
if ((dset_id = H5Dcreate2(file_id2, GET_OBJ_COUNT_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the dataset '%s'\n", GET_OBJ_COUNT_TEST_DSET_NAME);
+ printf(" couldn't create the dataset '%s'\n", GET_OBJ_COUNT_TEST_DSET_NAME);
goto error;
}
@@ -1684,13 +1684,13 @@ test_get_file_obj_count(void)
/* Get the number of files currently opened */
if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_FILE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the number of open files\n");
+ printf(" couldn't get the number of open files\n");
PART_ERROR(H5Fget_obj_count_files);
}
if (obj_count != 2) {
H5_FAILED();
- HDprintf(" number of open files (%ld) did not match expected number (2)\n", obj_count);
+ printf(" number of open files (%ld) did not match expected number (2)\n", obj_count);
PART_ERROR(H5Fget_obj_count_files);
}
@@ -1705,13 +1705,13 @@ test_get_file_obj_count(void)
/* Get the number of groups */
if ((obj_count = H5Fget_obj_count(file_id, H5F_OBJ_GROUP)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve number of open groups\n");
+ printf(" couldn't retrieve number of open groups\n");
PART_ERROR(H5Fget_obj_count_grps_single_file);
}
if (obj_count != 1) {
H5_FAILED();
- HDprintf(" number of open groups (%ld) did not match expected number (1)\n", obj_count);
+ printf(" number of open groups (%ld) did not match expected number (1)\n", obj_count);
PART_ERROR(H5Fget_obj_count_grps_single_file);
}
@@ -1726,13 +1726,13 @@ test_get_file_obj_count(void)
/* Get the number of groups in two opened files */
if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_GROUP)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the number of open groups\n");
+ printf(" couldn't get the number of open groups\n");
PART_ERROR(H5Fget_obj_count_grps);
}
if (obj_count != 1) {
H5_FAILED();
- HDprintf(" number of open groups (%ld) did not match expected number (1)\n", obj_count);
+ printf(" number of open groups (%ld) did not match expected number (1)\n", obj_count);
PART_ERROR(H5Fget_obj_count_grps);
}
@@ -1747,14 +1747,14 @@ test_get_file_obj_count(void)
/* Get the number of named datatype in two opened files */
if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_DATATYPE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the number of open named datatypes\n");
+ printf(" couldn't get the number of open named datatypes\n");
PART_ERROR(H5Fget_obj_count_types);
}
if (obj_count != 1) {
H5_FAILED();
- HDprintf(" number of open named datatypes (%ld) did not match expected number (1)\n",
- obj_count);
+ printf(" number of open named datatypes (%ld) did not match expected number (1)\n",
+ obj_count);
PART_ERROR(H5Fget_obj_count_types);
}
@@ -1769,14 +1769,13 @@ test_get_file_obj_count(void)
/* Get the number of attribute in two opened files */
if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_ATTR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the number of open attributes\n");
+ printf(" couldn't get the number of open attributes\n");
PART_ERROR(H5Fget_obj_count_attrs);
}
if (obj_count != 1) {
H5_FAILED();
- HDprintf(" number of open attributes (%ld) did not match expected number (1)\n",
- obj_count);
+ printf(" number of open attributes (%ld) did not match expected number (1)\n", obj_count);
PART_ERROR(H5Fget_obj_count_attrs);
}
@@ -1791,13 +1790,13 @@ test_get_file_obj_count(void)
/* Get the number of dataset in two opened files */
if ((obj_count = H5Fget_obj_count((hid_t)H5F_OBJ_ALL, H5F_OBJ_DATASET)) < 0 || obj_count != 1) {
H5_FAILED();
- HDprintf(" couldn't get the number of open datasets\n");
+ printf(" couldn't get the number of open datasets\n");
PART_ERROR(H5Fget_obj_count_dsets);
}
if (obj_count != 1) {
H5_FAILED();
- HDprintf(" number of open datasets (%ld) did not match expected number (1)\n", obj_count);
+ printf(" number of open datasets (%ld) did not match expected number (1)\n", obj_count);
PART_ERROR(H5Fget_obj_count_dsets);
}
@@ -1812,14 +1811,14 @@ test_get_file_obj_count(void)
/* Get the number of all open objects */
if ((obj_count = H5Fget_obj_count(file_id, H5F_OBJ_ALL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve number of open objects\n");
+ printf(" couldn't retrieve number of open objects\n");
PART_ERROR(H5Fget_obj_count_all_single_file);
}
/* One for the file and another for the group */
if (obj_count != 2) {
H5_FAILED();
- HDprintf(" number of open objects (%ld) did not match expected number (2)\n", obj_count);
+ printf(" number of open objects (%ld) did not match expected number (2)\n", obj_count);
PART_ERROR(H5Fget_obj_count_all_single_file);
}
@@ -1834,13 +1833,13 @@ test_get_file_obj_count(void)
/* Get the number of all open objects */
if ((obj_count = H5Fget_obj_count(H5F_OBJ_ALL, H5F_OBJ_ALL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve number of open objects\n");
+ printf(" couldn't retrieve number of open objects\n");
PART_ERROR(H5Fget_obj_count_all);
}
if (obj_count != 6) {
H5_FAILED();
- HDprintf(" number of open objects (%ld) did not match expected number (6)\n", obj_count);
+ printf(" number of open objects (%ld) did not match expected number (6)\n", obj_count);
PART_ERROR(H5Fget_obj_count_all);
}
@@ -1854,14 +1853,14 @@ test_get_file_obj_count(void)
if (H5Fget_obj_ids(file_id, H5F_OBJ_GROUP, (size_t)obj_count, &object_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't get opened group IDs\n");
+ printf(" couldn't get opened group IDs\n");
PART_ERROR(H5Fget_obj_ids_singular_grp);
}
if (object_id != group_id) {
H5_FAILED();
- HDprintf(" opened object ID (%ld) did not match only currently open group ID (%ld)\n",
- object_id, group_id);
+ printf(" opened object ID (%ld) did not match only currently open group ID (%ld)\n",
+ object_id, group_id);
PART_ERROR(H5Fget_obj_ids_singular_grp);
}
@@ -1888,9 +1887,9 @@ test_get_file_obj_count(void)
if (H5Fclose(file_id2) < 0)
TEST_ERROR;
- HDfree(prefixed_filename1);
+ free(prefixed_filename1);
prefixed_filename1 = NULL;
- HDfree(prefixed_filename2);
+ free(prefixed_filename2);
prefixed_filename2 = NULL;
PASSED();
@@ -1910,8 +1909,8 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename1);
- HDfree(prefixed_filename2);
+ free(prefixed_filename1);
+ free(prefixed_filename2);
return 1;
}
@@ -1937,40 +1936,40 @@ test_file_open_overlap(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic or more file, dataset, or group aren't supported with this "
- "connector\n");
+ printf(" API functions for basic or more file, dataset, or group aren't supported with this "
+ "connector\n");
return 0;
}
if (prefix_filename(test_path_prefix, OVERLAPPING_FILENAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename);
+ printf(" couldn't create file '%s'\n", prefixed_filename);
goto error;
}
if ((file_id2 = H5Fopen(prefixed_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", prefixed_filename);
+ printf(" couldn't open file '%s'\n", prefixed_filename);
goto error;
}
if ((group_id = H5Gcreate2(file_id, OVERLAPPING_OPEN_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OVERLAPPING_OPEN_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", OVERLAPPING_OPEN_TEST_GRP_NAME);
goto error;
}
/* Create a dataspace for the dataset */
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create data space for dataset\n");
+ printf(" couldn't create data space for dataset\n");
goto error;
}
@@ -1978,20 +1977,20 @@ test_file_open_overlap(void)
if ((dset_id = H5Dcreate2(group_id, OVERLAPPING_OPEN_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME);
+ printf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME);
goto error;
}
/* Get the number of objects opened in the first file: 3 == file + dataset + group */
if ((obj_count = H5Fget_obj_count(file_id, H5F_OBJ_LOCAL | H5F_OBJ_ALL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve the number of objects opened in the file\n");
+ printf(" couldn't retrieve the number of objects opened in the file\n");
goto error;
}
if (obj_count != 3) {
H5_FAILED();
- HDprintf(" number of objects opened in file (%ld) did not match expected number (3)\n", obj_count);
+ printf(" number of objects opened in file (%ld) did not match expected number (3)\n", obj_count);
goto error;
}
@@ -2006,21 +2005,21 @@ test_file_open_overlap(void)
if ((dset_id = H5Dcreate2(file_id2, OVERLAPPING_OPEN_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME);
+ printf(" couldn't create the dataset '%s'\n", OVERLAPPING_OPEN_TEST_DSET_NAME);
goto error;
}
/* Get the number of objects opened in the first file: 2 == file + dataset */
if ((obj_count = H5Fget_obj_count(file_id2, H5F_OBJ_ALL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve the number of objects opened in the file\n");
+ printf(" couldn't retrieve the number of objects opened in the file\n");
goto error;
}
if (obj_count != 2) {
H5_FAILED();
- HDprintf(" number of objects opened in the file (%ld) did not match expected number (2)\n",
- obj_count);
+ printf(" number of objects opened in the file (%ld) did not match expected number (2)\n",
+ obj_count);
goto error;
}
@@ -2031,7 +2030,7 @@ test_file_open_overlap(void)
if (H5Fclose(file_id2) < 0)
TEST_ERROR;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -2049,7 +2048,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -2072,46 +2071,46 @@ test_file_mounts(void)
if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_MOUNT) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, file mount, or basic group aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, file mount, or basic group aren't supported with this "
+ "connector\n");
return 0;
}
if (prefix_filename(test_path_prefix, FILE_MOUNT_TEST_FILENAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename);
+ printf(" couldn't create file '%s'\n", prefixed_filename);
goto error;
}
if ((group_id = H5Gcreate2(file_id, FILE_MOUNT_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", FILE_MOUNT_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", FILE_MOUNT_TEST_GRP_NAME);
goto error;
}
if ((child_fid = 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;
}
/* Mount one file (child_fid) to the group of another file (file_id) */
if (H5Fmount(file_id, FILE_MOUNT_TEST_GRP_NAME, child_fid, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't mount file\n");
+ printf(" couldn't mount file\n");
goto error;
}
if (H5Funmount(file_id, FILE_MOUNT_TEST_GRP_NAME) < 0) {
H5_FAILED();
- HDprintf(" couldn't mount file\n");
+ printf(" couldn't mount file\n");
goto error;
}
@@ -2122,7 +2121,7 @@ test_file_mounts(void)
if (H5Fclose(child_fid) < 0)
TEST_ERROR;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -2138,7 +2137,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -2167,7 +2166,7 @@ test_get_file_name(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic or more file, basic dataset, group, stored datatypes, or attribute "
"aren't supported with this connector\n");
return 0;
@@ -2177,13 +2176,13 @@ test_get_file_name(void)
if (prefix_filename(test_path_prefix, GET_FILE_NAME_TEST_FNAME, &prefixed_filename) < 0) {
H5_FAILED();
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
goto error;
}
if ((file_id = H5Fcreate(prefixed_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", prefixed_filename);
+ printf(" couldn't create file '%s'\n", prefixed_filename);
goto error;
}
@@ -2192,7 +2191,7 @@ test_get_file_name(void)
TEST_ERROR;
/* Allocate buffer for file name */
- if (NULL == (file_name_buf = (char *)HDmalloc((size_t)file_name_buf_len + 1)))
+ if (NULL == (file_name_buf = (char *)malloc((size_t)file_name_buf_len + 1)))
TEST_ERROR;
PASSED();
@@ -2208,14 +2207,14 @@ test_get_file_name(void)
/* Retrieve the actual file name */
if (H5Fget_name(file_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) {
H5_FAILED();
- HDprintf(" couldn't get file name %s\n", prefixed_filename);
+ printf(" couldn't get file name %s\n", prefixed_filename);
PART_ERROR(H5Fget_name_file_id);
}
if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) {
H5_FAILED();
- HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
- prefixed_filename);
+ printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
+ prefixed_filename);
PART_ERROR(H5Fget_name_file_id);
}
@@ -2233,20 +2232,20 @@ test_get_file_name(void)
if ((group_id = H5Gcreate2(file_id, GET_FILE_NAME_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create group '%s'\n", GET_FILE_NAME_TEST_GRP_NAME);
+ printf(" failed to create group '%s'\n", GET_FILE_NAME_TEST_GRP_NAME);
PART_ERROR(H5Fget_name_grp_id);
}
if (H5Fget_name(group_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) {
H5_FAILED();
- HDprintf(" couldn't get file name %s\n", prefixed_filename);
+ printf(" couldn't get file name %s\n", prefixed_filename);
PART_ERROR(H5Fget_name_grp_id);
}
if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) {
H5_FAILED();
- HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
- prefixed_filename);
+ printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
+ prefixed_filename);
PART_ERROR(H5Fget_name_grp_id);
}
@@ -2269,7 +2268,7 @@ test_get_file_name(void)
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataspace\n");
+ printf(" couldn't create dataspace\n");
PART_ERROR(H5Fget_name_dset_id);
}
@@ -2277,21 +2276,21 @@ test_get_file_name(void)
if ((dset_id = H5Dcreate2(file_id, GET_FILE_NAME_TEST_DSET_NAME, H5T_NATIVE_INT, dspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the dataset '%s'\n", GET_FILE_NAME_TEST_DSET_NAME);
+ printf(" couldn't create the dataset '%s'\n", GET_FILE_NAME_TEST_DSET_NAME);
PART_ERROR(H5Fget_name_dset_id);
}
/* Get and verify file name from the dataset */
if (H5Fget_name(dset_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) {
H5_FAILED();
- HDprintf(" couldn't get file name %s\n", prefixed_filename);
+ printf(" couldn't get file name %s\n", prefixed_filename);
PART_ERROR(H5Fget_name_dset_id);
}
if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) {
H5_FAILED();
- HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
- prefixed_filename);
+ printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
+ prefixed_filename);
PART_ERROR(H5Fget_name_dset_id);
}
@@ -2322,7 +2321,7 @@ test_get_file_name(void)
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataspace\n");
+ printf(" couldn't create dataspace\n");
PART_ERROR(H5Fget_name_attr_id);
}
@@ -2330,21 +2329,21 @@ test_get_file_name(void)
if ((attr_id = H5Acreate2(file_id, GET_FILE_NAME_TEST_ATTR_NAME, H5T_NATIVE_INT, dspace_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the attribute '%s'\n", GET_FILE_NAME_TEST_ATTR_NAME);
+ printf(" couldn't create the attribute '%s'\n", GET_FILE_NAME_TEST_ATTR_NAME);
PART_ERROR(H5Fget_name_attr_id);
}
/* Get and verify file name from the attribute */
if (H5Fget_name(attr_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) {
H5_FAILED();
- HDprintf(" couldn't get file name %s\n", prefixed_filename);
+ printf(" couldn't get file name %s\n", prefixed_filename);
PART_ERROR(H5Fget_name_attr_id);
}
if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) {
H5_FAILED();
- HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
- prefixed_filename);
+ printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
+ prefixed_filename);
PART_ERROR(H5Fget_name_attr_id);
}
@@ -2376,28 +2375,28 @@ test_get_file_name(void)
/* Create a named datatype */
if ((named_dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't copy a native datatype\n");
+ printf(" couldn't copy a native datatype\n");
PART_ERROR(H5Fget_name_dtype_id);
}
if (H5Tcommit2(file_id, GET_FILE_NAME_TEST_NAMED_DTYPE, named_dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit a named datatype\n");
+ printf(" couldn't commit a named datatype\n");
PART_ERROR(H5Fget_name_dtype_id);
}
/* Get and verify file name from the committed datatype */
if (H5Fget_name(named_dtype_id, file_name_buf, (size_t)file_name_buf_len + 1) < 0) {
H5_FAILED();
- HDprintf(" couldn't get file name %s\n", prefixed_filename);
+ printf(" couldn't get file name %s\n", prefixed_filename);
PART_ERROR(H5Fget_name_dtype_id);
}
if (HDstrncmp(file_name_buf, prefixed_filename, (size_t)file_name_buf_len)) {
H5_FAILED();
- HDprintf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
- prefixed_filename);
+ printf(" file name '%s' didn't match expected name '%s'\n", file_name_buf,
+ prefixed_filename);
PART_ERROR(H5Fget_name_dtype_id);
}
@@ -2422,7 +2421,7 @@ test_get_file_name(void)
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataspace\n");
+ printf(" couldn't create dataspace\n");
PART_ERROR(H5Fget_name_dspace_id);
}
@@ -2436,7 +2435,7 @@ test_get_file_name(void)
if (name_len >= 0) {
H5_FAILED();
- HDprintf(" retrieved file name using H5Fget_name on a dataspace ID!\n");
+ printf(" retrieved file name using H5Fget_name on a dataspace ID!\n");
PART_ERROR(H5Fget_name_dspace_id);
}
@@ -2458,14 +2457,14 @@ test_get_file_name(void)
TESTING_2("test cleanup");
if (file_name_buf) {
- HDfree(file_name_buf);
+ free(file_name_buf);
file_name_buf = NULL;
}
if (H5Fclose(file_id) < 0)
TEST_ERROR;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
prefixed_filename = NULL;
PASSED();
@@ -2476,7 +2475,7 @@ error:
H5E_BEGIN_TRY
{
if (file_name_buf)
- HDfree(file_name_buf);
+ free(file_name_buf);
H5Tclose(named_dtype_id);
H5Sclose(dspace_id);
H5Dclose(dset_id);
@@ -2486,7 +2485,7 @@ error:
}
H5E_END_TRY;
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return 1;
}
@@ -2521,19 +2520,19 @@ H5_api_file_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API File Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API File Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(file_tests); i++) {
nerrors += (*file_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
- HDprintf("Cleaning up testing files\n");
+ printf("Cleaning up testing files\n");
cleanup_files();
return nerrors;
diff --git a/test/API/H5_api_group_test.c b/test/API/H5_api_group_test.c
index 016d988..20ced5b 100644
--- a/test/API/H5_api_group_test.c
+++ b/test/API/H5_api_group_test.c
@@ -70,13 +70,13 @@ test_create_group_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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group 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;
}
@@ -84,7 +84,7 @@ test_create_group_under_root(void)
if ((parent_gid =
H5Gcreate2(file_id, GROUP_CREATE_UNDER_ROOT_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", GROUP_CREATE_UNDER_ROOT_GNAME);
+ printf(" couldn't create group '%s'\n", GROUP_CREATE_UNDER_ROOT_GNAME);
goto error;
}
@@ -124,20 +124,20 @@ test_create_group_under_existing_group(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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
/* Open the already-existing group (/group_tests) in the file as the parent */
if ((parent_group_id = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group\n");
+ printf(" couldn't open group\n");
goto error;
}
@@ -146,7 +146,7 @@ test_create_group_under_existing_group(void)
if ((child_group_id = H5Gcreate2(parent_group_id, GROUP_CREATE_UNDER_GROUP_REL_GNAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group using relative path: %s\n", GROUP_CREATE_UNDER_GROUP_REL_GNAME);
+ printf(" couldn't create group using relative path: %s\n", GROUP_CREATE_UNDER_GROUP_REL_GNAME);
goto error;
}
@@ -155,7 +155,7 @@ test_create_group_under_existing_group(void)
if ((grandchild_group_id = H5Gcreate2(parent_group_id, GROUP_CREATE_UNDER_GROUP_ABS_GNAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group using absolute path: %s\n", GROUP_CREATE_UNDER_GROUP_ABS_GNAME);
+ printf(" couldn't create group using absolute path: %s\n", GROUP_CREATE_UNDER_GROUP_ABS_GNAME);
goto error;
}
@@ -202,38 +202,38 @@ test_create_many_groups(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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group 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, GROUP_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 ((parent_group_id = H5Gcreate2(container_group, MANY_GROUP_CREATIONS_GNAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MANY_GROUP_CREATIONS_GNAME);
+ printf(" couldn't create group '%s'\n", MANY_GROUP_CREATIONS_GNAME);
goto error;
}
/* Create multiple groups under the parent group */
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < GROUP_NUMB_MANY; i++) {
- HDprintf("\r %u/%u", i + 1, GROUP_NUMB_MANY);
+ printf("\r %u/%u", i + 1, GROUP_NUMB_MANY);
sprintf(group_name, "group %02u", i);
if ((child_group_id =
H5Gcreate2(parent_group_id, group_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", group_name);
+ printf(" couldn't create group '%s'\n", group_name);
goto error;
}
@@ -280,19 +280,19 @@ test_create_deep_groups(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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group 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, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
@@ -300,11 +300,11 @@ test_create_deep_groups(void)
if ((group_id = H5Gcreate2(container_group, DEEP_GROUP_CREATIONS_GNAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", DEEP_GROUP_CREATIONS_GNAME);
+ printf(" couldn't create group '%s'\n", DEEP_GROUP_CREATIONS_GNAME);
goto error;
}
- HDprintf("\n");
+ printf("\n");
if (create_group_recursive(group_id, 1) < 0)
TEST_ERROR;
@@ -340,7 +340,7 @@ create_group_recursive(hid_t parent_gid, unsigned counter)
hid_t child_gid = H5I_INVALID_HID;
char gname[NAME_BUF_SIZE];
- HDprintf("\r %u/%u", counter, GROUP_DEPTH);
+ printf("\r %u/%u", counter, GROUP_DEPTH);
if (counter == 1)
sprintf(gname, "2nd_child_group");
else if (counter == 2)
@@ -349,7 +349,7 @@ create_group_recursive(hid_t parent_gid, unsigned counter)
sprintf(gname, "%dth_child_group", counter + 1);
if ((child_gid = H5Gcreate2(parent_gid, gname, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", gname);
+ printf(" couldn't create group '%s'\n", gname);
goto error;
}
@@ -389,19 +389,19 @@ test_create_intermediate_group(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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group 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, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
@@ -536,7 +536,7 @@ test_create_group_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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group aren't supported with this connector\n");
return 0;
}
@@ -544,7 +544,7 @@ test_create_group_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;
}
@@ -565,7 +565,7 @@ test_create_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" created group with invalid loc_id!\n");
+ printf(" created group with invalid loc_id!\n");
H5Gclose(group_id);
PART_ERROR(H5Gcreate_invalid_loc_id);
}
@@ -586,7 +586,7 @@ test_create_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" created group with a NULL name!\n");
+ printf(" created group with a NULL name!\n");
H5Gclose(group_id);
PART_ERROR(H5Gcreate_invalid_grp_name);
}
@@ -599,7 +599,7 @@ test_create_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" created group with an invalid group name of ''!\n");
+ printf(" created group with an invalid group name of ''!\n");
H5Gclose(group_id);
PART_ERROR(H5Gcreate_invalid_grp_name);
}
@@ -621,7 +621,7 @@ test_create_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" created group with invalid LCPL!\n");
+ printf(" created group with invalid LCPL!\n");
H5Gclose(group_id);
PART_ERROR(H5Gcreate_invalid_lcpl);
}
@@ -643,7 +643,7 @@ test_create_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" created group with invalid GCPL!\n");
+ printf(" created group with invalid GCPL!\n");
H5Gclose(group_id);
PART_ERROR(H5Gcreate_invalid_gcpl);
}
@@ -665,7 +665,7 @@ test_create_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" created group with invalid GAPL!\n");
+ printf(" created group with invalid GAPL!\n");
H5Gclose(group_id);
PART_ERROR(H5Gcreate_invalid_gapl);
}
@@ -711,25 +711,25 @@ test_create_anonymous_group(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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group\n");
+ printf(" couldn't open group\n");
goto error;
}
if ((new_group_id = H5Gcreate_anon(file_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create anonymous group\n");
+ printf(" couldn't create anonymous group\n");
goto error;
}
@@ -771,7 +771,7 @@ test_create_anonymous_group_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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group aren't supported with this connector\n");
return 0;
}
@@ -779,13 +779,13 @@ test_create_anonymous_group_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group\n");
+ printf(" couldn't open group\n");
goto error;
}
@@ -805,7 +805,7 @@ test_create_anonymous_group_invalid_params(void)
if (new_group_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous group with invalid loc_id!\n");
+ printf(" created anonymous group with invalid loc_id!\n");
H5Gclose(new_group_id);
PART_ERROR(H5Gcreate_anon_invalid_loc_id);
}
@@ -826,7 +826,7 @@ test_create_anonymous_group_invalid_params(void)
if (new_group_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous group with invalid GCPL!\n");
+ printf(" created anonymous group with invalid GCPL!\n");
H5Gclose(new_group_id);
PART_ERROR(H5Gcreate_anon_invalid_gcpl);
}
@@ -847,7 +847,7 @@ test_create_anonymous_group_invalid_params(void)
if (new_group_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous group with invalid GAPL!\n");
+ printf(" created anonymous group with invalid GAPL!\n");
H5Gclose(new_group_id);
PART_ERROR(H5Gcreate_anon_invalid_gapl);
}
@@ -896,13 +896,13 @@ test_open_nonexistent_group(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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
@@ -914,7 +914,7 @@ test_open_nonexistent_group(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" opened non-existent group!\n");
+ printf(" opened non-existent group!\n");
goto error;
}
@@ -951,7 +951,7 @@ test_open_group_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_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group aren't supported with this connector\n");
return 0;
}
@@ -959,7 +959,7 @@ test_open_group_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;
}
@@ -979,7 +979,7 @@ test_open_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" opened group using an invalid loc_id!\n");
+ printf(" opened group using an invalid loc_id!\n");
H5Gclose(group_id);
PART_ERROR(H5Gopen_invalid_loc_id);
}
@@ -1000,7 +1000,7 @@ test_open_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" opened group using a NULL name!\n");
+ printf(" opened group using a NULL name!\n");
H5Gclose(group_id);
PART_ERROR(H5Gopen_invalid_grp_name);
}
@@ -1013,7 +1013,7 @@ test_open_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" opened group using an invalid name of ''!\n");
+ printf(" opened group using an invalid name of ''!\n");
H5Gclose(group_id);
PART_ERROR(H5Gopen_invalid_grp_name);
}
@@ -1034,7 +1034,7 @@ test_open_group_invalid_params(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" opened group using an invalid GAPL!\n");
+ printf(" opened group using an invalid GAPL!\n");
H5Gclose(group_id);
PART_ERROR(H5Gopen_invalid_gapl);
}
@@ -1079,7 +1079,7 @@ test_close_group_invalid_id(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic group aren't supported with this connector\n");
+ printf(" API functions for basic group aren't supported with this connector\n");
return 0;
}
@@ -1091,7 +1091,7 @@ test_close_group_invalid_id(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" close a group with an invalid ID!\n");
+ printf(" close a group with an invalid ID!\n");
goto error;
}
@@ -1123,8 +1123,8 @@ test_group_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_GET_PLIST) || !(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, property list, or creation order aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, property list, or creation order aren't supported "
+ "with this connector\n");
return 0;
}
@@ -1132,25 +1132,25 @@ test_group_property_lists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id1 = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL\n");
+ printf(" couldn't create GCPL\n");
goto error;
}
if (H5Pset_link_creation_order(gcpl_id1, dummy_prop_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't set property on GCPL\n");
+ printf(" couldn't set property on GCPL\n");
goto error;
}
@@ -1158,7 +1158,7 @@ test_group_property_lists(void)
if ((group_id1 = H5Gcreate2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME1, H5P_DEFAULT, gcpl_id1,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group\n");
+ printf(" couldn't create group\n");
goto error;
}
@@ -1166,7 +1166,7 @@ test_group_property_lists(void)
if ((group_id2 = H5Gcreate2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME2, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group\n");
+ printf(" couldn't create group\n");
goto error;
}
@@ -1185,13 +1185,13 @@ test_group_property_lists(void)
* does not */
if ((gcpl_id1 = H5Gget_create_plist(group_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get GCPL\n");
+ printf(" couldn't get GCPL\n");
PART_ERROR(H5Gget_create_plist);
}
if ((gcpl_id2 = H5Gget_create_plist(group_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get GCPL\n");
+ printf(" couldn't get GCPL\n");
PART_ERROR(H5Gget_create_plist);
}
@@ -1200,15 +1200,15 @@ test_group_property_lists(void)
if (H5Pget_link_creation_order(gcpl_id1, &dummy_prop_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve GCPL property value\n");
+ printf(" couldn't retrieve GCPL property value\n");
PART_ERROR(H5Gget_create_plist);
}
if (dummy_prop_val != GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) {
H5_FAILED();
- HDprintf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n",
- (unsigned long long)dummy_prop_val,
- (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
+ printf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n",
+ (unsigned long long)dummy_prop_val,
+ (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
PART_ERROR(H5Gget_create_plist);
}
@@ -1216,16 +1216,16 @@ test_group_property_lists(void)
if (H5Pget_link_creation_order(gcpl_id2, &dummy_prop_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve GCPL property value\n");
+ printf(" couldn't retrieve GCPL property value\n");
PART_ERROR(H5Gget_create_plist);
}
if (dummy_prop_val == GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) {
H5_FAILED();
- HDprintf(" retrieved GCPL property value '%llu' matched control value '%llu' when it "
- "shouldn't have\n",
- (unsigned long long)dummy_prop_val,
- (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
+ printf(" retrieved GCPL property value '%llu' matched control value '%llu' when it "
+ "shouldn't have\n",
+ (unsigned long long)dummy_prop_val,
+ (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
PART_ERROR(H5Gget_create_plist);
}
@@ -1278,26 +1278,26 @@ test_group_property_lists(void)
if ((group_id1 = H5Gopen2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME1, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open group\n");
+ printf(" couldn't open group\n");
PART_ERROR(H5Gget_create_plist_reopened);
}
if ((group_id2 = H5Gopen2(container_group, GROUP_PROPERTY_LIST_TEST_GROUP_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open group\n");
+ printf(" couldn't open group\n");
PART_ERROR(H5Gget_create_plist_reopened);
}
if ((gcpl_id1 = H5Gget_create_plist(group_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Gget_create_plist_reopened);
}
if ((gcpl_id2 = H5Gget_create_plist(group_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Gget_create_plist_reopened);
}
@@ -1306,15 +1306,15 @@ test_group_property_lists(void)
if (H5Pget_link_creation_order(gcpl_id1, &dummy_prop_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve GCPL property value\n");
+ printf(" couldn't retrieve GCPL property value\n");
PART_ERROR(H5Gget_create_plist_reopened);
}
if (dummy_prop_val != GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) {
H5_FAILED();
- HDprintf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n",
- (unsigned long long)dummy_prop_val,
- (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
+ printf(" retrieved GCPL property value '%llu' did not match expected value '%llu'\n",
+ (unsigned long long)dummy_prop_val,
+ (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
PART_ERROR(H5Gget_create_plist_reopened);
}
@@ -1322,16 +1322,16 @@ test_group_property_lists(void)
if (H5Pget_link_creation_order(gcpl_id2, &dummy_prop_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve GCPL property value\n");
+ printf(" couldn't retrieve GCPL property value\n");
PART_ERROR(H5Gget_create_plist_reopened);
}
if (dummy_prop_val == GROUP_PROPERTY_LIST_TEST_DUMMY_VAL) {
H5_FAILED();
- HDprintf(" retrieved GCPL property value '%llu' matched control value '%llu' when it "
- "shouldn't have\n",
- (unsigned long long)dummy_prop_val,
- (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
+ printf(" retrieved GCPL property value '%llu' matched control value '%llu' when it "
+ "shouldn't have\n",
+ (unsigned long long)dummy_prop_val,
+ (unsigned long long)GROUP_PROPERTY_LIST_TEST_DUMMY_VAL);
PART_ERROR(H5Gget_create_plist_reopened);
}
@@ -1395,7 +1395,7 @@ test_get_group_info(void)
if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file or group aren't supported with this connector\n");
+ printf(" API functions for basic file or group aren't supported with this connector\n");
return 0;
}
@@ -1403,26 +1403,26 @@ test_get_group_info(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, GROUP_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -1430,7 +1430,7 @@ test_get_group_info(void)
if ((parent_group_id = H5Gcreate2(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", GROUP_GET_INFO_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", GROUP_GET_INFO_TEST_GROUP_NAME);
goto error;
}
@@ -1442,7 +1442,7 @@ test_get_group_info(void)
if ((group_id = H5Gcreate2(parent_group_id, group_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", group_name);
+ printf(" couldn't create group '%s'\n", group_name);
goto error;
}
@@ -1463,14 +1463,14 @@ test_get_group_info(void)
/* Retrieve information about the parent group */
if (H5Gget_info(parent_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" couldn't get group info\n");
+ printf(" couldn't get group info\n");
PART_ERROR(H5Gget_info);
}
if (group_info.nlinks != GROUP_GET_INFO_TEST_GROUP_NUMB) {
H5_FAILED();
- HDprintf(" group's number of links '%lu' doesn't match expected value '%u'\n",
- group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB);
+ printf(" group's number of links '%lu' doesn't match expected value '%u'\n",
+ group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB);
PART_ERROR(H5Gget_info);
}
@@ -1480,8 +1480,8 @@ test_get_group_info(void)
*/
if (group_info.max_corder != GROUP_GET_INFO_TEST_GROUP_NUMB) {
H5_FAILED();
- HDprintf(" group's max creation order '%lld' doesn't match expected value '%lld'\n",
- (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB);
+ printf(" group's max creation order '%lld' doesn't match expected value '%lld'\n",
+ (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB);
PART_ERROR(H5Gget_info);
}
@@ -1491,14 +1491,14 @@ test_get_group_info(void)
group_info.storage_type != H5G_STORAGE_TYPE_DENSE &&
group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) {
H5_FAILED();
- HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
+ printf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
PART_ERROR(H5Gget_info);
}
/* Assume that mounted should be FALSE in this case */
if (group_info.mounted != FALSE) {
H5_FAILED();
- HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
+ printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
PART_ERROR(H5Gget_info);
}
@@ -1516,14 +1516,14 @@ test_get_group_info(void)
if (H5Gget_info_by_name(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, &group_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get group info by name\n");
+ printf(" couldn't get group info by name\n");
PART_ERROR(H5Gget_info_by_name);
}
if (group_info.nlinks != GROUP_GET_INFO_TEST_GROUP_NUMB) {
H5_FAILED();
- HDprintf(" group's number of links '%lu' doesn't match expected value '%u'\n",
- group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB);
+ printf(" group's number of links '%lu' doesn't match expected value '%u'\n",
+ group_info.nlinks, (unsigned int)GROUP_GET_INFO_TEST_GROUP_NUMB);
PART_ERROR(H5Gget_info_by_name);
}
@@ -1533,8 +1533,8 @@ test_get_group_info(void)
*/
if (group_info.max_corder != GROUP_GET_INFO_TEST_GROUP_NUMB) {
H5_FAILED();
- HDprintf(" group's max creation order '%lld' doesn't match expected value '%lld'\n",
- (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB);
+ printf(" group's max creation order '%lld' doesn't match expected value '%lld'\n",
+ (long long)group_info.max_corder, (long long)GROUP_GET_INFO_TEST_GROUP_NUMB);
PART_ERROR(H5Gget_info_by_name);
}
@@ -1544,14 +1544,14 @@ test_get_group_info(void)
group_info.storage_type != H5G_STORAGE_TYPE_DENSE &&
group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) {
H5_FAILED();
- HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
+ printf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
PART_ERROR(H5Gget_info_by_name);
}
/* Assume that mounted should be FALSE in this case */
if (group_info.mounted != FALSE) {
H5_FAILED();
- HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
+ printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
PART_ERROR(H5Gget_info_by_name);
}
@@ -1565,7 +1565,7 @@ test_get_group_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Gget_info_by_idx_crt_order_increasing);
}
@@ -1576,21 +1576,21 @@ test_get_group_info(void)
if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get group info for group at index %u\n", i);
+ printf(" couldn't get group info for group at index %u\n", i);
PART_ERROR(H5Gget_info_by_idx_crt_order_increasing);
}
if (group_info.nlinks != 0) {
H5_FAILED();
- HDprintf(" group's number of links '%lu' doesn't match expected value '%d'\n",
- group_info.nlinks, 0);
+ printf(" group's number of links '%lu' doesn't match expected value '%d'\n",
+ group_info.nlinks, 0);
PART_ERROR(H5Gget_info_by_idx_crt_order_increasing);
}
if (group_info.max_corder != 0) {
H5_FAILED();
- HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
- (long long)group_info.max_corder, 0);
+ printf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
+ (long long)group_info.max_corder, 0);
PART_ERROR(H5Gget_info_by_idx_crt_order_increasing);
}
@@ -1600,14 +1600,14 @@ test_get_group_info(void)
group_info.storage_type != H5G_STORAGE_TYPE_DENSE &&
group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) {
H5_FAILED();
- HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
+ printf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
PART_ERROR(H5Gget_info_by_idx_crt_order_increasing);
}
/* Assume that mounted should be FALSE in this case */
if (group_info.mounted != FALSE) {
H5_FAILED();
- HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
+ printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
PART_ERROR(H5Gget_info_by_idx_crt_order_increasing);
}
}
@@ -1622,7 +1622,7 @@ test_get_group_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Gget_info_by_idx_crt_order_decreasing);
}
@@ -1633,21 +1633,21 @@ test_get_group_info(void)
if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get group info for group at index %u\n", i);
+ printf(" couldn't get group info for group at index %u\n", i);
PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing);
}
if (group_info.nlinks != 0) {
H5_FAILED();
- HDprintf(" group's number of links '%lu' doesn't match expected value '%d'\n",
- group_info.nlinks, 0);
+ printf(" group's number of links '%lu' doesn't match expected value '%d'\n",
+ group_info.nlinks, 0);
PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing);
}
if (group_info.max_corder != 0) {
H5_FAILED();
- HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
- (long long)group_info.max_corder, 0);
+ printf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
+ (long long)group_info.max_corder, 0);
PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing);
}
@@ -1657,14 +1657,14 @@ test_get_group_info(void)
group_info.storage_type != H5G_STORAGE_TYPE_DENSE &&
group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) {
H5_FAILED();
- HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
+ printf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing);
}
/* Assume that mounted should be FALSE in this case */
if (group_info.mounted != FALSE) {
H5_FAILED();
- HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
+ printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
PART_ERROR(H5Gget_info_by_idx_crt_order_decreasing);
}
}
@@ -1684,21 +1684,21 @@ test_get_group_info(void)
if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get group info for group at index %u\n", i);
+ printf(" couldn't get group info for group at index %u\n", i);
PART_ERROR(H5Gget_info_by_idx_name_order_increasing);
}
if (group_info.nlinks != 0) {
H5_FAILED();
- HDprintf(" group's number of links '%lu' doesn't match expected value '%d'\n",
- group_info.nlinks, 0);
+ printf(" group's number of links '%lu' doesn't match expected value '%d'\n",
+ group_info.nlinks, 0);
PART_ERROR(H5Gget_info_by_idx_name_order_increasing);
}
if (group_info.max_corder != 0) {
H5_FAILED();
- HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
- (long long)group_info.max_corder, 0);
+ printf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
+ (long long)group_info.max_corder, 0);
PART_ERROR(H5Gget_info_by_idx_name_order_increasing);
}
@@ -1708,14 +1708,14 @@ test_get_group_info(void)
group_info.storage_type != H5G_STORAGE_TYPE_DENSE &&
group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) {
H5_FAILED();
- HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
+ printf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
PART_ERROR(H5Gget_info_by_idx_name_order_increasing);
}
/* Assume that mounted should be FALSE in this case */
if (group_info.mounted != FALSE) {
H5_FAILED();
- HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
+ printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
PART_ERROR(H5Gget_info_by_idx_name_order_increasing);
}
}
@@ -1735,22 +1735,21 @@ test_get_group_info(void)
if (H5Gget_info_by_idx(container_group, GROUP_GET_INFO_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, (hsize_t)i, &group_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get group info for group at index %u\n", i);
+ printf(" couldn't get group info for group at index %u\n", i);
PART_ERROR(H5Gget_info_by_idx_name_order_decreasing);
}
if (group_info.nlinks != 0) {
H5_FAILED();
- HDprintf(" group's number of links '%" PRIuHSIZE
- "' doesn't match expected value '%d'\n",
- group_info.nlinks, 0);
+ printf(" group's number of links '%" PRIuHSIZE "' doesn't match expected value '%d'\n",
+ group_info.nlinks, 0);
PART_ERROR(H5Gget_info_by_idx_name_order_decreasing);
}
if (group_info.max_corder != 0) {
H5_FAILED();
- HDprintf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
- (long long)group_info.max_corder, 0);
+ printf(" group's max creation order '%lld' doesn't match expected value '%d'\n",
+ (long long)group_info.max_corder, 0);
PART_ERROR(H5Gget_info_by_idx_name_order_decreasing);
}
@@ -1760,14 +1759,14 @@ test_get_group_info(void)
group_info.storage_type != H5G_STORAGE_TYPE_DENSE &&
group_info.storage_type != H5G_STORAGE_TYPE_UNKNOWN) {
H5_FAILED();
- HDprintf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
+ printf(" group info's 'storage_type' field wasn't set to a meaningful value\n");
PART_ERROR(H5Gget_info_by_idx_name_order_decreasing);
}
/* Assume that mounted should be FALSE in this case */
if (group_info.mounted != FALSE) {
H5_FAILED();
- HDprintf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
+ printf(" group info's 'mounted' field was TRUE when it should have been FALSE\n");
PART_ERROR(H5Gget_info_by_idx_name_order_decreasing);
}
}
@@ -1823,8 +1822,8 @@ test_get_group_info_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_GROUP_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, or more group aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, or more group aren't supported with this "
+ "connector\n");
return 0;
}
@@ -1832,7 +1831,7 @@ test_get_group_info_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -1852,7 +1851,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info with an invalid loc_id!\n");
+ printf(" retrieved info of group using H5Gget_info with an invalid loc_id!\n");
PART_ERROR(H5Gget_info_invalid_loc_id);
}
@@ -1872,7 +1871,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info with invalid group info pointer!\n");
+ printf(" retrieved info of group using H5Gget_info with invalid group info pointer!\n");
PART_ERROR(H5Gget_info_invalid_grp_info_pointer);
}
@@ -1892,7 +1891,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_name with an invalid loc_id!\n");
+ printf(" retrieved info of group using H5Gget_info_by_name with an invalid loc_id!\n");
PART_ERROR(H5Gget_info_by_name_invalid_loc_id);
}
@@ -1912,7 +1911,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_name with a NULL name!\n");
+ printf(" retrieved info of group using H5Gget_info_by_name with a NULL name!\n");
PART_ERROR(H5Gget_info_by_name_invalid_grp_name);
}
@@ -1924,8 +1923,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " retrieved info of group using H5Gget_info_by_name with an invalid name of ''!\n");
+ printf(" retrieved info of group using H5Gget_info_by_name with an invalid name of ''!\n");
PART_ERROR(H5Gget_info_by_name_invalid_grp_name);
}
@@ -1945,8 +1943,8 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_name with an invalid group info "
- "pointer!\n");
+ printf(" retrieved info of group using H5Gget_info_by_name with an invalid group info "
+ "pointer!\n");
PART_ERROR(H5Gget_info_by_name_invalid_grp_info_pointer);
}
@@ -1966,7 +1964,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_name with an invalid LAPL!\n");
+ printf(" retrieved info of group using H5Gget_info_by_name with an invalid LAPL!\n");
PART_ERROR(H5Gget_info_by_name_invalid_lapl);
}
@@ -1987,7 +1985,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid loc_id!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_loc_id);
}
@@ -2008,7 +2006,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with a NULL group name!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with a NULL group name!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_grp_name);
}
@@ -2021,8 +2019,8 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid group name of "
- "''!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with an invalid group name of "
+ "''!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_grp_name);
}
@@ -2043,8 +2041,8 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_index_type);
}
@@ -2057,8 +2055,8 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_index_type);
}
@@ -2079,8 +2077,8 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_iter_order);
}
@@ -2093,8 +2091,8 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order "
- "H5_ITER_N!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with invalid iteration order "
+ "H5_ITER_N!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_iter_order);
}
@@ -2114,8 +2112,8 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid group info "
- "pointer!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with an invalid group info "
+ "pointer!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_grp_info_pointer);
}
@@ -2136,7 +2134,7 @@ test_get_group_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved info of group using H5Gget_info_by_idx with an invalid LAPL!\n");
+ printf(" retrieved info of group using H5Gget_info_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Gget_info_by_idx_invalid_lapl);
}
@@ -2181,34 +2179,34 @@ test_flush_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_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or flush refresh aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or flush refresh 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, GROUP_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, GROUP_FLUSH_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", GROUP_FLUSH_GNAME);
+ printf(" couldn't create group '%s'\n", GROUP_FLUSH_GNAME);
goto error;
}
/* Flush the group */
if (H5Gflush(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't flush the group '%s'\n", GROUP_FLUSH_GNAME);
+ printf(" couldn't flush the group '%s'\n", GROUP_FLUSH_GNAME);
goto error;
}
@@ -2249,7 +2247,7 @@ test_flush_group_invalid_params(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for group flush aren't supported with this connector\n");
+ printf(" API functions for group flush aren't supported with this connector\n");
return 0;
}
@@ -2261,7 +2259,7 @@ test_flush_group_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" flushed group with invalid ID!\n");
+ printf(" flushed group with invalid ID!\n");
goto error;
}
@@ -2289,34 +2287,34 @@ test_refresh_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_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or flush refresh aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or flush refresh 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, GROUP_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, GROUP_REFRESH_GNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", GROUP_REFRESH_GNAME);
+ printf(" couldn't create group '%s'\n", GROUP_REFRESH_GNAME);
goto error;
}
/* Refresh the group */
if (H5Grefresh(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't refresh the group '%s'\n", GROUP_REFRESH_GNAME);
+ printf(" couldn't refresh the group '%s'\n", GROUP_REFRESH_GNAME);
goto error;
}
@@ -2357,7 +2355,7 @@ test_refresh_group_invalid_params(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for group refresh aren't supported with this connector\n");
+ printf(" API functions for group refresh aren't supported with this connector\n");
return 0;
}
@@ -2369,7 +2367,7 @@ test_refresh_group_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" refreshed group with invalid ID!\n");
+ printf(" refreshed group with invalid ID!\n");
goto error;
}
@@ -2387,17 +2385,17 @@ H5_api_group_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Group Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Group Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(group_tests); i++) {
nerrors += (*group_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}
diff --git a/test/API/H5_api_link_test.c b/test/API/H5_api_link_test.c
index 65a3277..3abd602 100644
--- a/test/API/H5_api_link_test.c
+++ b/test/API/H5_api_link_test.c
@@ -185,46 +185,46 @@ test_create_hard_link(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or hard link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, HARD_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
goto error;
}
if (H5Lcreate_hard(file_id, "/", group_id, HARD_LINK_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", HARD_LINK_TEST_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", HARD_LINK_TEST_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, HARD_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", HARD_LINK_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", HARD_LINK_TEST_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
@@ -272,33 +272,33 @@ test_create_hard_link_long_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or hard link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, HARD_LINK_TEST_GROUP_LONG_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
goto error;
}
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;
}
@@ -307,7 +307,7 @@ test_create_hard_link_long_name(void)
name_len = 99;
/* Construct very long file name */
- if ((objname = (char *)HDmalloc((size_t)(name_len + 1))) == NULL)
+ if ((objname = (char *)malloc((size_t)(name_len + 1))) == NULL)
TEST_ERROR;
for (u = 0; u < name_len; u++)
@@ -316,20 +316,20 @@ test_create_hard_link_long_name(void)
if (H5Lcreate_hard(file_id, "/", group_id, objname, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link with a long name\n");
+ printf(" couldn't create hard link with a long name\n");
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, objname, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if the link with a long name exists\n");
+ printf(" couldn't determine if the link with a long name exists\n");
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
@@ -342,7 +342,7 @@ test_create_hard_link_long_name(void)
/* Release memory */
if (objname)
- HDfree(objname);
+ free(objname);
PASSED();
@@ -358,7 +358,7 @@ error:
H5E_END_TRY;
if (objname)
- HDfree(objname);
+ free(objname);
return 1;
}
@@ -382,34 +382,34 @@ test_create_hard_link_many(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or hard link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, HARD_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id2 = H5Gcreate2(group_id, HARD_LINK_TEST_GROUP_MANY_FINAL_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
+ printf(" couldn't create container sub-group '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
goto error;
}
@@ -460,13 +460,13 @@ test_create_hard_link_many(void)
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, "hard21", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link 'hard21' exists\n");
+ printf(" couldn't determine if link 'hard21' exists\n");
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 'hard21' did not exist\n");
+ printf(" link 'hard21' did not exist\n");
goto error;
}
@@ -482,39 +482,39 @@ test_create_hard_link_many(void)
/* Reopen the file and group and verify the hard link */
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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gopen2(container_group, HARD_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container sub-group '%s'\n", HARD_LINK_TEST_GROUP_NAME);
goto error;
}
/* Open the object through last hard link */
if ((group_id2 = H5Gopen2(group_id, "hard21", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open the group '%s' with the last hard link 'hard21'\n",
- HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
+ printf(" couldn't open the group '%s' with the last hard link 'hard21'\n",
+ HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
goto error;
}
/* Check name */
if (H5Iget_name(group_id2, objname, (size_t)HARD_LINK_TEST_GROUP_MANY_NAME_BUF_SIZE) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the name of the object '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
+ printf(" couldn't get the name of the object '%s'\n", HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
goto error;
}
if (HDstrcmp(objname, "/" LINK_TEST_GROUP_NAME "/" HARD_LINK_TEST_GROUP_MANY_NAME "/hard21")) {
H5_FAILED();
- HDprintf(" wrong name of the object '%s'\n", objname);
+ printf(" wrong name of the object '%s'\n", objname);
goto error;
}
@@ -561,8 +561,8 @@ test_create_hard_link_same_loc(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or hard link aren't supported with this "
+ "connector\n");
return 0;
}
@@ -570,20 +570,20 @@ test_create_hard_link_same_loc(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, H5L_SAME_LOC_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", H5L_SAME_LOC_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", H5L_SAME_LOC_TEST_GROUP_NAME);
goto error;
}
@@ -599,20 +599,20 @@ test_create_hard_link_same_loc(void)
if (H5Lcreate_hard(H5L_SAME_LOC, ".", group_id, H5L_SAME_LOC_TEST_LINK_NAME1, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME1);
+ printf(" couldn't create first link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME1);
PART_ERROR(H5L_SAME_LOC_first_param);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, H5L_SAME_LOC_TEST_LINK_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5L_SAME_LOC_first_param);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
PART_ERROR(H5L_SAME_LOC_first_param);
}
@@ -627,20 +627,20 @@ test_create_hard_link_same_loc(void)
if (H5Lcreate_hard(group_id, ".", H5L_SAME_LOC, H5L_SAME_LOC_TEST_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME2);
+ printf(" couldn't create second link '%s'\n", H5L_SAME_LOC_TEST_LINK_NAME2);
PART_ERROR(H5L_SAME_LOC_third_param);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, H5L_SAME_LOC_TEST_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", H5L_SAME_LOC_TEST_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", H5L_SAME_LOC_TEST_LINK_NAME2);
PART_ERROR(H5L_SAME_LOC_third_param);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
PART_ERROR(H5L_SAME_LOC_third_param);
}
@@ -695,8 +695,8 @@ test_create_hard_link_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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or hard link aren't supported with this "
+ "connector\n");
return 0;
}
@@ -704,20 +704,20 @@ test_create_hard_link_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, HARD_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", HARD_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", HARD_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -738,7 +738,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with an invalid cur_loc_id!\n");
+ printf(" created hard link with an invalid cur_loc_id!\n");
PART_ERROR(H5Lcreate_hard_invalid_cur_loc_id);
}
@@ -759,7 +759,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with a NULL cur_name!\n");
+ printf(" created hard link with a NULL cur_name!\n");
PART_ERROR(H5Lcreate_hard_invalid_cur_name);
}
@@ -772,7 +772,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with an invalid cur_name of ''!\n");
+ printf(" created hard link with an invalid cur_name of ''!\n");
PART_ERROR(H5Lcreate_hard_invalid_cur_name);
}
@@ -793,7 +793,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with an invalid new_loc_id!\n");
+ printf(" created hard link with an invalid new_loc_id!\n");
PART_ERROR(H5Lcreate_hard_invalid_new_loc_id);
}
@@ -813,7 +813,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with a NULL new_name!\n");
+ printf(" created hard link with a NULL new_name!\n");
PART_ERROR(H5Lcreate_hard_invalid_new_name);
}
@@ -825,7 +825,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with an invalid new_name of ''!\n");
+ printf(" created hard link with an invalid new_name of ''!\n");
PART_ERROR(H5Lcreate_hard_invalid_new_name);
}
@@ -846,7 +846,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with an invalid LCPL!\n");
+ printf(" created hard link with an invalid LCPL!\n");
PART_ERROR(H5Lcreate_hard_invalid_lcpl);
}
@@ -867,7 +867,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with an invalid LAPL!\n");
+ printf(" created hard link with an invalid LAPL!\n");
PART_ERROR(H5Lcreate_hard_invalid_lapl);
}
@@ -888,7 +888,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link with the invalid same location!\n");
+ printf(" created hard link with the invalid same location!\n");
PART_ERROR(H5Lcreate_hard_invalid_same_loc);
}
@@ -905,7 +905,7 @@ test_create_hard_link_invalid_params(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lcreate_hard_across_files);
}
@@ -918,7 +918,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link across files!\n");
+ printf(" created hard link across files!\n");
PART_ERROR(H5Lcreate_hard_across_files);
}
@@ -931,7 +931,7 @@ test_create_hard_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created hard link across files!\n");
+ printf(" created hard link across files!\n");
PART_ERROR(H5Lcreate_hard_across_files);
}
@@ -947,14 +947,14 @@ test_create_hard_link_invalid_params(void)
if ((link_exists = H5Lexists(group_id, HARD_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n",
- HARD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n",
+ HARD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_hard_invalid_existence);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" link existed!\n");
+ printf(" link existed!\n");
PART_ERROR(H5Lcreate_hard_invalid_existence);
}
@@ -1010,36 +1010,36 @@ test_create_soft_link_existing_relative(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or soft link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, SOFT_LINK_EXISTING_RELATIVE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- SOFT_LINK_EXISTING_RELATIVE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ SOFT_LINK_EXISTING_RELATIVE_TEST_SUBGROUP_NAME);
goto error;
}
if ((object_id = H5Gcreate2(group_id, SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create object '%s' for soft link's target\n",
- SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME);
+ printf(" failed to create object '%s' for soft link's target\n",
+ SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME);
goto error;
}
@@ -1049,27 +1049,27 @@ test_create_soft_link_existing_relative(void)
if (H5Lcreate_soft(SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME, group_id,
SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
if ((object_id = H5Gopen2(group_id, SOFT_LINK_EXISTING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open object '%s' through the soft link\n",
- SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME);
+ printf(" couldn't open object '%s' through the soft link\n",
+ SOFT_LINK_EXISTING_RELATIVE_TEST_OBJECT_NAME);
goto error;
}
@@ -1116,55 +1116,55 @@ test_create_soft_link_existing_absolute(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or soft link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, SOFT_LINK_EXISTING_ABSOLUTE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- SOFT_LINK_EXISTING_ABSOLUTE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ SOFT_LINK_EXISTING_ABSOLUTE_TEST_SUBGROUP_NAME);
goto error;
}
if (H5Lcreate_soft("/", group_id, SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
if ((root_id = H5Gopen2(group_id, SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open object pointed to by soft link '%s'\n",
- SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME);
+ printf(" couldn't open object pointed to by soft link '%s'\n",
+ SOFT_LINK_EXISTING_ABSOLUTE_TEST_LINK_NAME);
goto error;
}
@@ -1213,48 +1213,48 @@ test_create_soft_link_dangling_relative(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or soft link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, SOFT_LINK_DANGLING_RELATIVE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- SOFT_LINK_DANGLING_RELATIVE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ SOFT_LINK_DANGLING_RELATIVE_TEST_SUBGROUP_NAME);
goto error;
}
if (H5Lcreate_soft(SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME, group_id,
SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
@@ -1266,7 +1266,7 @@ test_create_soft_link_dangling_relative(void)
if (object_id >= 0) {
H5_FAILED();
- HDprintf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
+ printf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
H5Gclose(object_id);
goto error;
}
@@ -1274,8 +1274,8 @@ test_create_soft_link_dangling_relative(void)
if ((object_id = H5Gcreate2(group_id, SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create object '%s' for soft link's target\n",
- SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME);
+ printf(" failed to create object '%s' for soft link's target\n",
+ SOFT_LINK_DANGLING_RELATIVE_TEST_OBJECT_NAME);
goto error;
}
@@ -1284,8 +1284,8 @@ test_create_soft_link_dangling_relative(void)
if ((object_id = H5Gopen2(group_id, SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open object pointed to by soft link '%s'\n",
- SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
+ printf(" failed to open object pointed to by soft link '%s'\n",
+ SOFT_LINK_DANGLING_RELATIVE_TEST_LINK_NAME);
goto error;
}
@@ -1334,28 +1334,28 @@ test_create_soft_link_dangling_absolute(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or soft link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, SOFT_LINK_DANGLING_ABSOLUTE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- SOFT_LINK_DANGLING_ABSOLUTE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ SOFT_LINK_DANGLING_ABSOLUTE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1363,20 +1363,20 @@ test_create_soft_link_dangling_absolute(void)
"/" SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME,
group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
@@ -1388,7 +1388,7 @@ test_create_soft_link_dangling_absolute(void)
if (object_id >= 0) {
H5_FAILED();
- HDprintf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
+ printf(" opened target of dangling link '%s'!\n", SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
H5Gclose(object_id);
goto error;
}
@@ -1396,8 +1396,8 @@ test_create_soft_link_dangling_absolute(void)
if ((object_id = H5Gcreate2(group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create object '%s' for soft link's target\n",
- SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME);
+ printf(" failed to create object '%s' for soft link's target\n",
+ SOFT_LINK_DANGLING_ABSOLUTE_TEST_OBJECT_NAME);
goto error;
}
@@ -1406,8 +1406,8 @@ test_create_soft_link_dangling_absolute(void)
if ((object_id = H5Gopen2(group_id, SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open object pointed to by soft link '%s'\n",
- SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
+ printf(" failed to open object pointed to by soft link '%s'\n",
+ SOFT_LINK_DANGLING_ABSOLUTE_TEST_LINK_NAME);
goto error;
}
@@ -1458,33 +1458,33 @@ test_create_soft_link_long_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or soft link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, SOFT_LINK_TEST_GROUP_LONG_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_LONG_NAME);
+ printf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_LONG_NAME);
goto error;
}
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;
}
@@ -1493,7 +1493,7 @@ test_create_soft_link_long_name(void)
name_len = 99;
/* Construct very long file name */
- if ((objname = (char *)HDmalloc((size_t)(name_len + 1))) == NULL)
+ if ((objname = (char *)malloc((size_t)(name_len + 1))) == NULL)
TEST_ERROR;
for (u = 0; u < name_len; u++)
@@ -1502,20 +1502,20 @@ test_create_soft_link_long_name(void)
if (H5Lcreate_soft(SOFT_LINK_TEST_LONG_OBJECT_NAME, group_id, objname, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link with a long name\n");
+ printf(" couldn't create soft link with a long name\n");
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, objname, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if the link with a long name exists\n");
+ printf(" couldn't determine if the link with a long name exists\n");
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
@@ -1528,7 +1528,7 @@ test_create_soft_link_long_name(void)
/* Release memory */
if (objname)
- HDfree(objname);
+ free(objname);
PASSED();
@@ -1544,7 +1544,7 @@ error:
H5E_END_TRY;
if (objname)
- HDfree(objname);
+ free(objname);
return 1;
}
@@ -1569,27 +1569,27 @@ test_create_soft_link_many(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or soft link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or soft link 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, SOFT_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
+ printf(" couldn't create container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
goto error;
}
@@ -1631,13 +1631,13 @@ test_create_soft_link_many(void)
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, "soft16", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link 'soft16' exists\n");
+ printf(" couldn't determine if link 'soft16' exists\n");
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 'soft16' did not exist\n");
+ printf(" link 'soft16' did not exist\n");
goto error;
}
@@ -1651,19 +1651,19 @@ test_create_soft_link_many(void)
/* Reopen the file and group and verify the hard link */
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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gopen2(container_group, SOFT_LINK_TEST_GROUP_MANY_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
+ printf(" couldn't open container sub-group '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
goto error;
}
@@ -1679,7 +1679,7 @@ test_create_soft_link_many(void)
if (object_id >= 0) {
H5_FAILED();
- HDprintf(" opened target of dangling soft link '%s'!\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
+ printf(" opened target of dangling soft link '%s'!\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
H5Gclose(object_id);
goto error;
}
@@ -1687,7 +1687,7 @@ test_create_soft_link_many(void)
if ((object_id = H5Gcreate2(group_id, SOFT_LINK_TEST_GROUP_MANY_FINAL_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create object '%s' for soft link's target\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
+ printf(" failed to create object '%s' for soft link's target\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
goto error;
}
@@ -1700,19 +1700,19 @@ test_create_soft_link_many(void)
*/
if ((object_id = H5Gopen2(group_id, "soft16", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open object pointed to by soft link '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
+ printf(" failed to open object pointed to by soft link '%s'\n", SOFT_LINK_TEST_GROUP_MANY_NAME);
goto error;
}
/* Check name */
if (H5Iget_name(object_id, objname, (size_t)SOFT_LINK_TEST_GROUP_MANY_NAME_BUF_SIZE) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the name of the object 'soft16'\n");
+ printf(" couldn't get the name of the object 'soft16'\n");
goto error;
}
if (HDstrcmp(objname, "/" LINK_TEST_GROUP_NAME "/" SOFT_LINK_TEST_GROUP_MANY_NAME "/soft16")) {
H5_FAILED();
- HDprintf(" wrong name of the object '%s'\n", objname);
+ printf(" wrong name of the object '%s'\n", objname);
goto error;
}
@@ -1760,7 +1760,7 @@ test_create_soft_link_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_SOFT_LINKS)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or soft link aren't supported with this connector\n");
return 0;
}
@@ -1769,20 +1769,20 @@ test_create_soft_link_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, SOFT_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", SOFT_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", SOFT_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -1803,8 +1803,8 @@ test_create_soft_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created soft link '%s' with an invalid link target!\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created soft link '%s' with an invalid link target!\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_link_target);
}
@@ -1817,8 +1817,8 @@ test_create_soft_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created soft link '%s' with an invalid link target!\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created soft link '%s' with an invalid link target!\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_link_target);
}
@@ -1839,8 +1839,8 @@ test_create_soft_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created soft link '%s' with an invalid link_loc_id!\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created soft link '%s' with an invalid link_loc_id!\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_link_loc_id);
}
@@ -1860,8 +1860,8 @@ test_create_soft_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created soft link '%s' with a NULL link name!\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created soft link '%s' with a NULL link name!\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_link_name);
}
@@ -1873,8 +1873,8 @@ test_create_soft_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created soft link '%s' with an invalid link name of ''!\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created soft link '%s' with an invalid link name of ''!\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_link_name);
}
@@ -1895,8 +1895,8 @@ test_create_soft_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created soft link '%s' with an invalid LCPL!\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created soft link '%s' with an invalid LCPL!\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_lcpl);
}
@@ -1917,8 +1917,8 @@ test_create_soft_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created soft link '%s' with an invalid LAPL!\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created soft link '%s' with an invalid LAPL!\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_lapl);
}
@@ -1934,14 +1934,14 @@ test_create_soft_link_invalid_params(void)
if ((link_exists = H5Lexists(group_id, SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n",
- SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n",
+ SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_existence);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" link '%s' existed!\n", SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" link '%s' existed!\n", SOFT_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_soft_invalid_existence);
}
@@ -1995,8 +1995,8 @@ test_create_external_link(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or external link aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, link, or external link aren't supported "
+ "with this connector\n");
return 0;
}
@@ -2004,7 +2004,7 @@ test_create_external_link(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -2013,47 +2013,47 @@ test_create_external_link(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_SUBGROUP_NAME);
goto error;
}
if (H5Lcreate_external(ext_link_filename, "/", group_id, EXTERNAL_LINK_TEST_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", EXTERNAL_LINK_TEST_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", EXTERNAL_LINK_TEST_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, EXTERNAL_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
if ((root_id = H5Gopen2(group_id, EXTERNAL_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open root group of other file using external link '%s'\n",
- EXTERNAL_LINK_TEST_LINK_NAME);
+ printf(" couldn't open root group of other file using external link '%s'\n",
+ EXTERNAL_LINK_TEST_LINK_NAME);
goto error;
}
@@ -2103,8 +2103,8 @@ test_create_external_link_dangling(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or external link aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, link, or external link aren't supported "
+ "with this connector\n");
return 0;
}
@@ -2112,46 +2112,46 @@ test_create_external_link_dangling(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_TEST_DANGLING_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_DANGLING_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_DANGLING_SUBGROUP_NAME);
goto error;
}
if (H5Lcreate_external(ext_link_filename, "/" EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME, group_id,
EXTERNAL_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dangling external link '%s'\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
+ printf(" couldn't create dangling external link '%s'\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, EXTERNAL_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
@@ -2163,8 +2163,8 @@ test_create_external_link_dangling(void)
if (object_id >= 0) {
H5_FAILED();
- HDprintf(" opened non-existent object in other file using dangling external link '%s'!\n",
- EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
+ printf(" opened non-existent object in other file using dangling external link '%s'!\n",
+ EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
H5Gclose(object_id);
goto error;
}
@@ -2172,8 +2172,8 @@ test_create_external_link_dangling(void)
if ((object_id = H5Gcreate2(ext_file_id, EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create object '%s' for external link's target\n",
- EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME);
+ printf(" failed to create object '%s' for external link's target\n",
+ EXTERNAL_LINK_TEST_DANGLING_OBJECT_NAME);
goto error;
}
@@ -2182,8 +2182,8 @@ test_create_external_link_dangling(void)
if ((object_id = H5Gopen2(group_id, EXTERNAL_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open object pointed to by external link '%s'\n",
- EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
+ printf(" failed to open object pointed to by external link '%s'\n",
+ EXTERNAL_LINK_TEST_DANGLING_LINK_NAME);
goto error;
}
@@ -2238,8 +2238,8 @@ test_create_external_link_multi(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_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or external link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or external link aren't supported with this "
+ "connector\n");
return 0;
}
@@ -2254,52 +2254,51 @@ test_create_external_link_multi(void)
if ((file_id = H5Fcreate(ext_link_filename1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n",
- ext_link_filename1);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename1);
PART_ERROR(H5Lcreate_external_first_file);
}
/* Create object down a path */
if ((group_id = H5Gcreate2(file_id, "A", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if ((group_id = H5Gcreate2(file_id, "A/B", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if ((group_id = H5Gcreate2(file_id, "A/B/C", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
/* Close file */
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
@@ -2316,27 +2315,26 @@ test_create_external_link_multi(void)
if ((file_id = H5Fcreate(ext_link_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n",
- ext_link_filename2);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename2);
PART_ERROR(H5Lcreate_external_second_file);
}
/* Create object down a path */
if ((group_id = H5Gcreate2(file_id, "D", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_second_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_second_file);
}
if ((group_id = H5Gcreate2(file_id, "D/E", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_second_file);
}
@@ -2344,20 +2342,20 @@ test_create_external_link_multi(void)
if (H5Lcreate_external(ext_link_filename1, "/A/B/C", group_id, "F", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link 'F'\n");
+ printf(" couldn't create external link 'F'\n");
PART_ERROR(H5Lcreate_external_second_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_second_file);
}
/* Close file */
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a file\n");
+ printf(" couldn't close a file\n");
PART_ERROR(H5Lcreate_external_second_file);
}
@@ -2374,27 +2372,26 @@ test_create_external_link_multi(void)
if ((file_id = H5Fcreate(ext_link_filename3, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n",
- ext_link_filename3);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename3);
PART_ERROR(H5Lcreate_external_third_file);
}
/* Create object down a path */
if ((group_id = H5Gcreate2(file_id, "G", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_third_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_third_file);
}
if ((group_id = H5Gcreate2(file_id, "G/H", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_third_file);
}
@@ -2402,20 +2399,20 @@ test_create_external_link_multi(void)
if (H5Lcreate_external(ext_link_filename2, "/D/E/F", group_id, "I", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link 'I'\n");
+ printf(" couldn't create external link 'I'\n");
PART_ERROR(H5Lcreate_external_third_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_third_file);
}
/* Close file */
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a file\n");
+ printf(" couldn't close a file\n");
PART_ERROR(H5Lcreate_external_third_file);
}
@@ -2429,84 +2426,84 @@ test_create_external_link_multi(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);
PART_ERROR(H5Lcreate_external_final_file);
}
if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
PART_ERROR(H5Lcreate_external_final_file);
}
if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_TEST_MULTI_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_MULTI_NAME);
+ printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_TEST_MULTI_NAME);
PART_ERROR(H5Lcreate_external_final_file);
}
if (H5Lcreate_external(ext_link_filename3, "/G/H/I", group_id, "ext_link", H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link 'ext_link'\n");
+ printf(" couldn't create external link 'ext_link'\n");
PART_ERROR(H5Lcreate_external_final_file);
}
if ((group_id2 = H5Gopen2(group_id, "ext_link", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open the group that is the external link\n");
+ printf(" couldn't open the group that is the external link\n");
PART_ERROR(H5Lcreate_external_final_file);
}
/* Check name */
if (H5Iget_name(group_id2, objname, (size_t)EXTERNAL_LINK_TEST_MULTI_NAME_BUF_SIZE) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the name of the object '%s'\n",
- HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
+ printf(" couldn't get the name of the object '%s'\n",
+ HARD_LINK_TEST_GROUP_MANY_FINAL_NAME);
PART_ERROR(H5Lcreate_external_final_file);
}
if (HDstrcmp(objname, "/A/B/C")) {
H5_FAILED();
- HDprintf(" wrong name of the object '%s'\n", objname);
+ printf(" wrong name of the object '%s'\n", objname);
PART_ERROR(H5Lcreate_external_final_file);
}
/* Create an object in the external file */
if ((group_id3 = H5Gcreate2(group_id2, "new_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group 'new_group' in the external file\n");
+ printf(" couldn't create a group 'new_group' in the external file\n");
PART_ERROR(H5Lcreate_external_final_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_final_file);
}
if (H5Gclose(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_final_file);
}
if (H5Gclose(group_id3) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_final_file);
}
if (H5Gclose(container_group) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_final_file);
}
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a file\n");
+ printf(" couldn't close a file\n");
PART_ERROR(H5Lcreate_external_final_file);
}
@@ -2520,38 +2517,38 @@ test_create_external_link_multi(void)
if ((file_id = H5Fopen(ext_link_filename1, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", ext_link_filename1);
+ printf(" couldn't open file '%s'\n", ext_link_filename1);
PART_ERROR(H5Lcreate_external_object_created);
}
if ((group_id = H5Gopen2(file_id, "/A/B/C/new_group", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open a group 'new_group' in the external file\n");
+ printf(" couldn't open a group 'new_group' in the external file\n");
PART_ERROR(H5Lcreate_external_object_created);
}
/* Check name */
if (H5Iget_name(group_id, objname, (size_t)EXTERNAL_LINK_TEST_MULTI_NAME_BUF_SIZE) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the name of the object '/A/B/C/new_group'\n");
+ printf(" couldn't get the name of the object '/A/B/C/new_group'\n");
PART_ERROR(H5Lcreate_external_object_created);
}
if (HDstrcmp(objname, "/A/B/C/new_group")) {
H5_FAILED();
- HDprintf(" wrong name of the object '%s'\n", objname);
+ printf(" wrong name of the object '%s'\n", objname);
PART_ERROR(H5Lcreate_external_object_created);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close the group\n");
+ printf(" couldn't close the group\n");
PART_ERROR(H5Lcreate_external_object_created);
}
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close the file\n");
+ printf(" couldn't close the file\n");
PART_ERROR(H5Lcreate_external_object_created);
}
@@ -2605,8 +2602,8 @@ test_create_external_link_ping_pong(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_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or external link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or external link aren't supported with this "
+ "connector\n");
return 0;
}
@@ -2622,8 +2619,7 @@ test_create_external_link_ping_pong(void)
/* Create the first file */
if ((file_id = H5Fcreate(ext_link_filename1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n",
- ext_link_filename1);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename1);
PART_ERROR(H5Lcreate_external_first_file);
}
@@ -2631,41 +2627,41 @@ test_create_external_link_ping_pong(void)
if (H5Lcreate_external(ext_link_filename2, "/link2", file_id, "link1", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link\n");
+ printf(" couldn't create external link\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if (H5Lcreate_external(ext_link_filename2, "/link4", file_id, "link3", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link\n");
+ printf(" couldn't create external link\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if (H5Lcreate_external(ext_link_filename2, "/link6", file_id, "link5", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link\n");
+ printf(" couldn't create external link\n");
PART_ERROR(H5Lcreate_external_first_file);
}
/* Create final object */
if ((group_id = H5Gcreate2(file_id, "final", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a group\n");
+ printf(" couldn't create a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
/* Close file */
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_first_file);
}
@@ -2680,7 +2676,7 @@ test_create_external_link_ping_pong(void)
/* Create the second file */
if ((file_id = H5Fcreate(ext_link_filename2, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link\n", ext_link_filename2);
+ printf(" couldn't create file '%s' for external link\n", ext_link_filename2);
PART_ERROR(H5Lcreate_external_second_file);
}
@@ -2688,28 +2684,28 @@ test_create_external_link_ping_pong(void)
if (H5Lcreate_external(ext_link_filename1, "/link3", file_id, "link2", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link\n");
+ printf(" couldn't create external link\n");
PART_ERROR(H5Lcreate_external_second_file);
}
if (H5Lcreate_external(ext_link_filename1, "/link5", file_id, "link4", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link\n");
+ printf(" couldn't create external link\n");
PART_ERROR(H5Lcreate_external_second_file);
}
if (H5Lcreate_external(ext_link_filename1, "/final", file_id, "link6", H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link\n");
+ printf(" couldn't create external link\n");
PART_ERROR(H5Lcreate_external_second_file);
}
/* Close file */
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close the file\n");
+ printf(" couldn't close the file\n");
PART_ERROR(H5Lcreate_external_second_file);
}
@@ -2723,53 +2719,53 @@ test_create_external_link_ping_pong(void)
if ((file_id = H5Fopen(ext_link_filename1, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", ext_link_filename1);
+ printf(" couldn't open file '%s'\n", ext_link_filename1);
PART_ERROR(H5Lcreate_external_verify);
}
/* Open object through external link */
if ((group_id = H5Gopen2(file_id, "link1", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open the group that is the external link 'link1'\n");
+ printf(" couldn't open the group that is the external link 'link1'\n");
PART_ERROR(H5Lcreate_external_verify);
}
/* Check the name of the object being pointed to */
if (H5Iget_name(group_id, objname, (size_t)EXTERNAL_LINK_TEST_PING_PONG_NAME_BUF_SIZE) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the name of the object\n");
+ printf(" couldn't get the name of the object\n");
PART_ERROR(H5Lcreate_external_verify);
}
if (HDstrcmp(objname, "/final")) {
H5_FAILED();
- HDprintf(" wrong name of the object '%s'\n", objname);
+ printf(" wrong name of the object '%s'\n", objname);
PART_ERROR(H5Lcreate_external_verify);
}
/* Create an object in the external file */
if ((group_id2 = H5Gcreate2(group_id, "new_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a new group 'new_group'\n");
+ printf(" couldn't create a new group 'new_group'\n");
PART_ERROR(H5Lcreate_external_verify);
}
if (H5Gclose(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_verify);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_verify);
}
/* Close file */
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close the file\n");
+ printf(" couldn't close the file\n");
PART_ERROR(H5Lcreate_external_verify);
}
@@ -2783,40 +2779,40 @@ test_create_external_link_ping_pong(void)
if ((file_id = H5Fopen(ext_link_filename1, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", ext_link_filename1);
+ printf(" couldn't open file '%s'\n", ext_link_filename1);
PART_ERROR(H5Lcreate_external_verify_again);
}
/* Open object through external link */
if ((group_id = H5Gopen2(file_id, "/final/new_group", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open the group that is the external link\n");
+ printf(" couldn't open the group that is the external link\n");
PART_ERROR(H5Lcreate_external_verify_again);
}
/* Check the name of the object being pointed to */
if (H5Iget_name(group_id, objname, (size_t)EXTERNAL_LINK_TEST_PING_PONG_NAME_BUF_SIZE) < 0) {
H5_FAILED();
- HDprintf(" couldn't get the name of the object\n");
+ printf(" couldn't get the name of the object\n");
PART_ERROR(H5Lcreate_external_verify_again);
}
if (HDstrcmp(objname, "/final/new_group")) {
H5_FAILED();
- HDprintf(" wrong name of the object '%s'\n", objname);
+ printf(" wrong name of the object '%s'\n", objname);
PART_ERROR(H5Lcreate_external_verify_again);
}
if (H5Gclose(group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close a group\n");
+ printf(" couldn't close a group\n");
PART_ERROR(H5Lcreate_external_verify_again);
}
/* Close file */
if (H5Fclose(file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close the file\n");
+ printf(" couldn't close the file\n");
PART_ERROR(H5Lcreate_external_verify_again);
}
@@ -2859,8 +2855,8 @@ test_create_external_link_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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or external link aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, link, or external link aren't supported "
+ "with this connector\n");
return 0;
}
@@ -2871,7 +2867,7 @@ test_create_external_link_invalid_params(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -2880,21 +2876,20 @@ test_create_external_link_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, EXTERNAL_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", EXTERNAL_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -2915,8 +2910,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using a NULL file name!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using a NULL file name!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_file_name);
}
@@ -2929,8 +2924,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using an invalid file name of ''!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using an invalid file name of ''!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_file_name);
}
@@ -2952,8 +2947,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using a NULL external object name!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using a NULL external object name!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_ext_obj_name);
}
@@ -2967,8 +2962,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using an invalid external object name of ''!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using an invalid external object name of ''!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_ext_obj_name);
}
@@ -2990,8 +2985,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using an invalid link_loc_id!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using an invalid link_loc_id!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_link_loc_id);
}
@@ -3012,8 +3007,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using a NULL link_loc_id!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using a NULL link_loc_id!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_link_name);
}
@@ -3025,8 +3020,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using an invalid link name of ''!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using an invalid link name of ''!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_link_name);
}
@@ -3048,8 +3043,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using an invalid LCPL!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using an invalid LCPL!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_lcpl);
}
@@ -3071,8 +3066,8 @@ test_create_external_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created external link '%s' using an invalid LAPL!\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created external link '%s' using an invalid LAPL!\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_lapl);
}
@@ -3088,14 +3083,14 @@ test_create_external_link_invalid_params(void)
if ((link_exists =
H5Lexists(group_id, EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n",
- EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n",
+ EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_existence);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" link '%s' existed!\n", EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" link '%s' existed!\n", EXTERNAL_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_external_invalid_existence);
}
@@ -3148,7 +3143,7 @@ test_create_user_defined_link(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_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, link, or user-defined link aren't supported with this "
"connector\n");
return 0;
@@ -3156,20 +3151,20 @@ test_create_user_defined_link(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, UD_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", UD_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", UD_LINK_TEST_GROUP_NAME);
goto error;
}
@@ -3179,20 +3174,20 @@ test_create_user_defined_link(void)
if (H5Lcreate_ud(group_id, UD_LINK_TEST_LINK_NAME, H5L_TYPE_EXTERNAL, udata, (size_t)udata_size,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create user-defined link '%s'\n", UD_LINK_TEST_LINK_NAME);
+ printf(" couldn't create user-defined link '%s'\n", UD_LINK_TEST_LINK_NAME);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, UD_LINK_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", UD_LINK_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", UD_LINK_TEST_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' didn't exist!\n", UD_LINK_TEST_LINK_NAME);
+ printf(" link '%s' didn't exist!\n", UD_LINK_TEST_LINK_NAME);
goto error;
}
@@ -3239,8 +3234,8 @@ test_create_user_defined_link_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_UD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or user-defined link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or user-defined link aren't supported with this "
+ "connector\n");
return 0;
}
@@ -3248,20 +3243,20 @@ test_create_user_defined_link_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, UD_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", UD_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", UD_LINK_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -3286,8 +3281,8 @@ test_create_user_defined_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created user-defined link '%s' with an invalid link location ID!\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created user-defined link '%s' with an invalid link location ID!\n",
+ UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_link_loc_id);
}
@@ -3308,8 +3303,8 @@ test_create_user_defined_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created user-defined link '%s' with a NULL link name!\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created user-defined link '%s' with a NULL link name!\n",
+ UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_link_name);
}
@@ -3322,8 +3317,8 @@ test_create_user_defined_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created user-defined link '%s' with an invalid link name of ''!\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created user-defined link '%s' with an invalid link name of ''!\n",
+ UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_link_name);
}
@@ -3344,8 +3339,8 @@ test_create_user_defined_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created user-defined link '%s' with an invalid link type!\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created user-defined link '%s' with an invalid link type!\n",
+ UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_link_type);
}
@@ -3366,8 +3361,8 @@ test_create_user_defined_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created user-defined link '%s' with an invalid udata pointer!\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created user-defined link '%s' with an invalid udata pointer!\n",
+ UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_udata_pointer);
}
@@ -3388,8 +3383,8 @@ test_create_user_defined_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created user-defined link '%s' with an invalid LCPL!\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created user-defined link '%s' with an invalid LCPL!\n",
+ UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_lcpl);
}
@@ -3410,8 +3405,8 @@ test_create_user_defined_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" created user-defined link '%s' with an invalid LAPL!\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" created user-defined link '%s' with an invalid LAPL!\n",
+ UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_lapl);
}
@@ -3426,14 +3421,13 @@ test_create_user_defined_link_invalid_params(void)
/* Verify the link hasn't been created */
if ((link_exists = H5Lexists(group_id, UD_LINK_INVALID_PARAMS_TEST_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n",
- UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_existence);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" link '%s' existed!\n", UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
+ printf(" link '%s' existed!\n", UD_LINK_INVALID_PARAMS_TEST_LINK_NAME);
PART_ERROR(H5Lcreate_ud_invalid_existence);
}
@@ -3491,8 +3485,8 @@ test_delete_link(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, hard link, soft link, or external link "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, soft link, or external link "
+ "aren't supported with this connector\n");
return 0;
}
@@ -3500,26 +3494,26 @@ test_delete_link(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -3527,7 +3521,7 @@ test_delete_link(void)
if ((group_id = H5Gcreate2(container_group, LINK_DELETE_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -3542,53 +3536,53 @@ test_delete_link(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Ldelete_hard);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if first hard link '%s' exists\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first hard link did not exist\n");
+ printf(" first hard link did not exist\n");
PART_ERROR(H5Ldelete_hard);
}
if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't delete hard link '%s' using H5Ldelete\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if first hard link '%s' exists\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" first hard link exists!\n");
+ printf(" first hard link exists!\n");
PART_ERROR(H5Ldelete_hard);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Ldelete_hard);
}
@@ -3610,66 +3604,66 @@ test_delete_link(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_NESTED_SUBGROUP_NAME1, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_SUBGROUP_NAME1);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_SUBGROUP_NAME1);
PART_ERROR(H5Ldelete_hard_indirect);
}
if ((nested_grp_id = H5Gcreate2(subgroup_id, LINK_DELETE_TEST_NESTED_GRP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME);
PART_ERROR(H5Ldelete_hard_indirect);
}
if (H5Lcreate_hard(nested_grp_id, ".", nested_grp_id, LINK_DELETE_TEST_HARD_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't create first hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard_indirect);
}
if ((link_exists = H5Lexists(nested_grp_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if first hard link '%s' exists\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard_indirect);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first hard link did not exist\n");
+ printf(" first hard link did not exist\n");
PART_ERROR(H5Ldelete_hard_indirect);
}
if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_NESTED_HARD_LINK_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete\n",
- LINK_DELETE_TEST_NESTED_HARD_LINK_NAME);
+ printf(" couldn't delete hard link '%s' using H5Ldelete\n",
+ LINK_DELETE_TEST_NESTED_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard_indirect);
}
if ((link_exists = H5Lexists(nested_grp_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if first hard link '%s' exists\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_hard_indirect);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" first hard link exists!\n");
+ printf(" first hard link exists!\n");
PART_ERROR(H5Ldelete_hard_indirect);
}
if (H5Gclose(nested_grp_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_NESTED_GRP_NAME);
PART_ERROR(H5Ldelete_hard_indirect);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Ldelete_hard_indirect);
}
@@ -3693,7 +3687,7 @@ test_delete_link(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME);
PART_ERROR(H5Ldelete_soft);
}
@@ -3701,46 +3695,46 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP2_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create first soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_soft);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if first soft link '%s' exists\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_soft);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first soft link did not exist\n");
+ printf(" first soft link did not exist\n");
PART_ERROR(H5Ldelete_soft);
}
if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't delete soft link '%s' using H5Ldelete\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_soft);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if first soft link '%s' exists\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_soft);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" first soft link exists!\n");
+ printf(" first soft link exists!\n");
PART_ERROR(H5Ldelete_soft);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP2_NAME);
PART_ERROR(H5Ldelete_soft);
}
@@ -3764,69 +3758,68 @@ test_delete_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Ldelete_external);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Ldelete_external);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP3_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME);
PART_ERROR(H5Ldelete_external);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first external link '%s'\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't create first external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_external);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if first external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if first external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_external);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first external link did not exist\n");
+ printf(" first external link did not exist\n");
PART_ERROR(H5Ldelete_external);
}
if (H5Ldelete(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't delete external link '%s' using H5Ldelete\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_external);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if first external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if first external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_external);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" first external link exists!\n");
+ printf(" first external link exists!\n");
PART_ERROR(H5Ldelete_external);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP3_NAME);
PART_ERROR(H5Ldelete_external);
}
@@ -3867,14 +3860,14 @@ test_delete_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP5_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
@@ -3882,217 +3875,204 @@ test_delete_link(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP5_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_increasing);
}
@@ -4113,14 +4093,14 @@ test_delete_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP6_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
@@ -4128,217 +4108,204 @@ test_delete_link(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP6_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_crt_order_decreasing);
}
@@ -4360,7 +4327,7 @@ test_delete_link(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP7_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
@@ -4368,217 +4335,204 @@ test_delete_link(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "increasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "increasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "increasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP7_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_increasing);
}
@@ -4600,7 +4554,7 @@ test_delete_link(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP8_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
@@ -4608,217 +4562,204 @@ test_delete_link(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "decreasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "decreasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "decreasing order\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't delete hard link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' exists after deletion!\n", LINK_DELETE_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP8_NAME);
PART_ERROR(H5Ldelete_by_idx_hard_name_order_decreasing);
}
@@ -4839,14 +4780,14 @@ test_delete_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP9_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
@@ -4855,7 +4796,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP9_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
@@ -4863,7 +4804,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP9_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
@@ -4871,203 +4812,190 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP9_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP9_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_increasing);
}
@@ -5088,14 +5016,14 @@ test_delete_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP10_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
@@ -5104,7 +5032,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP10_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
@@ -5112,7 +5040,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP10_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
@@ -5120,203 +5048,190 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP10_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP10_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_crt_order_decreasing);
}
@@ -5338,7 +5253,7 @@ test_delete_link(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP11_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
@@ -5347,7 +5262,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP11_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
@@ -5355,7 +5270,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP11_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
@@ -5363,203 +5278,190 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP11_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "increasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "increasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "increasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP11_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_increasing);
}
@@ -5581,7 +5483,7 @@ test_delete_link(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP12_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
@@ -5590,7 +5492,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP12_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
@@ -5598,7 +5500,7 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP12_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
@@ -5606,203 +5508,190 @@ test_delete_link(void)
"/" LINK_DELETE_TEST_SUBGROUP12_NAME,
subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "decreasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
/* Ensure that the link is gone and others remain */
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "decreasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
- "decreasing order\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't delete soft link '%s' using H5Ldelete_by_idx by alphabetical order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' exists after deletion!\n", LINK_DELETE_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP12_NAME);
PART_ERROR(H5Ldelete_by_idx_soft_name_order_decreasing);
}
@@ -5823,7 +5712,7 @@ test_delete_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ldelete_by_idx_external_crt_order_increasing);
}
@@ -5833,20 +5722,20 @@ test_delete_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP13_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
@@ -5854,21 +5743,21 @@ test_delete_link(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
@@ -5876,54 +5765,54 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
@@ -5931,158 +5820,158 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
- "increasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
+ "increasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP13_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_increasing);
}
@@ -6105,7 +5994,7 @@ test_delete_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ldelete_by_idx_external_crt_order_decreasing);
}
@@ -6115,20 +6004,20 @@ test_delete_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP14_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
@@ -6136,21 +6025,21 @@ test_delete_link(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
@@ -6158,54 +6047,54 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
@@ -6213,158 +6102,158 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
- "decreasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by creation order in "
+ "decreasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP14_NAME);
PART_ERROR(H5Ldelete_by_idx_external_crt_order_decreasing);
}
@@ -6391,20 +6280,20 @@ test_delete_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP15_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
@@ -6412,21 +6301,21 @@ test_delete_link(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
@@ -6434,54 +6323,54 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
- "order in increasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
+ "order in increasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
@@ -6489,158 +6378,158 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
- "order in increasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
+ "order in increasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
- "order in increasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
+ "order in increasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP15_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_increasing);
}
@@ -6667,20 +6556,20 @@ test_delete_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_TEST_SUBGROUP16_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME);
+ printf(" couldn't create subgroup '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
@@ -6688,21 +6577,21 @@ test_delete_link(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
@@ -6710,54 +6599,54 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
/* Delete a link */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
- "order in decreasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
+ "order in decreasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
@@ -6765,158 +6654,158 @@ test_delete_link(void)
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
/* Repeat until all links have been deleted */
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
- "order in decreasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
+ "order in decreasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist after deletion of a different link!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist after deletion of a different link!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (H5Ldelete_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
- "order in decreasing order\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't delete external link '%s' using H5Ldelete_by_idx by alphabetical "
+ "order in decreasing order\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, LINK_DELETE_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' exists after deletion!\n",
- LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' exists after deletion!\n",
+ LINK_DELETE_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME);
+ printf(" failed to close group '%s'\n", LINK_DELETE_TEST_SUBGROUP16_NAME);
PART_ERROR(H5Ldelete_by_idx_external_name_order_decreasing);
}
@@ -7060,8 +6949,8 @@ test_delete_link_reset_grp_max_crt_order(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or creation order "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, or creation order "
+ "aren't supported with this connector\n");
return 0;
}
@@ -7069,33 +6958,33 @@ test_delete_link_reset_grp_max_crt_order(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME,
H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME);
goto error;
}
@@ -7110,8 +6999,8 @@ test_delete_link_reset_grp_max_crt_order(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP1_NAME,
H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n",
- LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP1_NAME);
+ printf(" couldn't create subgroup '%s'\n",
+ LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Ldelete_links_bottom_up);
}
@@ -7121,7 +7010,7 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", link_name);
+ printf(" couldn't create hard link '%s'\n", link_name);
PART_ERROR(H5Ldelete_links_bottom_up);
}
}
@@ -7132,15 +7021,15 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Gget_info(subgroup_id, &grp_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group's info\n");
+ printf(" failed to retrieve group's info\n");
PART_ERROR(H5Ldelete_links_bottom_up);
}
if (grp_info.max_corder != LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" group's maximum creation order value got adjusted to %lld during link "
- "deletion; value should have remained at %d\n",
- (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
+ printf(" group's maximum creation order value got adjusted to %lld during link "
+ "deletion; value should have remained at %d\n",
+ (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
PART_ERROR(H5Ldelete_links_bottom_up);
}
@@ -7148,7 +7037,7 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Ldelete(subgroup_id, link_name, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete link '%s'\n", link_name);
+ printf(" failed to delete link '%s'\n", link_name);
PART_ERROR(H5Ldelete_links_bottom_up);
}
}
@@ -7159,15 +7048,15 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Gget_info(subgroup_id, &grp_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group's info\n");
+ printf(" failed to retrieve group's info\n");
PART_ERROR(H5Ldelete_links_bottom_up);
}
if (grp_info.max_corder != 0) {
H5_FAILED();
- HDprintf(" group's maximum creation order value didn't reset to 0 after deleting all "
- "links from group; value is still %lld\n",
- (long long)grp_info.max_corder);
+ printf(" group's maximum creation order value didn't reset to 0 after deleting all "
+ "links from group; value is still %lld\n",
+ (long long)grp_info.max_corder);
PART_ERROR(H5Ldelete_links_bottom_up);
}
@@ -7189,8 +7078,8 @@ test_delete_link_reset_grp_max_crt_order(void)
if ((subgroup_id = H5Gcreate2(group_id, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP2_NAME,
H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n",
- LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP2_NAME);
+ printf(" couldn't create subgroup '%s'\n",
+ LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_SUBGROUP2_NAME);
PART_ERROR(H5Ldelete_links_top_down);
}
@@ -7200,7 +7089,7 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", link_name);
+ printf(" couldn't create hard link '%s'\n", link_name);
PART_ERROR(H5Ldelete_links_top_down);
}
}
@@ -7211,15 +7100,15 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Gget_info(subgroup_id, &grp_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group's info\n");
+ printf(" failed to retrieve group's info\n");
PART_ERROR(H5Ldelete_links_top_down);
}
if (grp_info.max_corder != LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" group's maximum creation order value got adjusted to %lld during link "
- "deletion; value should have remained at %d\n",
- (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
+ printf(" group's maximum creation order value got adjusted to %lld during link "
+ "deletion; value should have remained at %d\n",
+ (long long)grp_info.max_corder, LINK_DELETE_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
PART_ERROR(H5Ldelete_links_top_down);
}
@@ -7228,7 +7117,7 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Ldelete(subgroup_id, link_name, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete link '%s'\n", link_name);
+ printf(" failed to delete link '%s'\n", link_name);
PART_ERROR(H5Ldelete_links_top_down);
}
}
@@ -7239,15 +7128,15 @@ test_delete_link_reset_grp_max_crt_order(void)
if (H5Gget_info(subgroup_id, &grp_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group's info\n");
+ printf(" failed to retrieve group's info\n");
PART_ERROR(H5Ldelete_links_top_down);
}
if (grp_info.max_corder != 0) {
H5_FAILED();
- HDprintf(" group's maximum creation order value didn't reset to 0 after deleting all "
- "links from group; value is still %lld\n",
- (long long)grp_info.max_corder);
+ printf(" group's maximum creation order value didn't reset to 0 after deleting all "
+ "links from group; value is still %lld\n",
+ (long long)grp_info.max_corder);
PART_ERROR(H5Ldelete_links_top_down);
}
@@ -7308,8 +7197,8 @@ test_delete_link_invalid_params(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_BY_IDX) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, flag by index, or hard link aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, link, flag by index, or hard link aren't "
+ "supported with this connector\n");
return 0;
}
@@ -7317,27 +7206,27 @@ test_delete_link_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, LINK_DELETE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
if (H5Lcreate_hard(group_id, ".", group_id, LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
@@ -7345,14 +7234,14 @@ test_delete_link_invalid_params(void)
if ((link_exists = H5Lexists(group_id, LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if first hard link '%s' exists\n",
- LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if first hard link '%s' exists\n",
+ LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first hard link did not exist\n");
+ printf(" first hard link did not exist\n");
goto error;
}
@@ -7373,7 +7262,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete succeeded with an invalid location ID!\n");
+ printf(" H5Ldelete succeeded with an invalid location ID!\n");
PART_ERROR(H5Ldelete_invalid_loc_id);
}
@@ -7393,7 +7282,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete succeeded with a NULL link name!\n");
+ printf(" H5Ldelete succeeded with a NULL link name!\n");
PART_ERROR(H5Ldelete_invalid_link_name);
}
@@ -7405,7 +7294,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete succeeded with an invalid link name of ''!\n");
+ printf(" H5Ldelete succeeded with an invalid link name of ''!\n");
PART_ERROR(H5Ldelete_invalid_link_name);
}
@@ -7426,7 +7315,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete succeeded with an invalid LAPL!\n");
+ printf(" H5Ldelete succeeded with an invalid LAPL!\n");
PART_ERROR(H5Ldelete_invalid_lapl);
}
@@ -7446,7 +7335,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with an invalid location ID!\n");
+ printf(" H5Ldelete_by_idx succeeded with an invalid location ID!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_loc_id);
}
@@ -7466,7 +7355,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with a NULL group name!\n");
+ printf(" H5Ldelete_by_idx succeeded with a NULL group name!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_grp_name);
}
@@ -7478,7 +7367,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with an invalid group name of ''!\n");
+ printf(" H5Ldelete_by_idx succeeded with an invalid group name of ''!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_grp_name);
}
@@ -7498,7 +7387,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_index_type);
}
@@ -7510,7 +7399,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Ldelete_by_idx succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_index_type);
}
@@ -7530,7 +7419,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_index_order);
}
@@ -7542,7 +7431,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Ldelete_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_index_order);
}
@@ -7562,7 +7451,7 @@ test_delete_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ldelete_by_idx succeeded with an invalid LAPL!\n");
+ printf(" H5Ldelete_by_idx succeeded with an invalid LAPL!\n");
PART_ERROR(H5Ldelete_by_idx_invalid_lapl);
}
@@ -7578,14 +7467,14 @@ test_delete_link_invalid_params(void)
if ((link_exists =
H5Lexists(group_id, LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ LINK_DELETE_INVALID_PARAMS_TEST_HARD_LINK_NAME);
PART_ERROR(H5Ldelete_by_idx_link_existence);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link didn't exist!\n");
+ printf(" hard link didn't exist!\n");
PART_ERROR(H5Ldelete_by_idx_link_existence);
}
@@ -7640,9 +7529,8 @@ test_copy_link(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, link, hard link, soft link, or external link aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, soft link, or external link aren't "
+ "supported with this connector\n");
return 0;
}
@@ -7650,34 +7538,34 @@ test_copy_link(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't opewn container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't opewn container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, COPY_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", COPY_LINK_TEST_SUBGROUP_NAME);
+ printf(" couldn't create group '%s'\n", COPY_LINK_TEST_SUBGROUP_NAME);
goto error;
}
if ((src_grp_id = H5Gcreate2(group_id, COPY_LINK_TEST_SRC_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", COPY_LINK_TEST_SRC_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", COPY_LINK_TEST_SRC_GROUP_NAME);
goto error;
}
if ((dst_grp_id = H5Gcreate2(group_id, COPY_LINK_TEST_DST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", COPY_LINK_TEST_DST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", COPY_LINK_TEST_DST_GROUP_NAME);
goto error;
}
@@ -7693,33 +7581,33 @@ test_copy_link(void)
if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lcopy_hard_no_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lcopy_hard_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lcopy_hard_no_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lcopy_hard_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before copy!\n");
+ printf(" hard link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_hard_no_check);
}
@@ -7727,34 +7615,34 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, dst_grp_id,
COPY_LINK_TEST_HARD_LINK_COPY_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME);
+ printf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lcopy_hard_no_check);
}
/* Verify the link has been copied and still exists in the source group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link copy '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_COPY_NAME);
+ printf(" couldn't determine if hard link copy '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_COPY_NAME);
PART_ERROR(H5Lcopy_hard_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link copy did not exist\n");
+ printf(" hard link copy did not exist\n");
PART_ERROR(H5Lcopy_hard_no_check);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original hard link '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if original hard link '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lcopy_hard_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original hard link did not exist\n");
+ printf(" original hard link did not exist\n");
PART_ERROR(H5Lcopy_hard_no_check);
}
@@ -7773,40 +7661,40 @@ test_copy_link(void)
if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lcopy_hard_check);
}
/* Retrieve the link's info */
if (H5Lget_info2(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before copy!\n");
+ printf(" hard link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_hard_check);
}
@@ -7814,83 +7702,83 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, dst_grp_id,
COPY_LINK_TEST_HARD_LINK_COPY_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2);
+ printf(" failed to copy hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
/* Verify the link has been copied and still exists in the source group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link copy '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_COPY_NAME2);
+ printf(" couldn't determine if hard link copy '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link copy did not exist\n");
+ printf(" hard link copy did not exist\n");
PART_ERROR(H5Lcopy_hard_check);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original hard link '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if original hard link '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original hard link did not exist\n");
+ printf(" original hard link did not exist\n");
PART_ERROR(H5Lcopy_hard_check);
}
/* Retrieve the new link's info */
if (H5Lget_info2(dst_grp_id, COPY_LINK_TEST_HARD_LINK_COPY_NAME2, &new_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_COPY_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_HARD_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_hard_check);
}
if (new_info.type != orig_info.type) {
H5_FAILED();
- HDprintf(" copied link's link type doesn't match original link's type\n");
+ printf(" copied link's link type doesn't match original link's type\n");
PART_ERROR(H5Lcopy_hard_check);
}
if (H5Otoken_cmp(dst_grp_id, &new_info.u.token, &orig_info.u.token, &cmp_value) < 0) {
H5_FAILED();
- HDprintf(" failed to compare link target tokens\n");
+ printf(" failed to compare link target tokens\n");
PART_ERROR(H5Lcopy_hard_check);
}
if (cmp_value != 0) {
H5_FAILED();
- HDprintf(" copied hard link's object token doesn't match original link's object token\n");
+ printf(" copied hard link's object token doesn't match original link's object token\n");
PART_ERROR(H5Lcopy_hard_check);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (new_info.corder_valid != orig_info.corder_valid) {
H5_FAILED();
- HDprintf(" copied link's 'corder_valid' field doesn't match original link's "
- "'corder_valid' field\n");
+ printf(" copied link's 'corder_valid' field doesn't match original link's "
+ "'corder_valid' field\n");
PART_ERROR(H5Lcopy_hard_check);
}
if (new_info.corder_valid && orig_info.corder_valid &&
(new_info.corder != orig_info.corder)) {
H5_FAILED();
- HDprintf(" copied link's creation order value %" PRId64
- " doesn't match original link's creation order value %" PRId64 "\n",
- new_info.corder, orig_info.corder);
+ printf(" copied link's creation order value %" PRId64
+ " doesn't match original link's creation order value %" PRId64 "\n",
+ new_info.corder, orig_info.corder);
PART_ERROR(H5Lcopy_hard_check);
}
}
if (new_info.cset != orig_info.cset) {
H5_FAILED();
- HDprintf(" copied link's character set doesn't match original link's character set\n");
+ printf(" copied link's character set doesn't match original link's character set\n");
PART_ERROR(H5Lcopy_hard_check);
}
@@ -7906,20 +7794,20 @@ test_copy_link(void)
if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", COPY_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lcopy_hard_same_loc);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", COPY_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lcopy_hard_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lcopy_hard_same_loc);
}
@@ -7927,28 +7815,28 @@ test_copy_link(void)
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lcopy_hard_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before copy!\n");
+ printf(" hard link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_hard_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2);
PART_ERROR(H5Lcopy_hard_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before copy!\n");
+ printf(" hard link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_hard_same_loc);
}
@@ -7956,9 +7844,8 @@ test_copy_link(void)
if (H5Lcopy(H5L_SAME_LOC, COPY_LINK_TEST_HARD_LINK_NAME3, src_grp_id,
COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(
- " failed to copy hard link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n",
- COPY_LINK_TEST_HARD_LINK_NAME3);
+ printf(" failed to copy hard link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n",
+ COPY_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lcopy_hard_same_loc);
}
@@ -7966,9 +7853,8 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5L_SAME_LOC,
COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(
- " failed to copy hard link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n",
- COPY_LINK_TEST_HARD_LINK_NAME3);
+ printf(" failed to copy hard link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n",
+ COPY_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lcopy_hard_same_loc);
}
@@ -7976,41 +7862,41 @@ test_copy_link(void)
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link copy '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if hard link copy '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lcopy_hard_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link copy did not exist\n");
+ printf(" hard link copy did not exist\n");
PART_ERROR(H5Lcopy_hard_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link copy '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2);
+ printf(" couldn't determine if hard link copy '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_SAME_LOC_NAME2);
PART_ERROR(H5Lcopy_hard_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link copy did not exist\n");
+ printf(" hard link copy did not exist\n");
PART_ERROR(H5Lcopy_hard_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original hard link '%s' exists\n",
- COPY_LINK_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if original hard link '%s' exists\n",
+ COPY_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lcopy_hard_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original hard link did not exist\n");
+ printf(" original hard link did not exist\n");
PART_ERROR(H5Lcopy_hard_same_loc);
}
@@ -8026,33 +7912,33 @@ test_copy_link(void)
if (H5Lcreate_soft(COPY_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id,
COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lcopy_soft_no_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lcopy_soft_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lcopy_soft_no_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lcopy_soft_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link existed in target group before copy!\n");
+ printf(" soft link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_soft_no_check);
}
@@ -8060,34 +7946,34 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, dst_grp_id,
COPY_LINK_TEST_SOFT_LINK_COPY_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME);
+ printf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lcopy_soft_no_check);
}
/* Verify the link has been copied and still exists in the source group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' copy exists\n",
- COPY_LINK_TEST_SOFT_LINK_COPY_NAME);
+ printf(" couldn't determine if soft link '%s' copy exists\n",
+ COPY_LINK_TEST_SOFT_LINK_COPY_NAME);
PART_ERROR(H5Lcopy_soft_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link copy did not exist\n");
+ printf(" soft link copy did not exist\n");
PART_ERROR(H5Lcopy_soft_no_check);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original soft link '%s' exists\n",
- COPY_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if original soft link '%s' exists\n",
+ COPY_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lcopy_soft_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original soft link did not exist\n");
+ printf(" original soft link did not exist\n");
PART_ERROR(H5Lcopy_soft_no_check);
}
@@ -8107,27 +7993,27 @@ test_copy_link(void)
if (H5Lcreate_soft(COPY_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id,
COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lcopy_soft_check);
}
/* Retrieve the link's info */
if (H5Lget_info2(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
@@ -8135,20 +8021,20 @@ test_copy_link(void)
if (H5Lget_val(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, orig_link_val,
COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't retrieve value for soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link existed in target group before copy!\n");
+ printf(" soft link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_soft_check);
}
@@ -8156,79 +8042,79 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, dst_grp_id,
COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" failed to copy soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
/* Verify the link has been copied and still exists in the source group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' copy exists\n",
- COPY_LINK_TEST_SOFT_LINK_COPY_NAME2);
+ printf(" couldn't determine if soft link '%s' copy exists\n",
+ COPY_LINK_TEST_SOFT_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link copy did not exist\n");
+ printf(" soft link copy did not exist\n");
PART_ERROR(H5Lcopy_soft_check);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original soft link '%s' exists\n",
- COPY_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if original soft link '%s' exists\n",
+ COPY_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original soft link did not exist\n");
+ printf(" original soft link did not exist\n");
PART_ERROR(H5Lcopy_soft_check);
}
/* Retrieve the new link's info */
if (H5Lget_info2(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, &new_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_COPY_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_SOFT_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
if (new_info.type != orig_info.type) {
H5_FAILED();
- HDprintf(" copied link's link type doesn't match original link's type\n");
+ printf(" copied link's link type doesn't match original link's type\n");
PART_ERROR(H5Lcopy_soft_check);
}
if (new_info.u.val_size != orig_info.u.val_size) {
H5_FAILED();
- HDprintf(" copied soft link's value size of %llu doesn't match original link's value size "
- "of %llu\n",
- (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
+ printf(" copied soft link's value size of %llu doesn't match original link's value size "
+ "of %llu\n",
+ (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
PART_ERROR(H5Lcopy_soft_check);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (new_info.corder_valid != orig_info.corder_valid) {
H5_FAILED();
- HDprintf(" copied link's 'corder_valid' field doesn't match original link's "
- "'corder_valid' field\n");
+ printf(" copied link's 'corder_valid' field doesn't match original link's "
+ "'corder_valid' field\n");
PART_ERROR(H5Lcopy_soft_check);
}
if (new_info.corder_valid && orig_info.corder_valid &&
(new_info.corder != orig_info.corder)) {
H5_FAILED();
- HDprintf(" copied link's creation order value %" PRId64
- " doesn't match original link's creation order value %" PRId64 "\n",
- new_info.corder, orig_info.corder);
+ printf(" copied link's creation order value %" PRId64
+ " doesn't match original link's creation order value %" PRId64 "\n",
+ new_info.corder, orig_info.corder);
PART_ERROR(H5Lcopy_soft_check);
}
}
if (new_info.cset != orig_info.cset) {
H5_FAILED();
- HDprintf(" copied link's character set doesn't match original link's character set\n");
+ printf(" copied link's character set doesn't match original link's character set\n");
PART_ERROR(H5Lcopy_soft_check);
}
@@ -8236,15 +8122,15 @@ test_copy_link(void)
if (H5Lget_val(dst_grp_id, COPY_LINK_TEST_SOFT_LINK_COPY_NAME2, new_link_val,
COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for soft link '%s'\n",
- COPY_LINK_TEST_SOFT_LINK_COPY_NAME2);
+ printf(" couldn't retrieve value for soft link '%s'\n",
+ COPY_LINK_TEST_SOFT_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_soft_check);
}
if (HDstrncmp(orig_link_val, new_link_val, COPY_LINK_TEST_LINK_VAL_BUF_SIZE)) {
H5_FAILED();
- HDprintf(" copied soft link's value '%s' doesn't match original link's value '%s'\n",
- new_link_val, orig_link_val);
+ printf(" copied soft link's value '%s' doesn't match original link's value '%s'\n",
+ new_link_val, orig_link_val);
PART_ERROR(H5Lcopy_soft_check);
}
@@ -8260,20 +8146,20 @@ test_copy_link(void)
if (H5Lcreate_soft(COPY_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id,
COPY_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", COPY_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lcopy_soft_same_loc);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", COPY_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lcopy_soft_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lcopy_soft_same_loc);
}
@@ -8281,28 +8167,28 @@ test_copy_link(void)
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lcopy_soft_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link existed in target group before copy!\n");
+ printf(" soft link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_soft_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2);
PART_ERROR(H5Lcopy_soft_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link existed in target group before copy!\n");
+ printf(" soft link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_soft_same_loc);
}
@@ -8310,9 +8196,8 @@ test_copy_link(void)
if (H5Lcopy(H5L_SAME_LOC, COPY_LINK_TEST_SOFT_LINK_NAME3, src_grp_id,
COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(
- " failed to copy soft link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n",
- COPY_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" failed to copy soft link '%s' using H5L_SAME_LOC as first parameter to H5Lcopy\n",
+ COPY_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lcopy_soft_same_loc);
}
@@ -8320,9 +8205,8 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME3, H5L_SAME_LOC,
COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(
- " failed to copy soft link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n",
- COPY_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" failed to copy soft link '%s' using H5L_SAME_LOC as third parameter to H5Lcopy\n",
+ COPY_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lcopy_soft_same_loc);
}
@@ -8330,41 +8214,41 @@ test_copy_link(void)
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' copy exists\n",
- COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if soft link '%s' copy exists\n",
+ COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lcopy_soft_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link copy did not exist\n");
+ printf(" soft link copy did not exist\n");
PART_ERROR(H5Lcopy_soft_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' copy exists\n",
- COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2);
+ printf(" couldn't determine if soft link '%s' copy exists\n",
+ COPY_LINK_TEST_SOFT_LINK_SAME_LOC_NAME2);
PART_ERROR(H5Lcopy_soft_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link copy did not exist\n");
+ printf(" soft link copy did not exist\n");
PART_ERROR(H5Lcopy_soft_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original soft link '%s' exists\n",
- COPY_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if original soft link '%s' exists\n",
+ COPY_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lcopy_soft_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original soft link did not exist\n");
+ printf(" original soft link did not exist\n");
PART_ERROR(H5Lcopy_soft_same_loc);
}
@@ -8381,13 +8265,13 @@ test_copy_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lcopy_external_no_check);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lcopy_external_no_check);
}
@@ -8395,35 +8279,35 @@ test_copy_link(void)
if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lcopy_external_no_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lcopy_external_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lcopy_external_no_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lcopy_external_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link existed in target group before copy!\n");
+ printf(" external link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_external_no_check);
}
@@ -8431,7 +8315,7 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, dst_grp_id,
COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME);
+ printf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lcopy_external_no_check);
}
@@ -8439,27 +8323,27 @@ test_copy_link(void)
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link copy '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME);
+ printf(" couldn't determine if external link copy '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME);
PART_ERROR(H5Lcopy_external_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link copy did not exist\n");
+ printf(" external link copy did not exist\n");
PART_ERROR(H5Lcopy_external_no_check);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if original external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lcopy_external_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original external link did not exist\n");
+ printf(" original external link did not exist\n");
PART_ERROR(H5Lcopy_external_no_check);
}
@@ -8490,13 +8374,13 @@ test_copy_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lcopy_external_check);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lcopy_external_check);
}
@@ -8504,28 +8388,28 @@ test_copy_link(void)
if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lcopy_external_check);
}
/* Retrieve the link's info */
if (H5Lget_info2(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
@@ -8533,29 +8417,29 @@ test_copy_link(void)
if (H5Lget_val(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, orig_link_val,
COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for external link '%s'\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't retrieve value for external link '%s'\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
if (H5Lunpack_elink_val(orig_link_val, orig_info.u.val_size, &unpack_flags, &orig_filename,
&orig_objname) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack original external link's value buffer\n");
+ printf(" couldn't unpack original external link's value buffer\n");
PART_ERROR(H5Lcopy_external_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link existed in target group before copy!\n");
+ printf(" external link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_external_check);
}
@@ -8563,7 +8447,7 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, dst_grp_id,
COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
+ printf(" failed to copy external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
@@ -8571,27 +8455,27 @@ test_copy_link(void)
if ((link_exists = H5Lexists(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link copy '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2);
+ printf(" couldn't determine if external link copy '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link copy did not exist\n");
+ printf(" external link copy did not exist\n");
PART_ERROR(H5Lcopy_external_check);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if original external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original external link did not exist\n");
+ printf(" original external link did not exist\n");
PART_ERROR(H5Lcopy_external_check);
}
@@ -8599,47 +8483,46 @@ test_copy_link(void)
if (H5Lget_info2(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, &new_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n",
- COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
if (new_info.type != orig_info.type) {
H5_FAILED();
- HDprintf(" copied link's link type doesn't match original link's type\n");
+ printf(" copied link's link type doesn't match original link's type\n");
PART_ERROR(H5Lcopy_external_check);
}
if (new_info.u.val_size != orig_info.u.val_size) {
H5_FAILED();
- HDprintf(" copied external link's value size of %llu doesn't match original link's value "
- "size of %llu\n",
- (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
+ printf(" copied external link's value size of %llu doesn't match original link's value "
+ "size of %llu\n",
+ (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
PART_ERROR(H5Lcopy_external_check);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (new_info.corder_valid != orig_info.corder_valid) {
H5_FAILED();
- HDprintf(" copied link's 'corder_valid' field doesn't match original link's "
- "'corder_valid' field\n");
+ printf(" copied link's 'corder_valid' field doesn't match original link's "
+ "'corder_valid' field\n");
PART_ERROR(H5Lcopy_external_check);
}
if (new_info.corder_valid && orig_info.corder_valid &&
(new_info.corder != orig_info.corder)) {
H5_FAILED();
- HDprintf(" copied link's creation order value %" PRId64
- " doesn't match original link's creation "
- "order value %" PRId64 "\n",
- new_info.corder, orig_info.corder);
+ printf(" copied link's creation order value %" PRId64
+ " doesn't match original link's creation "
+ "order value %" PRId64 "\n",
+ new_info.corder, orig_info.corder);
PART_ERROR(H5Lcopy_external_check);
}
}
if (new_info.cset != orig_info.cset) {
H5_FAILED();
- HDprintf(" copied link's character set doesn't match original link's character set\n");
+ printf(" copied link's character set doesn't match original link's character set\n");
PART_ERROR(H5Lcopy_external_check);
}
@@ -8647,31 +8530,31 @@ test_copy_link(void)
if (H5Lget_val(dst_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2, new_link_val,
COPY_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for external link '%s'\n",
- COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2);
+ printf(" couldn't retrieve value for external link '%s'\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_COPY_NAME2);
PART_ERROR(H5Lcopy_external_check);
}
if (H5Lunpack_elink_val(new_link_val, new_info.u.val_size, &unpack_flags, &new_filename,
&new_objname) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack copied external link's value buffer\n");
+ printf(" couldn't unpack copied external link's value buffer\n");
PART_ERROR(H5Lcopy_external_check);
}
if (HDstrncmp(new_filename, orig_filename, strlen(orig_filename)) < 0) {
H5_FAILED();
- HDprintf(" copied external link's filename '%s' doesn't match original external link's "
- "filename '%s'\n",
- new_filename, orig_filename);
+ printf(" copied external link's filename '%s' doesn't match original external link's "
+ "filename '%s'\n",
+ new_filename, orig_filename);
PART_ERROR(H5Lcopy_external_check);
}
if (HDstrncmp(new_objname, orig_objname, strlen(orig_objname)) < 0) {
H5_FAILED();
- HDprintf(" copied external link's object name '%s' doesn't match original external link's "
- "object name '%s'\n",
- new_objname, orig_objname);
+ printf(" copied external link's object name '%s' doesn't match original external link's "
+ "object name '%s'\n",
+ new_objname, orig_objname);
PART_ERROR(H5Lcopy_external_check);
}
@@ -8695,13 +8578,13 @@ test_copy_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lcopy_external_same_loc);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lcopy_external_same_loc);
}
@@ -8709,21 +8592,21 @@ test_copy_link(void)
if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lcopy_external_same_loc);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lcopy_external_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lcopy_external_same_loc);
}
@@ -8731,28 +8614,28 @@ test_copy_link(void)
if ((link_exists =
H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lcopy_external_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link existed in target group before copy!\n");
+ printf(" external link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_external_same_loc);
}
if ((link_exists =
H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2);
PART_ERROR(H5Lcopy_external_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link existed in target group before copy!\n");
+ printf(" external link existed in target group before copy!\n");
PART_ERROR(H5Lcopy_external_same_loc);
}
@@ -8760,9 +8643,9 @@ test_copy_link(void)
if (H5Lcopy(H5L_SAME_LOC, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, src_grp_id,
COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy external link '%s' using H5L_SAME_LOC as first parameter to "
- "H5Lcopy\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
+ printf(" failed to copy external link '%s' using H5L_SAME_LOC as first parameter to "
+ "H5Lcopy\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lcopy_external_same_loc);
}
@@ -8770,9 +8653,9 @@ test_copy_link(void)
if (H5Lcopy(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, H5L_SAME_LOC,
COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy external link '%s' using H5L_SAME_LOC as third parameter to "
- "H5Lcopy\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
+ printf(" failed to copy external link '%s' using H5L_SAME_LOC as third parameter to "
+ "H5Lcopy\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lcopy_external_same_loc);
}
@@ -8780,41 +8663,41 @@ test_copy_link(void)
if ((link_exists =
H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link copy '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if external link copy '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lcopy_external_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link copy did not exist\n");
+ printf(" external link copy did not exist\n");
PART_ERROR(H5Lcopy_external_same_loc);
}
if ((link_exists =
H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link copy '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2);
+ printf(" couldn't determine if external link copy '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_SAME_LOC_NAME2);
PART_ERROR(H5Lcopy_external_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link copy did not exist\n");
+ printf(" external link copy did not exist\n");
PART_ERROR(H5Lcopy_external_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original external link '%s' exists\n",
- COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if original external link '%s' exists\n",
+ COPY_LINK_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lcopy_external_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original external link did not exist\n");
+ printf(" original external link did not exist\n");
PART_ERROR(H5Lcopy_external_same_loc);
}
@@ -8958,8 +8841,8 @@ test_copy_link_invalid_params(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or hard links aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or hard links aren't supported with this "
+ "connector\n");
return 0;
}
@@ -8967,41 +8850,41 @@ test_copy_link_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, COPY_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME);
goto error;
}
if ((src_grp_id = H5Gcreate2(group_id, COPY_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME);
goto error;
}
if ((dst_grp_id = H5Gcreate2(group_id, COPY_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME);
goto error;
}
if (H5Lcreate_hard(group_id, ".", src_grp_id, COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
@@ -9009,14 +8892,14 @@ test_copy_link_invalid_params(void)
if ((link_exists = H5Lexists(src_grp_id, COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ COPY_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
goto error;
}
@@ -9038,7 +8921,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with an invalid source location ID\n");
+ printf(" H5Lcopy succeeded with an invalid source location ID\n");
PART_ERROR(H5Lcopy_invalid_src_loc_id);
}
@@ -9060,7 +8943,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with a NULL source name\n");
+ printf(" H5Lcopy succeeded with a NULL source name\n");
PART_ERROR(H5Lcopy_invalid_src_name);
}
@@ -9074,7 +8957,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with an invalid source name of ''\n");
+ printf(" H5Lcopy succeeded with an invalid source name of ''\n");
PART_ERROR(H5Lcopy_invalid_src_name);
}
@@ -9096,7 +8979,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with an invalid destination location ID\n");
+ printf(" H5Lcopy succeeded with an invalid destination location ID\n");
PART_ERROR(H5Lcopy_invalid_dst_loc_id);
}
@@ -9117,7 +9000,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with a NULL destination name\n");
+ printf(" H5Lcopy succeeded with a NULL destination name\n");
PART_ERROR(H5Lcopy_invalid_dst_name);
}
@@ -9130,7 +9013,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with an invalid destination name of ''\n");
+ printf(" H5Lcopy succeeded with an invalid destination name of ''\n");
PART_ERROR(H5Lcopy_invalid_dst_name);
}
@@ -9152,7 +9035,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with an invalid LCPL\n");
+ printf(" H5Lcopy succeeded with an invalid LCPL\n");
PART_ERROR(H5Lcopy_invalid_lcpl);
}
@@ -9174,7 +9057,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with an invalid LAPL\n");
+ printf(" H5Lcopy succeeded with an invalid LAPL\n");
PART_ERROR(H5Lcopy_invalid_lapl);
}
@@ -9196,7 +9079,7 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded with an invalid same location\n");
+ printf(" H5Lcopy succeeded with an invalid same location\n");
PART_ERROR(H5Lcopy_invalid_same_location);
}
@@ -9213,7 +9096,7 @@ test_copy_link_invalid_params(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lcopy_invalid_across_files);
}
@@ -9227,13 +9110,13 @@ test_copy_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lcopy succeeded in copying a hard link across files!\n");
+ printf(" H5Lcopy succeeded in copying a hard link across files!\n");
PART_ERROR(H5Lcopy_invalid_across_files);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lcopy_invalid_across_files);
}
@@ -9296,9 +9179,8 @@ test_move_link(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, link, hard link, soft link, or external link aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, soft link, or external link aren't "
+ "supported with this connector\n");
return 0;
}
@@ -9308,34 +9190,34 @@ test_move_link(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, MOVE_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SUBGROUP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SUBGROUP_NAME);
goto error;
}
if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_TEST_SRC_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SRC_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_TEST_SRC_GROUP_NAME);
goto error;
}
if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_TEST_DST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_TEST_DST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_TEST_DST_GROUP_NAME);
goto error;
}
@@ -9351,33 +9233,33 @@ test_move_link(void)
if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_hard_no_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_hard_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lmove_hard_no_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_hard_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before move!\n");
+ printf(" hard link existed in target group before move!\n");
PART_ERROR(H5Lmove_hard_no_check);
}
@@ -9385,34 +9267,34 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_hard_no_check);
}
/* Verify the link has been moved */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_hard_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lmove_hard_no_check);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if old hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_hard_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old hard link exists\n");
+ printf(" old hard link exists\n");
PART_ERROR(H5Lmove_hard_no_check);
}
@@ -9431,40 +9313,40 @@ test_move_link(void)
if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lmove_hard_check);
}
/* Retrieve the link's info */
if (H5Lget_info2(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before move!\n");
+ printf(" hard link existed in target group before move!\n");
PART_ERROR(H5Lmove_hard_check);
}
@@ -9472,66 +9354,66 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, dst_grp_id,
MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
/* Verify the link has been moved */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lmove_hard_check);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if old hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old hard link exists\n");
+ printf(" old hard link exists\n");
PART_ERROR(H5Lmove_hard_check);
}
/* Retrieve the moved link's info */
if (H5Lget_info2(dst_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME2, &new_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lmove_hard_check);
}
if (new_info.type != orig_info.type) {
H5_FAILED();
- HDprintf(" moved link's link type doesn't match original link's type\n");
+ printf(" moved link's link type doesn't match original link's type\n");
PART_ERROR(H5Lmove_hard_check);
}
if (H5Otoken_cmp(dst_grp_id, &new_info.u.token, &orig_info.u.token, &cmp_value) < 0) {
H5_FAILED();
- HDprintf(" failed to compare link target tokens\n");
+ printf(" failed to compare link target tokens\n");
PART_ERROR(H5Lmove_hard_check);
}
if (cmp_value != 0) {
H5_FAILED();
- HDprintf(" moved hard link's object token doesn't match original link's object token\n");
+ printf(" moved hard link's object token doesn't match original link's object token\n");
PART_ERROR(H5Lmove_hard_check);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (new_info.corder_valid != orig_info.corder_valid) {
H5_FAILED();
- HDprintf(
+ printf(
" moved link's 'corder_valid' field doesn't match original link's 'corder_valid' "
"field\n");
PART_ERROR(H5Lmove_hard_check);
@@ -9540,16 +9422,16 @@ test_move_link(void)
if (new_info.corder_valid && orig_info.corder_valid &&
(new_info.corder != orig_info.corder)) {
H5_FAILED();
- HDprintf(" moved link's creation order value %" PRId64
- " doesn't match original link's creation order value %" PRId64 "\n",
- new_info.corder, orig_info.corder);
+ printf(" moved link's creation order value %" PRId64
+ " doesn't match original link's creation order value %" PRId64 "\n",
+ new_info.corder, orig_info.corder);
PART_ERROR(H5Lmove_hard_check);
}
}
if (new_info.cset != orig_info.cset) {
H5_FAILED();
- HDprintf(" moved link's character set doesn't match original link's character set\n");
+ printf(" moved link's character set doesn't match original link's character set\n");
PART_ERROR(H5Lmove_hard_check);
}
@@ -9565,20 +9447,20 @@ test_move_link(void)
if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lmove_hard_same_loc);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lmove_hard_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lmove_hard_same_loc);
}
@@ -9586,14 +9468,14 @@ test_move_link(void)
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_hard_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before move!\n");
+ printf(" hard link existed in target group before move!\n");
PART_ERROR(H5Lmove_hard_same_loc);
}
@@ -9601,35 +9483,35 @@ test_move_link(void)
if (H5Lmove(H5L_SAME_LOC, MOVE_LINK_TEST_HARD_LINK_NAME3, src_grp_id,
MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n",
- MOVE_LINK_TEST_HARD_LINK_NAME3);
+ printf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n",
+ MOVE_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lmove_hard_same_loc);
}
/* Ensure the link has been renamed */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lmove_hard_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" original hard link existed in target group after move!\n");
+ printf(" original hard link existed in target group after move!\n");
PART_ERROR(H5Lmove_hard_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_hard_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist after move!\n");
+ printf(" hard link did not exist after move!\n");
PART_ERROR(H5Lmove_hard_same_loc);
}
@@ -9637,35 +9519,35 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5L_SAME_LOC,
MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n",
- MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
+ printf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n",
+ MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_hard_same_loc);
}
/* Verify the link has been renamed back */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lmove_hard_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original hard link did not exist after moving the link back!\n");
+ printf(" original hard link did not exist after moving the link back!\n");
PART_ERROR(H5Lmove_hard_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if old hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if old hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_hard_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" renamed hard link exists after moving the link back!\n");
+ printf(" renamed hard link exists after moving the link back!\n");
PART_ERROR(H5Lmove_hard_same_loc);
}
@@ -9681,34 +9563,34 @@ test_move_link(void)
if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4);
+ printf(" couldn't create hard link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4);
PART_ERROR(H5Lmove_hard_rename);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME4);
+ printf(" couldn't determine if hard link '%s' exists\n", MOVE_LINK_TEST_HARD_LINK_NAME4);
PART_ERROR(H5Lmove_hard_rename);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lmove_hard_rename);
}
/* Verify the renamed link doesn't currently exist in the source group */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NEW_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if renamed hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_NEW_NAME);
+ printf(" couldn't determine if renamed hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_NEW_NAME);
PART_ERROR(H5Lmove_hard_rename);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" renamed hard link existed in source group before move!\n");
+ printf(" renamed hard link existed in source group before move!\n");
PART_ERROR(H5Lmove_hard_rename);
}
@@ -9716,35 +9598,35 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, src_grp_id,
MOVE_LINK_TEST_HARD_LINK_NEW_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to rename link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4);
+ printf(" failed to rename link '%s'\n", MOVE_LINK_TEST_HARD_LINK_NAME4);
PART_ERROR(H5Lmove_hard_rename);
}
/* Verify the link has been renamed */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NEW_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if renamed hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_NEW_NAME);
+ printf(" couldn't determine if renamed hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_NEW_NAME);
PART_ERROR(H5Lmove_hard_rename);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" renamed hard link did not exist\n");
+ printf(" renamed hard link did not exist\n");
PART_ERROR(H5Lmove_hard_rename);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_HARD_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old hard link '%s' exists\n",
- MOVE_LINK_TEST_HARD_LINK_NAME4);
+ printf(" couldn't determine if old hard link '%s' exists\n",
+ MOVE_LINK_TEST_HARD_LINK_NAME4);
PART_ERROR(H5Lmove_hard_rename);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old hard link exists\n");
+ printf(" old hard link exists\n");
PART_ERROR(H5Lmove_hard_rename);
}
@@ -9760,33 +9642,33 @@ test_move_link(void)
if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id,
MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lmove_soft_no_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lmove_soft_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lmove_soft_no_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lmove_soft_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link existed in target group before move!\n");
+ printf(" soft link existed in target group before move!\n");
PART_ERROR(H5Lmove_soft_no_check);
}
@@ -9794,34 +9676,34 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lmove_soft_no_check);
}
/* Verify the link has been moved */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lmove_soft_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lmove_soft_no_check);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if old soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lmove_soft_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old soft link exists\n");
+ printf(" old soft link exists\n");
PART_ERROR(H5Lmove_soft_no_check);
}
@@ -9841,27 +9723,27 @@ test_move_link(void)
if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id,
MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lmove_soft_check);
}
/* Retrieve the link's info */
if (H5Lget_info2(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
@@ -9869,20 +9751,20 @@ test_move_link(void)
if (H5Lget_val(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, orig_link_val,
MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link existed in target group before move!\n");
+ printf(" soft link existed in target group before move!\n");
PART_ERROR(H5Lmove_soft_check);
}
@@ -9890,62 +9772,62 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, dst_grp_id,
MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
/* Verify the link has been moved */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lmove_soft_check);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if old soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old soft link exists\n");
+ printf(" old soft link exists\n");
PART_ERROR(H5Lmove_soft_check);
}
/* Retrieve the moved link's info */
if (H5Lget_info2(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, &new_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
if (new_info.type != orig_info.type) {
H5_FAILED();
- HDprintf(" moved link's link type doesn't match original link's type\n");
+ printf(" moved link's link type doesn't match original link's type\n");
PART_ERROR(H5Lmove_soft_check);
}
if (new_info.u.val_size != orig_info.u.val_size) {
H5_FAILED();
- HDprintf(" moved soft link's value size of %llu doesn't match original link's value size "
- "of %llu\n",
- (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
+ printf(" moved soft link's value size of %llu doesn't match original link's value size "
+ "of %llu\n",
+ (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
PART_ERROR(H5Lmove_soft_check);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (new_info.corder_valid != orig_info.corder_valid) {
H5_FAILED();
- HDprintf(
+ printf(
" moved link's 'corder_valid' field doesn't match original link's 'corder_valid' "
"field\n");
PART_ERROR(H5Lmove_soft_check);
@@ -9954,16 +9836,16 @@ test_move_link(void)
if (new_info.corder_valid && orig_info.corder_valid &&
(new_info.corder != orig_info.corder)) {
H5_FAILED();
- HDprintf(" moved link's creation order value %" PRId64
- " doesn't match original link's creation order value %" PRId64 "\n",
- new_info.corder, orig_info.corder);
+ printf(" moved link's creation order value %" PRId64
+ " doesn't match original link's creation order value %" PRId64 "\n",
+ new_info.corder, orig_info.corder);
PART_ERROR(H5Lmove_soft_check);
}
}
if (new_info.cset != orig_info.cset) {
H5_FAILED();
- HDprintf(" moved link's character set doesn't match original link's character set\n");
+ printf(" moved link's character set doesn't match original link's character set\n");
PART_ERROR(H5Lmove_soft_check);
}
@@ -9971,14 +9853,14 @@ test_move_link(void)
if (H5Lget_val(dst_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME2, new_link_val,
MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't retrieve value for soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lmove_soft_check);
}
if (HDstrncmp(orig_link_val, new_link_val, MOVE_LINK_TEST_LINK_VAL_BUF_SIZE)) {
H5_FAILED();
- HDprintf(" moved soft link's value '%s' doesn't match original link's value '%s'\n",
- new_link_val, orig_link_val);
+ printf(" moved soft link's value '%s' doesn't match original link's value '%s'\n",
+ new_link_val, orig_link_val);
PART_ERROR(H5Lmove_soft_check);
}
@@ -9994,20 +9876,20 @@ test_move_link(void)
if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id,
MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lmove_soft_same_loc);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lmove_soft_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lmove_soft_same_loc);
}
@@ -10015,14 +9897,14 @@ test_move_link(void)
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_soft_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" soft link existed in target group before move!\n");
+ printf(" soft link existed in target group before move!\n");
PART_ERROR(H5Lmove_soft_same_loc);
}
@@ -10030,35 +9912,35 @@ test_move_link(void)
if (H5Lmove(H5L_SAME_LOC, MOVE_LINK_TEST_SOFT_LINK_NAME3, src_grp_id,
MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n",
- MOVE_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" failed to move link '%s' using H5L_SAME_LOC as first parameter to H5Lmove\n",
+ MOVE_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lmove_soft_same_loc);
}
/* Ensure the link has been renamed */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lmove_soft_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" original soft link existed in target group after move!\n");
+ printf(" original soft link existed in target group after move!\n");
PART_ERROR(H5Lmove_soft_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_soft_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist after move!\n");
+ printf(" soft link did not exist after move!\n");
PART_ERROR(H5Lmove_soft_same_loc);
}
@@ -10066,35 +9948,35 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5L_SAME_LOC,
MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n",
- MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
+ printf(" failed to move link '%s' using H5L_SAME_LOC as third parameter to H5Lmove\n",
+ MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_soft_same_loc);
}
/* Verify the link has been renamed back */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lmove_soft_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original hard link did not exist after moving the link back!\n");
+ printf(" original hard link did not exist after moving the link back!\n");
PART_ERROR(H5Lmove_soft_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if old soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if old soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_soft_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" renamed soft link exists after moving the link back!\n");
+ printf(" renamed soft link exists after moving the link back!\n");
PART_ERROR(H5Lmove_soft_same_loc);
}
@@ -10110,34 +9992,34 @@ test_move_link(void)
if (H5Lcreate_soft(MOVE_LINK_TEST_SOFT_LINK_TARGET_PATH, src_grp_id,
MOVE_LINK_TEST_SOFT_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4);
+ printf(" couldn't create soft link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4);
PART_ERROR(H5Lmove_soft_rename);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME4);
+ printf(" couldn't determine if soft link '%s' exists\n", MOVE_LINK_TEST_SOFT_LINK_NAME4);
PART_ERROR(H5Lmove_soft_rename);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lmove_soft_rename);
}
/* Verify the renamed link doesn't currently exist in the source group */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NEW_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if renamed soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_NEW_NAME);
+ printf(" couldn't determine if renamed soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_NEW_NAME);
PART_ERROR(H5Lmove_soft_rename);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" renamed soft link existed in source group before move!\n");
+ printf(" renamed soft link existed in source group before move!\n");
PART_ERROR(H5Lmove_soft_rename);
}
@@ -10145,35 +10027,35 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME4, src_grp_id,
MOVE_LINK_TEST_SOFT_LINK_NEW_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to rename link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4);
+ printf(" failed to rename link '%s'\n", MOVE_LINK_TEST_SOFT_LINK_NAME4);
PART_ERROR(H5Lmove_soft_rename);
}
/* Verify the link has been renamed */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NEW_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if renamed soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_NEW_NAME);
+ printf(" couldn't determine if renamed soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_NEW_NAME);
PART_ERROR(H5Lmove_soft_rename);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" renamed soft link did not exist\n");
+ printf(" renamed soft link did not exist\n");
PART_ERROR(H5Lmove_soft_rename);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_SOFT_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old soft link '%s' exists\n",
- MOVE_LINK_TEST_SOFT_LINK_NAME4);
+ printf(" couldn't determine if old soft link '%s' exists\n",
+ MOVE_LINK_TEST_SOFT_LINK_NAME4);
PART_ERROR(H5Lmove_soft_rename);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old soft link exists\n");
+ printf(" old soft link exists\n");
PART_ERROR(H5Lmove_soft_rename);
}
@@ -10190,13 +10072,13 @@ test_move_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lmove_external_no_check);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lmove_external_no_check);
}
@@ -10204,35 +10086,35 @@ test_move_link(void)
if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME);
PART_ERROR(H5Lmove_external_no_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME);
PART_ERROR(H5Lmove_external_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lmove_external_no_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME);
PART_ERROR(H5Lmove_external_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link existed in target group before move!\n");
+ printf(" external link existed in target group before move!\n");
PART_ERROR(H5Lmove_external_no_check);
}
@@ -10240,35 +10122,35 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, dst_grp_id,
MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME);
PART_ERROR(H5Lmove_external_no_check);
}
/* Verify the link has been moved */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME);
PART_ERROR(H5Lmove_external_no_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lmove_external_no_check);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME);
+ printf(" couldn't determine if old external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME);
PART_ERROR(H5Lmove_external_no_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old external link exists\n");
+ printf(" old external link exists\n");
PART_ERROR(H5Lmove_external_no_check);
}
@@ -10299,13 +10181,13 @@ test_move_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lmove_external_check);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lmove_external_check);
}
@@ -10313,28 +10195,28 @@ test_move_link(void)
if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lmove_external_check);
}
/* Retrieve the link's info */
if (H5Lget_info2(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, &orig_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
@@ -10342,29 +10224,29 @@ test_move_link(void)
if (H5Lget_val(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, orig_link_val,
MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for external link '%s'\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't retrieve value for external link '%s'\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
if (H5Lunpack_elink_val(orig_link_val, orig_info.u.val_size, &unpack_flags, &orig_filename,
&orig_objname) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack original external link's value buffer\n");
+ printf(" couldn't unpack original external link's value buffer\n");
PART_ERROR(H5Lmove_external_check);
}
/* Verify the link doesn't currently exist in the target group */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link existed in target group before move!\n");
+ printf(" external link existed in target group before move!\n");
PART_ERROR(H5Lmove_external_check);
}
@@ -10372,63 +10254,63 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, dst_grp_id,
MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
/* Verify the link has been moved */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lmove_external_check);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't determine if old external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old external link exists\n");
+ printf(" old external link exists\n");
PART_ERROR(H5Lmove_external_check);
}
/* Retrieve the moved link's info */
if (H5Lget_info2(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, &new_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't retrieve info for link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
if (new_info.type != orig_info.type) {
H5_FAILED();
- HDprintf(" moved link's link type doesn't match original link's type\n");
+ printf(" moved link's link type doesn't match original link's type\n");
PART_ERROR(H5Lmove_external_check);
}
if (new_info.u.val_size != orig_info.u.val_size) {
H5_FAILED();
- HDprintf(" moved external link's value size of %llu doesn't match original link's value "
- "size of %llu\n",
- (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
+ printf(" moved external link's value size of %llu doesn't match original link's value "
+ "size of %llu\n",
+ (unsigned long long)new_info.u.val_size, (unsigned long long)orig_info.u.val_size);
PART_ERROR(H5Lmove_external_check);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (new_info.corder_valid != orig_info.corder_valid) {
H5_FAILED();
- HDprintf(
+ printf(
" moved link's 'corder_valid' field doesn't match original link's 'corder_valid' "
"field\n");
PART_ERROR(H5Lmove_external_check);
@@ -10437,17 +10319,17 @@ test_move_link(void)
if (new_info.corder_valid && orig_info.corder_valid &&
(new_info.corder != orig_info.corder)) {
H5_FAILED();
- HDprintf(" moved link's creation order value %" PRId64
- " doesn't match original link's creation "
- "order value %" PRId64 "\n",
- new_info.corder, orig_info.corder);
+ printf(" moved link's creation order value %" PRId64
+ " doesn't match original link's creation "
+ "order value %" PRId64 "\n",
+ new_info.corder, orig_info.corder);
PART_ERROR(H5Lmove_external_check);
}
}
if (new_info.cset != orig_info.cset) {
H5_FAILED();
- HDprintf(" moved link's character set doesn't match original link's character set\n");
+ printf(" moved link's character set doesn't match original link's character set\n");
PART_ERROR(H5Lmove_external_check);
}
@@ -10455,31 +10337,31 @@ test_move_link(void)
if (H5Lget_val(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME2, new_link_val,
MOVE_LINK_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve value for external link '%s'\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME2);
+ printf(" couldn't retrieve value for external link '%s'\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME2);
PART_ERROR(H5Lmove_external_check);
}
if (H5Lunpack_elink_val(new_link_val, new_info.u.val_size, &unpack_flags, &new_filename,
&new_objname) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack moved external link's value buffer\n");
+ printf(" couldn't unpack moved external link's value buffer\n");
PART_ERROR(H5Lmove_external_check);
}
if (HDstrncmp(new_filename, orig_filename, strlen(orig_filename)) < 0) {
H5_FAILED();
- HDprintf(" moved external link's filename '%s' doesn't match original external link's "
- "filename '%s'\n",
- new_filename, orig_filename);
+ printf(" moved external link's filename '%s' doesn't match original external link's "
+ "filename '%s'\n",
+ new_filename, orig_filename);
PART_ERROR(H5Lmove_external_check);
}
if (HDstrncmp(new_objname, orig_objname, strlen(orig_objname)) < 0) {
H5_FAILED();
- HDprintf(" moved external link's object name '%s' doesn't match original external link's "
- "object name '%s'\n",
- new_objname, orig_objname);
+ printf(" moved external link's object name '%s' doesn't match original external link's "
+ "object name '%s'\n",
+ new_objname, orig_objname);
PART_ERROR(H5Lmove_external_check);
}
@@ -10503,13 +10385,13 @@ test_move_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lmove_external_same_loc);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lmove_external_same_loc);
}
@@ -10517,21 +10399,21 @@ test_move_link(void)
if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3);
PART_ERROR(H5Lmove_external_same_loc);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME3);
PART_ERROR(H5Lmove_external_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lmove_external_same_loc);
}
@@ -10539,14 +10421,14 @@ test_move_link(void)
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_external_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" external link existed in target group before move!\n");
+ printf(" external link existed in target group before move!\n");
PART_ERROR(H5Lmove_external_same_loc);
}
@@ -10554,35 +10436,35 @@ test_move_link(void)
if (H5Lmove(H5L_SAME_LOC, MOVE_LINK_TEST_EXTERN_LINK_NAME3, src_grp_id,
MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME3);
PART_ERROR(H5Lmove_external_same_loc);
}
/* Ensure the link has been renamed */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME3);
PART_ERROR(H5Lmove_external_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" original external link existed in target group after move!\n");
+ printf(" original external link existed in target group after move!\n");
PART_ERROR(H5Lmove_external_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_external_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist after move!\n");
+ printf(" external link did not exist after move!\n");
PART_ERROR(H5Lmove_external_same_loc);
}
@@ -10590,35 +10472,35 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5L_SAME_LOC,
MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
+ printf(" failed to move link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_external_same_loc);
}
/* Verify the link has been renamed back */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME3);
PART_ERROR(H5Lmove_external_same_loc);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original external link did not exist after moving the link back!\n");
+ printf(" original external link did not exist after moving the link back!\n");
PART_ERROR(H5Lmove_external_same_loc);
}
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if old external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
+ printf(" couldn't determine if old external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_SAME_LOC_NAME);
PART_ERROR(H5Lmove_external_same_loc);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" renamed external link exists after moving the link back!\n");
+ printf(" renamed external link exists after moving the link back!\n");
PART_ERROR(H5Lmove_external_same_loc);
}
@@ -10642,13 +10524,13 @@ test_move_link(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lmove_external_rename);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lmove_external_rename);
}
@@ -10656,35 +10538,35 @@ test_move_link(void)
if (H5Lcreate_external(ext_link_filename, "/", src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4);
+ printf(" couldn't create external link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4);
PART_ERROR(H5Lmove_external_rename);
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME4);
+ printf(" couldn't determine if external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME4);
PART_ERROR(H5Lmove_external_rename);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lmove_external_rename);
}
/* Verify the renamed link doesn't currently exist in the source group */
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if renamed external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME);
+ printf(" couldn't determine if renamed external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME);
PART_ERROR(H5Lmove_external_rename);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" renamed external link existed in source group before move!\n");
+ printf(" renamed external link existed in source group before move!\n");
PART_ERROR(H5Lmove_external_rename);
}
@@ -10692,35 +10574,35 @@ test_move_link(void)
if (H5Lmove(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4, src_grp_id,
MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to rename link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4);
+ printf(" failed to rename link '%s'\n", MOVE_LINK_TEST_EXTERN_LINK_NAME4);
PART_ERROR(H5Lmove_external_rename);
}
/* Verify the link has been renamed */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if renamed external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME);
+ printf(" couldn't determine if renamed external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NEW_NAME);
PART_ERROR(H5Lmove_external_rename);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" renamed external link did not exist\n");
+ printf(" renamed external link did not exist\n");
PART_ERROR(H5Lmove_external_rename);
}
/* Verify the old link is gone */
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_TEST_EXTERN_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if old external link '%s' exists\n",
- MOVE_LINK_TEST_EXTERN_LINK_NAME4);
+ printf(" couldn't determine if old external link '%s' exists\n",
+ MOVE_LINK_TEST_EXTERN_LINK_NAME4);
PART_ERROR(H5Lmove_external_rename);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" old external link exists\n");
+ printf(" old external link exists\n");
PART_ERROR(H5Lmove_external_rename);
}
@@ -10840,53 +10722,53 @@ test_move_links_into_group_with_links(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, hard link, or creation order aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, or creation order 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SRC_GRP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SRC_GRP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_SRC_GRP_NAME);
goto error;
}
if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_DST_GRP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_DST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_DST_GRP_NAME);
goto error;
}
@@ -10896,7 +10778,7 @@ test_move_links_into_group_with_links(void)
if (H5Lcreate_hard(src_grp_id, ".", src_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create link '%s' in source group\n", link_name);
+ printf(" couldn't create link '%s' in source group\n", link_name);
goto error;
}
@@ -10904,21 +10786,21 @@ test_move_links_into_group_with_links(void)
memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info2(src_grp_id, link_name, &link_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve info for link '%s'\n", link_name);
+ printf(" failed to retrieve info for link '%s'\n", link_name);
goto error;
}
if (!link_info.corder_valid) {
H5_FAILED();
- HDprintf(" creation order value for newly-created link '%s' was marked as not valid!\n",
- link_name);
+ printf(" creation order value for newly-created link '%s' was marked as not valid!\n",
+ link_name);
goto error;
}
if (link_info.corder != (int64_t)i) {
H5_FAILED();
- HDprintf(" creation order value %lld for link '%s' did not match expected value %lld\n",
- (long long)link_info.corder, link_name, (long long)i);
+ printf(" creation order value %lld for link '%s' did not match expected value %lld\n",
+ (long long)link_info.corder, link_name, (long long)i);
goto error;
}
}
@@ -10929,7 +10811,7 @@ test_move_links_into_group_with_links(void)
if (H5Lcreate_hard(dst_grp_id, ".", dst_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create link '%s' in destination group\n", link_name);
+ printf(" couldn't create link '%s' in destination group\n", link_name);
goto error;
}
}
@@ -10940,7 +10822,7 @@ test_move_links_into_group_with_links(void)
if (H5Lmove(src_grp_id, link_name, dst_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s' from source group to destination group\n", link_name);
+ printf(" failed to move link '%s' from source group to destination group\n", link_name);
goto error;
}
@@ -10948,22 +10830,22 @@ test_move_links_into_group_with_links(void)
memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info2(dst_grp_id, link_name, &link_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve info for link '%s'\n", link_name);
+ printf(" failed to retrieve info for link '%s'\n", link_name);
goto error;
}
if (!link_info.corder_valid) {
H5_FAILED();
- HDprintf(" creation order value for moved link '%s' was marked as not valid!\n", link_name);
+ printf(" creation order value for moved link '%s' was marked as not valid!\n", link_name);
goto error;
}
if (link_info.corder != (int64_t)(i + MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_NUM_LINKS)) {
H5_FAILED();
- HDprintf(" creation order value for moved link '%s' was not adjusted after move! It should "
- "have been %lld but was %lld\n",
- link_name, (long long)(i + MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_NUM_LINKS),
- (long long)link_info.corder);
+ printf(" creation order value for moved link '%s' was not adjusted after move! It should "
+ "have been %lld but was %lld\n",
+ link_name, (long long)(i + MOVE_LINK_INTO_GRP_WITH_LINKS_TEST_NUM_LINKS),
+ (long long)link_info.corder);
goto error;
}
}
@@ -11043,54 +10925,54 @@ test_move_link_reset_grp_max_crt_order(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, hard link, or creation order aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, or creation order 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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SUBGROUP_NAME);
goto error;
}
if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SRC_GRP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SRC_GRP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_SRC_GRP_NAME);
goto error;
}
if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_DST_GRP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_DST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_DST_GRP_NAME);
goto error;
}
@@ -11100,7 +10982,7 @@ test_move_link_reset_grp_max_crt_order(void)
if (H5Lcreate_hard(src_grp_id, ".", src_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s' in source group\n", link_name);
+ printf(" couldn't create hard link '%s' in source group\n", link_name);
goto error;
}
}
@@ -11114,15 +10996,15 @@ test_move_link_reset_grp_max_crt_order(void)
if (H5Gget_info(src_grp_id, &grp_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve source group's info\n");
+ printf(" failed to retrieve source group's info\n");
goto error;
}
if (grp_info.max_corder != MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" source group's maximum creation order value got adjusted to %lld during link "
- "moving; value should have remained at %d\n",
- (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
+ printf(" source group's maximum creation order value got adjusted to %lld during link "
+ "moving; value should have remained at %d\n",
+ (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
goto error;
}
@@ -11130,7 +11012,7 @@ test_move_link_reset_grp_max_crt_order(void)
if (H5Lmove(src_grp_id, link_name, dst_grp_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to move link '%s' to destination group\n", link_name);
+ printf(" failed to move link '%s' to destination group\n", link_name);
goto error;
}
}
@@ -11143,15 +11025,15 @@ test_move_link_reset_grp_max_crt_order(void)
if (H5Gget_info(src_grp_id, &grp_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve source group's info\n");
+ printf(" failed to retrieve source group's info\n");
goto error;
}
if (grp_info.max_corder != 0) {
H5_FAILED();
- HDprintf(" source group's maximum creation order value didn't reset to 0 after moving all links "
- "out of it; value is still %lld\n",
- (long long)grp_info.max_corder);
+ printf(" source group's maximum creation order value didn't reset to 0 after moving all links "
+ "out of it; value is still %lld\n",
+ (long long)grp_info.max_corder);
goto error;
}
@@ -11160,15 +11042,15 @@ test_move_link_reset_grp_max_crt_order(void)
if (H5Gget_info(dst_grp_id, &grp_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve destination group's info\n");
+ printf(" failed to retrieve destination group's info\n");
goto error;
}
if (grp_info.max_corder != MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" destination group's maximum creation order value of %lld didn't match expected value "
- "of %d after moving all links into it\n",
- (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
+ printf(" destination group's maximum creation order value of %lld didn't match expected value "
+ "of %d after moving all links into it\n",
+ (long long)grp_info.max_corder, MOVE_LINK_RESET_MAX_CRT_ORDER_TEST_NUM_LINKS);
goto error;
}
@@ -11225,8 +11107,8 @@ test_move_link_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_LINK_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or hard link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, link, or hard link aren't supported with this "
+ "connector\n");
return 0;
}
@@ -11234,41 +11116,41 @@ test_move_link_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, MOVE_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SUBGROUP_NAME);
goto error;
}
if ((src_grp_id = H5Gcreate2(group_id, MOVE_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_SRC_GROUP_NAME);
goto error;
}
if ((dst_grp_id = H5Gcreate2(group_id, MOVE_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_DST_GROUP_NAME);
goto error;
}
if (H5Lcreate_hard(group_id, ".", src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
@@ -11276,14 +11158,14 @@ test_move_link_invalid_params(void)
if ((link_exists = H5Lexists(src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
goto error;
}
@@ -11291,14 +11173,14 @@ test_move_link_invalid_params(void)
if ((link_exists = H5Lexists(dst_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group before move!\n");
+ printf(" hard link existed in target group before move!\n");
goto error;
}
@@ -11319,7 +11201,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with an invalid source location ID!\n");
+ printf(" H5Lmove succeeded with an invalid source location ID!\n");
PART_ERROR(H5Lmove_invalid_src_loc_id);
}
@@ -11340,7 +11222,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with a NULL source name!\n");
+ printf(" H5Lmove succeeded with a NULL source name!\n");
PART_ERROR(H5Lmove_invalid_src_name);
}
@@ -11353,7 +11235,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with an invalid source name of ''!\n");
+ printf(" H5Lmove succeeded with an invalid source name of ''!\n");
PART_ERROR(H5Lmove_invalid_src_name);
}
@@ -11374,7 +11256,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with an invalid destination location ID!\n");
+ printf(" H5Lmove succeeded with an invalid destination location ID!\n");
PART_ERROR(H5Lmove_invalid_dst_loc_id);
}
@@ -11395,7 +11277,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with a NULL destination name!\n");
+ printf(" H5Lmove succeeded with a NULL destination name!\n");
PART_ERROR(H5Lmove_invalid_dst_name);
}
@@ -11408,7 +11290,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with an invalid destination name of ''!\n");
+ printf(" H5Lmove succeeded with an invalid destination name of ''!\n");
PART_ERROR(H5Lmove_invalid_dst_name);
}
@@ -11429,7 +11311,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with an invalid LCPL!\n");
+ printf(" H5Lmove succeeded with an invalid LCPL!\n");
PART_ERROR(H5Lmove_invalid_lcpl);
}
@@ -11450,7 +11332,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with an invalid LAPL!\n");
+ printf(" H5Lmove succeeded with an invalid LAPL!\n");
PART_ERROR(H5Lmove_invalid_lapl);
}
@@ -11466,28 +11348,28 @@ test_move_link_invalid_params(void)
if ((link_exists =
H5Lexists(src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_existence);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link didn't exist in source group after invalid move!\n");
+ printf(" hard link didn't exist in source group after invalid move!\n");
PART_ERROR(H5Lmove_existence);
}
if ((link_exists =
H5Lexists(dst_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_existence);
}
if (link_exists) {
H5_FAILED();
- HDprintf(" hard link existed in target group after invalid move!\n");
+ printf(" hard link existed in target group after invalid move!\n");
PART_ERROR(H5Lmove_existence);
}
@@ -11510,7 +11392,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded with an invalid same location!\n");
+ printf(" H5Lmove succeeded with an invalid same location!\n");
PART_ERROR(H5Lmove_same_location);
}
@@ -11527,7 +11409,7 @@ test_move_link_invalid_params(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lmove_across_files);
}
@@ -11541,7 +11423,7 @@ test_move_link_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lmove succeeded in moving a hard link across files!\n");
+ printf(" H5Lmove succeeded in moving a hard link across files!\n");
PART_ERROR(H5Lmove_across_files);
}
@@ -11549,21 +11431,21 @@ test_move_link_invalid_params(void)
if ((link_exists =
H5Lexists(src_grp_id, MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if original link '%s' exists after invalid link move\n",
- MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if original link '%s' exists after invalid link move\n",
+ MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_across_files);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" original link '%s' didn't exist after failed move!\n",
- MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" original link '%s' didn't exist after failed move!\n",
+ MOVE_LINK_INVALID_PARAMS_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lmove_across_files);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close a file!\n");
+ printf(" failed to close a file!\n");
PART_ERROR(H5Lmove_across_files);
}
@@ -11632,8 +11514,8 @@ test_get_link_val(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, external link, or creation "
- "order aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, external link, or creation "
+ "order aren't supported with this connector\n");
return 0;
}
@@ -11641,26 +11523,26 @@ test_get_link_val(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -11668,7 +11550,7 @@ test_get_link_val(void)
if ((group_id = H5Gcreate2(container_group, GET_LINK_VAL_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP_NAME);
goto error;
}
@@ -11682,64 +11564,64 @@ test_get_link_val(void)
TESTING_2("H5Lget_val on soft link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Lget_val_soft);
}
if (H5Lcreate_soft(link_target, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_soft);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_soft);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_soft);
}
if (H5Lget_info2(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info\n");
+ printf(" failed to retrieve soft link's info\n");
PART_ERROR(H5Lget_val_soft);
}
link_val_size = strlen(link_target) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size,
- link_val_size);
+ printf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size,
+ link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (H5Lget_val(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value\n");
+ printf(" couldn't get soft link value\n");
PART_ERROR(H5Lget_val_soft);
}
if (HDstrncmp(link_val_buf, link_target, link_val_size)) {
H5_FAILED();
- HDprintf(" soft link value did not match\n");
+ printf(" soft link value did not match\n");
PART_ERROR(H5Lget_val_soft);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Lget_val_soft);
}
@@ -11760,95 +11642,95 @@ test_get_link_val(void)
TESTING_2("H5Lget_val on external link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
HDsnprintf(ext_link_filename, H5_API_TEST_FILENAME_MAX_LENGTH, "%s",
EXTERNAL_LINK_TEST_FILE_NAME);
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_val_external);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_val_external);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME);
PART_ERROR(H5Lget_val_external);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_external);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_external);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" external link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_external);
}
if (H5Lget_info2(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info\n");
+ printf(" failed to retrieve external link's info\n");
PART_ERROR(H5Lget_val_external);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size,
- link_val_size);
+ printf(" link value size %zu did not match expected size of %zu\n", link_info.u.val_size,
+ link_val_size);
PART_ERROR(H5Lget_val_external);
}
if (H5Lget_val(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value\n");
+ printf(" couldn't get external link value\n");
PART_ERROR(H5Lget_val_external);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_external);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_external);
}
if (HDstrncmp(ext_link_val, ext_obj_name, strlen(ext_obj_name) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name);
PART_ERROR(H5Lget_val_external);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP2_NAME);
PART_ERROR(H5Lget_val_external);
}
@@ -11896,14 +11778,14 @@ test_get_link_val(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP4_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
@@ -11911,158 +11793,158 @@ test_get_link_val(void)
if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 0);
+ printf(" failed to retrieve soft link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
link_val_size = strlen(link_target_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 0);
+ printf(" couldn't get soft link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 0, link_target_a);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 0, link_target_a);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 1);
+ printf(" failed to retrieve soft link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
link_val_size = strlen(link_target_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 1);
+ printf(" couldn't get soft link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 1, link_target_b);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 1, link_target_b);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 2);
+ printf(" failed to retrieve soft link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
link_val_size = strlen(link_target_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 2);
+ printf(" couldn't get soft link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 2, link_target_c);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 2, link_target_c);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP4_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_increasing);
}
@@ -12090,14 +11972,14 @@ test_get_link_val(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP5_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
@@ -12105,158 +11987,158 @@ test_get_link_val(void)
if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 2);
+ printf(" failed to retrieve soft link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
link_val_size = strlen(link_target_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 2);
+ printf(" couldn't get soft link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 2, link_target_a);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 2, link_target_a);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 1);
+ printf(" failed to retrieve soft link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
link_val_size = strlen(link_target_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 1);
+ printf(" couldn't get soft link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 1, link_target_b);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 1, link_target_b);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 0);
+ printf(" failed to retrieve soft link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
link_val_size = strlen(link_target_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 0);
+ printf(" couldn't get soft link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 0, link_target_c);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 0, link_target_c);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP5_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_crt_order_decreasing);
}
@@ -12285,7 +12167,7 @@ test_get_link_val(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP6_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
@@ -12293,158 +12175,158 @@ test_get_link_val(void)
if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 0);
+ printf(" failed to retrieve soft link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
link_val_size = strlen(link_target_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 0);
+ printf(" couldn't get soft link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 0, link_target_a);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 0, link_target_a);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 1);
+ printf(" failed to retrieve soft link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
link_val_size = strlen(link_target_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 1);
+ printf(" couldn't get soft link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 1, link_target_b);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 1, link_target_b);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 2);
+ printf(" failed to retrieve soft link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
link_val_size = strlen(link_target_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 2);
+ printf(" couldn't get soft link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 2, link_target_c);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 2, link_target_c);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP6_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_increasing);
}
@@ -12473,7 +12355,7 @@ test_get_link_val(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP7_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
@@ -12481,158 +12363,158 @@ test_get_link_val(void)
if (H5Lcreate_soft(link_target_a, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (H5Lcreate_soft(link_target_b, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (H5Lcreate_soft(link_target_c, subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 2);
+ printf(" failed to retrieve soft link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
link_val_size = strlen(link_target_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 2);
+ printf(" couldn't get soft link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (HDstrncmp(link_val_buf, link_target_a, strlen(link_target_a) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 2, link_target_a);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 2, link_target_a);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 1);
+ printf(" failed to retrieve soft link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
link_val_size = strlen(link_target_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 1);
+ printf(" couldn't get soft link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (HDstrncmp(link_val_buf, link_target_b, strlen(link_target_b) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 1, link_target_b);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 1, link_target_b);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve soft link's info at index %d\n", 0);
+ printf(" failed to retrieve soft link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
link_val_size = strlen(link_target_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link value at index %d\n", 0);
+ printf(" couldn't get soft link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (HDstrncmp(link_val_buf, link_target_c, strlen(link_target_c) + 1)) {
H5_FAILED();
- HDprintf(" link value '%s' for link at index %d did not match expected value '%s'\n",
- link_val_buf, 0, link_target_c);
+ printf(" link value '%s' for link at index %d did not match expected value '%s'\n",
+ link_val_buf, 0, link_target_c);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP7_NAME);
PART_ERROR(H5Lget_val_by_idx_soft_name_order_decreasing);
}
@@ -12657,7 +12539,7 @@ test_get_link_val(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_val_by_idx_external_crt_order_increasing);
}
@@ -12666,20 +12548,20 @@ test_get_link_val(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP8_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
@@ -12687,200 +12569,200 @@ test_get_link_val(void)
if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 0);
+ printf(" failed to retrieve external link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 0);
+ printf(" couldn't get external link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_a);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_a);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 1);
+ printf(" failed to retrieve external link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 1);
+ printf(" couldn't get external link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_b);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_b);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 2);
+ printf(" failed to retrieve external link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 2);
+ printf(" couldn't get external link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_c);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_c);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP8_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_increasing);
}
@@ -12907,7 +12789,7 @@ test_get_link_val(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_val_by_idx_external_crt_order_decreasing);
}
@@ -12916,20 +12798,20 @@ test_get_link_val(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP9_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
@@ -12937,200 +12819,200 @@ test_get_link_val(void)
if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 2);
+ printf(" failed to retrieve external link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 2);
+ printf(" couldn't get external link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_a);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_a);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 1);
+ printf(" failed to retrieve external link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 1);
+ printf(" couldn't get external link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_b);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_b);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 0);
+ printf(" failed to retrieve external link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 0);
+ printf(" couldn't get external link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_c);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_c);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP9_NAME);
PART_ERROR(H5Lget_val_by_idx_external_crt_order_decreasing);
}
@@ -13160,20 +13042,20 @@ test_get_link_val(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP10_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
@@ -13181,200 +13063,200 @@ test_get_link_val(void)
if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 0);
+ printf(" failed to retrieve external link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 0);
+ printf(" couldn't get external link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_a);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_a);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 1);
+ printf(" failed to retrieve external link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 1);
+ printf(" couldn't get external link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_b);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_b);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 2);
+ printf(" failed to retrieve external link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 2);
+ printf(" couldn't get external link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_c);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_c);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP10_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_increasing);
}
@@ -13404,20 +13286,20 @@ test_get_link_val(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_VAL_TEST_SUBGROUP11_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
@@ -13425,200 +13307,200 @@ test_get_link_val(void)
if (H5Lcreate_external(ext_link_filename, ext_obj_name_a, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_b, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_obj_name_c, subgroup_id,
GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
/* Verify the links exist */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_VAL_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if link '%s' exists\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
+ printf(" link '%s' did not exist\n", GET_LINK_VAL_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
/* Retrieve the info and value of each link in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 2);
+ printf(" failed to retrieve external link's info at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_a) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 2, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 2, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 2);
+ printf(" couldn't get external link value at index %d\n", 2);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_a, strlen(ext_obj_name_a) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_a);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_a);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 1);
+ printf(" failed to retrieve external link's info at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_b) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 1, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 1, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 1);
+ printf(" couldn't get external link value at index %d\n", 1);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_b, strlen(ext_obj_name_b) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_b);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_b);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve external link's info at index %d\n", 0);
+ printf(" failed to retrieve external link's info at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_obj_name_c) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link value size %zu for link at index %d did not match expected size of %zu\n",
- link_info.u.val_size, 0, link_val_size);
+ printf(" link value size %zu for link at index %d did not match expected size of %zu\n",
+ link_info.u.val_size, 0, link_val_size);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
- HDmemset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
+ memset(link_val_buf, 0, GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE);
if (H5Lget_val_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_val_buf,
GET_LINK_VAL_TEST_LINK_VAL_BUF_SIZE, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link value at index %d\n", 0);
+ printf(" couldn't get external link value at index %d\n", 0);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (H5Lunpack_elink_val(link_val_buf, link_info.u.val_size, &ext_link_flags, &ext_link_filepath,
&ext_link_val) < 0) {
H5_FAILED();
- HDprintf(" couldn't unpack external link value buffer\n");
+ printf(" couldn't unpack external link value buffer\n");
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(ext_link_filepath, ext_link_filename, strlen(ext_link_filename) + 1)) {
H5_FAILED();
- HDprintf(" external link target file '%s' did not match expected '%s'\n",
- ext_link_filepath, ext_link_filename);
+ printf(" external link target file '%s' did not match expected '%s'\n", ext_link_filepath,
+ ext_link_filename);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(ext_link_val, ext_obj_name_c, strlen(ext_obj_name_c) + 1)) {
H5_FAILED();
- HDprintf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
- ext_obj_name_c);
+ printf(" external link value '%s' did not match expected '%s'\n", ext_link_val,
+ ext_obj_name_c);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_VAL_TEST_SUBGROUP11_NAME);
PART_ERROR(H5Lget_val_by_idx_external_name_order_decreasing);
}
@@ -13754,8 +13636,8 @@ test_get_link_val_invalid_params(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, external link, or creation "
- "order aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, external link, or creation "
+ "order aren't supported with this connector\n");
return 0;
}
@@ -13763,34 +13645,33 @@ test_get_link_val_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_VAL_INVALID_PARAMS_TEST_GROUP_NAME, group_id,
GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
goto error;
}
@@ -13798,21 +13679,21 @@ test_get_link_val_invalid_params(void)
if ((link_exists = H5Lexists(group_id, GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n",
- GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n",
+ GET_LINK_VAL_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
link_val_buf_size = 100;
- if (NULL == (link_val_buf = (char *)HDmalloc(link_val_buf_size))) {
+ if (NULL == (link_val_buf = (char *)malloc(link_val_buf_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for storing link value\n");
+ printf(" couldn't allocate buffer for storing link value\n");
goto error;
}
@@ -13824,7 +13705,7 @@ test_get_link_val_invalid_params(void)
{
TESTING_2("H5Lget_val with an invalid location ID");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
H5E_BEGIN_TRY
{
@@ -13835,7 +13716,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val succeeded with an invalid location ID\n");
+ printf(" H5Lget_val succeeded with an invalid location ID\n");
PART_ERROR(H5Lget_val_invalid_loc_id);
}
@@ -13855,7 +13736,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val succeeded with a NULL link name\n");
+ printf(" H5Lget_val succeeded with a NULL link name\n");
PART_ERROR(H5Lget_val_invalid_link_name);
}
@@ -13867,7 +13748,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val succeeded with an invalid link name of ''\n");
+ printf(" H5Lget_val succeeded with an invalid link name of ''\n");
PART_ERROR(H5Lget_val_invalid_link_name);
}
@@ -13888,7 +13769,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val succeeded with an invalid LAPL\n");
+ printf(" H5Lget_val succeeded with an invalid LAPL\n");
PART_ERROR(H5Lget_val_invalid_lapl);
}
@@ -13900,7 +13781,7 @@ test_get_link_val_invalid_params(void)
{
TESTING_2("H5Lget_val_by_idx with an invalid location ID");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
H5E_BEGIN_TRY
{
@@ -13911,7 +13792,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val_by_idx succeeded with an invalid location ID!\n");
+ printf(" H5Lget_val_by_idx succeeded with an invalid location ID!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_loc_id);
}
@@ -13932,7 +13813,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val_by_idx succeeded with a NULL group name!\n");
+ printf(" H5Lget_val_by_idx succeeded with a NULL group name!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_grp_name);
}
@@ -13945,7 +13826,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val_by_idx succeeded with an invalid group name of ''!\n");
+ printf(" H5Lget_val_by_idx succeeded with an invalid group name of ''!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_grp_name);
}
@@ -13966,7 +13847,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_index_type);
}
@@ -13979,7 +13860,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Lget_val_by_idx succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_index_type);
}
@@ -14000,8 +13881,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_iter_order);
}
@@ -14014,7 +13894,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Lget_val_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_iter_order);
}
@@ -14035,7 +13915,7 @@ test_get_link_val_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_val_by_idx succeeded with an invalid LAPL!\n");
+ printf(" H5Lget_val_by_idx succeeded with an invalid LAPL!\n");
PART_ERROR(H5Lget_val_by_idx_invalid_lapl);
}
@@ -14048,7 +13928,7 @@ test_get_link_val_invalid_params(void)
TESTING_2("test cleanup");
if (link_val_buf) {
- HDfree(link_val_buf);
+ free(link_val_buf);
link_val_buf = NULL;
}
@@ -14069,7 +13949,7 @@ error:
H5E_BEGIN_TRY
{
if (link_val_buf)
- HDfree(link_val_buf);
+ free(link_val_buf);
H5Pclose(gcpl_id);
H5Gclose(group_id);
H5Gclose(container_group);
@@ -14105,8 +13985,8 @@ test_get_link_info(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, hard link, or external link "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, hard link, or external link "
+ "aren't supported with this connector\n");
return 0;
}
@@ -14114,26 +13994,26 @@ test_get_link_info(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -14141,7 +14021,7 @@ test_get_link_info(void)
if ((group_id = H5Gcreate2(container_group, GET_LINK_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", GET_LINK_INFO_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", GET_LINK_INFO_TEST_GROUP_NAME);
goto error;
}
@@ -14153,59 +14033,59 @@ test_get_link_info(void)
{
TESTING_2("H5Lget_info2 on hard link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP1_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Lget_info_hard);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_hard);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_hard);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
PART_ERROR(H5Lget_info_hard);
}
if (H5Lget_info2(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, &link_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info\n");
+ printf(" couldn't get hard link info\n");
PART_ERROR(H5Lget_info_hard);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_hard);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_hard);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP1_NAME);
PART_ERROR(H5Lget_info_hard);
}
@@ -14224,12 +14104,12 @@ test_get_link_info(void)
{
TESTING_2("H5Lget_info2 on soft link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP2_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME);
PART_ERROR(H5Lget_info_soft);
}
@@ -14238,32 +14118,32 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_soft);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_soft);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link did not exist\n");
+ printf(" soft link did not exist\n");
PART_ERROR(H5Lget_info_soft);
}
if (H5Lget_info2(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info\n");
+ printf(" couldn't get soft link info\n");
PART_ERROR(H5Lget_info_soft);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_soft);
}
@@ -14272,23 +14152,23 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_soft);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_soft);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP2_NAME);
PART_ERROR(H5Lget_info_soft);
}
@@ -14307,82 +14187,82 @@ test_get_link_info(void)
{
TESTING_2("H5Lget_info2 on external link");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
HDsnprintf(ext_link_filename, H5_API_TEST_FILENAME_MAX_LENGTH, "%s",
EXTERNAL_LINK_TEST_FILE_NAME);
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_info_external);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_info_external);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP3_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME);
PART_ERROR(H5Lget_info_external);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_external);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_external);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link did not exist\n");
+ printf(" external link did not exist\n");
PART_ERROR(H5Lget_info_external);
}
if (H5Lget_info2(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, &link_info, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info\n");
+ printf(" couldn't get external link info\n");
PART_ERROR(H5Lget_info_external);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_external);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_external);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_external);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP3_NAME);
PART_ERROR(H5Lget_info_external);
}
@@ -14423,14 +14303,14 @@ test_get_link_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP5_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
@@ -14438,134 +14318,134 @@ test_get_link_info(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 0);
+ printf(" couldn't get hard link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 1);
+ printf(" couldn't get hard link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 2);
+ printf(" couldn't get hard link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP5_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_increasing);
}
@@ -14586,14 +14466,14 @@ test_get_link_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP6_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
@@ -14601,134 +14481,134 @@ test_get_link_info(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 2);
+ printf(" couldn't get hard link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 1);
+ printf(" couldn't get hard link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 0);
+ printf(" couldn't get hard link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP6_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_crt_order_decreasing);
}
@@ -14750,7 +14630,7 @@ test_get_link_info(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP7_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
@@ -14758,140 +14638,140 @@ test_get_link_info(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 0);
+ printf(" couldn't get hard link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 1);
+ printf(" couldn't get hard link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 2);
+ printf(" couldn't get hard link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP7_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_increasing);
}
@@ -14913,7 +14793,7 @@ test_get_link_info(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP8_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
@@ -14921,140 +14801,140 @@ test_get_link_info(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 2);
+ printf(" couldn't get hard link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 1);
+ printf(" couldn't get hard link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get hard link info for index %d\n", 0);
+ printf(" couldn't get hard link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP8_NAME);
PART_ERROR(H5Lget_info_by_idx_hard_name_order_decreasing);
}
@@ -15075,14 +14955,14 @@ test_get_link_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP9_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
@@ -15092,7 +14972,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
@@ -15101,7 +14981,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
@@ -15110,65 +14990,65 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 0);
+ printf(" couldn't get soft link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
@@ -15177,29 +15057,29 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 1);
+ printf(" couldn't get soft link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
@@ -15208,29 +15088,29 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 2);
+ printf(" couldn't get soft link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
@@ -15239,21 +15119,21 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP9_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_increasing);
}
@@ -15274,14 +15154,14 @@ test_get_link_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP10_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
@@ -15291,7 +15171,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
@@ -15300,7 +15180,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
@@ -15309,65 +15189,65 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 2);
+ printf(" couldn't get soft link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
@@ -15376,29 +15256,29 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 1);
+ printf(" couldn't get soft link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
@@ -15407,29 +15287,29 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 0);
+ printf(" couldn't get soft link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
@@ -15438,21 +15318,21 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP10_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_crt_order_decreasing);
}
@@ -15474,7 +15354,7 @@ test_get_link_info(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP11_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
@@ -15484,7 +15364,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
@@ -15493,7 +15373,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
@@ -15502,65 +15382,65 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 0);
+ printf(" couldn't get soft link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
@@ -15569,31 +15449,31 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 1);
+ printf(" couldn't get soft link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
@@ -15602,31 +15482,31 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 2);
+ printf(" couldn't get soft link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
@@ -15635,23 +15515,23 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%zu' did not match expected value '%zu'\n",
- link_info.u.val_size, link_val_size);
+ printf(" link's value size '%zu' did not match expected value '%zu'\n",
+ link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP11_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_increasing);
}
@@ -15673,7 +15553,7 @@ test_get_link_info(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP12_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
@@ -15683,7 +15563,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
@@ -15692,7 +15572,7 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
@@ -15701,65 +15581,65 @@ test_get_link_info(void)
subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 2);
+ printf(" couldn't get soft link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
@@ -15768,31 +15648,31 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 1);
+ printf(" couldn't get soft link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
@@ -15801,31 +15681,31 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get soft link info for index %d\n", 0);
+ printf(" couldn't get soft link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_SOFT) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
@@ -15834,23 +15714,23 @@ test_get_link_info(void)
1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP12_NAME);
PART_ERROR(H5Lget_info_by_idx_soft_name_order_decreasing);
}
@@ -15871,7 +15751,7 @@ test_get_link_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_info_by_idx_external_crt_order_increasing);
}
@@ -15880,20 +15760,20 @@ test_get_link_info(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP13_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
@@ -15901,158 +15781,158 @@ test_get_link_info(void)
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 0);
+ printf(" couldn't get external link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 1);
+ printf(" couldn't get external link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 2);
+ printf(" couldn't get external link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP13_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_increasing);
}
@@ -16075,7 +15955,7 @@ test_get_link_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_info_by_idx_external_crt_order_decreasing);
}
@@ -16084,20 +15964,20 @@ test_get_link_info(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP14_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
@@ -16105,158 +15985,158 @@ test_get_link_info(void)
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 2);
+ printf(" couldn't get external link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 1);
+ printf(" couldn't get external link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 0);
+ printf(" couldn't get external link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP14_NAME);
PART_ERROR(H5Lget_info_by_idx_external_crt_order_decreasing);
}
@@ -16282,20 +16162,20 @@ test_get_link_info(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP15_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
@@ -16303,164 +16183,164 @@ test_get_link_info(void)
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 0);
+ printf(" couldn't get external link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 1);
+ printf(" couldn't get external link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 2);
+ printf(" couldn't get external link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP15_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_increasing);
}
@@ -16486,20 +16366,20 @@ test_get_link_info(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_INFO_TEST_SUBGROUP16_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME);
+ printf(" couldn't create subgroup '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
@@ -16507,164 +16387,164 @@ test_get_link_info(void)
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, ext_objname, subgroup_id,
GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME2);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_INFO_TEST_EXT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before deletion\n",
- GET_LINK_INFO_TEST_EXT_LINK_NAME3);
+ printf(" external link '%s' did not exist before deletion\n",
+ GET_LINK_INFO_TEST_EXT_LINK_NAME3);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
/* Retrieve info of links in turn */
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 2);
+ printf(" couldn't get external link info for index %d\n", 2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 0)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)0);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)0);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 1);
+ printf(" couldn't get external link info for index %d\n", 1);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 1)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)1);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)1);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
}
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
if (H5Lget_info_by_idx2(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &link_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get external link info for index %d\n", 0);
+ printf(" couldn't get external link info for index %d\n", 0);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (link_info.type != H5L_TYPE_EXTERNAL) {
H5_FAILED();
- HDprintf(" incorrect link type returned\n");
+ printf(" incorrect link type returned\n");
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
link_val_size = 1 + strlen(ext_link_filename) + 1 + strlen(ext_objname) + 1;
if (link_info.u.val_size != link_val_size) {
H5_FAILED();
- HDprintf(" link's value size '%lld' did not match expected value '%zu'\n",
- (long long)link_info.u.val_size, link_val_size);
+ printf(" link's value size '%lld' did not match expected value '%zu'\n",
+ (long long)link_info.u.val_size, link_val_size);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (link_info.corder_valid && (link_info.corder != 2)) {
H5_FAILED();
- HDprintf(" link's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)link_info.corder, (long long)2);
+ printf(" link's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)link_info.corder, (long long)2);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME);
+ printf(" failed to close group '%s'\n", GET_LINK_INFO_TEST_SUBGROUP16_NAME);
PART_ERROR(H5Lget_info_by_idx_external_name_order_decreasing);
}
@@ -16798,8 +16678,8 @@ test_get_link_info_invalid_params(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, or hard link "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, or hard link "
+ "aren't supported with this connector\n");
return 0;
}
@@ -16807,34 +16687,33 @@ test_get_link_info_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, GET_LINK_INFO_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", GET_LINK_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
if (H5Lcreate_hard(group_id, ".", group_id, GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
@@ -16842,14 +16721,14 @@ test_get_link_info_invalid_params(void)
if ((link_exists = H5Lexists(group_id, GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_INFO_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link did not exist\n");
+ printf(" hard link did not exist\n");
goto error;
}
@@ -16861,7 +16740,7 @@ test_get_link_info_invalid_params(void)
{
TESTING_2("H5Lget_info2 with an invalid location ID");
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
H5E_BEGIN_TRY
{
@@ -16872,7 +16751,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info2 succeeded with an invalid location ID!\n");
+ printf(" H5Lget_info2 succeeded with an invalid location ID!\n");
PART_ERROR(H5Lget_info_invalid_loc_id);
}
@@ -16892,7 +16771,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info2 succeeded with a NULL link name!\n");
+ printf(" H5Lget_info2 succeeded with a NULL link name!\n");
PART_ERROR(H5Lget_info_invalid_link_name);
}
@@ -16904,7 +16783,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info2 succeeded with an invalid link name of ''!\n");
+ printf(" H5Lget_info2 succeeded with an invalid link name of ''!\n");
PART_ERROR(H5Lget_info_invalid_link_name);
}
@@ -16925,7 +16804,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info2 succeeded with an invalid LAPL!\n");
+ printf(" H5Lget_info2 succeeded with an invalid LAPL!\n");
PART_ERROR(H5Lget_info_invalid_lapl);
}
@@ -16933,7 +16812,7 @@ test_get_link_info_invalid_params(void)
}
PART_END(H5Lget_info_invalid_lapl);
- HDmemset(&link_info, 0, sizeof(link_info));
+ memset(&link_info, 0, sizeof(link_info));
PART_BEGIN(H5Lget_info_by_idx_invalid_loc_id)
{
@@ -16948,7 +16827,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info_by_idx2 succeeded with an invalid location ID!\n");
+ printf(" H5Lget_info_by_idx2 succeeded with an invalid location ID!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_loc_id);
}
@@ -16969,7 +16848,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info_by_idx2 succeeded with a NULL group name!\n");
+ printf(" H5Lget_info_by_idx2 succeeded with a NULL group name!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_grp_name);
}
@@ -16982,7 +16861,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info_by_idx2 succeeded with an invalid group name of ''!\n");
+ printf(" H5Lget_info_by_idx2 succeeded with an invalid group name of ''!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_grp_name);
}
@@ -17003,7 +16882,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_index_type);
}
@@ -17016,7 +16895,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Lget_info_by_idx2 succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_index_type);
}
@@ -17037,7 +16916,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" H5Lget_info_by_idx2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_iter_order);
}
@@ -17051,7 +16930,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info_by_idx2 succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Lget_info_by_idx2 succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_iter_order);
}
@@ -17072,7 +16951,7 @@ test_get_link_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_info_by_idx2 succeeded with an invalid LAPL!\n");
+ printf(" H5Lget_info_by_idx2 succeeded with an invalid LAPL!\n");
PART_ERROR(H5Lget_info_by_idx_invalid_lapl);
}
@@ -17134,8 +17013,8 @@ test_get_link_name(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, hard link, or external link "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, hard link, or external link "
+ "aren't supported with this connector\n");
return 0;
}
@@ -17143,26 +17022,26 @@ test_get_link_name(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -17170,7 +17049,7 @@ test_get_link_name(void)
if ((group_id = H5Gcreate2(container_group, GET_LINK_NAME_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", GET_LINK_NAME_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", GET_LINK_NAME_TEST_GROUP_NAME);
goto error;
}
@@ -17184,7 +17063,7 @@ test_get_link_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_name_by_idx_hard_crt_order_increasing);
}
@@ -17192,8 +17071,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
@@ -17201,64 +17080,64 @@ test_get_link_name(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
@@ -17266,72 +17145,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_increasing);
}
@@ -17352,7 +17231,7 @@ test_get_link_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
@@ -17360,8 +17239,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME2, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME2);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
@@ -17369,64 +17248,64 @@ test_get_link_name(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
@@ -17434,72 +17313,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_hard_crt_order_decreasing);
}
@@ -17522,8 +17401,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME3, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME3);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
@@ -17531,64 +17410,64 @@ test_get_link_name(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
@@ -17596,72 +17475,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_increasing);
}
@@ -17684,8 +17563,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME4, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME4);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_HARD_SUBGROUP_NAME4);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
@@ -17693,64 +17572,64 @@ test_get_link_name(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_HARD_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if hard link '%s' exists\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" couldn't determine if hard link '%s' exists\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" hard link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" hard link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
@@ -17758,72 +17637,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_HARD_LINK_NAME,
strlen(GET_LINK_NAME_TEST_HARD_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_HARD_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_HARD_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_hard_name_order_decreasing);
}
@@ -17844,7 +17723,7 @@ test_get_link_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_name_by_idx_soft_crt_order_increasing);
}
@@ -17852,8 +17731,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
@@ -17861,64 +17740,64 @@ test_get_link_name(void)
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
@@ -17926,72 +17805,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_increasing);
}
@@ -18012,7 +17891,7 @@ test_get_link_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
@@ -18020,8 +17899,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME2, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME2);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
@@ -18029,64 +17908,64 @@ test_get_link_name(void)
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
@@ -18094,72 +17973,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_soft_crt_order_decreasing);
}
@@ -18182,8 +18061,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME3, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME3);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
@@ -18191,64 +18070,64 @@ test_get_link_name(void)
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
@@ -18256,72 +18135,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_increasing);
}
@@ -18344,8 +18223,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME4, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME4);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_SOFT_SUBGROUP_NAME4);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
@@ -18353,64 +18232,64 @@ test_get_link_name(void)
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (H5Lcreate_soft("/" LINK_TEST_GROUP_NAME "/" GET_LINK_NAME_TEST_GROUP_NAME, subgroup_id,
GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" failed to create soft link '%s'\n", GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_SOFT_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if soft link '%s' exists\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" couldn't determine if soft link '%s' exists\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" soft link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" soft link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
@@ -18418,72 +18297,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_SOFT_LINK_NAME,
strlen(GET_LINK_NAME_TEST_SOFT_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_SOFT_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_soft_name_order_decreasing);
}
@@ -18504,7 +18383,7 @@ test_get_link_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_name_by_idx_external_crt_order_increasing);
}
@@ -18514,13 +18393,13 @@ test_get_link_name(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
@@ -18528,8 +18407,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
@@ -18537,21 +18416,21 @@ test_get_link_name(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
@@ -18559,45 +18438,45 @@ test_get_link_name(void)
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
@@ -18605,72 +18484,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_increasing);
}
@@ -18693,7 +18572,7 @@ test_get_link_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lget_name_by_idx_external_crt_order_decreasing);
}
@@ -18703,13 +18582,13 @@ test_get_link_name(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
@@ -18717,8 +18596,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME2, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME2);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
@@ -18726,21 +18605,21 @@ test_get_link_name(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
@@ -18748,45 +18627,45 @@ test_get_link_name(void)
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
@@ -18794,72 +18673,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_external_crt_order_decreasing);
}
@@ -18886,13 +18765,13 @@ test_get_link_name(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
@@ -18900,8 +18779,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME3, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME3);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
@@ -18909,21 +18788,21 @@ test_get_link_name(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
@@ -18931,45 +18810,45 @@ test_get_link_name(void)
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
@@ -18977,72 +18856,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_increasing);
}
@@ -19069,13 +18948,13 @@ test_get_link_name(void)
if ((ext_file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (H5Fclose(ext_file_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close file '%s'\n", ext_link_filename);
+ printf(" couldn't close file '%s'\n", ext_link_filename);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
@@ -19083,8 +18962,8 @@ test_get_link_name(void)
if ((subgroup_id = H5Gcreate2(group_id, GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME4, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME4);
+ printf(" couldn't create container subgroup '%s'\n",
+ GET_LINK_NAME_TEST_EXTERNAL_SUBGROUP_NAME4);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
@@ -19092,21 +18971,21 @@ test_get_link_name(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id,
GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" failed to create external link '%s'\n", GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
@@ -19114,45 +18993,45 @@ test_get_link_name(void)
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if ((link_exists = H5Lexists(subgroup_id, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if external link '%s' exists\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" couldn't determine if external link '%s' exists\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" external link '%s' did not exist before name retrieval\n",
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" external link '%s' did not exist before name retrieval\n",
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
@@ -19160,72 +19039,72 @@ test_get_link_name(void)
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME3);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME2);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if ((link_name_buf_size = H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2,
NULL, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (H5Lget_name_by_idx(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, link_name_buf,
(size_t)link_name_buf_size + 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name\n");
+ printf(" failed to retrieve link name\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (HDstrncmp(link_name_buf, GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME,
strlen(GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME) + 1)) {
H5_FAILED();
- HDprintf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
- GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
+ printf(" link name '%s' did not match expected name '%s'\n", link_name_buf,
+ GET_LINK_NAME_TEST_EXTERNAL_LINK_NAME);
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group\n");
+ printf(" failed to close group\n");
PART_ERROR(H5Lget_name_by_idx_external_name_order_decreasing);
}
@@ -19369,8 +19248,8 @@ test_get_link_name_invalid_params(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, hard link, or external link "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, hard link, or external link "
+ "aren't supported with this connector\n");
return 0;
}
@@ -19378,28 +19257,27 @@ test_get_link_name_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, GET_LINK_NAME_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- GET_LINK_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", GET_LINK_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
if (H5Lcreate_hard(group_id, ".", group_id, GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create hard link '%s'\n", GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" failed to create hard link '%s'\n", GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
@@ -19407,25 +19285,25 @@ test_get_link_name_invalid_params(void)
if ((link_exists = H5Lexists(group_id, GET_LINK_NAME_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link did not exist\n");
+ printf(" link did not exist\n");
goto error;
}
if ((ret = H5Lget_name_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, NULL, link_name_buf_size,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve link name size\n");
+ printf(" failed to retrieve link name size\n");
goto error;
}
link_name_buf_size = (size_t)ret;
- if (NULL == (link_name_buf = (char *)HDmalloc(link_name_buf_size + 1)))
+ if (NULL == (link_name_buf = (char *)malloc(link_name_buf_size + 1)))
TEST_ERROR;
PASSED();
@@ -19445,7 +19323,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_name_by_idx succeeded with an invalid location ID!\n");
+ printf(" H5Lget_name_by_idx succeeded with an invalid location ID!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_loc_id);
}
@@ -19466,7 +19344,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_name_by_idx succeeded with a NULL group name!\n");
+ printf(" H5Lget_name_by_idx succeeded with a NULL group name!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_grp_name);
}
@@ -19479,7 +19357,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_name_by_idx succeeded with an invalid group name of ''!\n");
+ printf(" H5Lget_name_by_idx succeeded with an invalid group name of ''!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_grp_name);
}
@@ -19500,7 +19378,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_index_type);
}
@@ -19513,7 +19391,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Lget_name_by_idx succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_index_type);
}
@@ -19534,8 +19412,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(
- " H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_iter_order);
}
@@ -19548,7 +19425,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Lget_name_by_idx succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_iter_order);
}
@@ -19569,7 +19446,7 @@ test_get_link_name_invalid_params(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lget_name_by_idx succeeded with an invalid LAPL!\n");
+ printf(" H5Lget_name_by_idx succeeded with an invalid LAPL!\n");
PART_ERROR(H5Lget_name_by_idx_invalid_lapl);
}
@@ -19582,7 +19459,7 @@ test_get_link_name_invalid_params(void)
TESTING_2("test cleanup");
if (link_name_buf) {
- HDfree(link_name_buf);
+ free(link_name_buf);
link_name_buf = NULL;
}
@@ -19601,7 +19478,7 @@ error:
H5E_BEGIN_TRY
{
if (link_name_buf)
- HDfree(link_name_buf);
+ free(link_name_buf);
H5Gclose(group_id);
H5Gclose(container_group);
H5Fclose(file_id);
@@ -19637,8 +19514,8 @@ test_link_iterate_hard_links(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, link, or iterate aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, link, or iterate aren't "
+ "supported with this connector\n");
return 0;
}
@@ -19646,26 +19523,26 @@ test_link_iterate_hard_links(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -19673,7 +19550,7 @@ test_link_iterate_hard_links(void)
if ((group_id = H5Gcreate2(container_group, LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -19694,26 +19571,26 @@ test_link_iterate_hard_links(void)
if ((dset_id = H5Dcreate2(group_id, dset_name, dset_dtype, dset_dspace, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", dset_name);
+ printf(" couldn't create hard link '%s'\n", dset_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, dset_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", dset_name);
+ printf(" couldn't determine if link '%s' exists\n", dset_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", dset_name);
+ printf(" link '%s' did not exist\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;
}
}
@@ -19738,13 +19615,13 @@ test_link_iterate_hard_links(void)
/* Test basic link iteration capability using both index types and both index orders */
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in increasing order failed\n");
+ printf(" H5Literate2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_link_name_increasing);
}
if (i != LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_increasing);
}
@@ -19761,13 +19638,13 @@ test_link_iterate_hard_links(void)
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in decreasing order failed\n");
+ printf(" H5Literate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
if (i != 2 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
@@ -19781,7 +19658,7 @@ test_link_iterate_hard_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_increasing);
}
@@ -19791,13 +19668,13 @@ test_link_iterate_hard_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
if (i != 3 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
@@ -19811,7 +19688,7 @@ test_link_iterate_hard_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_decreasing);
}
@@ -19821,13 +19698,13 @@ test_link_iterate_hard_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
if (i != 4 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
@@ -19846,13 +19723,13 @@ test_link_iterate_hard_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
if (i != LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
@@ -19871,13 +19748,13 @@ test_link_iterate_hard_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
if (i != 2 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
@@ -19891,7 +19768,7 @@ test_link_iterate_hard_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_increasing);
}
@@ -19902,13 +19779,13 @@ test_link_iterate_hard_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
if (i != 3 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
@@ -19922,7 +19799,7 @@ test_link_iterate_hard_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_decreasing);
}
@@ -19933,13 +19810,13 @@ test_link_iterate_hard_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_HARD_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_hard_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
if (i != 4 * LINK_ITER_HARD_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
@@ -20007,8 +19884,8 @@ test_link_iterate_soft_links(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -20016,26 +19893,26 @@ test_link_iterate_soft_links(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -20043,7 +19920,7 @@ test_link_iterate_soft_links(void)
if ((group_id = H5Gcreate2(container_group, LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -20060,20 +19937,20 @@ test_link_iterate_soft_links(void)
if (H5Lcreate_soft(link_target, group_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", link_name);
+ printf(" couldn't create soft link '%s'\n", link_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, link_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", link_name);
+ printf(" couldn't determine if link '%s' exists\n", link_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", link_name);
+ printf(" link '%s' did not exist\n", link_name);
goto error;
}
}
@@ -20098,13 +19975,13 @@ test_link_iterate_soft_links(void)
/* Test basic link iteration capability using both index types and both index orders */
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in increasing order failed\n");
+ printf(" H5Literate2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_link_name_increasing);
}
if (i != LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_increasing);
}
@@ -20121,13 +19998,13 @@ test_link_iterate_soft_links(void)
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in decreasing order failed\n");
+ printf(" H5Literate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
if (i != 2 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
@@ -20141,7 +20018,7 @@ test_link_iterate_soft_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_increasing);
}
@@ -20151,13 +20028,13 @@ test_link_iterate_soft_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
if (i != 3 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
@@ -20171,7 +20048,7 @@ test_link_iterate_soft_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_decreasing);
}
@@ -20181,13 +20058,13 @@ test_link_iterate_soft_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
if (i != 4 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
@@ -20206,13 +20083,13 @@ test_link_iterate_soft_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
if (i != LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
@@ -20231,13 +20108,13 @@ test_link_iterate_soft_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
if (i != 2 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
@@ -20251,7 +20128,7 @@ test_link_iterate_soft_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_increasing);
}
@@ -20262,13 +20139,13 @@ test_link_iterate_soft_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
if (i != 3 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
@@ -20282,7 +20159,7 @@ test_link_iterate_soft_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_decreasing);
}
@@ -20293,13 +20170,13 @@ test_link_iterate_soft_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_SOFT_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_soft_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
if (i != 4 * LINK_ITER_SOFT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
@@ -20361,8 +20238,8 @@ test_link_iterate_external_links(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, external link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, external link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -20372,7 +20249,7 @@ test_link_iterate_external_links(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -20381,26 +20258,26 @@ test_link_iterate_external_links(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -20408,7 +20285,7 @@ test_link_iterate_external_links(void)
if ((group_id = H5Gcreate2(container_group, LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -20421,20 +20298,20 @@ test_link_iterate_external_links(void)
if (H5Lcreate_external(ext_link_filename, "/", group_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", link_name);
+ printf(" couldn't create external link '%s'\n", link_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(group_id, link_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", link_name);
+ printf(" couldn't determine if link '%s' exists\n", link_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", link_name);
+ printf(" link '%s' did not exist\n", link_name);
goto error;
}
}
@@ -20460,13 +20337,13 @@ test_link_iterate_external_links(void)
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_external_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in increasing order failed\n");
+ printf(" H5Literate2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_link_name_increasing);
}
if (i != LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_increasing);
}
@@ -20484,13 +20361,13 @@ test_link_iterate_external_links(void)
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_external_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in decreasing order failed\n");
+ printf(" H5Literate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
if (i != 2 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
@@ -20504,7 +20381,7 @@ test_link_iterate_external_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_increasing);
}
@@ -20514,13 +20391,13 @@ test_link_iterate_external_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_external_links_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
if (i != 3 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
@@ -20534,7 +20411,7 @@ test_link_iterate_external_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_decreasing);
}
@@ -20544,13 +20421,13 @@ test_link_iterate_external_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_external_links_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
if (i != 4 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
@@ -20569,13 +20446,13 @@ test_link_iterate_external_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_external_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
if (i != LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
@@ -20594,13 +20471,13 @@ test_link_iterate_external_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_EXT_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_external_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
if (i != 2 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
@@ -20614,7 +20491,7 @@ test_link_iterate_external_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_increasing);
}
@@ -20626,13 +20503,13 @@ test_link_iterate_external_links(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_external_links_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
if (i != 3 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
@@ -20646,7 +20523,7 @@ test_link_iterate_external_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_decreasing);
}
@@ -20658,13 +20535,13 @@ test_link_iterate_external_links(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_external_links_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
if (i != 4 * LINK_ITER_EXT_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
@@ -20758,8 +20635,8 @@ test_link_iterate_mixed_links(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, external link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, external link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -20769,7 +20646,7 @@ test_link_iterate_mixed_links(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -20778,26 +20655,26 @@ test_link_iterate_mixed_links(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -20805,7 +20682,7 @@ test_link_iterate_mixed_links(void)
if ((group_id = H5Gcreate2(container_group, LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -20819,7 +20696,7 @@ test_link_iterate_mixed_links(void)
if ((dset_id = H5Dcreate2(group_id, LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME, dset_dtype, dset_dspace,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME);
goto error;
}
@@ -20827,51 +20704,51 @@ test_link_iterate_mixed_links(void)
"/" LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME,
group_id, LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME);
goto error;
}
if (H5Lcreate_external(ext_link_filename, "/", group_id, LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME);
goto error;
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(group_id, LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first link did not exist\n");
+ printf(" first link did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(group_id, LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" second link did not exist\n");
+ printf(" second link did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(group_id, LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" third link did not exist\n");
+ printf(" third link did not exist\n");
goto error;
}
@@ -20895,13 +20772,13 @@ test_link_iterate_mixed_links(void)
/* Test basic link iteration capability using both index types and both index orders */
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in increasing order failed\n");
+ printf(" H5Literate2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_link_name_increasing);
}
if (i != LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_increasing);
}
@@ -20918,13 +20795,13 @@ test_link_iterate_mixed_links(void)
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in decreasing order failed\n");
+ printf(" H5Literate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
if (i != 2 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_name_decreasing);
}
@@ -20938,7 +20815,7 @@ test_link_iterate_mixed_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_increasing);
}
@@ -20948,13 +20825,13 @@ test_link_iterate_mixed_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
if (i != 3 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_increasing);
}
@@ -20968,7 +20845,7 @@ test_link_iterate_mixed_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_link_creation_decreasing);
}
@@ -20978,13 +20855,13 @@ test_link_iterate_mixed_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
if (i != 4 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_link_creation_decreasing);
}
@@ -21002,13 +20879,13 @@ test_link_iterate_mixed_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
if (i != LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_increasing);
}
@@ -21027,13 +20904,13 @@ test_link_iterate_mixed_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
if (i != 2 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_link_name_decreasing);
}
@@ -21047,7 +20924,7 @@ test_link_iterate_mixed_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_increasing);
}
@@ -21058,13 +20935,13 @@ test_link_iterate_mixed_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
if (i != 3 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_increasing);
}
@@ -21078,7 +20955,7 @@ test_link_iterate_mixed_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_creation_decreasing);
}
@@ -21089,13 +20966,13 @@ test_link_iterate_mixed_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_MIXED_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_mixed_links_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
if (i != 4 * LINK_ITER_MIXED_LINKS_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not iterated over!\n");
+ printf(" some links were not iterated over!\n");
PART_ERROR(H5Literate_by_name_creation_decreasing);
}
@@ -21109,7 +20986,7 @@ test_link_iterate_mixed_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_index_saving_increasing);
}
@@ -21120,20 +20997,20 @@ test_link_iterate_mixed_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, &saved_idx, link_iter_idx_saving_cb,
&halted) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 index-saving capability test failed\n");
+ printf(" H5Literate2 index-saving capability test failed\n");
PART_ERROR(H5Literate_index_saving_increasing);
}
if (saved_idx != 2) {
H5_FAILED();
- HDprintf(" saved index after iteration was wrong\n");
+ printf(" saved index after iteration was wrong\n");
PART_ERROR(H5Literate_index_saving_increasing);
}
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, &saved_idx, link_iter_idx_saving_cb,
&halted) < 0) {
H5_FAILED();
- HDprintf(" couldn't finish iterating when beginning from saved index\n");
+ printf(" couldn't finish iterating when beginning from saved index\n");
PART_ERROR(H5Literate_index_saving_increasing);
}
@@ -21147,7 +21024,7 @@ test_link_iterate_mixed_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_index_saving_decreasing);
}
@@ -21157,20 +21034,20 @@ test_link_iterate_mixed_links(void)
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, &saved_idx, link_iter_idx_saving_cb,
&halted) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 index-saving capability test failed\n");
+ printf(" H5Literate2 index-saving capability test failed\n");
PART_ERROR(H5Literate_index_saving_decreasing);
}
if (saved_idx != 2) {
H5_FAILED();
- HDprintf(" saved index after iteration was wrong\n");
+ printf(" saved index after iteration was wrong\n");
PART_ERROR(H5Literate_index_saving_decreasing);
}
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, &saved_idx, link_iter_idx_saving_cb,
&halted) < 0) {
H5_FAILED();
- HDprintf(" couldn't finish iterating when beginning from saved index\n");
+ printf(" couldn't finish iterating when beginning from saved index\n");
PART_ERROR(H5Literate_index_saving_decreasing);
}
@@ -21244,9 +21121,8 @@ test_link_iterate_invalid_params(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, dataset, link, soft link, external link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, link, soft link, external link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -21256,7 +21132,7 @@ test_link_iterate_invalid_params(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -21265,21 +21141,20 @@ test_link_iterate_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, LINK_ITER_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_ITER_INVALID_PARAMS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -21293,7 +21168,7 @@ test_link_iterate_invalid_params(void)
if ((dset_id = H5Dcreate2(group_id, LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME, dset_dtype, dset_dspace,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't create hard link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
@@ -21302,50 +21177,48 @@ test_link_iterate_invalid_params(void)
group_id, LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
goto error;
}
if (H5Lcreate_external(ext_link_filename, "/", group_id, LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME);
+ printf(" couldn't create external link '%s'\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME);
goto error;
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(group_id, LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n",
- LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_HARD_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first link did not exist\n");
+ printf(" first link did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(group_id, LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n",
- LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_SOFT_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" second link did not exist\n");
+ printf(" second link did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(group_id, LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME);
+ printf(" couldn't determine if link '%s' exists\n", LINK_ITER_INVALID_PARAMS_TEST_EXT_LINK_NAME);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" third link did not exist\n");
+ printf(" third link did not exist\n");
goto error;
}
@@ -21368,7 +21241,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate2 succeeded with an invalid group ID!\n");
+ printf(" H5Literate2 succeeded with an invalid group ID!\n");
PART_ERROR(H5Literate_invalid_grp_id);
}
@@ -21389,7 +21262,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Literate2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Literate_invalid_index_type);
}
@@ -21402,7 +21275,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate2 succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Literate2 succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Literate_invalid_index_type);
}
@@ -21423,7 +21296,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Literate_invalid_iter_order);
}
@@ -21436,7 +21309,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Literate2 succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Literate_invalid_iter_order);
}
@@ -21458,7 +21331,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 succeeded with an invalid location ID!\n");
+ printf(" H5Literate_by_name2 succeeded with an invalid location ID!\n");
PART_ERROR(H5Literate_by_name_invalid_loc_id);
}
@@ -21479,7 +21352,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 succeeded with a NULL group name!\n");
+ printf(" H5Literate_by_name2 succeeded with a NULL group name!\n");
PART_ERROR(H5Literate_by_name_invalid_grp_name);
}
@@ -21492,7 +21365,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 succeeded with an invalid group name of ''!\n");
+ printf(" H5Literate_by_name2 succeeded with an invalid group name of ''!\n");
PART_ERROR(H5Literate_by_name_invalid_grp_name);
}
@@ -21514,7 +21387,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Literate_by_name_invalid_index_type);
}
@@ -21528,7 +21401,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Literate_by_name2 succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Literate_by_name_invalid_index_type);
}
@@ -21550,7 +21423,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" H5Literate_by_name2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Literate_by_name_invalid_iter_order);
}
@@ -21565,7 +21438,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Literate_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Literate_by_name_invalid_iter_order);
}
@@ -21587,7 +21460,7 @@ test_link_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 succeeded with an invalid LAPL!\n");
+ printf(" H5Literate_by_name2 succeeded with an invalid LAPL!\n");
PART_ERROR(H5Literate_by_name_invalid_lapl);
}
@@ -21648,8 +21521,8 @@ test_link_iterate_0_links(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_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or iterate aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or iterate aren't supported "
+ "with this connector\n");
return 0;
}
@@ -21657,26 +21530,26 @@ test_link_iterate_0_links(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for link creation order tracking\n");
+ printf(" couldn't create GCPL for link creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set link creation order tracking\n");
+ printf(" couldn't set link creation order tracking\n");
goto error;
}
}
@@ -21684,7 +21557,7 @@ test_link_iterate_0_links(void)
if ((group_id = H5Gcreate2(container_group, LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -21699,7 +21572,7 @@ test_link_iterate_0_links(void)
/* Test basic link iteration capability using both index types and both index orders */
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, link_iter_0_links_cb, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in increasing order failed\n");
+ printf(" H5Literate2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_0_links_name_increasing);
}
@@ -21713,7 +21586,7 @@ test_link_iterate_0_links(void)
if (H5Literate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type name in decreasing order failed\n");
+ printf(" H5Literate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_0_links_name_decreasing);
}
@@ -21727,14 +21600,14 @@ test_link_iterate_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_0_links_creation_increasing);
}
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_0_links_cb, NULL) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_0_links_creation_increasing);
}
@@ -21748,14 +21621,14 @@ test_link_iterate_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_0_links_creation_decreasing);
}
if (H5Literate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL) <
0) {
H5_FAILED();
- HDprintf(" H5Literate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_0_links_creation_decreasing);
}
@@ -21771,7 +21644,7 @@ test_link_iterate_0_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Literate_by_name_0_links_name_increasing);
}
@@ -21787,7 +21660,7 @@ test_link_iterate_0_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_0_links_name_decreasing);
}
@@ -21801,7 +21674,7 @@ test_link_iterate_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_0_links_creation_increasing);
}
@@ -21809,7 +21682,7 @@ test_link_iterate_0_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Literate_by_name_0_links_creation_increasing);
}
@@ -21823,7 +21696,7 @@ test_link_iterate_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Literate_by_name_0_links_creation_decreasing);
}
@@ -21831,7 +21704,7 @@ test_link_iterate_0_links(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_ITER_0_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, link_iter_0_links_cb, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Literate_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Literate_by_name_0_links_creation_decreasing);
}
@@ -21896,8 +21769,8 @@ test_link_visit_hard_links_no_cycles(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_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or link iterate aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, or link iterate aren't "
+ "supported with this connector\n");
return 0;
}
@@ -21905,26 +21778,26 @@ test_link_visit_hard_links_no_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -21932,8 +21805,8 @@ test_link_visit_hard_links_no_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -21955,7 +21828,7 @@ test_link_visit_hard_links_no_cycles(void)
if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", grp_name);
+ printf(" couldn't create subgroup '%s'\n", grp_name);
goto error;
}
@@ -21970,33 +21843,33 @@ test_link_visit_hard_links_no_cycles(void)
if ((dset_id = H5Dcreate2(subgroup_id, dset_name, dset_dtype, dset_dspace, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", dset_name);
+ printf(" couldn't create hard link '%s'\n", dset_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(subgroup_id, dset_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", dset_name);
+ printf(" couldn't determine if link '%s' exists\n", dset_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", dset_name);
+ printf(" link '%s' did not exist\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;
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close subgroup '%s'\n", grp_name);
+ printf(" couldn't close subgroup '%s'\n", grp_name);
goto error;
}
}
@@ -22020,13 +21893,13 @@ test_link_visit_hard_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
@@ -22043,13 +21916,13 @@ test_link_visit_hard_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
@@ -22063,7 +21936,7 @@ test_link_visit_hard_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -22073,13 +21946,13 @@ test_link_visit_hard_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -22093,7 +21966,7 @@ test_link_visit_hard_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -22103,13 +21976,13 @@ test_link_visit_hard_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -22128,13 +22001,13 @@ test_link_visit_hard_links_no_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
@@ -22153,13 +22026,13 @@ test_link_visit_hard_links_no_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
@@ -22173,7 +22046,7 @@ test_link_visit_hard_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -22185,13 +22058,13 @@ test_link_visit_hard_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -22205,7 +22078,7 @@ test_link_visit_hard_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -22217,13 +22090,13 @@ test_link_visit_hard_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -22294,8 +22167,8 @@ test_link_visit_soft_links_no_cycles(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -22303,26 +22176,26 @@ test_link_visit_soft_links_no_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -22330,8 +22203,8 @@ test_link_visit_soft_links_no_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -22346,7 +22219,7 @@ test_link_visit_soft_links_no_cycles(void)
if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", grp_name);
+ printf(" couldn't create subgroup '%s'\n", grp_name);
goto error;
}
@@ -22364,27 +22237,27 @@ test_link_visit_soft_links_no_cycles(void)
if (H5Lcreate_soft(link_target, subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", link_name);
+ printf(" couldn't create soft link '%s'\n", link_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", link_name);
+ printf(" couldn't determine if link '%s' exists\n", link_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", link_name);
+ printf(" link '%s' did not exist\n", link_name);
goto error;
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close subgroup '%s'\n", grp_name);
+ printf(" couldn't close subgroup '%s'\n", grp_name);
goto error;
}
}
@@ -22408,13 +22281,13 @@ test_link_visit_soft_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
@@ -22431,13 +22304,13 @@ test_link_visit_soft_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
@@ -22451,7 +22324,7 @@ test_link_visit_soft_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -22461,13 +22334,13 @@ test_link_visit_soft_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -22481,7 +22354,7 @@ test_link_visit_soft_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -22491,13 +22364,13 @@ test_link_visit_soft_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -22515,13 +22388,13 @@ test_link_visit_soft_links_no_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
@@ -22540,13 +22413,13 @@ test_link_visit_soft_links_no_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
@@ -22560,7 +22433,7 @@ test_link_visit_soft_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -22572,13 +22445,13 @@ test_link_visit_soft_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -22592,7 +22465,7 @@ test_link_visit_soft_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -22604,13 +22477,13 @@ test_link_visit_soft_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -22675,8 +22548,8 @@ test_link_visit_external_links_no_cycles(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, external link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, external link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -22686,7 +22559,7 @@ test_link_visit_external_links_no_cycles(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -22695,26 +22568,26 @@ test_link_visit_external_links_no_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -22722,8 +22595,8 @@ test_link_visit_external_links_no_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -22738,7 +22611,7 @@ test_link_visit_external_links_no_cycles(void)
if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", grp_name);
+ printf(" couldn't create subgroup '%s'\n", grp_name);
goto error;
}
@@ -22753,27 +22626,27 @@ test_link_visit_external_links_no_cycles(void)
if (H5Lcreate_external(ext_link_filename, "/", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", link_name);
+ printf(" couldn't create external link '%s'\n", link_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", link_name);
+ printf(" couldn't determine if link '%s' exists\n", link_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", link_name);
+ printf(" link '%s' did not exist\n", link_name);
goto error;
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close subgroup '%s'\n", grp_name);
+ printf(" couldn't close subgroup '%s'\n", grp_name);
goto error;
}
}
@@ -22798,13 +22671,13 @@ test_link_visit_external_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
@@ -22822,13 +22695,13 @@ test_link_visit_external_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
@@ -22842,7 +22715,7 @@ test_link_visit_external_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -22852,13 +22725,13 @@ test_link_visit_external_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_no_cycles_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -22872,7 +22745,7 @@ test_link_visit_external_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -22882,13 +22755,13 @@ test_link_visit_external_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_no_cycles_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -22908,13 +22781,13 @@ test_link_visit_external_links_no_cycles(void)
H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
@@ -22934,13 +22807,13 @@ test_link_visit_external_links_no_cycles(void)
H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
@@ -22954,7 +22827,7 @@ test_link_visit_external_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -22966,13 +22839,13 @@ test_link_visit_external_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -22986,7 +22859,7 @@ test_link_visit_external_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -22998,13 +22871,13 @@ test_link_visit_external_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -23102,7 +22975,7 @@ test_link_visit_mixed_links_no_cycles(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, link, hard link, soft link, external link, or iterate "
"aren't supported with this connector\n");
return 0;
@@ -23114,7 +22987,7 @@ test_link_visit_mixed_links_no_cycles(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -23123,26 +22996,26 @@ test_link_visit_mixed_links_no_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -23150,24 +23023,24 @@ test_link_visit_mixed_links_no_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
if ((subgroup1 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first subgroup '%s'\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2);
+ printf(" couldn't create first subgroup '%s'\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2);
goto error;
}
if ((subgroup2 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second subgroup '%s'\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3);
+ printf(" couldn't create second subgroup '%s'\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3);
goto error;
}
@@ -23181,7 +23054,7 @@ test_link_visit_mixed_links_no_cycles(void)
if ((dset_id = H5Dcreate2(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME);
+ printf(" couldn't create first dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME);
}
if (H5Dclose(dset_id) < 0)
@@ -23190,7 +23063,7 @@ test_link_visit_mixed_links_no_cycles(void)
if ((dset_id = H5Dcreate2(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2, dset_dtype,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME);
+ printf(" couldn't create second dataset '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME);
}
if (H5Dclose(dset_id) < 0)
@@ -23199,30 +23072,29 @@ test_link_visit_mixed_links_no_cycles(void)
if (H5Lcreate_hard(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME, subgroup1,
LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first hard link '%s'\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1);
+ printf(" couldn't create first hard link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1);
goto error;
}
if (H5Lcreate_soft(LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME, subgroup1,
LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2);
goto error;
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3);
goto error;
}
if (H5Lcreate_hard(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2, subgroup2,
LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second hard link '%s'\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4);
+ printf(" couldn't create second hard link '%s'\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4);
goto error;
}
@@ -23230,56 +23102,56 @@ test_link_visit_mixed_links_no_cycles(void)
if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if first link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1);
+ printf(" couldn't determine if first link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 1 did not exist\n");
+ printf(" link 1 did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if second link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2);
+ printf(" couldn't determine if second link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 2 did not exist\n");
+ printf(" link 2 did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if third link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3);
+ printf(" couldn't determine if third link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 3 did not exist\n");
+ printf(" link 3 did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if fourth link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4);
+ printf(" couldn't determine if fourth link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 4 did not exist\n");
+ printf(" link 4 did not exist\n");
goto error;
}
@@ -23303,13 +23175,13 @@ test_link_visit_mixed_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_increasing);
}
@@ -23327,13 +23199,13 @@ test_link_visit_mixed_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_name_decreasing);
}
@@ -23347,7 +23219,7 @@ test_link_visit_mixed_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -23357,13 +23229,13 @@ test_link_visit_mixed_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_increasing);
}
@@ -23377,7 +23249,7 @@ test_link_visit_mixed_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -23387,13 +23259,13 @@ test_link_visit_mixed_links_no_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_no_cycles_link_creation_decreasing);
}
@@ -23411,13 +23283,13 @@ test_link_visit_mixed_links_no_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
if (i != LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_increasing);
}
@@ -23436,13 +23308,13 @@ test_link_visit_mixed_links_no_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_name_decreasing);
}
@@ -23456,7 +23328,7 @@ test_link_visit_mixed_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -23468,13 +23340,13 @@ test_link_visit_mixed_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_increasing);
}
@@ -23488,7 +23360,7 @@ test_link_visit_mixed_links_no_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -23500,13 +23372,13 @@ test_link_visit_mixed_links_no_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_no_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_no_cycles_link_creation_decreasing);
}
@@ -23581,8 +23453,8 @@ test_link_visit_hard_links_cycles(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, hard link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -23590,26 +23462,26 @@ test_link_visit_hard_links_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -23617,8 +23489,8 @@ test_link_visit_hard_links_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -23633,7 +23505,7 @@ test_link_visit_hard_links_cycles(void)
if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", grp_name);
+ printf(" couldn't create subgroup '%s'\n", grp_name);
goto error;
}
@@ -23647,27 +23519,27 @@ test_link_visit_hard_links_cycles(void)
if (H5Lcreate_hard(subgroup_id, ".", subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create hard link '%s'\n", link_name);
+ printf(" couldn't create hard link '%s'\n", link_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", link_name);
+ printf(" couldn't determine if link '%s' exists\n", link_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", link_name);
+ printf(" link '%s' did not exist\n", link_name);
goto error;
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close subgroup '%s'\n", grp_name);
+ printf(" couldn't close subgroup '%s'\n", grp_name);
goto error;
}
}
@@ -23691,13 +23563,13 @@ test_link_visit_hard_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
if (i != LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
@@ -23714,13 +23586,13 @@ test_link_visit_hard_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
@@ -23734,7 +23606,7 @@ test_link_visit_hard_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_increasing);
}
@@ -23744,13 +23616,13 @@ test_link_visit_hard_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
@@ -23764,7 +23636,7 @@ test_link_visit_hard_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -23774,13 +23646,13 @@ test_link_visit_hard_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -23798,13 +23670,13 @@ test_link_visit_hard_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
if (i != LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
@@ -23823,13 +23695,13 @@ test_link_visit_hard_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
@@ -23843,7 +23715,7 @@ test_link_visit_hard_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -23854,13 +23726,13 @@ test_link_visit_hard_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -23874,7 +23746,7 @@ test_link_visit_hard_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -23885,13 +23757,13 @@ test_link_visit_hard_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_HARD_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_hard_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_HARD_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -23954,8 +23826,8 @@ test_link_visit_soft_links_cycles(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, soft link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, soft link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -23963,26 +23835,26 @@ test_link_visit_soft_links_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -23990,8 +23862,8 @@ test_link_visit_soft_links_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -24006,7 +23878,7 @@ test_link_visit_soft_links_cycles(void)
if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", grp_name);
+ printf(" couldn't create subgroup '%s'\n", grp_name);
goto error;
}
@@ -24025,27 +23897,27 @@ test_link_visit_soft_links_cycles(void)
if (H5Lcreate_soft(link_target, subgroup_id, link_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", link_name);
+ printf(" couldn't create soft link '%s'\n", link_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", link_name);
+ printf(" couldn't determine if link '%s' exists\n", link_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", link_name);
+ printf(" link '%s' did not exist\n", link_name);
goto error;
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close subgroup '%s'\n", grp_name);
+ printf(" couldn't close subgroup '%s'\n", grp_name);
goto error;
}
}
@@ -24069,13 +23941,13 @@ test_link_visit_soft_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
if (i != LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
@@ -24092,13 +23964,13 @@ test_link_visit_soft_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
@@ -24112,7 +23984,7 @@ test_link_visit_soft_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_increasing);
}
@@ -24122,13 +23994,13 @@ test_link_visit_soft_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
@@ -24142,7 +24014,7 @@ test_link_visit_soft_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -24152,13 +24024,13 @@ test_link_visit_soft_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -24177,13 +24049,13 @@ test_link_visit_soft_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
if (i != LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
@@ -24202,13 +24074,13 @@ test_link_visit_soft_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
@@ -24222,7 +24094,7 @@ test_link_visit_soft_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -24233,13 +24105,13 @@ test_link_visit_soft_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -24253,7 +24125,7 @@ test_link_visit_soft_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -24264,13 +24136,13 @@ test_link_visit_soft_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_SOFT_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_soft_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_SOFT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -24334,8 +24206,8 @@ test_link_visit_external_links_cycles(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, link, external link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, external link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -24343,26 +24215,26 @@ test_link_visit_external_links_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -24370,8 +24242,8 @@ test_link_visit_external_links_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -24386,7 +24258,7 @@ test_link_visit_external_links_cycles(void)
if ((subgroup_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup '%s'\n", grp_name);
+ printf(" couldn't create subgroup '%s'\n", grp_name);
goto error;
}
@@ -24406,27 +24278,27 @@ test_link_visit_external_links_cycles(void)
if (H5Lcreate_external(H5_api_test_filename, link_target_obj, subgroup_id, link_name, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", link_name);
+ printf(" couldn't create external link '%s'\n", link_name);
goto error;
}
/* Verify the link has been created */
if ((link_exists = H5Lexists(subgroup_id, link_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' exists\n", link_name);
+ printf(" couldn't determine if link '%s' exists\n", link_name);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link '%s' did not exist\n", link_name);
+ printf(" link '%s' did not exist\n", link_name);
goto error;
}
}
if (H5Gclose(subgroup_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close subgroup '%s'\n", grp_name);
+ printf(" couldn't close subgroup '%s'\n", grp_name);
goto error;
}
}
@@ -24451,13 +24323,13 @@ test_link_visit_external_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
if (i != LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
@@ -24475,13 +24347,13 @@ test_link_visit_external_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
@@ -24495,7 +24367,7 @@ test_link_visit_external_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_increasing);
}
@@ -24505,13 +24377,13 @@ test_link_visit_external_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_cycles_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
@@ -24525,7 +24397,7 @@ test_link_visit_external_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -24535,13 +24407,13 @@ test_link_visit_external_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_cycles_cb,
&i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -24560,13 +24432,13 @@ test_link_visit_external_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_external_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
if (i != LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
@@ -24585,13 +24457,13 @@ test_link_visit_external_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_EXT_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_external_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
@@ -24605,7 +24477,7 @@ test_link_visit_external_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -24617,13 +24489,13 @@ test_link_visit_external_links_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_external_links_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -24637,7 +24509,7 @@ test_link_visit_external_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -24649,13 +24521,13 @@ test_link_visit_external_links_cycles(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_external_links_cycles_cb, &i,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_EXT_LINKS_CYCLE_TEST_NUM_LINKS_PER_TEST) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -24744,9 +24616,8 @@ test_link_visit_mixed_links_cycles(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_HARD_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, link, hard link, soft link, external link, iterate, "
- "or user defined link aren't supported with this connector\n");
+ printf(" API functions for basic file, group, link, hard link, soft link, external link, iterate, "
+ "or user defined link aren't supported with this connector\n");
return 0;
}
@@ -24756,7 +24627,7 @@ test_link_visit_mixed_links_cycles(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -24765,26 +24636,26 @@ test_link_visit_mixed_links_cycles(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -24792,31 +24663,30 @@ test_link_visit_mixed_links_cycles(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME);
goto error;
}
if ((subgroup1 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first subgroup '%s'\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2);
+ printf(" couldn't create first subgroup '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2);
goto error;
}
if ((subgroup2 = H5Gcreate2(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second subgroup '%s'\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3);
+ printf(" couldn't create second subgroup '%s'\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3);
goto error;
}
if (H5Lcreate_hard(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2, subgroup1,
LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
+ printf(" couldn't create first hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
goto error;
}
@@ -24825,74 +24695,74 @@ test_link_visit_mixed_links_cycles(void)
subgroup1, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
goto error;
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup2, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
goto error;
}
if (H5Lcreate_hard(group_id, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3, subgroup2,
LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
+ printf(" couldn't create second hard link '%s'\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
goto error;
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
+ printf(" couldn't determine if first link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" first link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
+ printf(" first link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
goto error;
}
if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if second link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
+ printf(" couldn't determine if second link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" second link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
+ printf(" second link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
goto error;
}
if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if third link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
+ printf(" couldn't determine if third link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" third link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
+ printf(" third link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
goto error;
}
if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if fourth link '%s' exists\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
+ printf(" couldn't determine if fourth link '%s' exists\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" fourth link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
+ printf(" fourth link '%s' did not exist\n", LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
goto error;
}
@@ -24915,13 +24785,13 @@ test_link_visit_mixed_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
if (i != LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_increasing);
}
@@ -24938,13 +24808,13 @@ test_link_visit_mixed_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_name_decreasing);
}
@@ -24958,7 +24828,7 @@ test_link_visit_mixed_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_increasing);
}
@@ -24968,13 +24838,13 @@ test_link_visit_mixed_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_increasing);
}
@@ -24988,7 +24858,7 @@ test_link_visit_mixed_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -24998,13 +24868,13 @@ test_link_visit_mixed_links_cycles(void)
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i) <
0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_cycles_link_creation_decreasing);
}
@@ -25022,13 +24892,13 @@ test_link_visit_mixed_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
if (i != LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_increasing);
}
@@ -25047,13 +24917,13 @@ test_link_visit_mixed_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
if (i != 2 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_name_decreasing);
}
@@ -25067,7 +24937,7 @@ test_link_visit_mixed_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -25078,13 +24948,13 @@ test_link_visit_mixed_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
if (i != 3 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_increasing);
}
@@ -25098,7 +24968,7 @@ test_link_visit_mixed_links_cycles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -25109,13 +24979,13 @@ test_link_visit_mixed_links_cycles(void)
file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME,
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_mixed_links_cycles_cb, &i, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
if (i != 4 * LINK_VISIT_MIXED_LINKS_CYCLE_TEST_NUM_LINKS) {
H5_FAILED();
- HDprintf(" some links were not visited!\n");
+ printf(" some links were not visited!\n");
PART_ERROR(H5Lvisit_by_name_cycles_link_creation_decreasing);
}
@@ -25183,8 +25053,8 @@ test_link_visit_invalid_params(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, link, external link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, link, external link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -25194,7 +25064,7 @@ test_link_visit_invalid_params(void)
if ((file_id = H5Fcreate(ext_link_filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
+ printf(" couldn't create file '%s' for external link to reference\n", ext_link_filename);
goto error;
}
@@ -25203,35 +25073,34 @@ test_link_visit_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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME);
goto error;
}
if ((subgroup1 = H5Gcreate2(group_id, LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME2, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME2);
+ printf(" couldn't create first subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME2);
goto error;
}
if ((subgroup2 = H5Gcreate2(group_id, LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME3, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME3);
+ printf(" couldn't create second subgroup '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME3);
goto error;
}
@@ -25245,7 +25114,7 @@ test_link_visit_invalid_params(void)
if ((dset_id = H5Dcreate2(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create first dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME);
}
if (H5Dclose(dset_id) < 0)
@@ -25254,7 +25123,7 @@ test_link_visit_invalid_params(void)
if ((dset_id = H5Dcreate2(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create second dataset '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME);
}
if (H5Dclose(dset_id) < 0)
@@ -25263,79 +25132,79 @@ test_link_visit_invalid_params(void)
if (H5Lcreate_hard(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, subgroup1,
LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create first hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1);
+ printf(" couldn't create first hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1);
goto error;
}
if (H5Lcreate_soft(LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, subgroup1,
LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2);
goto error;
}
if (H5Lcreate_external(ext_link_filename, "/", subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3,
H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create external link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3);
+ printf(" couldn't create external link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3);
goto error;
}
if (H5Lcreate_hard(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_DSET_NAME, subgroup2,
LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create second hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4);
+ printf(" couldn't create second hard link '%s'\n", LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4);
goto error;
}
/* Verify the links have been created */
if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if first link '%s' exists\n",
- LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1);
+ printf(" couldn't determine if first link '%s' exists\n",
+ LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME1);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 1 did not exist\n");
+ printf(" link 1 did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(subgroup1, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if second link '%s' exists\n",
- LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2);
+ printf(" couldn't determine if second link '%s' exists\n",
+ LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME2);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 2 did not exist\n");
+ printf(" link 2 did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if third link '%s' exists\n",
- LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3);
+ printf(" couldn't determine if third link '%s' exists\n",
+ LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME3);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 3 did not exist\n");
+ printf(" link 3 did not exist\n");
goto error;
}
if ((link_exists = H5Lexists(subgroup2, LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if fourth link '%s' exists\n",
- LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4);
+ printf(" couldn't determine if fourth link '%s' exists\n",
+ LINK_VISIT_INVALID_PARAMS_TEST_LINK_NAME4);
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" link 4 did not exist\n");
+ printf(" link 4 did not exist\n");
goto error;
}
@@ -25356,7 +25225,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 succeeded with an invalid group ID!\n");
+ printf(" H5Lvisit2 succeeded with an invalid group ID!\n");
PART_ERROR(H5Lvisit_invalid_grp_id);
}
@@ -25377,7 +25246,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Lvisit_invalid_index_type);
}
@@ -25389,7 +25258,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Lvisit2 succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Lvisit_invalid_index_type);
}
@@ -25410,7 +25279,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Lvisit_invalid_iter_order);
}
@@ -25422,7 +25291,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Lvisit2 succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Lvisit_invalid_iter_order);
}
@@ -25445,7 +25314,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 succeeded with an invalid location ID!\n");
+ printf(" H5Lvisit_by_name2 succeeded with an invalid location ID!\n");
PART_ERROR(H5Lvisit_by_name_invalid_loc_id);
}
@@ -25466,7 +25335,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 succeeded with a NULL group name!\n");
+ printf(" H5Lvisit_by_name2 succeeded with a NULL group name!\n");
PART_ERROR(H5Lvisit_by_name_invalid_grp_name);
}
@@ -25479,7 +25348,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 succeeded with an invalid group name of ''!\n");
+ printf(" H5Lvisit_by_name2 succeeded with an invalid group name of ''!\n");
PART_ERROR(H5Lvisit_by_name_invalid_grp_name);
}
@@ -25501,7 +25370,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Lvisit_by_name_invalid_index_type);
}
@@ -25515,7 +25384,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Lvisit_by_name2 succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Lvisit_by_name_invalid_index_type);
}
@@ -25537,8 +25406,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Lvisit_by_name_invalid_iter_order);
}
@@ -25552,7 +25420,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Lvisit_by_name2 succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Lvisit_by_name_invalid_iter_order);
}
@@ -25574,7 +25442,7 @@ test_link_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 succeeded with an invalid LAPL!\n");
+ printf(" H5Lvisit_by_name2 succeeded with an invalid LAPL!\n");
PART_ERROR(H5Lvisit_by_name_invalid_lapl);
}
@@ -25640,8 +25508,8 @@ test_link_visit_0_links(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_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or link iterate aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or link iterate aren't supported "
+ "with this connector\n");
return 0;
}
@@ -25649,26 +25517,26 @@ test_link_visit_0_links(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, LINK_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", LINK_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -25676,7 +25544,7 @@ test_link_visit_0_links(void)
if ((group_id = H5Gcreate2(container_group, LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -25690,7 +25558,7 @@ test_link_visit_0_links(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_INC, link_visit_0_links_cb, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_0_links_name_increasing);
}
@@ -25704,7 +25572,7 @@ test_link_visit_0_links(void)
if (H5Lvisit2(group_id, H5_INDEX_NAME, H5_ITER_DEC, link_visit_0_links_cb, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_0_links_name_decreasing);
}
@@ -25718,13 +25586,13 @@ test_link_visit_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_0_links_creation_increasing);
}
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_0_links_cb, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_0_links_creation_increasing);
}
@@ -25738,13 +25606,13 @@ test_link_visit_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_0_links_creation_decreasing);
}
if (H5Lvisit2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_0_links_cb, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_0_links_creation_decreasing);
}
@@ -25759,7 +25627,7 @@ test_link_visit_0_links(void)
if (H5Lvisit_by_name2(file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, link_visit_0_links_cb, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_0_links_name_increasing);
}
@@ -25774,7 +25642,7 @@ test_link_visit_0_links(void)
if (H5Lvisit_by_name2(file_id, "/" LINK_TEST_GROUP_NAME "/" LINK_VISIT_0_LINKS_TEST_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, link_visit_0_links_cb, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type name in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_0_links_name_decreasing);
}
@@ -25788,7 +25656,7 @@ test_link_visit_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_0_links_creation_increasing);
}
@@ -25796,7 +25664,7 @@ test_link_visit_0_links(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, link_visit_0_links_cb, NULL,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Lvisit_by_name_0_links_creation_increasing);
}
@@ -25810,7 +25678,7 @@ test_link_visit_0_links(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Lvisit_by_name_0_links_creation_decreasing);
}
@@ -25818,7 +25686,7 @@ test_link_visit_0_links(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, link_visit_0_links_cb, NULL,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
+ printf(" H5Lvisit_by_name2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Lvisit_by_name_0_links_creation_decreasing);
}
@@ -25875,7 +25743,7 @@ link_iter_hard_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
if (H5L_TYPE_HARD != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
goto done;
}
@@ -25905,7 +25773,7 @@ link_iter_hard_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
}
if (HDstrncmp(name, expected_link_name, LINK_ITER_HARD_LINKS_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -25935,7 +25803,7 @@ link_iter_soft_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
if (H5L_TYPE_SOFT != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
goto done;
}
@@ -25965,7 +25833,7 @@ link_iter_soft_links_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
}
if (HDstrncmp(name, expected_link_name, LINK_ITER_SOFT_LINKS_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -25992,8 +25860,8 @@ link_iter_external_links_cb(hid_t group_id, const char *name, const H5L_info2_t
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for external links aren't supported with this "
- "connector\n");
+ printf(" API functions for external links aren't supported with this "
+ "connector\n");
return 1;
}
@@ -26002,7 +25870,7 @@ link_iter_external_links_cb(hid_t group_id, const char *name, const H5L_info2_t
if (H5L_TYPE_EXTERNAL != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
goto done;
}
@@ -26032,7 +25900,7 @@ link_iter_external_links_cb(hid_t group_id, const char *name, const H5L_info2_t
}
if (HDstrncmp(name, expected_link_name, LINK_ITER_EXT_LINKS_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -26057,8 +25925,8 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for external or user-defined link aren't supported with this "
- "connector\n");
+ printf(" API functions for external or user-defined link aren't supported with this "
+ "connector\n");
return 1;
}
@@ -26069,7 +25937,7 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in
(counter_val == 1 || counter_val == 4 || counter_val == 6 || counter_val == 11)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
}
goto done;
@@ -26079,7 +25947,7 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in
(counter_val == 2 || counter_val == 3 || counter_val == 7 || counter_val == 10)) {
if (H5L_TYPE_SOFT != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
}
goto done;
@@ -26089,13 +25957,13 @@ link_iter_mixed_links_cb(hid_t group_id, const char *name, const H5L_info2_t *in
(counter_val == 0 || counter_val == 5 || counter_val == 8 || counter_val == 9)) {
if (H5L_TYPE_EXTERNAL != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
}
goto done;
}
- HDprintf(" link name '%s' didn't match known names or came in an incorrect order\n", name);
+ printf(" link name '%s' didn't match known names or came in an incorrect order\n", name);
ret_val = -1;
@@ -26146,8 +26014,8 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for external or user-defined link aren't supported with this "
- "connector\n");
+ printf(" API functions for external or user-defined link aren't supported with this "
+ "connector\n");
return 1;
}
@@ -26163,7 +26031,7 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
strlen(LINK_ITER_MIXED_LINKS_TEST_HARD_LINK_NAME) + 1)) {
if (H5L_TYPE_HARD != info->type) {
H5_FAILED();
- HDprintf(" link type did not match\n");
+ printf(" link type did not match\n");
goto error;
}
}
@@ -26171,7 +26039,7 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
strlen(LINK_ITER_MIXED_LINKS_TEST_SOFT_LINK_NAME) + 1)) {
if (H5L_TYPE_SOFT != info->type) {
H5_FAILED();
- HDprintf(" link type did not match\n");
+ printf(" link type did not match\n");
goto error;
}
}
@@ -26179,13 +26047,13 @@ link_iter_idx_saving_cb(hid_t group_id, const char *name, const H5L_info2_t *inf
strlen(LINK_ITER_MIXED_LINKS_TEST_EXT_LINK_NAME) + 1)) {
if (H5L_TYPE_EXTERNAL != info->type) {
H5_FAILED();
- HDprintf(" link type did not match\n");
+ printf(" link type did not match\n");
goto error;
}
}
else {
H5_FAILED();
- HDprintf(" link name didn't match known names\n");
+ printf(" link name didn't match known names\n");
goto error;
}
@@ -26217,7 +26085,7 @@ link_visit_hard_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i
if (H5L_TYPE_HARD != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
goto done;
}
@@ -26287,7 +26155,7 @@ link_visit_hard_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i
}
if (HDstrncmp(name, expected_link_name, LINK_VISIT_HARD_LINKS_NO_CYCLE_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -26324,14 +26192,14 @@ link_visit_soft_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i
if (is_subgroup_link) {
if (H5L_TYPE_HARD != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
goto done;
}
}
else {
if (H5L_TYPE_SOFT != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
goto done;
}
}
@@ -26400,7 +26268,7 @@ link_visit_soft_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_i
}
if (HDstrncmp(name, expected_link_name, LINK_VISIT_SOFT_LINKS_NO_CYCLE_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -26431,8 +26299,8 @@ link_visit_external_links_no_cycles_cb(hid_t group_id, const char *name, const H
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for external links aren't supported with this "
- "connector\n");
+ printf(" API functions for external links aren't supported with this "
+ "connector\n");
return 1;
}
@@ -26445,14 +26313,14 @@ link_visit_external_links_no_cycles_cb(hid_t group_id, const char *name, const H
if (is_subgroup_link) {
if (H5L_TYPE_HARD != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
goto done;
}
}
else {
if (H5L_TYPE_EXTERNAL != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
goto done;
}
}
@@ -26521,7 +26389,7 @@ link_visit_external_links_no_cycles_cb(hid_t group_id, const char *name, const H
}
if (HDstrncmp(name, expected_link_name, LINK_VISIT_EXT_LINKS_NO_CYCLE_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -26546,8 +26414,8 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for external or user-defined link aren't supported with this "
- "connector\n");
+ printf(" API functions for external or user-defined link aren't supported with this "
+ "connector\n");
return 1;
}
@@ -26563,9 +26431,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 2 || counter_val == 14 || counter_val == 18 || counter_val == 30)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2
- "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2
+ "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME1);
}
goto done;
@@ -26579,9 +26447,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 3 || counter_val == 13 || counter_val == 19 || counter_val == 29)) {
if (H5L_TYPE_SOFT != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2
- "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2);
+ printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2
+ "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME2);
}
goto done;
@@ -26595,9 +26463,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 6 || counter_val == 10 || counter_val == 22 || counter_val == 26)) {
if (H5L_TYPE_EXTERNAL != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3
- "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3);
+ printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3
+ "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME3);
}
goto done;
@@ -26611,9 +26479,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 7 || counter_val == 9 || counter_val == 23 || counter_val == 25)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3
- "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3
+ "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_LINK_NAME4);
}
goto done;
@@ -26627,9 +26495,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 1 || counter_val == 15 || counter_val == 17 || counter_val == 31)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2
- "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2
+ "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME);
}
goto done;
@@ -26643,9 +26511,9 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 5 || counter_val == 11 || counter_val == 21 || counter_val == 27)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3
- "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3
+ "/" LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_DSET_NAME2);
}
goto done;
@@ -26655,8 +26523,8 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 0 || counter_val == 12 || counter_val == 16 || counter_val == 28)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME2);
}
goto done;
@@ -26666,14 +26534,14 @@ link_visit_mixed_links_no_cycles_cb(hid_t group_id, const char *name, const H5L_
(counter_val == 4 || counter_val == 8 || counter_val == 20 || counter_val == 24)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_NO_CYCLE_TEST_SUBGROUP_NAME3);
}
goto done;
}
- HDprintf(" link name '%s' didn't match known names or came in an incorrect order\n", name);
+ printf(" link name '%s' didn't match known names or came in an incorrect order\n", name);
ret_val = -1;
@@ -26705,7 +26573,7 @@ link_visit_hard_links_cycles_cb(hid_t group_id, const char *name, const H5L_info
if (H5L_TYPE_HARD != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
goto done;
}
@@ -26775,7 +26643,7 @@ link_visit_hard_links_cycles_cb(hid_t group_id, const char *name, const H5L_info
}
if (HDstrncmp(name, expected_link_name, LINK_VISIT_HARD_LINKS_CYCLE_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -26812,14 +26680,14 @@ link_visit_soft_links_cycles_cb(hid_t group_id, const char *name, const H5L_info
if (is_subgroup_link) {
if (H5L_TYPE_HARD != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
goto done;
}
}
else {
if (H5L_TYPE_SOFT != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n", name);
goto done;
}
}
@@ -26888,7 +26756,7 @@ link_visit_soft_links_cycles_cb(hid_t group_id, const char *name, const H5L_info
}
if (HDstrncmp(name, expected_link_name, LINK_VISIT_SOFT_LINKS_CYCLE_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -26918,8 +26786,8 @@ link_visit_external_links_cycles_cb(hid_t group_id, const char *name, const H5L_
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS)) {
SKIPPED();
- HDprintf(" API functions for external links aren't supported with this "
- "connector\n");
+ printf(" API functions for external links aren't supported with this "
+ "connector\n");
return 1;
}
@@ -26932,14 +26800,14 @@ link_visit_external_links_cycles_cb(hid_t group_id, const char *name, const H5L_
if (is_subgroup_link) {
if (H5L_TYPE_HARD != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n", name);
goto done;
}
}
else {
if (H5L_TYPE_EXTERNAL != info->type) {
ret_val = H5_ITER_ERROR;
- HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
+ printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n", name);
goto done;
}
}
@@ -27008,7 +26876,7 @@ link_visit_external_links_cycles_cb(hid_t group_id, const char *name, const H5L_
}
if (HDstrncmp(name, expected_link_name, LINK_VISIT_EXT_LINKS_CYCLE_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' didn't match expected name '%s'\n", name, expected_link_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -27033,8 +26901,8 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_EXTERNAL_LINKS) || !(vol_cap_flags_g & H5VL_CAP_FLAG_UD_LINKS)) {
SKIPPED();
- HDprintf(" API functions for external or user-defined link aren't supported with this "
- "connector\n");
+ printf(" API functions for external or user-defined link aren't supported with this "
+ "connector\n");
return 1;
}
@@ -27050,9 +26918,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf
(counter_val == 1 || counter_val == 11 || counter_val == 13 || counter_val == 23)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2
- "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2
+ "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME1);
}
goto done;
@@ -27066,9 +26934,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf
(counter_val == 2 || counter_val == 10 || counter_val == 14 || counter_val == 22)) {
if (H5L_TYPE_SOFT != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_SOFT!\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2
- "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
+ printf(" link type for link '%s' was not H5L_TYPE_SOFT!\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2
+ "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME2);
}
goto done;
@@ -27082,9 +26950,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf
(counter_val == 4 || counter_val == 8 || counter_val == 16 || counter_val == 20)) {
if (H5L_TYPE_EXTERNAL != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3
- "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
+ printf(" link type for link '%s' was not H5L_TYPE_EXTERNAL!\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3
+ "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME3);
}
goto done;
@@ -27098,9 +26966,9 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf
(counter_val == 5 || counter_val == 7 || counter_val == 17 || counter_val == 19)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3
- "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3
+ "/" LINK_VISIT_MIXED_LINKS_CYCLE_TEST_LINK_NAME4);
}
goto done;
@@ -27110,8 +26978,8 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf
(counter_val == 0 || counter_val == 9 || counter_val == 12 || counter_val == 21)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME2);
}
goto done;
@@ -27121,14 +26989,14 @@ link_visit_mixed_links_cycles_cb(hid_t group_id, const char *name, const H5L_inf
(counter_val == 3 || counter_val == 6 || counter_val == 15 || counter_val == 18)) {
if (H5L_TYPE_HARD != info->type) {
ret_val = -1;
- HDprintf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
- LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3);
+ printf(" link type for link '%s' was not H5L_TYPE_HARD!\n",
+ LINK_VISIT_MIXED_LINKS_CYCLE_TEST_SUBGROUP_NAME3);
}
goto done;
}
- HDprintf(" link name '%s' didn't match known names or came in an incorrect order\n", name);
+ printf(" link name '%s' didn't match known names or came in an incorrect order\n", name);
ret_val = -1;
@@ -27184,19 +27052,19 @@ H5_api_link_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Link Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Link Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(link_tests); i++) {
nerrors += (*link_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
- HDprintf("Cleaning up testing files\n");
+ printf("Cleaning up testing files\n");
cleanup_files();
return nerrors;
diff --git a/test/API/H5_api_misc_test.c b/test/API/H5_api_misc_test.c
index 256550b..37b98ab 100644
--- a/test/API/H5_api_misc_test.c
+++ b/test/API/H5_api_misc_test.c
@@ -44,20 +44,19 @@ test_open_link_without_leading_slash(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\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
@@ -71,7 +70,7 @@ test_open_link_without_leading_slash(void)
if ((dset_id = H5Dcreate2(container_group, OPEN_LINK_WITHOUT_SLASH_DSET_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;
}
@@ -86,20 +85,20 @@ test_open_link_without_leading_slash(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((group_id = H5Gopen2(file_id, "/", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open root group\n");
+ printf(" couldn't open root group\n");
goto error;
}
if ((dset_id = H5Dopen2(group_id, MISCELLANEOUS_TEST_GROUP_NAME "/" OPEN_LINK_WITHOUT_SLASH_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset\n");
+ printf(" couldn't open dataset\n");
goto error;
}
@@ -149,8 +148,8 @@ test_object_creation_by_absolute_path(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, link, or stored datatype aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, link, or stored datatype aren't "
+ "supported with this connector\n");
return 0;
}
@@ -158,13 +157,13 @@ test_object_creation_by_absolute_path(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
@@ -172,7 +171,7 @@ test_object_creation_by_absolute_path(void)
if ((group_id = H5Gcreate2(container_group, OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_CONTAINER_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group\n");
+ printf(" couldn't create container group\n");
goto error;
}
@@ -181,13 +180,13 @@ test_object_creation_by_absolute_path(void)
"/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_CONTAINER_GROUP_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
goto error;
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" container group didn't exist at the correct location\n");
+ printf(" container group didn't exist at the correct location\n");
goto error;
}
@@ -206,7 +205,7 @@ test_object_creation_by_absolute_path(void)
"/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create subgroup by absolute pathname\n");
+ printf(" couldn't create subgroup by absolute pathname\n");
PART_ERROR(H5Gcreate_using_absolute_path);
}
@@ -216,13 +215,13 @@ test_object_creation_by_absolute_path(void)
"/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_SUBGROUP_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Gcreate_using_absolute_path);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" subgroup didn't exist at the correct location\n");
+ printf(" subgroup didn't exist at the correct location\n");
PART_ERROR(H5Gcreate_using_absolute_path);
}
@@ -238,13 +237,13 @@ test_object_creation_by_absolute_path(void)
if ((fspace_id = generate_random_dataspace(OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DSET_SPACE_RANK,
NULL, NULL, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" failed to generate dataspace\n");
+ printf(" failed to generate dataspace\n");
PART_ERROR(H5Dcreate_using_absolute_path);
}
if ((dset_dtype = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" failed to generate datatype\n");
+ printf(" failed to generate datatype\n");
PART_ERROR(H5Dcreate_using_absolute_path);
}
@@ -255,7 +254,7 @@ test_object_creation_by_absolute_path(void)
"/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DSET_NAME,
dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
PART_ERROR(H5Dcreate_using_absolute_path);
}
@@ -266,13 +265,13 @@ test_object_creation_by_absolute_path(void)
"/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Dcreate_using_absolute_path);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" dataset didn't exist at the correct location\n");
+ printf(" dataset didn't exist at the correct location\n");
PART_ERROR(H5Dcreate_using_absolute_path);
}
@@ -287,7 +286,7 @@ test_object_creation_by_absolute_path(void)
/* Try to create a committed datatype in the same fashion as the preceding dataset */
if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
PART_ERROR(H5Tcommit_using_absolute_path);
}
@@ -298,7 +297,7 @@ test_object_creation_by_absolute_path(void)
"/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DTYPE_NAME,
dtype_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype\n");
+ printf(" couldn't commit datatype\n");
PART_ERROR(H5Tcommit_using_absolute_path);
}
@@ -309,13 +308,13 @@ test_object_creation_by_absolute_path(void)
"/" OBJECT_CREATE_BY_ABSOLUTE_PATH_TEST_DTYPE_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Tcommit_using_absolute_path);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" datatype didn't exist at the correct location\n");
+ printf(" datatype didn't exist at the correct location\n");
PART_ERROR(H5Tcommit_using_absolute_path);
}
@@ -384,8 +383,8 @@ test_absolute_vs_relative_path(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_LINK_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, dataset, or link aren't supported with this "
+ "connector\n");
return 0;
}
@@ -393,13 +392,13 @@ test_absolute_vs_relative_path(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
@@ -407,7 +406,7 @@ test_absolute_vs_relative_path(void)
if ((group_id = H5Gcreate2(container_group, ABSOLUTE_VS_RELATIVE_PATH_TEST_CONTAINER_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group\n");
+ printf(" couldn't create container group\n");
goto error;
}
@@ -443,7 +442,7 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET1_NAME,
dset_dtype1, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset by absolute path from root\n");
+ printf(" couldn't create dataset by absolute path from root\n");
PART_ERROR(H5Dcreate_absolute_from_root);
}
@@ -453,13 +452,13 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET1_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Dcreate_absolute_from_root);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" didn't exist at the correct location\n");
+ printf(" didn't exist at the correct location\n");
PART_ERROR(H5Dcreate_absolute_from_root);
}
@@ -479,7 +478,7 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET4_NAME,
dset_dtype4, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset by absolute path from container group\n");
+ printf(" couldn't create dataset by absolute path from container group\n");
PART_ERROR(H5Dcreate_absolute_from_nonroot);
}
@@ -489,13 +488,13 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET4_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Dcreate_absolute_from_nonroot);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" didn't exist at the correct location\n");
+ printf(" didn't exist at the correct location\n");
PART_ERROR(H5Dcreate_absolute_from_nonroot);
}
@@ -523,7 +522,7 @@ test_absolute_vs_relative_path(void)
if ((dset_id5 = H5Dcreate2(group_id, ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET5_NAME, dset_dtype5,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset by relative path from container group\n");
+ printf(" couldn't create dataset by relative path from container group\n");
PART_ERROR(H5Dcreate_relative_from_nonroot);
}
@@ -534,7 +533,7 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET2_NAME,
dset_dtype2, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset by relative path from container group\n");
+ printf(" couldn't create dataset by relative path from container group\n");
PART_ERROR(H5Dcreate_relative_from_nonroot);
}
@@ -544,13 +543,13 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET2_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Dcreate_relative_from_nonroot);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" didn't exist at the correct location\n");
+ printf(" didn't exist at the correct location\n");
PART_ERROR(H5Dcreate_relative_from_nonroot);
}
@@ -560,13 +559,13 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET5_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Dcreate_relative_from_nonroot);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" didn't exist at the correct location\n");
+ printf(" didn't exist at the correct location\n");
PART_ERROR(H5Dcreate_relative_from_nonroot);
}
@@ -585,7 +584,7 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET3_NAME,
dset_dtype3, fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset by relative path from root with leading '.'\n");
+ printf(" couldn't create dataset by relative path from root with leading '.'\n");
PART_ERROR(H5Dcreate_relative_leading_dot_root);
}
@@ -595,13 +594,13 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET3_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Dcreate_relative_leading_dot_root);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" didn't exist at the correct location\n");
+ printf(" didn't exist at the correct location\n");
PART_ERROR(H5Dcreate_relative_leading_dot_root);
}
@@ -617,7 +616,7 @@ test_absolute_vs_relative_path(void)
if ((dset_id6 = H5Dcreate2(group_id, "./" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET6_NAME, dset_dtype6,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(
+ printf(
" couldn't create dataset by relative path from container group with leading '.'\n");
PART_ERROR(H5Dcreate_relative_leading_dot_nonroot);
}
@@ -628,13 +627,13 @@ test_absolute_vs_relative_path(void)
"/" ABSOLUTE_VS_RELATIVE_PATH_TEST_DSET6_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link exists\n");
+ printf(" couldn't determine if link exists\n");
PART_ERROR(H5Dcreate_relative_leading_dot_nonroot);
}
if (!link_exists) {
H5_FAILED();
- HDprintf(" didn't exist at the correct location\n");
+ printf(" didn't exist at the correct location\n");
PART_ERROR(H5Dcreate_relative_leading_dot_nonroot);
}
@@ -729,8 +728,8 @@ test_dot_for_object_name(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or stored datatype aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, dataset, or stored datatype aren't supported with "
+ "this connector\n");
return 0;
}
@@ -738,26 +737,26 @@ test_dot_for_object_name(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", MISCELLANEOUS_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", MISCELLANEOUS_TEST_GROUP_NAME);
goto error;
}
if ((subgroup_id = H5Gcreate2(container_group, DOT_AS_OBJECT_NAME_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", DOT_AS_OBJECT_NAME_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", DOT_AS_OBJECT_NAME_TEST_SUBGROUP_NAME);
goto error;
}
if ((dspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create data space\n");
+ printf(" couldn't create data space\n");
goto error;
}
@@ -778,7 +777,7 @@ test_dot_for_object_name(void)
if (group_id >= 0) {
H5_FAILED();
- HDprintf(" a group was created with '.' as the name!\n");
+ printf(" a group was created with '.' as the name!\n");
PART_ERROR(H5Gcreate_dot_as_name);
}
@@ -800,7 +799,7 @@ test_dot_for_object_name(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" a dataset was created with '.' as the name!\n");
+ printf(" a dataset was created with '.' as the name!\n");
PART_ERROR(H5Dcreate_dot_as_name);
}
@@ -814,7 +813,7 @@ test_dot_for_object_name(void)
if ((dtype_id = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't copy a native datatype\n");
+ printf(" couldn't copy a native datatype\n");
PART_ERROR(H5Tcommit_dot_as_name);
}
@@ -827,13 +826,13 @@ test_dot_for_object_name(void)
if (ret >= 0) {
H5_FAILED();
- HDprintf(" a named datatype was committed with '.' as the name!\n");
+ printf(" a named datatype was committed with '.' as the name!\n");
PART_ERROR(H5Tcommit_dot_as_name);
}
if (H5Tclose(dtype_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close datatype\n");
+ printf(" failed to close datatype\n");
PART_ERROR(H5Tcommit_dot_as_name);
}
@@ -918,8 +917,7 @@ test_symbols_in_compound_field_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_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;
}
@@ -928,20 +926,20 @@ test_symbols_in_compound_field_name(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, MISCELLANEOUS_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, COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_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;
}
@@ -962,14 +960,14 @@ test_symbols_in_compound_field_name(void)
if ((compound_type = H5Tcreate(H5T_COMPOUND, total_type_size)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create compound datatype\n");
+ printf(" couldn't create compound datatype\n");
goto error;
}
for (i = 0, next_offset = 0; i < COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_TEST_NUM_SUBTYPES; i++) {
if (H5Tinsert(compound_type, member_names[i], next_offset, type_pool[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't insert compound member %zu\n", i);
+ printf(" couldn't insert compound member %zu\n", i);
goto error;
}
@@ -986,7 +984,7 @@ test_symbols_in_compound_field_name(void)
if ((dset_id = H5Dcreate2(group_id, COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_TEST_DSET_NAME, compound_type,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -996,7 +994,7 @@ test_symbols_in_compound_field_name(void)
if ((dset_id = H5Dopen2(group_id, COMPOUND_WITH_SYMBOLS_IN_MEMBER_NAMES_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset\n");
+ printf(" failed to open dataset\n");
goto error;
}
@@ -1044,17 +1042,17 @@ H5_api_misc_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Miscellaneous Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Miscellaneous Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(misc_tests); i++) {
nerrors += (*misc_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}
diff --git a/test/API/H5_api_object_test.c b/test/API/H5_api_object_test.c
index 8055ad9..268e65c 100644
--- a/test/API/H5_api_object_test.c
+++ b/test/API/H5_api_object_test.c
@@ -126,27 +126,27 @@ test_open_object(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, dataset, or stored datatype aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, object, dataset, or stored datatype 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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME);
goto error;
}
@@ -167,7 +167,7 @@ test_open_object(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_OPEN_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_OPEN_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_OPEN_TEST_GRP_NAME);
PART_ERROR(H5Oopen_group);
}
@@ -179,19 +179,19 @@ test_open_object(void)
if ((group_id2 = H5Oopen(group_id, OBJECT_OPEN_TEST_GRP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s' with H5Oopen\n", OBJECT_OPEN_TEST_GRP_NAME);
+ printf(" couldn't open group '%s' with H5Oopen\n", OBJECT_OPEN_TEST_GRP_NAME);
PART_ERROR(H5Oopen_group);
}
if (H5Iget_type(group_id2) != H5I_GROUP) {
H5_FAILED();
- HDprintf(" ID is not a group\n");
+ printf(" ID is not a group\n");
PART_ERROR(H5Oopen_group);
}
if (H5Gclose(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group opened with H5Oopen\n");
+ printf(" couldn't close group opened with H5Oopen\n");
PART_ERROR(H5Oopen_group);
}
@@ -206,7 +206,7 @@ test_open_object(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_OPEN_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_OPEN_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_OPEN_TEST_DSET_NAME);
PART_ERROR(H5Oopen_dset);
}
@@ -218,19 +218,19 @@ test_open_object(void)
if ((dset_id = H5Oopen(group_id, OBJECT_OPEN_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_OPEN_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_OPEN_TEST_DSET_NAME);
PART_ERROR(H5Oopen_dset);
}
if (H5Iget_type(dset_id) != H5I_DATASET) {
H5_FAILED();
- HDprintf(" ID is not a dataset\n");
+ printf(" ID is not a dataset\n");
PART_ERROR(H5Oopen_dset);
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close dataset opened with H5Oopen\n");
+ printf(" couldn't close dataset opened with H5Oopen\n");
PART_ERROR(H5Oopen_dset);
}
@@ -244,14 +244,14 @@ test_open_object(void)
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME);
+ printf(" couldn't create datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME);
PART_ERROR(H5Oopen_dtype);
}
if (H5Tcommit2(group_id, OBJECT_OPEN_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_OPEN_TEST_TYPE_NAME);
PART_ERROR(H5Oopen_dtype);
}
@@ -263,19 +263,19 @@ test_open_object(void)
if ((type_id = H5Oopen(group_id, OBJECT_OPEN_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_OPEN_TEST_TYPE_NAME);
+ printf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_OPEN_TEST_TYPE_NAME);
PART_ERROR(H5Oopen_dtype);
}
if (H5Iget_type(type_id) != H5I_DATATYPE) {
H5_FAILED();
- HDprintf(" ID is not a dataset\n");
+ printf(" ID is not a dataset\n");
PART_ERROR(H5Oopen_dtype);
}
if (H5Tclose(type_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close committed datatype opened with H5Oopen\n");
+ printf(" couldn't close committed datatype opened with H5Oopen\n");
PART_ERROR(H5Oopen_dtype);
}
@@ -315,7 +315,7 @@ test_open_object(void)
if ((group_id2 = H5Oopen_by_idx(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_GRP_NAME);
+ printf(" couldn't open group '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_GRP_NAME);
PART_ERROR(H5Oopen_by_idx_group);
}
@@ -330,7 +330,7 @@ test_open_object(void)
if ((dset_id = H5Oopen_by_idx(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s' with H5Oopen_by_idx\n", OBJECT_OPEN_TEST_DSET_NAME);
PART_ERROR(H5Oopen_by_idx_dset);
}
@@ -345,8 +345,8 @@ test_open_object(void)
if ((type_id = H5Oopen_by_idx(container_group, OBJECT_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open committed datatype '%s' with H5Oopen_by_idx\n",
- OBJECT_OPEN_TEST_TYPE_NAME);
+ printf(" couldn't open committed datatype '%s' with H5Oopen_by_idx\n",
+ OBJECT_OPEN_TEST_TYPE_NAME);
PART_ERROR(H5Oopen_by_idx_dtype);
}
@@ -434,8 +434,8 @@ test_open_object_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_OBJECT_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or object aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, or object aren't supported with "
+ "this connector\n");
return 0;
}
@@ -443,26 +443,26 @@ test_open_object_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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -470,15 +470,14 @@ test_open_object_invalid_params(void)
if ((group_id = H5Gcreate2(container_group, OBJECT_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- OBJECT_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
if ((group_id2 = H5Gcreate2(group_id, OBJECT_OPEN_INVALID_PARAMS_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_OPEN_INVALID_PARAMS_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_OPEN_INVALID_PARAMS_TEST_GRP_NAME);
goto error;
}
@@ -501,7 +500,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen succeeded with an invalid location ID!\n");
+ printf(" H5Oopen succeeded with an invalid location ID!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_invalid_loc_id);
}
@@ -522,7 +521,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen succeeded with a NULL object name!\n");
+ printf(" H5Oopen succeeded with a NULL object name!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_invalid_obj_name);
}
@@ -535,7 +534,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen succeeded with an invalid object name of ''!\n");
+ printf(" H5Oopen succeeded with an invalid object name of ''!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_invalid_obj_name);
}
@@ -556,7 +555,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen succeeded with an invalid LAPL!\n");
+ printf(" H5Oopen succeeded with an invalid LAPL!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_invalid_lapl);
}
@@ -578,7 +577,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_idx succeeded with an invalid location ID!\n");
+ printf(" H5Oopen_by_idx succeeded with an invalid location ID!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_loc_id);
}
@@ -599,7 +598,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_idx succeeded with a NULL group name!\n");
+ printf(" H5Oopen_by_idx succeeded with a NULL group name!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_grp_name);
}
@@ -612,7 +611,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_idx succeeded with an invalid group name of ''!\n");
+ printf(" H5Oopen_by_idx succeeded with an invalid group name of ''!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_grp_name);
}
@@ -634,7 +633,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_index_type);
}
@@ -648,7 +647,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Oopen_by_idx succeeded with invalid index type H5_INDEX_N!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_index_type);
}
@@ -670,8 +669,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(
- " H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_UNKNOWN!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_iter_order);
}
@@ -685,7 +683,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Oopen_by_idx succeeded with an invalid iteration ordering H5_ITER_N!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_iter_order);
}
@@ -707,7 +705,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_idx succeeded with an invalid LAPL!\n");
+ printf(" H5Oopen_by_idx succeeded with an invalid LAPL!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_idx_invalid_lapl);
}
@@ -728,7 +726,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_token succeeded with an invalid location ID!\n");
+ printf(" H5Oopen_by_token succeeded with an invalid location ID!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_token_invalid_loc_id);
}
@@ -749,7 +747,7 @@ test_open_object_invalid_params(void)
if (group_id2 >= 0) {
H5_FAILED();
- HDprintf(" H5Oopen_by_token succeeded with an invalid token!\n");
+ printf(" H5Oopen_by_token succeeded with an invalid token!\n");
H5Gclose(group_id2);
PART_ERROR(H5Oopen_by_token_invalid_token);
}
@@ -812,8 +810,8 @@ test_object_exists(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, dataset, stored datatype or soft link "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, dataset, stored datatype or soft link "
+ "aren't supported with this connector\n");
return 0;
}
@@ -821,20 +819,20 @@ test_object_exists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_EXISTS_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_EXISTS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_EXISTS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -859,25 +857,25 @@ test_object_exists(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_EXISTS_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_EXISTS_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_EXISTS_TEST_GRP_NAME);
PART_ERROR(H5Oexists_by_name_group);
}
if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_GRP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_GRP_NAME);
+ printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_GRP_NAME);
PART_ERROR(H5Oexists_by_name_group);
}
if (!object_exists) {
H5_FAILED();
- HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_GRP_NAME);
+ printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_GRP_NAME);
PART_ERROR(H5Oexists_by_name_group);
}
if (H5Gclose(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group\n");
+ printf(" couldn't close group\n");
PART_ERROR(H5Oexists_by_name_group);
}
@@ -892,26 +890,26 @@ test_object_exists(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_EXISTS_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_EXISTS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_EXISTS_TEST_DSET_NAME);
PART_ERROR(H5Oexists_by_name_dset);
}
if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_DSET_NAME);
+ printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_DSET_NAME);
PART_ERROR(H5Oexists_by_name_dset);
}
if (!object_exists) {
H5_FAILED();
- HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_DSET_NAME);
+ printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_DSET_NAME);
PART_ERROR(H5Oexists_by_name_dset);
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close dataset\n");
+ printf(" couldn't close dataset\n");
PART_ERROR(H5Oexists_by_name_dset);
}
@@ -925,33 +923,33 @@ test_object_exists(void)
if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME);
+ printf(" couldn't create datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME);
PART_ERROR(H5Oexists_by_name_dtype);
}
if (H5Tcommit2(group_id, OBJECT_EXISTS_TEST_TYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_EXISTS_TEST_TYPE_NAME);
PART_ERROR(H5Oexists_by_name_dtype);
}
if ((object_exists = H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_TYPE_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_TYPE_NAME);
+ printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_TYPE_NAME);
PART_ERROR(H5Oexists_by_name_dtype);
}
if (!object_exists) {
H5_FAILED();
- HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_TYPE_NAME);
+ printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_TYPE_NAME);
PART_ERROR(H5Oexists_by_name_dtype);
}
if (H5Tclose(dtype_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
PART_ERROR(H5Oexists_by_name_dtype);
}
@@ -966,20 +964,20 @@ test_object_exists(void)
if (H5Lcreate_soft("/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME, group_id,
OBJECT_EXISTS_TEST_SOFT_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Oexists_by_name_soft_link);
}
if ((object_exists =
H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_SOFT_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME);
+ printf(" couldn't determine if object '%s' exists\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Oexists_by_name_soft_link);
}
if (!object_exists) {
H5_FAILED();
- HDprintf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME);
+ printf(" object '%s' didn't exist!\n", OBJECT_EXISTS_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Oexists_by_name_soft_link);
}
@@ -995,22 +993,22 @@ test_object_exists(void)
"/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME "/non_existent_object",
group_id, OBJECT_EXISTS_TEST_DANGLING_LINK_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_DANGLING_LINK_NAME);
+ printf(" couldn't create soft link '%s'\n", OBJECT_EXISTS_TEST_DANGLING_LINK_NAME);
PART_ERROR(H5Oexists_by_name_dangling_soft_link);
}
if ((object_exists =
H5Oexists_by_name(group_id, OBJECT_EXISTS_TEST_DANGLING_LINK_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if object '%s' exists\n",
- "/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME
- "/non_existent_object");
+ printf(" couldn't determine if object '%s' exists\n",
+ "/" OBJECT_TEST_GROUP_NAME "/" OBJECT_EXISTS_TEST_SUBGROUP_NAME
+ "/non_existent_object");
PART_ERROR(H5Oexists_by_name_dangling_soft_link);
}
if (object_exists) {
H5_FAILED();
- HDprintf(" object pointed to by dangling soft link should not have existed!\n");
+ printf(" object pointed to by dangling soft link should not have existed!\n");
PART_ERROR(H5Oexists_by_name_dangling_soft_link);
}
@@ -1072,7 +1070,7 @@ test_object_exists_invalid_params(void)
if (!(vol_cap_flags_g & (H5VL_CAP_FLAG_FILE_BASIC)) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or object aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or object aren't supported with this connector\n");
return 0;
}
@@ -1080,28 +1078,28 @@ test_object_exists_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_EXISTS_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- OBJECT_EXISTS_INVALID_PARAMS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ OBJECT_EXISTS_INVALID_PARAMS_TEST_SUBGROUP_NAME);
goto error;
}
if ((group_id2 = H5Gcreate2(group_id, OBJECT_EXISTS_INVALID_PARAMS_TEST_GRP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_EXISTS_INVALID_PARAMS_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_EXISTS_INVALID_PARAMS_TEST_GRP_NAME);
goto error;
}
@@ -1125,7 +1123,7 @@ test_object_exists_invalid_params(void)
if (object_exists >= 0) {
H5_FAILED();
- HDprintf(" H5Oexists_by_name succeeded with an invalid location ID!\n");
+ printf(" H5Oexists_by_name succeeded with an invalid location ID!\n");
PART_ERROR(H5Oexists_by_name_invalid_loc_id);
}
@@ -1145,7 +1143,7 @@ test_object_exists_invalid_params(void)
if (object_exists >= 0) {
H5_FAILED();
- HDprintf(" H5Oexists_by_name succeeded with a NULL object name!\n");
+ printf(" H5Oexists_by_name succeeded with a NULL object name!\n");
PART_ERROR(H5Oexists_by_name_invalid_obj_name);
}
@@ -1157,7 +1155,7 @@ test_object_exists_invalid_params(void)
if (object_exists >= 0) {
H5_FAILED();
- HDprintf(" H5Oexists_by_name succeeded with an invalid object name of ''!\n");
+ printf(" H5Oexists_by_name succeeded with an invalid object name of ''!\n");
PART_ERROR(H5Oexists_by_name_invalid_obj_name);
}
@@ -1178,7 +1176,7 @@ test_object_exists_invalid_params(void)
if (object_exists >= 0) {
H5_FAILED();
- HDprintf(" H5Oexists_by_name succeeded with an invalid LAPL!\n");
+ printf(" H5Oexists_by_name succeeded with an invalid LAPL!\n");
PART_ERROR(H5Oexists_by_name_invalid_lapl);
}
@@ -1263,8 +1261,8 @@ test_link_object(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, dataset, or stored datatype aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, object, dataset, or stored datatype aren't "
+ "supported with this connector\n");
return 0;
}
@@ -1272,20 +1270,20 @@ test_link_object(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME);
goto error;
}
@@ -1305,13 +1303,13 @@ test_link_object(void)
if ((group_id2 = H5Gcreate_anon(group_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create an anonymous group\n");
+ printf(" couldn't create an anonymous group\n");
PART_ERROR(H5Olink_group);
}
if (H5Olink(group_id2, group_id, OBJECT_LINK_TEST_GROUP_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't link the anonymous group\n");
+ printf(" couldn't link the anonymous group\n");
PART_ERROR(H5Olink_group);
}
@@ -1325,13 +1323,13 @@ test_link_object(void)
if ((dset_id = H5Dcreate_anon(group_id, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create an anonymous dataset\n");
+ printf(" couldn't create an anonymous dataset\n");
PART_ERROR(H5Olink_dataset);
}
if (H5Olink(dset_id, group_id, OBJECT_LINK_TEST_DSET_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't link the anonymous dataset\n");
+ printf(" couldn't link the anonymous dataset\n");
PART_ERROR(H5Olink_dataset);
}
@@ -1345,13 +1343,13 @@ test_link_object(void)
if (H5Tcommit_anon(group_id, dset_dtype, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create an anonymous datatype\n");
+ printf(" couldn't create an anonymous datatype\n");
PART_ERROR(H5Olink_datatype);
}
if (H5Olink(dset_dtype, group_id, OBJECT_LINK_TEST_DTYPE_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't link the anonymous datatype\n");
+ printf(" couldn't link the anonymous datatype\n");
PART_ERROR(H5Olink_datatype);
}
@@ -1418,7 +1416,7 @@ test_link_object_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_OBJECT_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or object aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or object aren't supported with this connector\n");
return 0;
}
@@ -1426,26 +1424,26 @@ test_link_object_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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_LINK_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", OBJECT_LINK_TEST_GROUP_NAME);
goto error;
}
if ((group_id2 = H5Gcreate_anon(group_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create an anonymous group\n");
+ printf(" couldn't create an anonymous group\n");
goto error;
}
@@ -1466,7 +1464,7 @@ test_link_object_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Olink succeeded with an invalid object ID!\n");
+ printf(" H5Olink succeeded with an invalid object ID!\n");
PART_ERROR(H5Olink_invalid_object_id);
}
@@ -1487,7 +1485,7 @@ test_link_object_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Olink succeeded with an invalid location ID!\n");
+ printf(" H5Olink succeeded with an invalid location ID!\n");
PART_ERROR(H5Olink_invalid_location);
}
@@ -1507,7 +1505,7 @@ test_link_object_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Olink succeeded with NULL as the object name!\n");
+ printf(" H5Olink succeeded with NULL as the object name!\n");
PART_ERROR(H5Olink_invalid_name);
}
@@ -1519,7 +1517,7 @@ test_link_object_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Olink succeeded with an invalid object name of ''!\n");
+ printf(" H5Olink succeeded with an invalid object name of ''!\n");
PART_ERROR(H5Olink_invalid_name);
}
@@ -1540,7 +1538,7 @@ test_link_object_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Olink succeeded with an invalid LCPL!\n");
+ printf(" H5Olink succeeded with an invalid LCPL!\n");
PART_ERROR(H5Olink_invalid_lcpl);
}
@@ -1561,7 +1559,7 @@ test_link_object_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Olink succeeded with an invalid LAPL!\n");
+ printf(" H5Olink succeeded with an invalid LAPL!\n");
PART_ERROR(H5Olink_invalid_lapl);
}
@@ -1621,8 +1619,8 @@ test_incr_decr_object_refcount(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, stored datatype, or object "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, stored datatype, or object "
+ "aren't supported with this connector\n");
return 0;
}
@@ -1630,20 +1628,20 @@ test_incr_decr_object_refcount(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_REF_COUNT_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_REF_COUNT_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_REF_COUNT_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1664,15 +1662,15 @@ test_incr_decr_object_refcount(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_REF_COUNT_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_REF_COUNT_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_REF_COUNT_TEST_GRP_NAME);
PART_ERROR(H5Oincr_decr_refcount_group);
}
/* Increment the reference count */
if (H5Oincr_refcount(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't increment reference count for the group '%s' \n",
- OBJECT_REF_COUNT_TEST_GRP_NAME);
+ printf(" couldn't increment reference count for the group '%s' \n",
+ OBJECT_REF_COUNT_TEST_GRP_NAME);
PART_ERROR(H5Oincr_decr_refcount_group);
}
@@ -1680,23 +1678,23 @@ test_incr_decr_object_refcount(void)
if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_GRP_NAME, &oinfo, H5O_INFO_BASIC,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get reference count for the group '%s' \n",
- OBJECT_REF_COUNT_TEST_GRP_NAME);
+ printf(" couldn't get reference count for the group '%s' \n",
+ OBJECT_REF_COUNT_TEST_GRP_NAME);
PART_ERROR(H5Oincr_decr_refcount_group);
}
if (oinfo.rc != 2) {
H5_FAILED();
- HDprintf(" the reference count for the group '%s' isn't 2: %d\n",
- OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc);
+ printf(" the reference count for the group '%s' isn't 2: %d\n",
+ OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc);
PART_ERROR(H5Oincr_decr_refcount_group);
}
/* Decrement the reference count */
if (H5Odecr_refcount(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't decrement reference count for the group '%s' \n",
- OBJECT_REF_COUNT_TEST_GRP_NAME);
+ printf(" couldn't decrement reference count for the group '%s' \n",
+ OBJECT_REF_COUNT_TEST_GRP_NAME);
PART_ERROR(H5Oincr_decr_refcount_group);
}
@@ -1704,21 +1702,21 @@ test_incr_decr_object_refcount(void)
if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_GRP_NAME, &oinfo, H5O_INFO_BASIC,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get reference count for the group '%s' \n",
- OBJECT_REF_COUNT_TEST_GRP_NAME);
+ printf(" couldn't get reference count for the group '%s' \n",
+ OBJECT_REF_COUNT_TEST_GRP_NAME);
PART_ERROR(H5Oincr_decr_refcount_group);
}
if (oinfo.rc != 1) {
H5_FAILED();
- HDprintf(" the reference count for the group '%s' isn't 1: %d\n",
- OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc);
+ printf(" the reference count for the group '%s' isn't 1: %d\n",
+ OBJECT_REF_COUNT_TEST_GRP_NAME, oinfo.rc);
PART_ERROR(H5Oincr_decr_refcount_group);
}
if (H5Gclose(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group\n");
+ printf(" couldn't close group\n");
PART_ERROR(H5Oincr_decr_refcount_group);
}
@@ -1733,15 +1731,15 @@ test_incr_decr_object_refcount(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_REF_COUNT_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_REF_COUNT_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_REF_COUNT_TEST_DSET_NAME);
PART_ERROR(H5Oincr_decr_refcount_dset);
}
/* Increment the reference count */
if (H5Oincr_refcount(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't increment reference count for the dataset '%s' \n",
- OBJECT_REF_COUNT_TEST_DSET_NAME);
+ printf(" couldn't increment reference count for the dataset '%s' \n",
+ OBJECT_REF_COUNT_TEST_DSET_NAME);
PART_ERROR(H5Oincr_decr_refcount_dset);
}
@@ -1749,23 +1747,23 @@ test_incr_decr_object_refcount(void)
if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_DSET_NAME, &oinfo, H5O_INFO_BASIC,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get reference count for the dataset '%s' \n",
- OBJECT_REF_COUNT_TEST_DSET_NAME);
+ printf(" couldn't get reference count for the dataset '%s' \n",
+ OBJECT_REF_COUNT_TEST_DSET_NAME);
PART_ERROR(H5Oincr_decr_refcount_dset);
}
if (oinfo.rc != 2) {
H5_FAILED();
- HDprintf(" the reference count for the dataset '%s' isn't 2: %d\n",
- OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc);
+ printf(" the reference count for the dataset '%s' isn't 2: %d\n",
+ OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc);
PART_ERROR(H5Oincr_decr_refcount_dset);
}
/* Decrement the reference count */
if (H5Odecr_refcount(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't decrement reference count for the dataset '%s' \n",
- OBJECT_REF_COUNT_TEST_DSET_NAME);
+ printf(" couldn't decrement reference count for the dataset '%s' \n",
+ OBJECT_REF_COUNT_TEST_DSET_NAME);
PART_ERROR(H5Oincr_decr_refcount_dset);
}
@@ -1773,21 +1771,21 @@ test_incr_decr_object_refcount(void)
if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_DSET_NAME, &oinfo, H5O_INFO_BASIC,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get reference count for the dataset '%s' \n",
- OBJECT_REF_COUNT_TEST_DSET_NAME);
+ printf(" couldn't get reference count for the dataset '%s' \n",
+ OBJECT_REF_COUNT_TEST_DSET_NAME);
PART_ERROR(H5Oincr_decr_refcount_dset);
}
if (oinfo.rc != 1) {
H5_FAILED();
- HDprintf(" the reference count for the dataset '%s' isn't 1: %d\n",
- OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc);
+ printf(" the reference count for the dataset '%s' isn't 1: %d\n",
+ OBJECT_REF_COUNT_TEST_DSET_NAME, oinfo.rc);
PART_ERROR(H5Oincr_decr_refcount_dset);
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close dataset\n");
+ printf(" couldn't close dataset\n");
PART_ERROR(H5Oincr_decr_refcount_dset);
}
@@ -1802,15 +1800,15 @@ test_incr_decr_object_refcount(void)
if (H5Tcommit2(group_id, OBJECT_REF_COUNT_TEST_TYPE_NAME, dset_dtype, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_REF_COUNT_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_REF_COUNT_TEST_TYPE_NAME);
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
/* Increment the reference count */
if (H5Oincr_refcount(dset_dtype) < 0) {
H5_FAILED();
- HDprintf(" couldn't increment reference count for the datatype '%s' \n",
- OBJECT_REF_COUNT_TEST_TYPE_NAME);
+ printf(" couldn't increment reference count for the datatype '%s' \n",
+ OBJECT_REF_COUNT_TEST_TYPE_NAME);
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
@@ -1818,23 +1816,23 @@ test_incr_decr_object_refcount(void)
if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_TYPE_NAME, &oinfo, H5O_INFO_BASIC,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get reference count for the datatype '%s' \n",
- OBJECT_REF_COUNT_TEST_TYPE_NAME);
+ printf(" couldn't get reference count for the datatype '%s' \n",
+ OBJECT_REF_COUNT_TEST_TYPE_NAME);
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
if (oinfo.rc != 2) {
H5_FAILED();
- HDprintf(" the reference count for the datatype '%s' isn't 2: %d\n",
- OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc);
+ printf(" the reference count for the datatype '%s' isn't 2: %d\n",
+ OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc);
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
/* Decrement the reference count */
if (H5Odecr_refcount(dset_dtype) < 0) {
H5_FAILED();
- HDprintf(" couldn't decrement reference count for the datatype '%s' \n",
- OBJECT_REF_COUNT_TEST_TYPE_NAME);
+ printf(" couldn't decrement reference count for the datatype '%s' \n",
+ OBJECT_REF_COUNT_TEST_TYPE_NAME);
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
@@ -1842,21 +1840,21 @@ test_incr_decr_object_refcount(void)
if (H5Oget_info_by_name3(group_id, OBJECT_REF_COUNT_TEST_TYPE_NAME, &oinfo, H5O_INFO_BASIC,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get reference count for the datatype '%s' \n",
- OBJECT_REF_COUNT_TEST_TYPE_NAME);
+ printf(" couldn't get reference count for the datatype '%s' \n",
+ OBJECT_REF_COUNT_TEST_TYPE_NAME);
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
if (oinfo.rc != 1) {
H5_FAILED();
- HDprintf(" the reference count for the datatype '%s' isn't 1: %d\n",
- OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc);
+ printf(" the reference count for the datatype '%s' isn't 1: %d\n",
+ OBJECT_REF_COUNT_TEST_TYPE_NAME, oinfo.rc);
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
if (H5Tclose(dset_dtype) < 0) {
H5_FAILED();
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
PART_ERROR(H5Oincr_decr_refcount_dtype);
}
@@ -1911,7 +1909,7 @@ test_incr_decr_object_refcount_invalid_params(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for more object aren't supported with this connector\n");
+ printf(" API functions for more object aren't supported with this connector\n");
return 0;
}
@@ -1929,7 +1927,7 @@ test_incr_decr_object_refcount_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" incremented the reference count for an invalid object ID\n");
+ printf(" incremented the reference count for an invalid object ID\n");
PART_ERROR(H5Oincr_refcount_invalid_param);
}
@@ -1949,7 +1947,7 @@ test_incr_decr_object_refcount_invalid_params(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" decremented the reference count for an invalid object ID\n");
+ printf(" decremented the reference count for an invalid object ID\n");
PART_ERROR(H5Odecr_refcount_invalid_param);
}
@@ -1998,8 +1996,8 @@ test_object_copy_basic(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or "
- "stored datatype aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or "
+ "stored datatype aren't supported with this connector\n");
return 0;
}
@@ -2007,20 +2005,20 @@ test_object_copy_basic(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_BASIC_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_BASIC_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_BASIC_TEST_SUBGROUP_NAME);
goto error;
}
@@ -2036,7 +2034,7 @@ test_object_copy_basic(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_BASIC_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME);
goto error;
}
@@ -2047,8 +2045,8 @@ test_object_copy_basic(void)
if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name,
- OBJECT_COPY_BASIC_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s' under group '%s'\n", grp_name,
+ OBJECT_COPY_BASIC_TEST_GROUP_NAME);
goto error;
}
@@ -2057,15 +2055,15 @@ test_object_copy_basic(void)
if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested group '%s' under group '%s'\n",
- OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
+ printf(" couldn't create nested group '%s' under group '%s'\n",
+ OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
goto error;
}
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", grp_name);
+ printf(" couldn't close group '%s'\n", grp_name);
goto error;
}
}
@@ -2078,14 +2076,14 @@ test_object_copy_basic(void)
if ((tmp_attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
- OBJECT_COPY_BASIC_TEST_GROUP_NAME);
+ printf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
+ OBJECT_COPY_BASIC_TEST_GROUP_NAME);
goto error;
}
if (H5Aclose(tmp_attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -2094,7 +2092,7 @@ test_object_copy_basic(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_BASIC_TEST_DSET_NAME, dset_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME);
goto error;
}
@@ -2106,14 +2104,14 @@ test_object_copy_basic(void)
if ((tmp_attr_id = H5Acreate2(dset_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name,
- OBJECT_COPY_BASIC_TEST_DSET_NAME);
+ printf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name,
+ OBJECT_COPY_BASIC_TEST_DSET_NAME);
goto error;
}
if (H5Aclose(tmp_attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -2121,14 +2119,14 @@ test_object_copy_basic(void)
/* Create the test committed datatype object, along with the attributes attached to it. */
if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, OBJECT_COPY_BASIC_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME);
goto error;
}
@@ -2140,14 +2138,14 @@ test_object_copy_basic(void)
if ((tmp_attr_id = H5Acreate2(dtype_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name,
- OBJECT_COPY_BASIC_TEST_DTYPE_NAME);
+ printf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name,
+ OBJECT_COPY_BASIC_TEST_DTYPE_NAME);
goto error;
}
if (H5Aclose(tmp_attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -2163,30 +2161,30 @@ test_object_copy_basic(void)
if (H5Ocopy(group_id, OBJECT_COPY_BASIC_TEST_GROUP_NAME, group_id,
OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME,
- OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
+ printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_GROUP_NAME,
+ OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group);
}
if ((object_link_exists =
H5Lexists(group_id, OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied group exists\n",
- OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
+ printf(" couldn't determine if link '%s' to copied group exists\n",
+ OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied group didn't exist!\n",
- OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
+ printf(" link '%s' to copied group didn't exist!\n",
+ OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group);
}
/* Ensure that the new group has all the members of the copied group, and all its attributes */
if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
+ printf(" failed to open group copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group);
}
@@ -2200,14 +2198,14 @@ test_object_copy_basic(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
PART_ERROR(H5Ocopy_group);
}
if (group_info.nlinks != OBJECT_COPY_BASIC_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(" copied group contained %d members instead of %d members after a deep copy!\n",
- (int)group_info.nlinks, OBJECT_COPY_BASIC_TEST_NUM_NESTED_OBJS);
+ printf(" copied group contained %d members instead of %d members after a deep copy!\n",
+ (int)group_info.nlinks, OBJECT_COPY_BASIC_TEST_NUM_NESTED_OBJS);
PART_ERROR(H5Ocopy_group);
}
@@ -2221,13 +2219,13 @@ test_object_copy_basic(void)
if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_group);
}
if (object_info.num_attrs == 0) {
H5_FAILED();
- HDprintf(" copied group didn't contain any attributes after copy operation!\n");
+ printf(" copied group didn't contain any attributes after copy operation!\n");
PART_ERROR(H5Ocopy_group);
}
@@ -2236,13 +2234,13 @@ test_object_copy_basic(void)
if (H5Aiterate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_attribute_iter_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over copied group's attributes\n");
+ printf(" failed to iterate over copied group's attributes\n");
PART_ERROR(H5Ocopy_group);
}
if (i != OBJECT_COPY_BASIC_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(
+ printf(
" number of attributes on copied group (%llu) didn't match expected number (%llu)!\n",
(unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS);
PART_ERROR(H5Ocopy_group);
@@ -2250,7 +2248,7 @@ test_object_copy_basic(void)
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group copy\n");
+ printf(" failed to close group copy\n");
PART_ERROR(H5Ocopy_group);
}
@@ -2267,8 +2265,7 @@ test_object_copy_basic(void)
if ((tmp_group_id = H5Gopen2(group_id, grp_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group '%s'\n",
- OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME);
+ printf(" failed to open group '%s'\n", OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME);
PART_ERROR(H5Ocopy_group);
}
@@ -2282,21 +2279,20 @@ test_object_copy_basic(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
PART_ERROR(H5Ocopy_group);
}
if (group_info.nlinks != 1) {
H5_FAILED();
- HDprintf(" copied group's immediate members didn't contain nested members after a "
- "deep copy!\n");
+ printf(" copied group's immediate members didn't contain nested members after a "
+ "deep copy!\n");
PART_ERROR(H5Ocopy_group);
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n",
- OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME);
+ printf(" failed to close group '%s'\n", OBJECT_COPY_BASIC_TEST_DEEP_NESTED_GROUP_NAME);
PART_ERROR(H5Ocopy_group);
}
}
@@ -2321,30 +2317,30 @@ test_object_copy_basic(void)
if (H5Ocopy(group_id, OBJECT_COPY_BASIC_TEST_DSET_NAME, group_id,
OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME,
- OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
+ printf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DSET_NAME,
+ OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset);
}
if ((object_link_exists =
H5Lexists(group_id, OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied dataset exists\n",
- OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
+ printf(" couldn't determine if link '%s' to copied dataset exists\n",
+ OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied dataset didn't exist!\n",
- OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
+ printf(" link '%s' to copied dataset didn't exist!\n",
+ OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset);
}
/* Ensure that the new dataset has all of the attributes of the copied dataset */
if ((tmp_dset_id = H5Dopen2(group_id, OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
+ printf(" failed to open dataset copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset);
}
@@ -2358,13 +2354,13 @@ test_object_copy_basic(void)
if (H5Oget_info3(tmp_dset_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_dset);
}
if (object_info.num_attrs == 0) {
H5_FAILED();
- HDprintf(" copied dataset didn't contain any attributes after copy operation!\n");
+ printf(" copied dataset didn't contain any attributes after copy operation!\n");
PART_ERROR(H5Ocopy_dset);
}
@@ -2373,21 +2369,21 @@ test_object_copy_basic(void)
if (H5Aiterate2(tmp_dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_attribute_iter_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over copied dataset's attributes\n");
+ printf(" failed to iterate over copied dataset's attributes\n");
PART_ERROR(H5Ocopy_dset);
}
if (i != OBJECT_COPY_BASIC_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" number of attributes on copied dataset (%llu) didn't match expected number "
- "(%llu)!\n",
- (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS);
+ printf(" number of attributes on copied dataset (%llu) didn't match expected number "
+ "(%llu)!\n",
+ (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS);
PART_ERROR(H5Ocopy_dset);
}
if (H5Dclose(tmp_dset_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close dataset copy\n");
+ printf(" failed to close dataset copy\n");
PART_ERROR(H5Ocopy_dset);
}
@@ -2411,30 +2407,30 @@ test_object_copy_basic(void)
if (H5Ocopy(group_id, OBJECT_COPY_BASIC_TEST_DTYPE_NAME, group_id,
OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME,
- OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
+ printf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_BASIC_TEST_DTYPE_NAME,
+ OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype);
}
if ((object_link_exists =
H5Lexists(group_id, OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied datatype exists\n",
- OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
+ printf(" couldn't determine if link '%s' to copied datatype exists\n",
+ OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied datatype didn't exist!\n",
- OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
+ printf(" link '%s' to copied datatype didn't exist!\n",
+ OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype);
}
/* Ensure that the new committed datatype has all the attributes of the copied datatype */
if ((tmp_dtype_id = H5Topen2(group_id, OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open datatype copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
+ printf(" failed to open datatype copy '%s'\n", OBJECT_COPY_BASIC_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype);
}
@@ -2448,14 +2444,13 @@ test_object_copy_basic(void)
if (H5Oget_info3(tmp_dtype_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_dtype);
}
if (object_info.num_attrs == 0) {
H5_FAILED();
- HDprintf(
- " copied committed datatype didn't contain any attributes after copy operation!\n");
+ printf(" copied committed datatype didn't contain any attributes after copy operation!\n");
PART_ERROR(H5Ocopy_dtype);
}
@@ -2464,21 +2459,21 @@ test_object_copy_basic(void)
if (H5Aiterate2(tmp_dtype_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_attribute_iter_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over copied datatype's attributes\n");
+ printf(" failed to iterate over copied datatype's attributes\n");
PART_ERROR(H5Ocopy_dtype);
}
if (i != OBJECT_COPY_BASIC_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" number of attributes on copied datatype (%llu) didn't match expected number "
- "(%llu)!\n",
- (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS);
+ printf(" number of attributes on copied datatype (%llu) didn't match expected number "
+ "(%llu)!\n",
+ (unsigned long long)i, (unsigned long long)OBJECT_COPY_BASIC_TEST_NUM_ATTRS);
PART_ERROR(H5Ocopy_dtype);
}
if (H5Tclose(tmp_dtype_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close datatype copy\n");
+ printf(" failed to close datatype copy\n");
PART_ERROR(H5Ocopy_dtype);
}
@@ -2569,8 +2564,8 @@ test_object_copy_already_existing(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, dataset, or stored datatype aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, object, dataset, or stored datatype aren't "
+ "supported with this connector\n");
return 0;
}
@@ -2578,21 +2573,21 @@ test_object_copy_already_existing(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_ALREADY_EXISTING_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- OBJECT_COPY_ALREADY_EXISTING_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ OBJECT_COPY_ALREADY_EXISTING_TEST_SUBGROUP_NAME);
goto error;
}
@@ -2606,7 +2601,7 @@ test_object_copy_already_existing(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_ALREADY_EXISTING_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_GROUP_NAME);
goto error;
}
@@ -2614,21 +2609,21 @@ test_object_copy_already_existing(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_ALREADY_EXISTING_TEST_DSET_NAME, dset_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DSET_NAME);
goto error;
}
/* Create the test committed datatype object */
if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, OBJECT_COPY_ALREADY_EXISTING_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_ALREADY_EXISTING_TEST_DTYPE_NAME);
goto error;
}
@@ -2649,7 +2644,7 @@ test_object_copy_already_existing(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" group copy succeeded in location where group already exists!\n");
+ printf(" group copy succeeded in location where group already exists!\n");
PART_ERROR(H5Ocopy_already_existing_group);
}
@@ -2670,7 +2665,7 @@ test_object_copy_already_existing(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" dataset copy succeeded in location where dataset already exists!\n");
+ printf(" dataset copy succeeded in location where dataset already exists!\n");
PART_ERROR(H5Ocopy_already_existing_dset);
}
@@ -2691,8 +2686,8 @@ test_object_copy_already_existing(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" committed datatype copy succeeded in location where committed datatype already "
- "exists!\n");
+ printf(" committed datatype copy succeeded in location where committed datatype already "
+ "exists!\n");
PART_ERROR(H5Ocopy_already_existing_dtype);
}
@@ -2766,27 +2761,27 @@ test_object_copy_shallow_group_copy(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, or link aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, object, or link 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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_SHALLOW_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SHALLOW_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SHALLOW_TEST_SUBGROUP_NAME);
goto error;
}
@@ -2794,7 +2789,7 @@ test_object_copy_shallow_group_copy(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_SHALLOW_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME);
goto error;
}
@@ -2805,8 +2800,8 @@ test_object_copy_shallow_group_copy(void)
if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name,
- OBJECT_COPY_SHALLOW_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s' under group '%s'\n", grp_name,
+ OBJECT_COPY_SHALLOW_TEST_GROUP_NAME);
goto error;
}
@@ -2815,50 +2810,50 @@ test_object_copy_shallow_group_copy(void)
if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_SHALLOW_TEST_DEEP_NESTED_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested group '%s' under group '%s'\n",
- OBJECT_COPY_SHALLOW_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
+ printf(" couldn't create nested group '%s' under group '%s'\n",
+ OBJECT_COPY_SHALLOW_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
goto error;
}
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", grp_name);
+ printf(" couldn't close group '%s'\n", grp_name);
goto error;
}
}
if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create OCopyPL\n");
+ printf(" couldn't create OCopyPL\n");
goto error;
}
if (H5Pset_copy_object(ocpypl_id, H5O_COPY_SHALLOW_HIERARCHY_FLAG) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object copying options\n");
+ printf(" couldn't set object copying options\n");
goto error;
}
if (H5Ocopy(group_id, OBJECT_COPY_SHALLOW_TEST_GROUP_NAME, group_id,
OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME, ocpypl_id, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME,
- OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
+ printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SHALLOW_TEST_GROUP_NAME,
+ OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
goto error;
}
if ((object_link_exists = H5Lexists(group_id, OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied group exists\n",
- OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
+ printf(" couldn't determine if link '%s' to copied group exists\n",
+ OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
goto error;
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied group didn't exist!\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
+ printf(" link '%s' to copied group didn't exist!\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
goto error;
}
@@ -2867,7 +2862,7 @@ test_object_copy_shallow_group_copy(void)
*/
if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
+ printf(" failed to open group copy '%s'\n", OBJECT_COPY_SHALLOW_TEST_NEW_GROUP_NAME);
goto error;
}
@@ -2881,14 +2876,14 @@ test_object_copy_shallow_group_copy(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
goto error;
}
if (group_info.nlinks != OBJECT_COPY_SHALLOW_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(" copied group contained %d members instead of %d members after a shallow copy!\n",
- (int)group_info.nlinks, OBJECT_COPY_SHALLOW_TEST_NUM_NESTED_OBJS);
+ printf(" copied group contained %d members instead of %d members after a shallow copy!\n",
+ (int)group_info.nlinks, OBJECT_COPY_SHALLOW_TEST_NUM_NESTED_OBJS);
goto error;
}
@@ -2908,7 +2903,7 @@ test_object_copy_shallow_group_copy(void)
if ((tmp_group_id = H5Gopen2(group_id, grp_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group '%s'\n", grp_name);
+ printf(" failed to open group '%s'\n", grp_name);
goto error;
}
@@ -2922,19 +2917,19 @@ test_object_copy_shallow_group_copy(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
goto error;
}
if (group_info.nlinks != 0) {
H5_FAILED();
- HDprintf(" copied group's immediate members contained nested members after a shallow copy!\n");
+ printf(" copied group's immediate members contained nested members after a shallow copy!\n");
goto error;
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", grp_name);
+ printf(" failed to close group '%s'\n", grp_name);
goto error;
}
}
@@ -3003,8 +2998,8 @@ test_object_copy_no_attributes(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, link, dataset, attribute, or stored "
- "datatype aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, link, dataset, attribute, or stored "
+ "datatype aren't supported with this connector\n");
return 0;
}
@@ -3012,20 +3007,20 @@ test_object_copy_no_attributes(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_NO_ATTRS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -3042,7 +3037,7 @@ test_object_copy_no_attributes(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME);
goto error;
}
@@ -3054,14 +3049,14 @@ test_object_copy_no_attributes(void)
if ((attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
- OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME);
+ printf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
+ OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -3070,7 +3065,7 @@ test_object_copy_no_attributes(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME, dset_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME);
goto error;
}
@@ -3082,14 +3077,14 @@ test_object_copy_no_attributes(void)
if ((attr_id = H5Acreate2(dset_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name,
- OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME);
+ printf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name,
+ OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -3097,14 +3092,14 @@ test_object_copy_no_attributes(void)
/* Create the test committed datatype object, along with the attributes attached to it. */
if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME);
goto error;
}
@@ -3116,14 +3111,14 @@ test_object_copy_no_attributes(void)
if ((attr_id = H5Acreate2(dtype_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name,
- OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME);
+ printf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name,
+ OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -3138,36 +3133,36 @@ test_object_copy_no_attributes(void)
if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create OCopyPL\n");
+ printf(" couldn't create OCopyPL\n");
PART_ERROR(H5Ocopy_group_no_attributes);
}
if (H5Pset_copy_object(ocpypl_id, H5O_COPY_WITHOUT_ATTR_FLAG) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object copying options\n");
+ printf(" couldn't set object copying options\n");
PART_ERROR(H5Ocopy_group_no_attributes);
}
if (H5Ocopy(group_id, OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME, group_id,
OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME, ocpypl_id, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME,
- OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
+ printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_GROUP_NAME,
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group_no_attributes);
}
if ((object_link_exists =
H5Lexists(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied group exists\n",
- OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
+ printf(" couldn't determine if link '%s' to copied group exists\n",
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group_no_attributes);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied group didn't exist!\n",
- OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
+ printf(" link '%s' to copied group didn't exist!\n",
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group_no_attributes);
}
@@ -3175,7 +3170,7 @@ test_object_copy_no_attributes(void)
if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
+ printf(" failed to open group copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group_no_attributes);
}
@@ -3189,25 +3184,25 @@ test_object_copy_no_attributes(void)
if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_group_no_attributes);
}
if (object_info.num_attrs != 0) {
H5_FAILED();
- HDprintf(" copied group contained attributes after a non-attribute copy!\n");
+ printf(" copied group contained attributes after a non-attribute copy!\n");
PART_ERROR(H5Ocopy_group_no_attributes);
}
if (H5Pclose(ocpypl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close OCopyPL\n");
+ printf(" failed to close OCopyPL\n");
PART_ERROR(H5Ocopy_group_no_attributes);
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group copy\n");
+ printf(" failed to close group copy\n");
PART_ERROR(H5Ocopy_group_no_attributes);
}
@@ -3238,36 +3233,36 @@ test_object_copy_no_attributes(void)
if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create OCopyPL\n");
+ printf(" couldn't create OCopyPL\n");
PART_ERROR(H5Ocopy_dset_no_attributes);
}
if (H5Pset_copy_object(ocpypl_id, H5O_COPY_WITHOUT_ATTR_FLAG) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object copying options\n");
+ printf(" couldn't set object copying options\n");
PART_ERROR(H5Ocopy_dset_no_attributes);
}
if (H5Ocopy(group_id, OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME, group_id,
OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME, ocpypl_id, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME,
- OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
+ printf(" failed to copy dataset '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DSET_NAME,
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset_no_attributes);
}
if ((object_link_exists =
H5Lexists(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied dataset exists\n",
- OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
+ printf(" couldn't determine if link '%s' to copied dataset exists\n",
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset_no_attributes);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied dataset didn't exist!\n",
- OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
+ printf(" link '%s' to copied dataset didn't exist!\n",
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset_no_attributes);
}
@@ -3275,7 +3270,7 @@ test_object_copy_no_attributes(void)
if ((tmp_dset_id = H5Dopen2(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
+ printf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset_no_attributes);
}
@@ -3289,25 +3284,25 @@ test_object_copy_no_attributes(void)
if (H5Oget_info3(tmp_dset_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_dset_no_attributes);
}
if (object_info.num_attrs != 0) {
H5_FAILED();
- HDprintf(" copied dataset contained attributes after a non-attribute copy!\n");
+ printf(" copied dataset contained attributes after a non-attribute copy!\n");
PART_ERROR(H5Ocopy_dset_no_attributes);
}
if (H5Pclose(ocpypl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close OCopyPL\n");
+ printf(" failed to close OCopyPL\n");
PART_ERROR(H5Ocopy_dset_no_attributes);
}
if (H5Dclose(tmp_dset_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close dataset copy\n");
+ printf(" failed to close dataset copy\n");
PART_ERROR(H5Ocopy_dset_no_attributes);
}
@@ -3338,36 +3333,36 @@ test_object_copy_no_attributes(void)
if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create OCopyPL\n");
+ printf(" couldn't create OCopyPL\n");
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
if (H5Pset_copy_object(ocpypl_id, H5O_COPY_WITHOUT_ATTR_FLAG) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object copying options\n");
+ printf(" couldn't set object copying options\n");
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
if (H5Ocopy(group_id, OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME, group_id,
OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME, ocpypl_id, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME,
- OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
+ printf(" failed to copy datatype '%s' to '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_DTYPE_NAME,
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
if ((object_link_exists =
H5Lexists(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied datatype exists\n",
- OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
+ printf(" couldn't determine if link '%s' to copied datatype exists\n",
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied datatype didn't exist!\n",
- OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
+ printf(" link '%s' to copied datatype didn't exist!\n",
+ OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
@@ -3375,7 +3370,7 @@ test_object_copy_no_attributes(void)
if ((tmp_dtype_id = H5Topen2(group_id, OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
+ printf(" failed to open dataset copy '%s'\n", OBJECT_COPY_NO_ATTRS_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
@@ -3389,25 +3384,25 @@ test_object_copy_no_attributes(void)
if (H5Oget_info3(tmp_dtype_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
if (object_info.num_attrs != 0) {
H5_FAILED();
- HDprintf(" copied committed datatype contained attributes after a non-attribute copy!\n");
+ printf(" copied committed datatype contained attributes after a non-attribute copy!\n");
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
if (H5Pclose(ocpypl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close OCopyPL\n");
+ printf(" failed to close OCopyPL\n");
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
if (H5Tclose(tmp_dtype_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close datatype copy\n");
+ printf(" failed to close datatype copy\n");
PART_ERROR(H5Ocopy_dtype_no_attributes);
}
@@ -3511,8 +3506,8 @@ test_object_copy_by_soft_link(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or "
- "soft link aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, link, dataset, attribute, iterate, or "
+ "soft link aren't supported with this connector\n");
return 0;
}
@@ -3520,20 +3515,20 @@ test_object_copy_by_soft_link(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_SOFT_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_SUBGROUP_NAME);
goto error;
}
@@ -3545,7 +3540,7 @@ test_object_copy_by_soft_link(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME);
goto error;
}
@@ -3556,8 +3551,8 @@ test_object_copy_by_soft_link(void)
if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name,
- OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s' under group '%s'\n", grp_name,
+ OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME);
goto error;
}
@@ -3566,15 +3561,15 @@ test_object_copy_by_soft_link(void)
if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_SOFT_LINK_TEST_DEEP_NESTED_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested group '%s' under group '%s'\n",
- OBJECT_COPY_SOFT_LINK_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
+ printf(" couldn't create nested group '%s' under group '%s'\n",
+ OBJECT_COPY_SOFT_LINK_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
goto error;
}
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", grp_name);
+ printf(" couldn't close group '%s'\n", grp_name);
goto error;
}
}
@@ -3587,14 +3582,14 @@ test_object_copy_by_soft_link(void)
if ((attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
- OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME);
+ printf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
+ OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -3612,31 +3607,31 @@ test_object_copy_by_soft_link(void)
group_id, OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s' to group for copying\n",
- OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME);
+ printf(" failed to create soft link '%s' to group for copying\n",
+ OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME);
PART_ERROR(H5Ocopy_through_soft_link);
}
if (H5Ocopy(group_id, OBJECT_COPY_SOFT_LINK_TEST_SOFT_LINK_NAME, group_id,
OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME,
- OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
+ printf(" failed to copy group '%s' to '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_GROUP_NAME,
+ OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_through_soft_link);
}
if ((object_link_exists =
H5Lexists(group_id, OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied group exists\n",
- OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
+ printf(" couldn't determine if link '%s' to copied group exists\n",
+ OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_through_soft_link);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied group didn't exist!\n",
- OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
+ printf(" link '%s' to copied group didn't exist!\n",
+ OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_through_soft_link);
}
@@ -3645,14 +3640,14 @@ test_object_copy_by_soft_link(void)
if (H5Lget_info2(group_id, OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, &link_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" failed to retrieve info for link '%s'\n",
- OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
+ printf(" failed to retrieve info for link '%s'\n",
+ OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_through_soft_link);
}
if (link_info.type != H5L_TYPE_HARD) {
H5_FAILED();
- HDprintf(
+ printf(
" after group copy through soft link, group's new link type wasn't H5L_TYPE_HARD!\n");
PART_ERROR(H5Ocopy_through_soft_link);
}
@@ -3664,7 +3659,7 @@ test_object_copy_by_soft_link(void)
if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open group copy '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
+ printf(" failed to open group copy '%s'\n", OBJECT_COPY_SOFT_LINK_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_through_soft_link);
}
@@ -3678,15 +3673,14 @@ test_object_copy_by_soft_link(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
PART_ERROR(H5Ocopy_through_soft_link);
}
if (group_info.nlinks != OBJECT_COPY_SOFT_LINK_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(
- " copied group contained %d members instead of %d members after a shallow copy!\n",
- (int)group_info.nlinks, OBJECT_COPY_SOFT_LINK_TEST_NUM_NESTED_OBJS);
+ printf(" copied group contained %d members instead of %d members after a shallow copy!\n",
+ (int)group_info.nlinks, OBJECT_COPY_SOFT_LINK_TEST_NUM_NESTED_OBJS);
PART_ERROR(H5Ocopy_through_soft_link);
}
@@ -3700,13 +3694,13 @@ test_object_copy_by_soft_link(void)
if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_through_soft_link);
}
if (object_info.num_attrs == 0) {
H5_FAILED();
- HDprintf(" copied group didn't contain any attributes after copy operation!\n");
+ printf(" copied group didn't contain any attributes after copy operation!\n");
PART_ERROR(H5Ocopy_through_soft_link);
}
@@ -3715,13 +3709,13 @@ test_object_copy_by_soft_link(void)
if (H5Aiterate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_attribute_iter_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over copied group's attributes\n");
+ printf(" failed to iterate over copied group's attributes\n");
PART_ERROR(H5Ocopy_through_soft_link);
}
if (i != OBJECT_COPY_SOFT_LINK_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(
+ printf(
" number of attributes on copied group (%llu) didn't match expected number (%llu)!\n",
(unsigned long long)i, (unsigned long long)OBJECT_COPY_SOFT_LINK_TEST_NUM_ATTRS);
PART_ERROR(H5Ocopy_through_soft_link);
@@ -3729,7 +3723,7 @@ test_object_copy_by_soft_link(void)
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group copy\n");
+ printf(" failed to close group copy\n");
PART_ERROR(H5Ocopy_through_soft_link);
}
@@ -3757,8 +3751,8 @@ test_object_copy_by_soft_link(void)
group_id, OBJECT_COPY_SOFT_LINK_TEST_DANGLING_LINK_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create dangling soft link '%s'\n",
- OBJECT_COPY_SOFT_LINK_TEST_DANGLING_LINK_NAME);
+ printf(" failed to create dangling soft link '%s'\n",
+ OBJECT_COPY_SOFT_LINK_TEST_DANGLING_LINK_NAME);
PART_ERROR(H5Ocopy_through_dangling_soft_link);
}
@@ -3772,7 +3766,7 @@ test_object_copy_by_soft_link(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" copied non-existent object through use of a dangling soft link!\n");
+ printf(" copied non-existent object through use of a dangling soft link!\n");
PART_ERROR(H5Ocopy_through_dangling_soft_link);
}
@@ -3841,9 +3835,9 @@ test_object_copy_group_with_soft_links(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, link, iterate, or soft link aren't "
- "supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, object, link, iterate, or soft link aren't "
+ "supported with "
+ "this connector\n");
return 0;
}
@@ -3851,21 +3845,21 @@ test_object_copy_group_with_soft_links(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
@@ -3873,7 +3867,7 @@ test_object_copy_group_with_soft_links(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME);
goto error;
}
@@ -3893,20 +3887,20 @@ test_object_copy_group_with_soft_links(void)
if ((tmp_group_id = H5Gcreate2(group_id, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name,
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create group '%s' under group '%s'\n", grp_name,
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_SUBGROUP_NAME);
goto error;
}
if (H5Lcreate_soft(lnk_target, group_id2, lnk_name, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to create soft link '%s'\n", lnk_name);
+ printf(" failed to create soft link '%s'\n", lnk_name);
goto error;
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", grp_name);
+ printf(" couldn't close group '%s'\n", grp_name);
goto error;
}
}
@@ -3923,9 +3917,9 @@ test_object_copy_group_with_soft_links(void)
OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy group '%s' to '%s'\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME,
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
+ printf(" failed to copy group '%s' to '%s'\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME,
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
@@ -3933,15 +3927,15 @@ test_object_copy_group_with_soft_links(void)
H5Lexists(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied group exists\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
+ printf(" couldn't determine if link '%s' to copied group exists\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied group didn't exist!\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
+ printf(" link '%s' to copied group didn't exist!\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
@@ -3950,8 +3944,8 @@ test_object_copy_group_with_soft_links(void)
H5Gopen2(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group copy '%s'\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
+ printf(" failed to open group copy '%s'\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
@@ -3965,14 +3959,14 @@ test_object_copy_group_with_soft_links(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
if (group_info.nlinks != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(" copied group contained %d members instead of %d members after copy!\n",
- (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
+ printf(" copied group contained %d members instead of %d members after copy!\n",
+ (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
@@ -3984,22 +3978,22 @@ test_object_copy_group_with_soft_links(void)
if (H5Literate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_soft_link_non_expand_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over links in group '%s'\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
+ printf(" failed to iterate over links in group '%s'\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NON_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
if (i != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n",
- (unsigned long long)i,
- (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
+ printf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n",
+ (unsigned long long)i,
+ (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group copy\n");
+ printf(" failed to close group copy\n");
PART_ERROR(H5Ocopy_dont_expand_soft_links);
}
@@ -4022,13 +4016,13 @@ test_object_copy_group_with_soft_links(void)
if ((ocpypl_id = H5Pcreate(H5P_OBJECT_COPY)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create OCopyPL\n");
+ printf(" couldn't create OCopyPL\n");
PART_ERROR(H5Ocopy_expand_soft_links);
}
if (H5Pset_copy_object(ocpypl_id, H5O_COPY_EXPAND_SOFT_LINK_FLAG) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object copying options\n");
+ printf(" couldn't set object copying options\n");
PART_ERROR(H5Ocopy_expand_soft_links);
}
@@ -4036,24 +4030,24 @@ test_object_copy_group_with_soft_links(void)
OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME, ocpypl_id,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy group '%s' to '%s'\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME,
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
+ printf(" failed to copy group '%s' to '%s'\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_GROUP_NAME,
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_expand_soft_links);
}
if ((object_link_exists = H5Lexists(
group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied group exists\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
+ printf(" couldn't determine if link '%s' to copied group exists\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_expand_soft_links);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied group didn't exist!\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
+ printf(" link '%s' to copied group didn't exist!\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_expand_soft_links);
}
@@ -4061,8 +4055,8 @@ test_object_copy_group_with_soft_links(void)
if ((tmp_group_id = H5Gopen2(group_id, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group copy '%s'\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
+ printf(" failed to open group copy '%s'\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_expand_soft_links);
}
@@ -4076,14 +4070,14 @@ test_object_copy_group_with_soft_links(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
PART_ERROR(H5Ocopy_expand_soft_links);
}
if (group_info.nlinks != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(" copied group contained %d members instead of %d members after copy!\n",
- (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
+ printf(" copied group contained %d members instead of %d members after copy!\n",
+ (int)group_info.nlinks, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
PART_ERROR(H5Ocopy_expand_soft_links);
}
@@ -4096,28 +4090,28 @@ test_object_copy_group_with_soft_links(void)
if (H5Literate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_soft_link_expand_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over links in group '%s'\n",
- OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
+ printf(" failed to iterate over links in group '%s'\n",
+ OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_EXPAND_GROUP_NAME);
PART_ERROR(H5Ocopy_expand_soft_links);
}
if (i != OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n",
- (unsigned long long)i,
- (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
+ printf(" number of links in copied group (%llu) didn't match expected number (%llu)!\n",
+ (unsigned long long)i,
+ (unsigned long long)OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_NUM_NESTED_OBJS);
PART_ERROR(H5Ocopy_expand_soft_links);
}
if (H5Pclose(ocpypl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close OCopyPL\n");
+ printf(" failed to close OCopyPL\n");
PART_ERROR(H5Ocopy_expand_soft_links);
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group copy\n");
+ printf(" failed to close group copy\n");
PART_ERROR(H5Ocopy_expand_soft_links);
}
@@ -4211,8 +4205,8 @@ test_object_copy_between_files(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, link, dataset, attribute, stored "
- "datatype, or iterate aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, link, dataset, attribute, stored "
+ "datatype, or iterate aren't supported with this connector\n");
return 0;
}
@@ -4224,27 +4218,26 @@ test_object_copy_between_files(void)
if ((file_id2 = H5Fcreate(OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create file '%s'\n", H5_api_test_filename);
+ printf(" couldn't create file '%s'\n", H5_api_test_filename);
goto error;
}
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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_BETWEEN_FILES_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_SUBGROUP_NAME);
goto error;
}
@@ -4262,7 +4255,7 @@ test_object_copy_between_files(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME);
goto error;
}
@@ -4273,8 +4266,8 @@ test_object_copy_between_files(void)
if ((tmp_group_id = H5Gcreate2(group_id2, grp_name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s' under group '%s'\n", grp_name,
- OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s' under group '%s'\n", grp_name,
+ OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME);
goto error;
}
@@ -4283,15 +4276,15 @@ test_object_copy_between_files(void)
if (H5Gclose(H5Gcreate2(tmp_group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DEEP_NESTED_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested group '%s' under group '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
+ printf(" couldn't create nested group '%s' under group '%s'\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_DEEP_NESTED_GROUP_NAME, grp_name);
goto error;
}
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", grp_name);
+ printf(" couldn't close group '%s'\n", grp_name);
goto error;
}
}
@@ -4304,14 +4297,14 @@ test_object_copy_between_files(void)
if ((attr_id = H5Acreate2(group_id2, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
- OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME);
+ printf(" couldn't create attribute '%s' on group '%s'\n", attr_name,
+ OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -4320,7 +4313,7 @@ test_object_copy_between_files(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME, dset_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME);
goto error;
}
@@ -4332,14 +4325,14 @@ test_object_copy_between_files(void)
if ((attr_id = H5Acreate2(dset_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name,
- OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME);
+ printf(" couldn't create attribute '%s' on dataset '%s'\n", attr_name,
+ OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -4347,14 +4340,14 @@ test_object_copy_between_files(void)
/* Create the test committed datatype object, along with the attributes attached to it. */
if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME);
goto error;
}
@@ -4366,14 +4359,14 @@ test_object_copy_between_files(void)
if ((attr_id = H5Acreate2(dtype_id, attr_name, H5T_NATIVE_INT, attr_space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name,
- OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME);
+ printf(" couldn't create attribute '%s' on committed datatype '%s'\n", attr_name,
+ OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", attr_name);
+ printf(" couldn't close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -4389,25 +4382,25 @@ test_object_copy_between_files(void)
if (H5Ocopy(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME, file_id2,
OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy group '%s' to second file '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME,
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME);
+ printf(" failed to copy group '%s' to second file '%s'\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_GROUP_NAME,
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group_between_files);
}
if ((object_link_exists =
H5Lexists(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied group exists\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME);
+ printf(" couldn't determine if link '%s' to copied group exists\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group_between_files);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied group in second file '%s' didn't exist!\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME,
- OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME);
+ printf(" link '%s' to copied group in second file '%s' didn't exist!\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME,
+ OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME);
PART_ERROR(H5Ocopy_group_between_files);
}
@@ -4415,8 +4408,7 @@ test_object_copy_between_files(void)
if ((tmp_group_id =
H5Gopen2(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group copy '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME);
+ printf(" failed to open group copy '%s'\n", OBJECT_COPY_BETWEEN_FILES_TEST_NEW_GROUP_NAME);
PART_ERROR(H5Ocopy_group_between_files);
}
@@ -4430,14 +4422,14 @@ test_object_copy_between_files(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
PART_ERROR(H5Ocopy_group_between_files);
}
if (group_info.nlinks != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_NESTED_OBJS) {
H5_FAILED();
- HDprintf(" copied group contained %d members instead of %d members after a deep copy!\n",
- (int)group_info.nlinks, OBJECT_COPY_BETWEEN_FILES_TEST_NUM_NESTED_OBJS);
+ printf(" copied group contained %d members instead of %d members after a deep copy!\n",
+ (int)group_info.nlinks, OBJECT_COPY_BETWEEN_FILES_TEST_NUM_NESTED_OBJS);
PART_ERROR(H5Ocopy_group_between_files);
}
@@ -4451,13 +4443,13 @@ test_object_copy_between_files(void)
if (H5Oget_info3(tmp_group_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_group_between_files);
}
if (object_info.num_attrs == 0) {
H5_FAILED();
- HDprintf(" copied group didn't contain any attributes after copy operation!\n");
+ printf(" copied group didn't contain any attributes after copy operation!\n");
PART_ERROR(H5Ocopy_group_between_files);
}
@@ -4466,13 +4458,13 @@ test_object_copy_between_files(void)
if (H5Aiterate2(tmp_group_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_attribute_iter_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over copied group's attributes\n");
+ printf(" failed to iterate over copied group's attributes\n");
PART_ERROR(H5Ocopy_group_between_files);
}
if (i != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(
+ printf(
" number of attributes on copied group (%llu) didn't match expected number (%llu)!\n",
(unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS);
PART_ERROR(H5Ocopy_group_between_files);
@@ -4480,7 +4472,7 @@ test_object_copy_between_files(void)
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group copy\n");
+ printf(" failed to close group copy\n");
PART_ERROR(H5Ocopy_group_between_files);
}
@@ -4497,7 +4489,7 @@ test_object_copy_between_files(void)
if ((tmp_group_id = H5Gopen2(file_id2, grp_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open group '%s'\n", grp_name);
+ printf(" failed to open group '%s'\n", grp_name);
PART_ERROR(H5Ocopy_group_between_files);
}
@@ -4511,20 +4503,20 @@ test_object_copy_between_files(void)
if (H5Gget_info(tmp_group_id, &group_info) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve group info\n");
+ printf(" failed to retrieve group info\n");
PART_ERROR(H5Ocopy_group_between_files);
}
if (group_info.nlinks != 1) {
H5_FAILED();
- HDprintf(" copied group's immediate members didn't contain nested members after a "
- "deep copy!\n");
+ printf(" copied group's immediate members didn't contain nested members after a "
+ "deep copy!\n");
PART_ERROR(H5Ocopy_group_between_files);
}
if (H5Gclose(tmp_group_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close group '%s'\n", grp_name);
+ printf(" failed to close group '%s'\n", grp_name);
PART_ERROR(H5Ocopy_group_between_files);
}
}
@@ -4549,25 +4541,25 @@ test_object_copy_between_files(void)
if (H5Ocopy(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME, file_id2,
OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy dataset '%s' to second file '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME,
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME);
+ printf(" failed to copy dataset '%s' to second file '%s'\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_DSET_NAME,
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset_between_files);
}
if ((object_link_exists =
H5Lexists(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied dataset exists\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME);
+ printf(" couldn't determine if link '%s' to copied dataset exists\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset_between_files);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied dataset in second file '%s' didn't exist!\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME,
- OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME);
+ printf(" link '%s' to copied dataset in second file '%s' didn't exist!\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME,
+ OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME);
PART_ERROR(H5Ocopy_dset_between_files);
}
@@ -4575,8 +4567,8 @@ test_object_copy_between_files(void)
if ((tmp_dset_id =
H5Dopen2(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset copy '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME);
+ printf(" failed to open dataset copy '%s'\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DSET_NAME);
PART_ERROR(H5Ocopy_dset_between_files);
}
@@ -4590,13 +4582,13 @@ test_object_copy_between_files(void)
if (H5Oget_info3(tmp_dset_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_dset_between_files);
}
if (object_info.num_attrs == 0) {
H5_FAILED();
- HDprintf(" copied dataset didn't contain any attributes after copy operation!\n");
+ printf(" copied dataset didn't contain any attributes after copy operation!\n");
PART_ERROR(H5Ocopy_dset_between_files);
}
@@ -4605,21 +4597,21 @@ test_object_copy_between_files(void)
if (H5Aiterate2(tmp_dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_attribute_iter_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over copied dataset's attributes\n");
+ printf(" failed to iterate over copied dataset's attributes\n");
PART_ERROR(H5Ocopy_dset_between_files);
}
if (i != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" number of attributes on copied dataset (%llu) didn't match expected number "
- "(%llu)!\n",
- (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS);
+ printf(" number of attributes on copied dataset (%llu) didn't match expected number "
+ "(%llu)!\n",
+ (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS);
PART_ERROR(H5Ocopy_dset_between_files);
}
if (H5Dclose(tmp_dset_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close dataset copy\n");
+ printf(" failed to close dataset copy\n");
PART_ERROR(H5Ocopy_dset_between_files);
}
@@ -4643,25 +4635,25 @@ test_object_copy_between_files(void)
if (H5Ocopy(group_id, OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME, file_id2,
OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to copy committed datatype '%s' to second file '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME,
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME);
+ printf(" failed to copy committed datatype '%s' to second file '%s'\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_DTYPE_NAME,
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype_between_files);
}
if ((object_link_exists =
H5Lexists(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if link '%s' to copied committed datatype exists\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME);
+ printf(" couldn't determine if link '%s' to copied committed datatype exists\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype_between_files);
}
if (!object_link_exists) {
H5_FAILED();
- HDprintf(" link '%s' to copied committed datatype in second file '%s' didn't exist!\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME,
- OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME);
+ printf(" link '%s' to copied committed datatype in second file '%s' didn't exist!\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME,
+ OBJECT_COPY_BETWEEN_FILES_TEST_FILE_NAME);
PART_ERROR(H5Ocopy_dtype_between_files);
}
@@ -4670,8 +4662,8 @@ test_object_copy_between_files(void)
if ((tmp_dtype_id =
H5Topen2(file_id2, OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open committed datatype copy '%s'\n",
- OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME);
+ printf(" failed to open committed datatype copy '%s'\n",
+ OBJECT_COPY_BETWEEN_FILES_TEST_NEW_DTYPE_NAME);
PART_ERROR(H5Ocopy_dtype_between_files);
}
@@ -4685,14 +4677,13 @@ test_object_copy_between_files(void)
if (H5Oget_info3(tmp_dtype_id, &object_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve object info\n");
+ printf(" failed to retrieve object info\n");
PART_ERROR(H5Ocopy_dtype_between_files);
}
if (object_info.num_attrs == 0) {
H5_FAILED();
- HDprintf(
- " copied committed datatype didn't contain any attributes after copy operation!\n");
+ printf(" copied committed datatype didn't contain any attributes after copy operation!\n");
PART_ERROR(H5Ocopy_dtype_between_files);
}
@@ -4701,21 +4692,21 @@ test_object_copy_between_files(void)
if (H5Aiterate2(tmp_dtype_id, H5_INDEX_NAME, H5_ITER_INC, NULL,
object_copy_attribute_iter_callback, &i) < 0) {
H5_FAILED();
- HDprintf(" failed to iterate over copied datatype's attributes\n");
+ printf(" failed to iterate over copied datatype's attributes\n");
PART_ERROR(H5Ocopy_dtype_between_files);
}
if (i != OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" number of attributes on copied datatype (%llu) didn't match expected number "
- "(%llu)!\n",
- (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS);
+ printf(" number of attributes on copied datatype (%llu) didn't match expected number "
+ "(%llu)!\n",
+ (unsigned long long)i, (unsigned long long)OBJECT_COPY_BETWEEN_FILES_TEST_NUM_ATTRS);
PART_ERROR(H5Ocopy_dtype_between_files);
}
if (H5Tclose(tmp_dtype_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close committed datatype copy\n");
+ printf(" failed to close committed datatype copy\n");
PART_ERROR(H5Ocopy_dtype_between_files);
}
@@ -4803,7 +4794,7 @@ test_object_copy_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_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or object aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or object aren't supported with this connector\n");
return 0;
}
@@ -4811,28 +4802,28 @@ test_object_copy_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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_COPY_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- OBJECT_COPY_INVALID_PARAMS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ OBJECT_COPY_INVALID_PARAMS_TEST_SUBGROUP_NAME);
goto error;
}
if ((group_id2 = H5Gcreate2(group_id, OBJECT_COPY_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_COPY_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_COPY_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -4853,7 +4844,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with an invalid source location ID!\n");
+ printf(" H5Ocopy succeeded with an invalid source location ID!\n");
PART_ERROR(H5Ocopy_invalid_src_loc_id);
}
@@ -4874,7 +4865,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with a NULL source object name!\n");
+ printf(" H5Ocopy succeeded with a NULL source object name!\n");
PART_ERROR(H5Ocopy_invalid_src_obj_name);
}
@@ -4887,7 +4878,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with an invalid source object name of ''!\n");
+ printf(" H5Ocopy succeeded with an invalid source object name of ''!\n");
PART_ERROR(H5Ocopy_invalid_src_obj_name);
}
@@ -4908,7 +4899,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with an invalid destination location ID!\n");
+ printf(" H5Ocopy succeeded with an invalid destination location ID!\n");
PART_ERROR(H5Ocopy_invalid_dst_loc_id);
}
@@ -4929,7 +4920,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with a NULL destination object name!\n");
+ printf(" H5Ocopy succeeded with a NULL destination object name!\n");
PART_ERROR(H5Ocopy_invalid_dst_obj_name);
}
@@ -4942,7 +4933,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with an invalid destination object name of ''!\n");
+ printf(" H5Ocopy succeeded with an invalid destination object name of ''!\n");
PART_ERROR(H5Ocopy_invalid_dst_obj_name);
}
@@ -4963,7 +4954,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with an invalid OcpyPL!\n");
+ printf(" H5Ocopy succeeded with an invalid OcpyPL!\n");
PART_ERROR(H5Ocopy_invalid_ocpypl);
}
@@ -4984,7 +4975,7 @@ test_object_copy_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ocopy succeeded with an invalid LCPL!\n");
+ printf(" H5Ocopy succeeded with an invalid LCPL!\n");
PART_ERROR(H5Ocopy_invalid_lcpl);
}
@@ -5075,8 +5066,8 @@ test_object_visit(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, dataset, attribute, stored datatype, or "
- "iterate aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, dataset, attribute, stored datatype, or "
+ "iterate aren't supported with this connector\n");
return 0;
}
@@ -5084,26 +5075,26 @@ test_object_visit(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -5111,7 +5102,7 @@ test_object_visit(void)
if ((group_id = H5Gcreate2(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_TEST_SUBGROUP_NAME);
goto error;
}
@@ -5123,28 +5114,28 @@ test_object_visit(void)
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME);
+ printf(" couldn't create datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME);
goto error;
}
if ((group_id2 = H5Gcreate2(group_id, OBJECT_VISIT_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_VISIT_TEST_GROUP_NAME);
goto error;
}
if ((dset_id = H5Dcreate2(group_id, OBJECT_VISIT_TEST_DSET_NAME, dset_dtype, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_VISIT_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_VISIT_TEST_DSET_NAME);
goto error;
}
if (H5Tcommit2(group_id, OBJECT_VISIT_TEST_TYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME);
goto error;
}
@@ -5168,13 +5159,13 @@ test_object_visit(void)
if (H5Ovisit3(group_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL) <
0) {
H5_FAILED();
- HDprintf(" H5Ovisit by object name in increasing order failed\n");
+ printf(" H5Ovisit by object name in increasing order failed\n");
PART_ERROR(H5Ovisit_obj_name_increasing);
}
if (i != OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_obj_name_increasing);
}
@@ -5192,13 +5183,13 @@ test_object_visit(void)
if (H5Ovisit3(group_id, H5_INDEX_NAME, H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL) <
0) {
H5_FAILED();
- HDprintf(" H5Ovisit by object name in decreasing order failed\n");
+ printf(" H5Ovisit by object name in decreasing order failed\n");
PART_ERROR(H5Ovisit_obj_name_decreasing);
}
if (i != 2 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_obj_name_decreasing);
}
@@ -5212,7 +5203,7 @@ test_object_visit(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_create_order_increasing);
}
@@ -5222,13 +5213,13 @@ test_object_visit(void)
if (H5Ovisit3(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_callback, &i,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit by creation order in increasing order failed\n");
+ printf(" H5Ovisit by creation order in increasing order failed\n");
PART_ERROR(H5Ovisit_create_order_increasing);
}
if (i != 3 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_create_order_increasing);
}
@@ -5242,7 +5233,7 @@ test_object_visit(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_create_order_decreasing);
}
@@ -5252,13 +5243,13 @@ test_object_visit(void)
if (H5Ovisit3(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_callback, &i,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit by creation order in decreasing order failed\n");
+ printf(" H5Ovisit by creation order in decreasing order failed\n");
PART_ERROR(H5Ovisit_create_order_decreasing);
}
if (i != 4 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_create_order_decreasing);
}
@@ -5286,7 +5277,7 @@ test_object_visit(void)
if (H5Ovisit3(dset_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_dset_callback, NULL,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit failed\n");
+ printf(" H5Ovisit failed\n");
PART_ERROR(H5Ovisit_dset);
}
@@ -5301,7 +5292,7 @@ test_object_visit(void)
if (H5Ovisit3(type_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_dtype_callback, NULL,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit failed\n");
+ printf(" H5Ovisit failed\n");
PART_ERROR(H5Ovisit_dtype);
}
@@ -5320,13 +5311,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, object_visit_callback, &i,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
if (i != OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
@@ -5336,13 +5327,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
if (i != OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
@@ -5361,13 +5352,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, object_visit_callback, &i,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
if (i != 2 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
@@ -5377,13 +5368,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
if (i != 2 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
@@ -5397,7 +5388,7 @@ test_object_visit(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_by_name_create_order_increasing);
}
@@ -5408,13 +5399,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_callback, &i,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
if (i != 3 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
@@ -5424,13 +5415,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
if (i != 3 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
@@ -5444,7 +5435,7 @@ test_object_visit(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_by_name_create_order_decreasing);
}
@@ -5455,13 +5446,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_callback, &i,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
if (i != 4 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
@@ -5471,13 +5462,13 @@ test_object_visit(void)
if (H5Ovisit_by_name3(container_group, OBJECT_VISIT_TEST_SUBGROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, object_visit_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
if (i != 4 * OBJECT_VISIT_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
@@ -5505,7 +5496,7 @@ test_object_visit(void)
if (H5Ovisit_by_name3(group_id, OBJECT_VISIT_TEST_DSET_NAME, H5_INDEX_NAME, H5_ITER_INC,
object_visit_dset_callback, NULL, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name failed\n");
+ printf(" H5Ovisit_by_name failed\n");
PART_ERROR(H5Ovisit_by_name_dset);
}
@@ -5520,7 +5511,7 @@ test_object_visit(void)
if (H5Ovisit_by_name3(group_id, OBJECT_VISIT_TEST_TYPE_NAME, H5_INDEX_NAME, H5_ITER_INC,
object_visit_dtype_callback, NULL, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name failed\n");
+ printf(" H5Ovisit_by_name failed\n");
PART_ERROR(H5Ovisit_by_name_dtype);
}
@@ -5599,8 +5590,8 @@ test_object_visit_soft_link(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_SOFT_LINKS)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, soft link, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, soft link, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -5608,26 +5599,26 @@ test_object_visit_soft_link(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create a GCPL\n");
+ printf(" couldn't create a GCPL\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED | H5P_CRT_ORDER_INDEXED) < 0) {
H5_FAILED();
- HDprintf(" couldn't enable link creation order tracking and indexing on GCPL\n");
+ printf(" couldn't enable link creation order tracking and indexing on GCPL\n");
goto error;
}
}
@@ -5635,7 +5626,7 @@ test_object_visit_soft_link(void)
if ((group_id = H5Gcreate2(container_group, OBJECT_VISIT_SOFT_LINK_TEST_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_SUBGROUP_NAME);
goto error;
}
@@ -5643,7 +5634,7 @@ test_object_visit_soft_link(void)
if ((subgroup_id = H5Gcreate2(group_id, OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME1, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME1);
+ printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME1);
goto error;
}
@@ -5651,7 +5642,7 @@ test_object_visit_soft_link(void)
if ((subgroup_id2 = H5Gcreate2(group_id, OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2);
+ printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2);
goto error;
}
@@ -5659,45 +5650,45 @@ test_object_visit_soft_link(void)
if ((linked_group_id = H5Gcreate2(subgroup_id2, OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1);
+ printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1);
goto error;
}
if (H5Gclose(linked_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1);
+ printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1);
goto error;
}
if ((linked_group_id = H5Gcreate2(subgroup_id2, OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2);
+ printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2);
goto error;
}
if (H5Gclose(linked_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2);
+ printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2);
goto error;
}
if ((linked_group_id = H5Gcreate2(subgroup_id2, OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3);
+ printf(" couldn't create group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3);
goto error;
}
if (H5Gclose(linked_group_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3);
+ printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3);
goto error;
}
if (H5Gclose(subgroup_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2);
+ printf(" couldn't close group '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2);
goto error;
}
@@ -5706,7 +5697,7 @@ test_object_visit_soft_link(void)
"/" OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2 "/" OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME1,
subgroup_id, OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME1, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME1);
+ printf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME1);
goto error;
}
@@ -5714,7 +5705,7 @@ test_object_visit_soft_link(void)
"/" OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2 "/" OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME2,
subgroup_id, OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME2, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME2);
+ printf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME2);
goto error;
}
@@ -5722,7 +5713,7 @@ test_object_visit_soft_link(void)
"/" OBJECT_VISIT_SOFT_LINK_TEST_GROUP_NAME2 "/" OBJECT_VISIT_SOFT_LINK_TEST_OBJ_NAME3,
subgroup_id, OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME3, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME3);
+ printf(" couldn't create soft link '%s'\n", OBJECT_VISIT_SOFT_LINK_TEST_LINK_NAME3);
goto error;
}
@@ -5746,13 +5737,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit3(subgroup_id, H5_INDEX_NAME, H5_ITER_INC, object_visit_soft_link_callback, &i,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit by object name in increasing order failed\n");
+ printf(" H5Ovisit by object name in increasing order failed\n");
PART_ERROR(H5Ovisit_obj_name_increasing);
}
if (i != OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_obj_name_increasing);
}
@@ -5770,13 +5761,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit3(subgroup_id, H5_INDEX_NAME, H5_ITER_DEC, object_visit_soft_link_callback, &i,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit by object name in decreasing order failed\n");
+ printf(" H5Ovisit by object name in decreasing order failed\n");
PART_ERROR(H5Ovisit_obj_name_decreasing);
}
if (i != 2 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_obj_name_decreasing);
}
@@ -5790,7 +5781,7 @@ test_object_visit_soft_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_create_order_increasing);
}
@@ -5800,13 +5791,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit3(subgroup_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, object_visit_soft_link_callback, &i,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit by creation order in increasing order failed\n");
+ printf(" H5Ovisit by creation order in increasing order failed\n");
PART_ERROR(H5Ovisit_create_order_increasing);
}
if (i != 3 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_create_order_increasing);
}
@@ -5820,7 +5811,7 @@ test_object_visit_soft_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_create_order_decreasing);
}
@@ -5830,13 +5821,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit3(subgroup_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, object_visit_soft_link_callback, &i,
H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit by creation order in decreasing order failed\n");
+ printf(" H5Ovisit by creation order in decreasing order failed\n");
PART_ERROR(H5Ovisit_create_order_decreasing);
}
if (i != 4 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_create_order_decreasing);
}
@@ -5855,13 +5846,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_INC,
object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
if (i != OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
@@ -5873,13 +5864,13 @@ test_object_visit_soft_link(void)
H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in increasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
if (i != OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_increasing);
}
@@ -5898,13 +5889,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_NAME, H5_ITER_DEC,
object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
if (i != 2 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
@@ -5916,13 +5907,13 @@ test_object_visit_soft_link(void)
H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by object name in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by object name in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
if (i != 2 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_obj_name_decreasing);
}
@@ -5936,7 +5927,7 @@ test_object_visit_soft_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_by_name_create_order_increasing);
}
@@ -5947,13 +5938,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC,
object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
if (i != 3 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
@@ -5965,13 +5956,13 @@ test_object_visit_soft_link(void)
H5_ITER_INC, object_visit_soft_link_callback, &i, H5O_INFO_ALL,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in increasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in increasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
if (i != 3 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_increasing);
}
@@ -5985,7 +5976,7 @@ test_object_visit_soft_link(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Ovisit_by_name_create_order_decreasing);
}
@@ -5996,13 +5987,13 @@ test_object_visit_soft_link(void)
if (H5Ovisit_by_name3(subgroup_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC,
object_visit_soft_link_callback, &i, H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
if (i != 4 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
@@ -6014,13 +6005,13 @@ test_object_visit_soft_link(void)
H5_ITER_DEC, object_visit_soft_link_callback, &i, H5O_INFO_ALL,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
+ printf(" H5Ovisit_by_name by creation order in decreasing order failed\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
if (i != 4 * OBJECT_VISIT_SOFT_LINK_TEST_NUM_OBJS_VISITED) {
H5_FAILED();
- HDprintf(" some objects were not visited!\n");
+ printf(" some objects were not visited!\n");
PART_ERROR(H5Ovisit_by_name_create_order_decreasing);
}
@@ -6081,8 +6072,7 @@ test_object_visit_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_ITERATE)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or iterate aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or iterate aren't supported with this connector\n");
return 0;
}
@@ -6090,28 +6080,28 @@ test_object_visit_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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- OBJECT_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ OBJECT_VISIT_INVALID_PARAMS_TEST_SUBGROUP_NAME);
goto error;
}
if ((group_id2 = H5Gcreate2(group_id, OBJECT_VISIT_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_VISIT_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_VISIT_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -6132,7 +6122,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit succeeded with an invalid object ID!\n");
+ printf(" H5Ovisit succeeded with an invalid object ID!\n");
PART_ERROR(H5Ovisit_invalid_obj_id);
}
@@ -6153,7 +6143,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Ovisit succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Ovisit_invalid_index_type);
}
@@ -6166,7 +6156,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Ovisit succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Ovisit_invalid_index_type);
}
@@ -6187,7 +6177,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Ovisit_invalid_iter_order);
}
@@ -6200,7 +6190,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Ovisit succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Ovisit_invalid_iter_order);
}
@@ -6221,7 +6211,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with an invalid location ID!\n");
+ printf(" H5Ovisit_by_name succeeded with an invalid location ID!\n");
PART_ERROR(H5Ovisit_by_name_invalid_loc_id);
}
@@ -6242,7 +6232,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with a NULL object name!\n");
+ printf(" H5Ovisit_by_name succeeded with a NULL object name!\n");
PART_ERROR(H5Ovisit_by_name_invalid_obj_name);
}
@@ -6255,7 +6245,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with an invalid object name of ''!\n");
+ printf(" H5Ovisit_by_name succeeded with an invalid object name of ''!\n");
PART_ERROR(H5Ovisit_by_name_invalid_obj_name);
}
@@ -6276,7 +6266,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
+ printf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Ovisit_by_name_invalid_index_type);
}
@@ -6289,7 +6279,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_N!\n");
+ printf(" H5Ovisit_by_name succeeded with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Ovisit_by_name_invalid_index_type);
}
@@ -6310,7 +6300,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
+ printf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Ovisit_by_name_invalid_iter_order);
}
@@ -6323,7 +6313,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_N!\n");
+ printf(" H5Ovisit_by_name succeeded with invalid iteration ordering H5_ITER_N!\n");
PART_ERROR(H5Ovisit_by_name_invalid_iter_order);
}
@@ -6344,7 +6334,7 @@ test_object_visit_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Ovisit_by_name succeeded with an invalid LAPL!\n");
+ printf(" H5Ovisit_by_name succeeded with an invalid LAPL!\n");
PART_ERROR(H5Ovisit_by_name_invalid_lapl);
}
@@ -6404,8 +6394,8 @@ test_close_object(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, object, dataset, attribute, or stored datatype "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, object, dataset, attribute, or stored datatype "
+ "aren't supported with this connector\n");
return 0;
}
@@ -6413,20 +6403,20 @@ test_close_object(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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_CLOSE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", OBJECT_CLOSE_TEST_GROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", OBJECT_CLOSE_TEST_GROUP_NAME);
goto error;
}
@@ -6447,7 +6437,7 @@ test_close_object(void)
if ((group_id2 = H5Gcreate2(group_id, OBJECT_CLOSE_TEST_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", OBJECT_CLOSE_TEST_GRP_NAME);
+ printf(" couldn't create group '%s'\n", OBJECT_CLOSE_TEST_GRP_NAME);
PART_ERROR(H5Oclose_group);
}
@@ -6459,13 +6449,13 @@ test_close_object(void)
if ((group_id2 = H5Oopen(group_id, OBJECT_CLOSE_TEST_GRP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_GRP_NAME);
+ printf(" couldn't open group '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_GRP_NAME);
PART_ERROR(H5Oclose_group);
}
if (H5Oclose(group_id2) < 0) {
H5_FAILED();
- HDprintf(" couldn't close group '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_GRP_NAME);
+ printf(" couldn't close group '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_GRP_NAME);
PART_ERROR(H5Oclose_group);
}
@@ -6480,7 +6470,7 @@ test_close_object(void)
if ((dset_id = H5Dcreate2(group_id, OBJECT_CLOSE_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", OBJECT_CLOSE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", OBJECT_CLOSE_TEST_DSET_NAME);
PART_ERROR(H5Oclose_dset);
}
@@ -6492,13 +6482,13 @@ test_close_object(void)
if ((dset_id = H5Oopen(group_id, OBJECT_CLOSE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_DSET_NAME);
PART_ERROR(H5Oclose_dset);
}
if (H5Oclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close dataset '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_DSET_NAME);
+ printf(" couldn't close dataset '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_DSET_NAME);
PART_ERROR(H5Oclose_dset);
}
@@ -6512,14 +6502,14 @@ test_close_object(void)
if ((dtype_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME);
+ printf(" couldn't create datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME);
PART_ERROR(H5Oclose_dtype);
}
if (H5Tcommit2(group_id, OBJECT_CLOSE_TEST_TYPE_NAME, dtype_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", OBJECT_CLOSE_TEST_TYPE_NAME);
PART_ERROR(H5Oclose_dtype);
}
@@ -6531,13 +6521,13 @@ test_close_object(void)
if ((dtype_id = H5Oopen(group_id, OBJECT_CLOSE_TEST_TYPE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_TYPE_NAME);
+ printf(" couldn't open datatype '%s' with H5Oopen\n", OBJECT_CLOSE_TEST_TYPE_NAME);
PART_ERROR(H5Oclose_dtype);
}
if (H5Oclose(dtype_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close datatype '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_TYPE_NAME);
+ printf(" couldn't close datatype '%s' with H5Oclose\n", OBJECT_CLOSE_TEST_TYPE_NAME);
PART_ERROR(H5Oclose_dtype);
}
@@ -6596,13 +6586,13 @@ test_close_object_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_OBJECT_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or object aren't supported with this connector\n");
+ printf(" API functions for basic file or object aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -6614,7 +6604,7 @@ test_close_object_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Oclose succeeded with an invalid object ID!\n");
+ printf(" H5Oclose succeeded with an invalid object ID!\n");
goto error;
}
@@ -6656,8 +6646,8 @@ test_close_invalid_objects(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_OBJECT_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or object "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or object "
+ "aren't supported with this connector\n");
return 0;
}
@@ -6668,20 +6658,20 @@ test_close_invalid_objects(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, fapl_id)) < 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, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", OBJECT_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, OBJECT_CLOSE_INVALID_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", OBJECT_OPEN_TEST_GROUP_NAME);
goto error;
}
@@ -6712,7 +6702,7 @@ test_close_invalid_objects(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Oclose succeeded with an invalid object (file)!\n");
+ printf(" H5Oclose succeeded with an invalid object (file)!\n");
PART_ERROR(H5Oclose_file);
}
@@ -6732,7 +6722,7 @@ test_close_invalid_objects(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Oclose succeeded with an invalid object (property list)!\n");
+ printf(" H5Oclose succeeded with an invalid object (property list)!\n");
PART_ERROR(H5Oclose_plist);
}
@@ -6752,7 +6742,7 @@ test_close_invalid_objects(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Oclose succeeded with an invalid object (data space)!\n");
+ printf(" H5Oclose succeeded with an invalid object (data space)!\n");
PART_ERROR(H5Oclose_dspace);
}
@@ -6772,7 +6762,7 @@ test_close_invalid_objects(void)
if (status >= 0) {
H5_FAILED();
- HDprintf(" H5Oclose succeeded with an invalid object (attribute)!\n");
+ printf(" H5Oclose succeeded with an invalid object (attribute)!\n");
PART_ERROR(H5Oclose_attribute);
}
@@ -6894,31 +6884,31 @@ object_copy_attribute_iter_callback(hid_t location_id, const char *attr_name, co
snprintf(expected_name, 256, "attr%d", (int)(*counter));
if (HDstrncmp(attr_name, expected_name, 256)) {
- HDprintf(" attribute name '%s' did not match expected name '%s'\n", attr_name, expected_name);
+ printf(" attribute name '%s' did not match expected name '%s'\n", attr_name, expected_name);
ret_value = H5_ITER_ERROR;
goto done;
}
if ((attr_id = H5Aopen(location_id, attr_name, H5P_DEFAULT)) < 0) {
- HDprintf(" failed to open attribute '%s'\n", attr_name);
+ printf(" failed to open attribute '%s'\n", attr_name);
ret_value = H5_ITER_ERROR;
goto done;
}
if ((attr_type = H5Aget_type(attr_id)) < 0) {
- HDprintf(" failed to retrieve attribute's datatype\n");
+ printf(" failed to retrieve attribute's datatype\n");
ret_value = H5_ITER_ERROR;
goto done;
}
if ((types_equal = H5Tequal(attr_type, H5T_NATIVE_INT)) < 0) {
- HDprintf(" failed to determine if attribute's datatype matched what is expected\n");
+ printf(" failed to determine if attribute's datatype matched what is expected\n");
ret_value = H5_ITER_ERROR;
goto done;
}
if (!types_equal) {
- HDprintf(" attribute datatype did not match expected H5T_NATIVE_INT\n");
+ printf(" attribute datatype did not match expected H5T_NATIVE_INT\n");
ret_value = H5_ITER_ERROR;
goto done;
}
@@ -6950,20 +6940,20 @@ object_copy_soft_link_non_expand_callback(hid_t group, const char *name, const H
/* Make sure the link type is soft */
if (H5L_TYPE_SOFT != info->type) {
- HDprintf(" link type was not H5L_TYPE_SOFT; link must have been expanded!\n");
+ printf(" link type was not H5L_TYPE_SOFT; link must have been expanded!\n");
ret_value = H5_ITER_ERROR;
goto done;
}
if (NULL == (link_val_buf = calloc(1, info->u.val_size))) {
- HDprintf(" failed to allocate buffer for link value\n");
+ printf(" failed to allocate buffer for link value\n");
ret_value = H5_ITER_ERROR;
goto done;
}
/* Retrieve the link's value */
if (H5Lget_val(group, name, link_val_buf, info->u.val_size, H5P_DEFAULT) < 0) {
- HDprintf(" failed to retrieve value of link '%s'\n", name);
+ printf(" failed to retrieve value of link '%s'\n", name);
ret_value = H5_ITER_ERROR;
goto done;
}
@@ -6974,8 +6964,8 @@ object_copy_soft_link_non_expand_callback(hid_t group, const char *name, const H
(int)(*counter));
if (strncmp(link_val_buf, expected_link_val, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_BUF_SIZE)) {
- HDprintf(" value '%s' for link '%s' did not match expected value '%s'\n", (char *)link_val_buf,
- name, expected_link_val);
+ printf(" value '%s' for link '%s' did not match expected value '%s'\n", (char *)link_val_buf, name,
+ expected_link_val);
ret_value = H5_ITER_ERROR;
goto done;
}
@@ -7005,7 +6995,7 @@ object_copy_soft_link_expand_callback(hid_t group, const char *name, const H5L_i
/* Make sure the link type is hard */
if (H5L_TYPE_HARD != info->type) {
- HDprintf(" link type was not H5L_TYPE_HARD; link must not have been expanded!\n");
+ printf(" link type was not H5L_TYPE_HARD; link must not have been expanded!\n");
ret_value = H5_ITER_ERROR;
goto done;
}
@@ -7014,7 +7004,7 @@ object_copy_soft_link_expand_callback(hid_t group, const char *name, const H5L_i
snprintf(expected_link_name, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_BUF_SIZE, "link%d", (int)(*counter));
if (strncmp(name, expected_link_name, OBJECT_COPY_GROUP_WITH_SOFT_LINKS_TEST_BUF_SIZE)) {
- HDprintf(" link name '%s' did not match expected name '%s'\n", name, expected_link_name);
+ printf(" link name '%s' did not match expected name '%s'\n", name, expected_link_name);
ret_value = H5_ITER_ERROR;
goto done;
}
@@ -7043,31 +7033,31 @@ object_visit_callback(hid_t o_id, const char *name, const H5O_info2_t *object_in
if (H5O_TYPE_GROUP == object_info->type)
goto done;
else
- HDprintf(" type for object '%s' was not H5O_TYPE_GROUP\n", name);
+ printf(" type for object '%s' was not H5O_TYPE_GROUP\n", name);
}
else if (!HDstrncmp(name, OBJECT_VISIT_TEST_GROUP_NAME, strlen(OBJECT_VISIT_TEST_GROUP_NAME) + 1) &&
(counter_val == 2 || counter_val == 6 || counter_val == 9 || counter_val == 15)) {
if (H5O_TYPE_GROUP == object_info->type)
goto done;
else
- HDprintf(" type for object '%s' was not H5O_TYPE_GROUP\n", name);
+ printf(" type for object '%s' was not H5O_TYPE_GROUP\n", name);
}
else if (!HDstrncmp(name, OBJECT_VISIT_TEST_DSET_NAME, strlen(OBJECT_VISIT_TEST_DSET_NAME) + 1) &&
(counter_val == 1 || counter_val == 7 || counter_val == 10 || counter_val == 14)) {
if (H5O_TYPE_DATASET == object_info->type)
goto done;
else
- HDprintf(" type for object '%s' was not H5O_TYPE_DATASET\n", name);
+ printf(" type for object '%s' was not H5O_TYPE_DATASET\n", name);
}
else if (!HDstrncmp(name, OBJECT_VISIT_TEST_TYPE_NAME, strlen(OBJECT_VISIT_TEST_TYPE_NAME) + 1) &&
(counter_val == 3 || counter_val == 5 || counter_val == 11 || counter_val == 13)) {
if (H5O_TYPE_NAMED_DATATYPE == object_info->type)
goto done;
else
- HDprintf(" type for object '%s' was not H5O_TYPE_NAMED_DATATYPE\n", name);
+ printf(" type for object '%s' was not H5O_TYPE_NAMED_DATATYPE\n", name);
}
else
- HDprintf(" object '%s' didn't match known names or came in an incorrect order\n", name);
+ printf(" object '%s' didn't match known names or came in an incorrect order\n", name);
ret_val = -1;
@@ -7089,12 +7079,12 @@ object_visit_dset_callback(hid_t o_id, const char *name, const H5O_info2_t *obje
UNUSED(op_data);
if (HDstrncmp(name, ".", strlen(".") + 1)) {
- HDprintf(" object '%s' didn't match known names\n", name);
+ printf(" object '%s' didn't match known names\n", name);
return -1;
}
if (H5O_TYPE_DATASET != object_info->type) {
- HDprintf(" object type was not H5O_TYPE_DATASET\n");
+ printf(" object type was not H5O_TYPE_DATASET\n");
return -1;
}
@@ -7113,12 +7103,12 @@ object_visit_dtype_callback(hid_t o_id, const char *name, const H5O_info2_t *obj
UNUSED(op_data);
if (HDstrncmp(name, ".", strlen(".") + 1)) {
- HDprintf(" object '%s' didn't match known names\n", name);
+ printf(" object '%s' didn't match known names\n", name);
return -1;
}
if (H5O_TYPE_NAMED_DATATYPE != object_info->type) {
- HDprintf(" object type was not H5O_TYPE_NAMED_DATATYPE\n");
+ printf(" object type was not H5O_TYPE_NAMED_DATATYPE\n");
return -1;
}
@@ -7142,10 +7132,10 @@ object_visit_soft_link_callback(hid_t o_id, const char *name, const H5O_info2_t
if (H5O_TYPE_GROUP == object_info->type)
goto done;
else
- HDprintf(" type for object '%s' was not H5O_TYPE_GROUP\n", name);
+ printf(" type for object '%s' was not H5O_TYPE_GROUP\n", name);
}
else
- HDprintf(" object '%s' didn't match known names or came in an incorrect order\n", name);
+ printf(" object '%s' didn't match known names or came in an incorrect order\n", name);
ret_val = -1;
@@ -7185,19 +7175,19 @@ H5_api_object_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Object Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Object Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(object_tests); i++) {
nerrors += (*object_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
- HDprintf("Cleaning up testing files\n");
+ printf("Cleaning up testing files\n");
cleanup_files();
return nerrors;
diff --git a/test/API/H5_api_test.c b/test/API/H5_api_test.c
index 3719524..6c91721 100644
--- a/test/API/H5_api_test.c
+++ b/test/API/H5_api_test.c
@@ -162,7 +162,7 @@ main(int argc, char **argv)
TEST_FILE_NAME);
if (NULL == (vol_connector_string = HDgetenv(HDF5_VOL_CONNECTOR))) {
- HDprintf("No VOL connector selected; using native VOL connector\n");
+ printf("No VOL connector selected; using native VOL connector\n");
vol_connector_name = "native";
vol_connector_info = NULL;
}
@@ -170,13 +170,13 @@ main(int argc, char **argv)
char *token;
if (NULL == (vol_connector_string_copy = HDstrdup(vol_connector_string))) {
- HDfprintf(stderr, "Unable to copy VOL connector string\n");
+ fprintf(stderr, "Unable to copy VOL connector string\n");
err_occurred = TRUE;
goto done;
}
if (NULL == (token = HDstrtok(vol_connector_string_copy, " "))) {
- HDfprintf(stderr, "Error while parsing VOL connector string\n");
+ fprintf(stderr, "Error while parsing VOL connector string\n");
err_occurred = TRUE;
goto done;
}
@@ -188,15 +188,15 @@ main(int argc, char **argv)
}
}
- HDprintf("Running API tests with VOL connector '%s' and info string '%s'\n\n", vol_connector_name,
- vol_connector_info ? vol_connector_info : "");
- HDprintf("Test parameters:\n");
- HDprintf(" - Test file name: '%s'\n", H5_api_test_filename);
- HDprintf(" - Test seed: %u\n", seed);
- HDprintf("\n\n");
+ printf("Running API tests with VOL connector '%s' and info string '%s'\n\n", vol_connector_name,
+ vol_connector_info ? vol_connector_info : "");
+ printf("Test parameters:\n");
+ printf(" - Test file name: '%s'\n", H5_api_test_filename);
+ printf(" - Test seed: %u\n", seed);
+ printf("\n\n");
if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0) {
- HDfprintf(stderr, "Unable to create FAPL\n");
+ fprintf(stderr, "Unable to create FAPL\n");
err_occurred = TRUE;
goto done;
}
@@ -212,14 +212,14 @@ main(int argc, char **argv)
htri_t is_registered;
if ((is_registered = H5VLis_connector_registered_by_name(vol_connector_name)) < 0) {
- HDfprintf(stderr, "Unable to determine if VOL connector is registered\n");
+ fprintf(stderr, "Unable to determine if VOL connector is registered\n");
err_occurred = TRUE;
goto done;
}
if (!is_registered) {
- HDfprintf(stderr, "Specified VOL connector '%s' wasn't correctly registered!\n",
- vol_connector_name);
+ fprintf(stderr, "Specified VOL connector '%s' wasn't correctly registered!\n",
+ vol_connector_name);
err_occurred = TRUE;
goto done;
}
@@ -230,19 +230,19 @@ main(int argc, char **argv)
* for the registered connector before running the tests.
*/
if (H5Pget_vol_id(fapl_id, &default_con_id) < 0) {
- HDfprintf(stderr, "Couldn't retrieve ID of VOL connector set on default FAPL\n");
+ fprintf(stderr, "Couldn't retrieve ID of VOL connector set on default FAPL\n");
err_occurred = TRUE;
goto done;
}
if ((registered_con_id = H5VLget_connector_id_by_name(vol_connector_name)) < 0) {
- HDfprintf(stderr, "Couldn't retrieve ID of registered VOL connector\n");
+ fprintf(stderr, "Couldn't retrieve ID of registered VOL connector\n");
err_occurred = TRUE;
goto done;
}
if (default_con_id != registered_con_id) {
- HDfprintf(stderr, "VOL connector set on default FAPL didn't match specified VOL connector\n");
+ fprintf(stderr, "VOL connector set on default FAPL didn't match specified VOL connector\n");
err_occurred = TRUE;
goto done;
}
@@ -254,7 +254,7 @@ main(int argc, char **argv)
*/
vol_cap_flags_g = H5VL_CAP_FLAG_NONE;
if (H5Pget_vol_cap_flags(fapl_id, &vol_cap_flags_g) < 0) {
- HDfprintf(stderr, "Unable to retrieve VOL connector capability flags\n");
+ fprintf(stderr, "Unable to retrieve VOL connector capability flags\n");
err_occurred = TRUE;
goto done;
}
@@ -264,7 +264,7 @@ main(int argc, char **argv)
* except for those which test file creation.
*/
if (create_test_container(H5_api_test_filename, vol_cap_flags_g) < 0) {
- HDfprintf(stderr, "Unable to create testing container file '%s'\n", H5_api_test_filename);
+ fprintf(stderr, "Unable to create testing container file '%s'\n", H5_api_test_filename);
err_occurred = TRUE;
goto done;
}
@@ -272,36 +272,34 @@ main(int argc, char **argv)
/* Run all the tests that are enabled */
H5_api_test_run();
- HDprintf("Cleaning up testing files\n");
+ printf("Cleaning up testing files\n");
H5Fdelete(H5_api_test_filename, fapl_id);
if (n_tests_run_g > 0) {
- HDprintf("%zu/%zu (%.2f%%) API tests passed with VOL connector '%s'\n", n_tests_passed_g,
- n_tests_run_g, ((double)n_tests_passed_g / (double)n_tests_run_g * 100.0),
- vol_connector_name);
- HDprintf("%zu/%zu (%.2f%%) API tests did not pass with VOL connector '%s'\n", n_tests_failed_g,
- n_tests_run_g, ((double)n_tests_failed_g / (double)n_tests_run_g * 100.0),
- vol_connector_name);
- HDprintf("%zu/%zu (%.2f%%) API tests were skipped with VOL connector '%s'\n", n_tests_skipped_g,
- n_tests_run_g, ((double)n_tests_skipped_g / (double)n_tests_run_g * 100.0),
- vol_connector_name);
+ printf("%zu/%zu (%.2f%%) API tests passed with VOL connector '%s'\n", n_tests_passed_g, n_tests_run_g,
+ ((double)n_tests_passed_g / (double)n_tests_run_g * 100.0), vol_connector_name);
+ printf("%zu/%zu (%.2f%%) API tests did not pass with VOL connector '%s'\n", n_tests_failed_g,
+ n_tests_run_g, ((double)n_tests_failed_g / (double)n_tests_run_g * 100.0), vol_connector_name);
+ printf("%zu/%zu (%.2f%%) API tests were skipped with VOL connector '%s'\n", n_tests_skipped_g,
+ n_tests_run_g, ((double)n_tests_skipped_g / (double)n_tests_run_g * 100.0),
+ vol_connector_name);
}
done:
- HDfree(vol_connector_string_copy);
+ free(vol_connector_string_copy);
if (default_con_id >= 0 && H5VLclose(default_con_id) < 0) {
- HDfprintf(stderr, "Unable to close VOL connector ID\n");
+ fprintf(stderr, "Unable to close VOL connector ID\n");
err_occurred = TRUE;
}
if (registered_con_id >= 0 && H5VLclose(registered_con_id) < 0) {
- HDfprintf(stderr, "Unable to close VOL connector ID\n");
+ fprintf(stderr, "Unable to close VOL connector ID\n");
err_occurred = TRUE;
}
if (fapl_id >= 0 && H5Pclose(fapl_id) < 0) {
- HDfprintf(stderr, "Unable to close FAPL\n");
+ fprintf(stderr, "Unable to close FAPL\n");
err_occurred = TRUE;
}
@@ -311,5 +309,5 @@ done:
MPI_Finalize();
#endif
- HDexit(((err_occurred || n_tests_failed_g > 0) ? EXIT_FAILURE : EXIT_SUCCESS));
+ exit(((err_occurred || n_tests_failed_g > 0) ? EXIT_FAILURE : EXIT_SUCCESS));
}
diff --git a/test/API/H5_api_test_util.c b/test/API/H5_api_test_util.c
index c37a9ed..d7d330f 100644
--- a/test/API/H5_api_test_util.c
+++ b/test/API/H5_api_test_util.c
@@ -167,13 +167,13 @@ roll_datatype:
gen_func = generate_random_datatype_array;
break;
default:
- HDprintf(" invalid datatype class\n");
+ printf(" invalid datatype class\n");
goto done;
break;
}
if ((datatype = (gen_func)(parent_class, is_compact)) < 0) {
- HDprintf(" couldn't generate datatype\n");
+ printf(" couldn't generate datatype\n");
goto done;
}
@@ -185,7 +185,7 @@ roll_datatype:
*/
if (depth == 1) {
if (0 == (type_size = H5Tget_size(datatype))) {
- HDprintf(" failed to retrieve datatype's size\n");
+ printf(" failed to retrieve datatype's size\n");
H5Tclose(datatype);
datatype = H5I_INVALID_HID;
goto done;
@@ -267,12 +267,12 @@ generate_random_datatype_integer(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_
type_to_copy = H5T_STD_U64LE;
break;
default:
- HDprintf(" invalid value for predefined integer type; should not happen\n");
+ printf(" invalid value for predefined integer type; should not happen\n");
goto done;
}
if ((datatype = H5Tcopy(type_to_copy)) < 0) {
- HDprintf(" couldn't copy predefined integer type\n");
+ printf(" couldn't copy predefined integer type\n");
goto done;
}
@@ -281,7 +281,7 @@ generate_random_datatype_integer(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_
done:
if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) {
if (H5Tclose(datatype) < 0)
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
}
return ret_value;
@@ -309,12 +309,12 @@ generate_random_datatype_float(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t
break;
default:
- HDprintf(" invalid value for floating point type; should not happen\n");
+ printf(" invalid value for floating point type; should not happen\n");
goto done;
}
if ((datatype = H5Tcopy(type_to_copy)) < 0) {
- HDprintf(" couldn't copy predefined floating-point type\n");
+ printf(" couldn't copy predefined floating-point type\n");
goto done;
}
@@ -323,7 +323,7 @@ generate_random_datatype_float(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t
done:
if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) {
if (H5Tclose(datatype) < 0)
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
}
return ret_value;
@@ -344,12 +344,12 @@ generate_random_datatype_string(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t
if (0 == (rand() % 2)) {
#endif
if ((datatype = H5Tcreate(H5T_STRING, (size_t)(rand() % STRING_TYPE_MAX_SIZE) + 1)) < 0) {
- HDprintf(" couldn't create fixed-length string datatype\n");
+ printf(" couldn't create fixed-length string datatype\n");
goto done;
}
if (H5Tset_strpad(datatype, H5T_STR_NULLPAD) < 0) {
- HDprintf(" couldn't set H5T_STR_NULLPAD for fixed-length string type\n");
+ printf(" couldn't set H5T_STR_NULLPAD for fixed-length string type\n");
goto done;
}
#if 0 /* Currently, all VL types are disabled */
@@ -358,20 +358,20 @@ generate_random_datatype_string(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t
if ((datatype = H5Tcreate(H5T_STRING, H5T_VARIABLE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create variable-length string datatype\n");
+ printf(" couldn't create variable-length string datatype\n");
goto done;
}
if (H5Tset_strpad(datatype, H5T_STR_NULLTERM) < 0) {
H5_FAILED();
- HDprintf(" couldn't set H5T_STR_NULLTERM for variable-length string type\n");
+ printf(" couldn't set H5T_STR_NULLTERM for variable-length string type\n");
goto done;
}
}
#endif
if (H5Tset_cset(datatype, H5T_CSET_ASCII) < 0) {
- HDprintf(" couldn't set string datatype character set\n");
+ printf(" couldn't set string datatype character set\n");
goto done;
}
@@ -380,7 +380,7 @@ generate_random_datatype_string(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t
done:
if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) {
if (H5Tclose(datatype) < 0)
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
}
return ret_value;
@@ -400,7 +400,7 @@ generate_random_datatype_compound(H5T_class_t H5_ATTR_UNUSED parent_class, hbool
compound_members[i] = H5I_INVALID_HID;
if ((datatype = H5Tcreate(H5T_COMPOUND, 1)) < 0) {
- HDprintf(" couldn't create compound datatype\n");
+ printf(" couldn't create compound datatype\n");
goto done;
}
@@ -413,24 +413,24 @@ generate_random_datatype_compound(H5T_class_t H5_ATTR_UNUSED parent_class, hbool
HDsnprintf(member_name, 256, "compound_member%zu", i);
if ((compound_members[i] = generate_random_datatype(H5T_COMPOUND, is_compact)) < 0) {
- HDprintf(" couldn't create compound datatype member %zu\n", i);
+ printf(" couldn't create compound datatype member %zu\n", i);
goto done;
}
if (!(member_size = H5Tget_size(compound_members[i]))) {
- HDprintf(" couldn't get compound member %zu size\n", i);
+ printf(" couldn't get compound member %zu size\n", i);
goto done;
}
compound_size += member_size;
if (H5Tset_size(datatype, compound_size) < 0) {
- HDprintf(" couldn't set size for compound datatype\n");
+ printf(" couldn't set size for compound datatype\n");
goto done;
}
if (H5Tinsert(datatype, member_name, next_offset, compound_members[i]) < 0) {
- HDprintf(" couldn't insert compound datatype member %zu\n", i);
+ printf(" couldn't insert compound datatype member %zu\n", i);
goto done;
}
@@ -442,13 +442,13 @@ generate_random_datatype_compound(H5T_class_t H5_ATTR_UNUSED parent_class, hbool
done:
for (size_t i = 0; i < COMPOUND_TYPE_MAX_MEMBERS; i++) {
if (compound_members[i] > 0 && H5Tclose(compound_members[i]) < 0) {
- HDprintf(" couldn't close compound member %zu\n", i);
+ printf(" couldn't close compound member %zu\n", i);
}
}
if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) {
if (H5Tclose(datatype) < 0)
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
}
return ret_value;
@@ -464,7 +464,7 @@ generate_random_datatype_reference(H5T_class_t H5_ATTR_UNUSED parent_class, hboo
if (0 == (rand() % 2)) {
#endif
if ((datatype = H5Tcopy(H5T_STD_REF_OBJ)) < 0) {
- HDprintf(" couldn't copy object reference datatype\n");
+ printf(" couldn't copy object reference datatype\n");
goto done;
}
#if 0 /* Region references are currently unsupported */
@@ -472,7 +472,7 @@ generate_random_datatype_reference(H5T_class_t H5_ATTR_UNUSED parent_class, hboo
else {
if ((datatype = H5Tcopy(H5T_STD_REF_DSETREG)) < 0) {
H5_FAILED();
- HDprintf(" couldn't copy region reference datatype\n");
+ printf(" couldn't copy region reference datatype\n");
goto done;
}
}
@@ -483,7 +483,7 @@ generate_random_datatype_reference(H5T_class_t H5_ATTR_UNUSED parent_class, hboo
done:
if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) {
if (H5Tclose(datatype) < 0)
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
}
return ret_value;
@@ -498,14 +498,14 @@ generate_random_datatype_enum(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t H
hid_t ret_value = H5I_INVALID_HID;
if ((datatype = H5Tenum_create(H5T_NATIVE_INT)) < 0) {
- HDprintf(" couldn't create enum datatype\n");
+ printf(" couldn't create enum datatype\n");
goto done;
}
num_members = (size_t)(rand() % ENUM_TYPE_MAX_MEMBERS + 1);
- if (NULL == (enum_member_vals = HDmalloc(num_members * sizeof(int)))) {
- HDprintf(" couldn't allocate space for enum members\n");
+ if (NULL == (enum_member_vals = malloc(num_members * sizeof(int)))) {
+ printf(" couldn't allocate space for enum members\n");
goto done;
}
@@ -529,7 +529,7 @@ generate_random_datatype_enum(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t H
enum_member_vals[i] = enum_val;
if (H5Tenum_insert(datatype, name, &enum_val) < 0) {
- HDprintf(" couldn't insert member into enum datatype\n");
+ printf(" couldn't insert member into enum datatype\n");
goto done;
}
}
@@ -537,11 +537,11 @@ generate_random_datatype_enum(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t H
ret_value = datatype;
done:
- HDfree(enum_member_vals);
+ free(enum_member_vals);
if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) {
if (H5Tclose(datatype) < 0)
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
}
return ret_value;
@@ -558,8 +558,8 @@ generate_random_datatype_array(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t
ndims = (unsigned)(rand() % ARRAY_TYPE_MAX_DIMS + 1);
- if (NULL == (array_dims = HDmalloc(ndims * sizeof(*array_dims)))) {
- HDprintf(" couldn't allocate space for array datatype dims\n");
+ if (NULL == (array_dims = malloc(ndims * sizeof(*array_dims)))) {
+ printf(" couldn't allocate space for array datatype dims\n");
goto done;
}
@@ -567,28 +567,28 @@ generate_random_datatype_array(H5T_class_t H5_ATTR_UNUSED parent_class, hbool_t
array_dims[i] = (hsize_t)(rand() % MAX_DIM_SIZE + 1);
if ((base_datatype = generate_random_datatype(H5T_ARRAY, is_compact)) < 0) {
- HDprintf(" couldn't create array base datatype\n");
+ printf(" couldn't create array base datatype\n");
goto done;
}
if ((datatype = H5Tarray_create2(base_datatype, ndims, array_dims)) < 0) {
- HDprintf(" couldn't create array datatype\n");
+ printf(" couldn't create array datatype\n");
goto done;
}
ret_value = datatype;
done:
- HDfree(array_dims);
+ free(array_dims);
if (base_datatype >= 0) {
if (H5Tclose(base_datatype) < 0)
- HDprintf(" couldn't close array base datatype\n");
+ printf(" couldn't close array base datatype\n");
}
if ((ret_value == H5I_INVALID_HID) && (datatype >= 0)) {
if (H5Tclose(datatype) < 0)
- HDprintf(" couldn't close datatype\n");
+ printf(" couldn't close datatype\n");
}
return ret_value;
@@ -608,8 +608,8 @@ generate_random_dataspace(int rank, const hsize_t *max_dims, hsize_t *dims_out,
if (rank < 0)
TEST_ERROR;
if (is_compact && (rank > COMPACT_SPACE_MAX_DIMS)) {
- HDprintf(" current rank of compact dataspace (%lld) exceeds maximum dimensionality (%lld)\n",
- (long long)rank, (long long)COMPACT_SPACE_MAX_DIMS);
+ printf(" current rank of compact dataspace (%lld) exceeds maximum dimensionality (%lld)\n",
+ (long long)rank, (long long)COMPACT_SPACE_MAX_DIMS);
TEST_ERROR;
}
@@ -643,12 +643,12 @@ create_test_container(char *filename, uint64_t vol_cap_flags)
hid_t group_id = H5I_INVALID_HID;
if (!(vol_cap_flags & H5VL_CAP_FLAG_FILE_BASIC)) {
- HDprintf(" VOL connector doesn't support file creation\n");
+ printf(" VOL connector doesn't support file creation\n");
goto error;
}
if ((file_id = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
- HDprintf(" couldn't create testing container file '%s'\n", filename);
+ printf(" couldn't create testing container file '%s'\n", filename);
goto error;
}
@@ -658,49 +658,49 @@ create_test_container(char *filename, uint64_t vol_cap_flags)
*/
if ((group_id = H5Gcreate2(file_id, GROUP_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >=
0) {
- HDprintf(" created container group for Group tests\n");
+ printf(" created container group for Group tests\n");
H5Gclose(group_id);
}
if ((group_id = H5Gcreate2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) >= 0) {
- HDprintf(" created container group for Attribute tests\n");
+ printf(" created container group for Attribute tests\n");
H5Gclose(group_id);
}
if ((group_id =
H5Gcreate2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) {
- HDprintf(" created container group for Dataset tests\n");
+ printf(" created container group for Dataset tests\n");
H5Gclose(group_id);
}
if ((group_id =
H5Gcreate2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >= 0) {
- HDprintf(" created container group for Datatype tests\n");
+ printf(" created container group for Datatype tests\n");
H5Gclose(group_id);
}
if ((group_id = H5Gcreate2(file_id, LINK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >=
0) {
- HDprintf(" created container group for Link tests\n");
+ printf(" created container group for Link tests\n");
H5Gclose(group_id);
}
if ((group_id = H5Gcreate2(file_id, OBJECT_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) >=
0) {
- HDprintf(" created container group for Object tests\n");
+ printf(" created container group for Object tests\n");
H5Gclose(group_id);
}
if ((group_id = H5Gcreate2(file_id, MISCELLANEOUS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) >= 0) {
- HDprintf(" created container group for Miscellaneous tests\n");
+ printf(" created container group for Miscellaneous tests\n");
H5Gclose(group_id);
}
}
if (H5Fclose(file_id) < 0) {
- HDprintf(" failed to close testing container\n");
+ printf(" failed to close testing container\n");
goto error;
}
@@ -720,7 +720,7 @@ error:
/*
* Add a prefix to the given filename. The caller
* is responsible for freeing the returned filename
- * pointer with HDfree().
+ * pointer with free().
*/
herr_t
prefix_filename(const char *prefix, const char *filename, char **filename_out)
@@ -729,23 +729,23 @@ prefix_filename(const char *prefix, const char *filename, char **filename_out)
herr_t ret_value = SUCCEED;
if (!prefix) {
- HDprintf(" invalid file prefix\n");
+ printf(" invalid file prefix\n");
ret_value = FAIL;
goto done;
}
if (!filename || (*filename == '\0')) {
- HDprintf(" invalid filename\n");
+ printf(" invalid filename\n");
ret_value = FAIL;
goto done;
}
if (!filename_out) {
- HDprintf(" invalid filename_out buffer\n");
+ printf(" invalid filename_out buffer\n");
ret_value = FAIL;
goto done;
}
- if (NULL == (out_buf = HDmalloc(H5_API_TEST_FILENAME_MAX_LENGTH))) {
- HDprintf(" couldn't allocated filename buffer\n");
+ if (NULL == (out_buf = malloc(H5_API_TEST_FILENAME_MAX_LENGTH))) {
+ printf(" couldn't allocated filename buffer\n");
ret_value = FAIL;
goto done;
}
@@ -772,7 +772,7 @@ remove_test_file(const char *prefix, const char *filename)
if (prefix) {
if (prefix_filename(prefix, filename, &prefixed_filename) < 0) {
- HDprintf(" couldn't prefix filename\n");
+ printf(" couldn't prefix filename\n");
ret_value = FAIL;
goto done;
}
@@ -783,13 +783,13 @@ remove_test_file(const char *prefix, const char *filename)
test_file = filename;
if (H5Fdelete(test_file, H5P_DEFAULT) < 0) {
- HDprintf(" couldn't remove file '%s'\n", test_file);
+ printf(" couldn't remove file '%s'\n", test_file);
ret_value = FAIL;
goto done;
}
done:
- HDfree(prefixed_filename);
+ free(prefixed_filename);
return ret_value;
}
diff --git a/test/API/tarray.c b/test/API/tarray.c
index 214a022..7996d91 100644
--- a/test/API/tarray.c
+++ b/test/API/tarray.c
@@ -1055,7 +1055,7 @@ test_array_alloc_custom(size_t size, void *info)
*/
extra = MAX(sizeof(void *), sizeof(size_t));
- if ((ret_value = HDmalloc(extra + size)) != NULL) {
+ if ((ret_value = malloc(extra + size)) != NULL) {
*(size_t *)ret_value = size;
*mem_used += size;
} /* end if */
@@ -1093,7 +1093,7 @@ test_array_free_custom(void *_mem, void *info)
if (_mem != NULL) {
mem = ((unsigned char *)_mem) - extra;
*mem_used -= *(size_t *)((void *)mem);
- HDfree(mem);
+ free(mem);
} /* end if */
} /* end test_array_free_custom() */
@@ -1136,7 +1136,7 @@ test_array_vlen_atomic(void)
/* Initialize array data to write */
for (i = 0; i < SPACE1_DIM1; i++)
for (j = 0; j < ARRAY1_DIM1; j++) {
- wdata[i][j].p = HDmalloc((size_t)(i + j + 1) * sizeof(unsigned int));
+ wdata[i][j].p = malloc((size_t)(i + j + 1) * sizeof(unsigned int));
wdata[i][j].len = (size_t)(i + j + 1);
for (k = 0; k < (i + j + 1); k++)
((unsigned int *)wdata[i][j].p)[k] = (unsigned int)(i * 100 + j * 10 + k);
@@ -1357,7 +1357,7 @@ test_array_vlen_array(void)
/* Initialize array data to write */
for (i = 0; i < SPACE1_DIM1; i++)
for (j = 0; j < ARRAY1_DIM1; j++) {
- wdata[i][j].p = HDmalloc((size_t)(i + j + 1) * sizeof(unsigned int) * (size_t)ARRAY1_DIM1);
+ wdata[i][j].p = malloc((size_t)(i + j + 1) * sizeof(unsigned int) * (size_t)ARRAY1_DIM1);
wdata[i][j].len = (size_t)(i + j + 1);
for (k = 0; k < (i + j + 1); k++)
for (l = 0; l < ARRAY1_DIM1; l++)
@@ -1632,9 +1632,9 @@ test_array_bkg(void)
/* Initialize the data */
/* ------------------- */
- dtsinfo = (CmpDTSinfo *)HDmalloc(sizeof(CmpDTSinfo));
- CHECK_PTR(dtsinfo, "HDmalloc");
- HDmemset(dtsinfo, 0, sizeof(CmpDTSinfo));
+ dtsinfo = (CmpDTSinfo *)malloc(sizeof(CmpDTSinfo));
+ CHECK_PTR(dtsinfo, "malloc");
+ memset(dtsinfo, 0, sizeof(CmpDTSinfo));
for (i = 0; i < LENGTH; i++) {
for (j = 0; j < ALEN; j++) {
cf[i].a[j] = 100 * (i + 1) + j;
@@ -1662,7 +1662,7 @@ test_array_bkg(void)
/* Initialize the names of data members */
/* ------------------------------------ */
for (i = 0; i < dtsinfo->nsubfields; i++)
- dtsinfo->name[i] = (char *)HDcalloc((size_t)20, sizeof(char));
+ dtsinfo->name[i] = (char *)calloc((size_t)20, sizeof(char));
HDstrcpy(dtsinfo->name[0], "One");
HDstrcpy(dtsinfo->name[1], "Two");
@@ -1734,7 +1734,7 @@ test_array_bkg(void)
/* Release memory resources */
/* ------------------------ */
for (i = 0; i < dtsinfo->nsubfields; i++)
- HDfree(dtsinfo->name[i]);
+ free(dtsinfo->name[i]);
/* Release IDs */
/* ----------- */
@@ -1849,7 +1849,7 @@ test_array_bkg(void)
/* Reset the data to read in */
/* ------------------------- */
- HDmemset(cfr, 0, sizeof(CmpField) * LENGTH);
+ memset(cfr, 0, sizeof(CmpField) * LENGTH);
status = H5Dread(dataset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, cfr);
CHECK(status, FAIL, "H5Dread");
@@ -1885,7 +1885,7 @@ test_array_bkg(void)
status = H5Fclose(fid);
CHECK(status, FAIL, "H5Fclose");
- HDfree(dtsinfo);
+ free(dtsinfo);
} /* end test_array_bkg() */
/*-------------------------------------------------------------------------
@@ -1938,7 +1938,7 @@ test_compat(void)
if (h5_driver_is_default_vfd_compatible(H5P_DEFAULT, &driver_is_default_compatible) < 0)
TestErrPrintf("can't check if VFD is default VFD compatible\n");
if (!driver_is_default_compatible) {
- HDprintf(" -- SKIPPED --\n");
+ printf(" -- SKIPPED --\n");
return;
}
@@ -2194,7 +2194,7 @@ test_compat(void)
CHECK_I(ret, "H5Fclose");
} /* end if */
else
- HDprintf("***cannot open the pre-created compound datatype test file (%s)\n", testfile);
+ printf("***cannot open the pre-created compound datatype test file (%s)\n", testfile);
} /* end test_compat() */
#endif
diff --git a/test/API/tattr.c b/test/API/tattr.c
index 0e01134..c29db0b 100644
--- a/test/API/tattr.c
+++ b/test/API/tattr.c
@@ -308,8 +308,8 @@ test_attr_basic_write(hid_t fapl)
CHECK(attr_name_size, FAIL, "H5Aget_name");
if (attr_name_size > 0) {
- attr_name = (char *)HDcalloc((size_t)(attr_name_size + 1), sizeof(char));
- CHECK_PTR(attr_name, "HDcalloc");
+ attr_name = (char *)calloc((size_t)(attr_name_size + 1), sizeof(char));
+ CHECK_PTR(attr_name, "calloc");
if (attr_name) {
ret = (herr_t)H5Aget_name(attr, (size_t)(attr_name_size + 1), attr_name);
@@ -317,7 +317,7 @@ test_attr_basic_write(hid_t fapl)
ret = HDstrcmp(attr_name, ATTR_TMP_NAME);
VERIFY(ret, 0, "HDstrcmp");
- HDfree(attr_name);
+ free(attr_name);
attr_name = NULL;
} /* end if */
} /* end if */
@@ -345,8 +345,8 @@ test_attr_basic_write(hid_t fapl)
CHECK(attr_name_size, FAIL, "H5Aget_name");
if (attr_name_size > 0) {
- attr_name = (char *)HDcalloc((size_t)(attr_name_size + 1), sizeof(char));
- CHECK_PTR(attr_name, "HDcalloc");
+ attr_name = (char *)calloc((size_t)(attr_name_size + 1), sizeof(char));
+ CHECK_PTR(attr_name, "calloc");
if (attr_name) {
ret = (herr_t)H5Aget_name(attr2, (size_t)(attr_name_size + 1), attr_name);
@@ -354,7 +354,7 @@ test_attr_basic_write(hid_t fapl)
ret = HDstrcmp(attr_name, ATTR1A_NAME);
VERIFY(ret, 0, "HDstrcmp");
- HDfree(attr_name);
+ free(attr_name);
attr_name = NULL;
} /* end if */
} /* end if */
@@ -576,7 +576,7 @@ test_attr_flush(hid_t fapl)
TestErrPrintf("attribute value wrong: rdata=%f, should be %f\n", rdata, 0.0);
}
else {
- HDprintf("** SKIPPED attribute pre-read due to fill values not being supported **\n");
+ printf("** SKIPPED attribute pre-read due to fill values not being supported **\n");
}
ret = H5Awrite(att, H5T_NATIVE_DOUBLE, &wdata);
@@ -935,11 +935,11 @@ test_attr_compound_read(hid_t fapl)
/* Verify values read in */
for (i = 0; i < ATTR4_DIM1; i++)
for (j = 0; j < ATTR4_DIM2; j++)
- if (HDmemcmp(&attr_data4[i][j], &read_data4[i][j], sizeof(struct attr4_struct)) != 0) {
- HDprintf("%d: attribute data different: attr_data4[%d][%d].i=%d, read_data4[%d][%d].i=%d\n",
- __LINE__, i, j, attr_data4[i][j].i, i, j, read_data4[i][j].i);
- HDprintf("%d: attribute data different: attr_data4[%d][%d].d=%f, read_data4[%d][%d].d=%f\n",
- __LINE__, i, j, attr_data4[i][j].d, i, j, read_data4[i][j].d);
+ if (memcmp(&attr_data4[i][j], &read_data4[i][j], sizeof(struct attr4_struct)) != 0) {
+ printf("%d: attribute data different: attr_data4[%d][%d].i=%d, read_data4[%d][%d].i=%d\n",
+ __LINE__, i, j, attr_data4[i][j].i, i, j, read_data4[i][j].i);
+ printf("%d: attribute data different: attr_data4[%d][%d].d=%f, read_data4[%d][%d].d=%f\n",
+ __LINE__, i, j, attr_data4[i][j].d, i, j, read_data4[i][j].d);
TestErrPrintf(
"%d: attribute data different: attr_data4[%d][%d].c=%c, read_data4[%d][%d].c=%c\n",
__LINE__, i, j, attr_data4[i][j].c, i, j, read_data4[i][j].c);
@@ -1082,8 +1082,8 @@ test_attr_scalar_read(hid_t fapl)
/* Verify the floating-poing value in this way to avoid compiler warning. */
if (!H5_FLT_ABS_EQUAL(rdata, attr_data5))
- HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Aread",
- (double)attr_data5, (double)rdata, (int)__LINE__, __FILE__);
+ printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Aread",
+ (double)attr_data5, (double)rdata, (int)__LINE__, __FILE__);
/* Get the attribute's dataspace */
sid = H5Aget_space(attr);
@@ -4717,7 +4717,7 @@ test_attr_corder_create_compact(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -4801,7 +4801,7 @@ test_attr_corder_create_compact(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -4924,7 +4924,7 @@ test_attr_corder_create_dense(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -5036,7 +5036,7 @@ test_attr_corder_create_dense(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -5269,7 +5269,7 @@ test_attr_corder_transition(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -5324,7 +5324,7 @@ test_attr_corder_transition(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Create several attributes, but keep storage in compact form */
@@ -5488,7 +5488,7 @@ test_attr_corder_transition(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -5707,7 +5707,7 @@ test_attr_corder_delete(hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -5835,19 +5835,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
old_nerrs = nerrors;
/* Verify the information for first attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5860,21 +5860,21 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
*/
if (use_index) {
/* Verify the information for first attribute, in native creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC /* H5_ITER_NATIVE */,
(hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in native creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC /* H5_ITER_NATIVE */, n, &ainfo,
H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing native order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC /* H5_ITER_NATIVE */, n,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5883,19 +5883,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
} /* end if */
/* Verify the information for first attribute, in decreasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing creation order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing creation order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5903,19 +5903,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
TestErrPrintf("Line %d: attribute name size wrong!\n", __LINE__);
/* Verify the information for first attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_INC, n, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -5927,19 +5927,19 @@ attr_info_by_idx_check(hid_t obj_id, const char *attrname, hsize_t n, hbool_t us
*/
/* Verify the information for first attribute, in decreasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, n, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, 0, "H5Aget_info_by_idx");
/* Verify the information for new attribute, in increasing name order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, &ainfo, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_info_by_idx");
VERIFY(ainfo.corder, n, "H5Aget_info_by_idx");
/* Verify the name for new link, in increasing name order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(obj_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)0, tmpname,
(size_t)NAME_BUF_SIZE, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aget_name_by_idx");
@@ -6046,7 +6046,7 @@ test_attr_info_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -6575,7 +6575,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -6647,7 +6647,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Delete attributes from compact storage */
@@ -6657,7 +6657,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6670,7 +6670,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6707,7 +6707,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Create more attributes, to push into dense form */
@@ -6780,7 +6780,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Delete attributes from dense storage */
@@ -6790,7 +6790,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6803,7 +6803,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6850,7 +6850,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Create attributes, to push into dense form */
@@ -6897,7 +6897,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Delete every other attribute from dense storage, in appropriate order */
@@ -6907,7 +6907,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)u, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6921,7 +6921,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)u,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -6950,7 +6950,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Delete remaining attributes from dense storage, in appropriate order */
@@ -6960,7 +6960,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Adelete_by_idx");
/* Verify the attribute information for first attribute in appropriate order */
- HDmemset(&ainfo, 0, sizeof(ainfo));
+ memset(&ainfo, 0, sizeof(ainfo));
ret = H5Aget_info_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0, &ainfo,
H5P_DEFAULT);
if (new_format) {
@@ -6974,7 +6974,7 @@ test_attr_delete_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
} /* end if */
/* Verify the name for first attribute in appropriate order */
- HDmemset(tmpname, 0, (size_t)NAME_BUF_SIZE);
+ memset(tmpname, 0, (size_t)NAME_BUF_SIZE);
ret = (herr_t)H5Aget_name_by_idx(my_dataset, ".", idx_type, order, (hsize_t)0,
tmpname, (size_t)NAME_BUF_SIZE, H5P_DEFAULT);
if (order == H5_ITER_INC)
@@ -7160,8 +7160,8 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for iterate aren't "
- "supported with this connector\n");
+ printf(" API functions for iterate aren't "
+ "supported with this connector\n");
return 1;
}
@@ -7171,7 +7171,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
@@ -7186,7 +7186,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7201,7 +7201,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7218,7 +7218,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
@@ -7235,7 +7235,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
@@ -7252,7 +7252,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_attrs; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -7266,7 +7266,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7283,7 +7283,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_attrs; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -7297,7 +7297,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? skip : ((max_attrs - 1) - skip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
@@ -7314,7 +7314,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_attrs; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -7330,7 +7330,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = -1;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? (unsigned)oskip : ((max_attrs - 1) - oskip);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
@@ -7347,7 +7347,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_attrs; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -7363,7 +7363,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate2(obj_id, idx_type, order, &skip, attr_iterate2_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate2");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate2");
@@ -7375,7 +7375,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(fid, dsetname, idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate_by_name");
@@ -7387,7 +7387,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate_by_name(obj_id, ".", idx_type, order, &skip, attr_iterate2_cb, iter_info, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Aiterate_by_name");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate_by_name");
@@ -7401,7 +7401,7 @@ attr_iterate_check(hid_t fid, const char *dsetname, hid_t obj_id, H5_index_t idx
iter_info->stop = 3;
iter_info->ncalled = 0;
iter_info->curr = order != H5_ITER_DEC ? 0 : (max_attrs - 1);
- HDmemset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
+ memset(iter_info->visited, 0, sizeof(hbool_t) * iter_info->max_visit);
ret = H5Aiterate1(obj_id, &oskip, attr_iterate1_cb, iter_info);
CHECK(ret, FAIL, "H5Aiterate1");
VERIFY(ret, CORDER_ITER_STOP, "H5Aiterate1");
@@ -7503,8 +7503,8 @@ test_attr_iterate2(hbool_t new_format, hid_t fcpl, hid_t fapl)
/* Allocate the "visited link" array */
iter_info.max_visit = max_compact * 2;
- visited = (hbool_t *)HDmalloc(sizeof(hbool_t) * iter_info.max_visit);
- CHECK_PTR(visited, "HDmalloc");
+ visited = (hbool_t *)malloc(sizeof(hbool_t) * iter_info.max_visit);
+ CHECK_PTR(visited, "malloc");
iter_info.visited = visited;
/* Loop over operating on different indices on link fields */
@@ -7589,7 +7589,7 @@ test_attr_iterate2(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -7694,7 +7694,7 @@ test_attr_iterate2(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Create more attributes, to push into dense form */
@@ -7801,7 +7801,7 @@ test_attr_iterate2(hbool_t new_format, hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Sclose");
/* Free the "visited link" array */
- HDfree(visited);
+ free(visited);
} /* test_attr_iterate2() */
/*-------------------------------------------------------------------------
@@ -7996,7 +7996,7 @@ test_attr_open_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -8074,7 +8074,7 @@ test_attr_open_by_idx(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Create more attributes, to push into dense form */
@@ -8338,7 +8338,7 @@ test_attr_open_by_name(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -8444,7 +8444,7 @@ test_attr_open_by_name(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Create more attributes, to push into dense form */
@@ -8635,7 +8635,7 @@ test_attr_create_by_name(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
#if 0
/* Check on dataset's attribute storage status */
@@ -8698,7 +8698,7 @@ test_attr_create_by_name(hbool_t new_format, hid_t fcpl, hid_t fapl)
break;
default:
- HDassert(0 && "Too many datasets!");
+ assert(0 && "Too many datasets!");
} /* end switch */
/* Create more attributes, to push into dense form */
@@ -8815,9 +8815,9 @@ test_attr_shared_write(hid_t fcpl, hid_t fapl)
MESSAGE(5, ("Testing Writing Shared & Unshared Attributes in Compact & Dense Storage\n"));
/* Allocate & initialize "big" attribute data */
- big_value = (unsigned *)HDmalloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
- CHECK_PTR(big_value, "HDmalloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
+ CHECK_PTR(big_value, "malloc");
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9120,7 +9120,7 @@ test_attr_shared_write(hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Sclose");
/* Release memory */
- HDfree(big_value);
+ free(big_value);
} /* test_attr_shared_write() */
/****************************************************************
@@ -9166,9 +9166,9 @@ test_attr_shared_rename(hid_t fcpl, hid_t fapl)
MESSAGE(5, ("Testing Renaming Shared & Unshared Attributes in Compact & Dense Storage\n"));
/* Allocate & initialize "big" attribute data */
- big_value = (unsigned *)HDmalloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
- CHECK_PTR(big_value, "HDmalloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
+ CHECK_PTR(big_value, "malloc");
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9580,7 +9580,7 @@ test_attr_shared_rename(hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Sclose");
/* Release memory */
- HDfree(big_value);
+ free(big_value);
} /* test_attr_shared_rename() */
/****************************************************************
@@ -9625,9 +9625,9 @@ test_attr_shared_delete(hid_t fcpl, hid_t fapl)
MESSAGE(5, ("Testing Deleting Shared & Unshared Attributes in Compact & Dense Storage\n"));
/* Allocate & initialize "big" attribute data */
- big_value = (unsigned *)HDmalloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
- CHECK_PTR(big_value, "HDmalloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
+ CHECK_PTR(big_value, "malloc");
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -9964,7 +9964,7 @@ test_attr_shared_delete(hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Sclose");
/* Release memory */
- HDfree(big_value);
+ free(big_value);
} /* test_attr_shared_delete() */
/****************************************************************
@@ -10009,9 +10009,9 @@ test_attr_shared_unlink(hid_t fcpl, hid_t fapl)
MESSAGE(5, ("Testing Unlinking Object with Shared Attributes in Compact & Dense Storage\n"));
/* Allocate & initialize "big" attribute data */
- big_value = (unsigned *)HDmalloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
- CHECK_PTR(big_value, "HDmalloc");
- HDmemset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
+ big_value = (unsigned *)malloc((size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3) * sizeof(unsigned));
+ CHECK_PTR(big_value, "malloc");
+ memset(big_value, 1, sizeof(unsigned) * (size_t)(SPACE1_DIM1 * SPACE1_DIM2 * SPACE1_DIM3));
/* Create dataspace for dataset */
sid = H5Screate(H5S_SCALAR);
@@ -10336,7 +10336,7 @@ test_attr_shared_unlink(hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Sclose");
/* Release memory */
- HDfree(big_value);
+ free(big_value);
} /* test_attr_shared_unlink() */
/****************************************************************
@@ -11629,8 +11629,8 @@ test_attr_delete_last_dense(hid_t fcpl, hid_t fapl)
CHECK(aid, FAIL, "H5Acreate2");
/* Allocate the data buffer */
- data = (double *)HDmalloc((size_t)(DIM0 * DIM1) * sizeof(double));
- CHECK_PTR(data, "HDmalloc");
+ data = (double *)malloc((size_t)(DIM0 * DIM1) * sizeof(double));
+ CHECK_PTR(data, "malloc");
/* Initialize the data */
for (i = 0; i < DIM0; i++)
@@ -11671,7 +11671,7 @@ test_attr_delete_last_dense(hid_t fcpl, hid_t fapl)
/* Free the data buffer */
if (data)
- HDfree(data);
+ free(data);
} /* test_attr_delete_last_dense() */
#endif
diff --git a/test/API/tchecksum.c b/test/API/tchecksum.c
index a77ffcd..e1c2a1a 100644
--- a/test/API/tchecksum.c
+++ b/test/API/tchecksum.c
@@ -57,7 +57,7 @@ test_chksum_size_one(void)
VERIFY(chksum, 0xa209c931, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -90,7 +90,7 @@ test_chksum_size_two(void)
VERIFY(chksum, 0x8ba7a6c9, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -123,7 +123,7 @@ test_chksum_size_three(void)
VERIFY(chksum, 0xcebdf4f0, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -156,7 +156,7 @@ test_chksum_size_four(void)
VERIFY(chksum, 0x2c88bb51, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(buf, 0, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
chksum = H5_checksum_fletcher32(buf, sizeof(buf));
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -180,8 +180,8 @@ test_chksum_large(void)
size_t u; /* Local index variable */
/* Allocate the buffer */
- large_buf = (uint8_t *)HDmalloc((size_t)BUF_LEN);
- CHECK_PTR(large_buf, "HDmalloc");
+ large_buf = (uint8_t *)malloc((size_t)BUF_LEN);
+ CHECK_PTR(large_buf, "malloc");
/* Initialize buffer w/known data */
for (u = 0; u < BUF_LEN; u++)
@@ -198,7 +198,7 @@ test_chksum_large(void)
VERIFY(chksum, 0x1bd2ee7b, "H5_checksum_lookup3");
/* Buffer w/zero(s) for data */
- HDmemset(large_buf, 0, (size_t)BUF_LEN);
+ memset(large_buf, 0, (size_t)BUF_LEN);
chksum = H5_checksum_fletcher32(large_buf, (size_t)BUF_LEN);
VERIFY(chksum, 0, "H5_checksum_fletcher32");
@@ -209,7 +209,7 @@ test_chksum_large(void)
VERIFY(chksum, 0x930c7afc, "H5_checksum_lookup3");
/* Release memory for buffer */
- HDfree(large_buf);
+ free(large_buf);
} /* test_chksum_large() */
/****************************************************************
diff --git a/test/API/tcoords.c b/test/API/tcoords.c
index 9c66b40..04b4822 100644
--- a/test/API/tcoords.c
+++ b/test/API/tcoords.c
@@ -86,7 +86,7 @@ test_singleEnd_selElements(hid_t file, hbool_t is_chunked)
}
/* Construct dataset's name */
- HDmemset(dset_name, 0, (size_t)NAME_LEN);
+ memset(dset_name, 0, (size_t)NAME_LEN);
HDstrcat(dset_name, SINGLE_END_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
@@ -258,7 +258,7 @@ test_singleEnd_selHyperslab(hid_t file, hbool_t is_chunked)
hsize_t mem3_block[4] = {1, 3, 6, 1};
/* Construct dataset's name */
- HDmemset(dset_name, 0, NAME_LEN);
+ memset(dset_name, 0, NAME_LEN);
HDstrcat(dset_name, SINGLE_END_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
@@ -435,18 +435,18 @@ test_multiple_ends(hid_t file, hbool_t is_chunked)
hsize_t mem5_block[8] = {4, 5, 1, 4, 2, 1, 6, 2};
/* Initialize dynamic arrays */
- data_buf = HDcalloc(1, sizeof(*data_buf));
- CHECK_PTR(data_buf, "HDcalloc");
- mem1_buffer = HDcalloc(1, sizeof(*mem1_buffer));
- CHECK_PTR(data_buf, "HDcalloc");
- mem2_buffer = HDcalloc(1, sizeof(*mem2_buffer));
- CHECK_PTR(data_buf, "HDcalloc");
- mem3_buffer = HDcalloc(1, sizeof(*mem3_buffer));
- CHECK_PTR(data_buf, "HDcalloc");
- mem4_buffer = HDcalloc(1, sizeof(*mem4_buffer));
- CHECK_PTR(data_buf, "HDcalloc");
- mem5_buffer = HDcalloc(1, sizeof(*mem5_buffer));
- CHECK_PTR(data_buf, "HDcalloc");
+ data_buf = calloc(1, sizeof(*data_buf));
+ CHECK_PTR(data_buf, "calloc");
+ mem1_buffer = calloc(1, sizeof(*mem1_buffer));
+ CHECK_PTR(data_buf, "calloc");
+ mem2_buffer = calloc(1, sizeof(*mem2_buffer));
+ CHECK_PTR(data_buf, "calloc");
+ mem3_buffer = calloc(1, sizeof(*mem3_buffer));
+ CHECK_PTR(data_buf, "calloc");
+ mem4_buffer = calloc(1, sizeof(*mem4_buffer));
+ CHECK_PTR(data_buf, "calloc");
+ mem5_buffer = calloc(1, sizeof(*mem5_buffer));
+ CHECK_PTR(data_buf, "calloc");
/* Create and write the dataset */
sid = H5Screate_simple(8, da_dims, da_dims);
@@ -461,7 +461,7 @@ test_multiple_ends(hid_t file, hbool_t is_chunked)
}
/* Construct dataset's name */
- HDmemset(dset_name, 0, NAME_LEN);
+ memset(dset_name, 0, NAME_LEN);
HDstrcat(dset_name, MULTI_ENDS_SEL_HYPER_DSET);
if (is_chunked)
HDstrcat(dset_name, "_chunked");
@@ -664,12 +664,12 @@ test_multiple_ends(hid_t file, hbool_t is_chunked)
ret = H5Pclose(plid);
CHECK(ret, FAIL, "H5Pclose");
- HDfree(data_buf);
- HDfree(mem1_buffer);
- HDfree(mem2_buffer);
- HDfree(mem3_buffer);
- HDfree(mem4_buffer);
- HDfree(mem5_buffer);
+ free(data_buf);
+ free(mem1_buffer);
+ free(mem2_buffer);
+ free(mem3_buffer);
+ free(mem4_buffer);
+ free(mem5_buffer);
}
/****************************************************************
diff --git a/test/API/testhdf5.c b/test/API/testhdf5.c
index e4dc0b6..f38bfcb 100644
--- a/test/API/testhdf5.c
+++ b/test/API/testhdf5.c
@@ -55,9 +55,9 @@ print_func(const char *format, ...)
va_list arglist;
int ret_value;
- HDva_start(arglist, format);
+ va_start(arglist, format);
ret_value = HDvprintf(format, arglist);
- HDva_end(arglist);
+ va_end(arglist);
return ret_value;
}
@@ -75,9 +75,9 @@ TestErrPrintf(const char *format, ...)
nerrors++;
/* Print the requested information */
- HDva_start(arglist, format);
+ va_start(arglist, format);
ret_value = HDvprintf(format, arglist);
- HDva_end(arglist);
+ va_end(arglist);
/* Return the length of the string produced (like printf() does) */
return ret_value;
@@ -117,7 +117,7 @@ getenv_all(MPI_Comm comm, int root, const char *name)
int len;
static char *env = NULL;
- HDassert(name);
+ assert(name);
MPI_Initialized(&mpi_initialized);
MPI_Finalized(&mpi_finalized);
@@ -125,7 +125,7 @@ getenv_all(MPI_Comm comm, int root, const char *name)
if (mpi_initialized && !mpi_finalized) {
MPI_Comm_rank(comm, &mpi_rank);
MPI_Comm_size(comm, &mpi_size);
- HDassert(root < mpi_size);
+ assert(root < mpi_size);
/* The root task does the getenv call
* and sends the result to the other tasks */
@@ -146,16 +146,16 @@ getenv_all(MPI_Comm comm, int root, const char *name)
MPI_Bcast(&len, 1, MPI_INT, root, comm);
if (len >= 0) {
if (env == NULL)
- env = (char *)HDmalloc((size_t)len + 1);
+ env = (char *)malloc((size_t)len + 1);
else if (HDstrlen(env) < (size_t)len)
- env = (char *)HDrealloc(env, (size_t)len + 1);
+ env = (char *)realloc(env, (size_t)len + 1);
MPI_Bcast(env, len, MPI_CHAR, root, comm);
env[len] = '\0';
}
else {
if (env)
- HDfree(env);
+ free(env);
env = NULL;
}
}
@@ -166,7 +166,7 @@ getenv_all(MPI_Comm comm, int root, const char *name)
else {
/* use original getenv */
if (env)
- HDfree(env);
+ free(env);
env = HDgetenv(name);
} /* end if */
@@ -290,7 +290,7 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu
if (!base_name || !fullname || size < 1)
return NULL;
- HDmemset(fullname, 0, size);
+ memset(fullname, 0, size);
/* Determine if driver is set by environment variable. If it is,
* only generate a suffix if fixing the filename for the superblock
@@ -377,13 +377,13 @@ h5_fixname_real(const char *base_name, hid_t fapl, const char *_suffix, char *fu
MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
if (mpi_rank == 0)
- HDprintf("*** Hint ***\n"
- "You can use environment variable HDF5_PARAPREFIX to "
- "run parallel test files in a\n"
- "different directory or to add file type prefix. e.g.,\n"
- " HDF5_PARAPREFIX=pfs:/PFS/user/me\n"
- " export HDF5_PARAPREFIX\n"
- "*** End of Hint ***\n");
+ printf("*** Hint ***\n"
+ "You can use environment variable HDF5_PARAPREFIX to "
+ "run parallel test files in a\n"
+ "different directory or to add file type prefix. e.g.,\n"
+ " HDF5_PARAPREFIX=pfs:/PFS/user/me\n"
+ " export HDF5_PARAPREFIX\n"
+ "*** End of Hint ***\n");
explained = TRUE;
#ifdef HDF5_PARAPREFIX
@@ -515,7 +515,7 @@ h5_using_default_driver(const char *drv_name)
{
hbool_t ret_val = TRUE;
- HDassert(H5_DEFAULT_VFD == H5FD_SEC2);
+ assert(H5_DEFAULT_VFD == H5FD_SEC2);
if (!drv_name)
drv_name = HDgetenv(HDF5_DRIVER);
@@ -533,8 +533,8 @@ h5_driver_is_default_vfd_compatible(hid_t fapl_id, hbool_t *default_vfd_compatib
hid_t driver_id = H5I_INVALID_HID;
herr_t ret_value = SUCCEED;
- HDassert(fapl_id >= 0);
- HDassert(default_vfd_compatible);
+ assert(fapl_id >= 0);
+ assert(default_vfd_compatible);
if (fapl_id == H5P_DEFAULT)
fapl_id = H5P_FILE_ACCESS_DEFAULT;
@@ -560,25 +560,25 @@ main(int argc, char *argv[])
(void)argv;
#endif
- HDprintf("===================================\n");
- HDprintf("HDF5 TESTS START\n");
- HDprintf("===================================\n");
+ printf("===================================\n");
+ printf("HDF5 TESTS START\n");
+ printf("===================================\n");
/* Initialize testing framework */
/* TestInit(argv[0], NULL, NULL); */
/* Tests are generally arranged from least to most complexity... */
/* AddTest("config", test_configure, cleanup_configure, "Configure definitions", NULL); */
- HDprintf("** CONFIGURE DEFINITIONS **\n");
+ printf("** CONFIGURE DEFINITIONS **\n");
test_configure();
- HDprintf("\n");
+ printf("\n");
/* AddTest("metadata", test_metadata, cleanup_metadata, "Encoding/decoding metadata", NULL); */
/* AddTest("checksum", test_checksum, cleanup_checksum, "Checksum algorithm", NULL); */
- HDprintf("** CHECKSUM ALGORITHM **\n");
+ printf("** CHECKSUM ALGORITHM **\n");
test_checksum();
- HDprintf("\n");
+ printf("\n");
/* AddTest("tst", test_tst, NULL, "Ternary Search Trees", NULL); */
@@ -589,89 +589,89 @@ main(int argc, char *argv[])
/* AddTest("refstr", test_refstr, NULL, "Reference Counted Strings", NULL); */
/* AddTest("file", test_file, cleanup_file, "Low-Level File I/O", NULL); */
- HDprintf("** LOW-LEVEL FILE I/O **\n");
+ printf("** LOW-LEVEL FILE I/O **\n");
test_file();
- HDprintf("\n");
+ printf("\n");
/* AddTest("objects", test_h5o, cleanup_h5o, "Generic Object Functions", NULL); */
- HDprintf("** GENERIC OBJECT FUNCTIONS **\n");
+ printf("** GENERIC OBJECT FUNCTIONS **\n");
test_h5o();
- HDprintf("\n");
+ printf("\n");
/* AddTest("h5s", test_h5s, cleanup_h5s, "Dataspaces", NULL); */
- HDprintf("** DATASPACES **\n");
+ printf("** DATASPACES **\n");
test_h5s();
- HDprintf("\n");
+ printf("\n");
/* AddTest("coords", test_coords, cleanup_coords, "Dataspace coordinates", NULL); */
- HDprintf("** DATASPACE COORDINATES **\n");
+ printf("** DATASPACE COORDINATES **\n");
test_coords();
- HDprintf("\n");
+ printf("\n");
/* AddTest("sohm", test_sohm, cleanup_sohm, "Shared Object Header Messages", NULL); */
/* AddTest("attr", test_attr, cleanup_attr, "Attributes", NULL); */
- HDprintf("** ATTRIBUTES **\n");
+ printf("** ATTRIBUTES **\n");
test_attr();
- HDprintf("\n");
+ printf("\n");
/* AddTest("select", test_select, cleanup_select, "Selections", NULL); */
- HDprintf("** SELECTIONS **\n");
+ printf("** SELECTIONS **\n");
test_select();
- HDprintf("\n");
+ printf("\n");
/* AddTest("time", test_time, cleanup_time, "Time Datatypes", NULL); */
- HDprintf("** TIME DATATYPES**\n");
+ printf("** TIME DATATYPES**\n");
test_time();
- HDprintf("\n");
+ printf("\n");
/* AddTest("ref_deprec", test_reference_deprec, cleanup_reference_deprec, "Deprecated References", NULL);
*/
/* AddTest("ref", test_reference, cleanup_reference, "References", NULL); */
- HDprintf("** REFERENCES **\n");
+ printf("** REFERENCES **\n");
test_reference();
- HDprintf("\n");
+ printf("\n");
/* AddTest("vltypes", test_vltypes, cleanup_vltypes, "Variable-Length Datatypes", NULL); */
- HDprintf("** VARIABLE-LENGTH DATATYPES **\n");
+ printf("** VARIABLE-LENGTH DATATYPES **\n");
test_vltypes();
- HDprintf("\n");
+ printf("\n");
/* AddTest("vlstrings", test_vlstrings, cleanup_vlstrings, "Variable-Length Strings", NULL); */
- HDprintf("** VARIABLE-LENGTH STRINGS **\n");
+ printf("** VARIABLE-LENGTH STRINGS **\n");
test_vlstrings();
- HDprintf("\n");
+ printf("\n");
/* AddTest("iterate", test_iterate, cleanup_iterate, "Group & Attribute Iteration", NULL); */
- HDprintf("** GROUP & ATTRIBUTE ITERATION **\n");
+ printf("** GROUP & ATTRIBUTE ITERATION **\n");
test_iterate();
- HDprintf("\n");
+ printf("\n");
/* AddTest("array", test_array, cleanup_array, "Array Datatypes", NULL); */
- HDprintf("** ARRAY DATATYPES **\n");
+ printf("** ARRAY DATATYPES **\n");
test_array();
- HDprintf("\n");
+ printf("\n");
/* AddTest("genprop", test_genprop, cleanup_genprop, "Generic Properties", NULL); */
- HDprintf("** GENERIC PROPERTIES **\n");
+ printf("** GENERIC PROPERTIES **\n");
test_genprop();
- HDprintf("\n");
+ printf("\n");
/* AddTest("unicode", test_unicode, cleanup_unicode, "UTF-8 Encoding", NULL); */
- HDprintf("** UTF-8 ENCODING **\n");
+ printf("** UTF-8 ENCODING **\n");
test_unicode();
- HDprintf("\n");
+ printf("\n");
/* AddTest("id", test_ids, NULL, "User-Created Identifiers", NULL); */
- HDprintf("** USER-CREATED IDENTIFIERS **\n");
+ printf("** USER-CREATED IDENTIFIERS **\n");
test_ids();
- HDprintf("\n");
+ printf("\n");
/* AddTest("misc", test_misc, cleanup_misc, "Miscellaneous", NULL); */
- HDprintf("** MISCELLANEOUS **\n");
+ printf("** MISCELLANEOUS **\n");
test_misc();
- HDprintf("\n");
+ printf("\n");
/* Display testing information */
/* TestInfo(argv[0]); */
@@ -690,7 +690,7 @@ main(int argc, char *argv[])
if (/* GetTestCleanup() && */ !getenv("HDF5_NOCLEANUP")) {
/* TestCleanup(); */
- HDprintf("TEST CLEANUP\n");
+ printf("TEST CLEANUP\n");
H5E_BEGIN_TRY
cleanup_configure();
@@ -712,7 +712,7 @@ main(int argc, char *argv[])
cleanup_misc();
H5E_END_TRY;
- HDprintf("\n");
+ printf("\n");
}
/* Release test infrastructure */
@@ -721,11 +721,11 @@ main(int argc, char *argv[])
/* Exit failure if errors encountered; else exit success. */
/* No need to print anything since PerformTests() already does. */
if (nerrors /* GetTestNumErrs() */ > 0) {
- HDprintf("** HDF5 tests failed with %d errors **\n", nerrors);
- HDexit(EXIT_FAILURE);
+ printf("** HDF5 tests failed with %d errors **\n", nerrors);
+ exit(EXIT_FAILURE);
}
else {
- HDprintf("** HDF5 tests ran successfully **\n");
- HDexit(EXIT_SUCCESS);
+ printf("** HDF5 tests ran successfully **\n");
+ exit(EXIT_SUCCESS);
}
} /* end main() */
diff --git a/test/API/tfile.c b/test/API/tfile.c
index c0b2921..008fd5e 100644
--- a/test/API/tfile.c
+++ b/test/API/tfile.c
@@ -1230,8 +1230,8 @@ test_get_obj_ids(void)
CHECK(oid_count, FAIL, "H5Fget_obj_count");
VERIFY(oid_count, (NGROUPS + NDSETS + 1), "H5Fget_obj_count");
- oid_list = (hid_t *)HDcalloc((size_t)oid_list_size, sizeof(hid_t));
- CHECK_PTR(oid_list, "HDcalloc");
+ oid_list = (hid_t *)calloc((size_t)oid_list_size, sizeof(hid_t));
+ CHECK_PTR(oid_list, "calloc");
/* Call the public function H5F_get_obj_ids to use H5F__get_objects. User reported having problem here.
* that the returned size (ret_count) from H5Fget_obj_ids is one greater than the size passed in
@@ -1271,7 +1271,7 @@ test_get_obj_ids(void)
H5Sclose(filespace);
H5Fclose(fid);
- HDfree(oid_list);
+ free(oid_list);
/* Reopen the file to check whether H5Fget_obj_count and H5Fget_obj_ids still works
* when the file is closed first */
@@ -1294,8 +1294,8 @@ test_get_obj_ids(void)
CHECK(oid_count, FAIL, "H5Fget_obj_count");
VERIFY(oid_count, NDSETS, "H5Fget_obj_count");
- oid_list = (hid_t *)HDcalloc((size_t)oid_count, sizeof(hid_t));
- CHECK_PTR(oid_list, "HDcalloc");
+ oid_list = (hid_t *)calloc((size_t)oid_count, sizeof(hid_t));
+ CHECK_PTR(oid_list, "calloc");
/* Get the list of all opened objects */
ret_count = H5Fget_obj_ids((hid_t)H5F_OBJ_ALL, H5F_OBJ_ALL, (size_t)oid_count, oid_list);
@@ -1310,7 +1310,7 @@ test_get_obj_ids(void)
}
H5E_END_TRY;
- HDfree(oid_list);
+ free(oid_list);
}
}
@@ -1536,7 +1536,7 @@ test_obj_count_and_id(hid_t fid1, hid_t fid2, hid_t did, hid_t gid1, hid_t gid2,
if (oid_count > 0) {
hid_t *oid_list;
- oid_list = (hid_t *)HDcalloc((size_t)oid_count, sizeof(hid_t));
+ oid_list = (hid_t *)calloc((size_t)oid_count, sizeof(hid_t));
if (oid_list != NULL) {
int i;
@@ -1586,7 +1586,7 @@ test_obj_count_and_id(hid_t fid1, hid_t fid2, hid_t did, hid_t gid1, hid_t gid2,
} /* end switch */
} /* end for */
- HDfree(oid_list);
+ free(oid_list);
} /* end if */
} /* end if */
@@ -2852,7 +2852,7 @@ test_file_double_file_dataset_open(hbool_t new_format)
CHECK(tid1, FAIL, "H5Tcopy");
/* Second file's dataset read */
- HDmemset(buffer, 0, sizeof(char *) * 5);
+ memset(buffer, 0, sizeof(char *) * 5);
ret = H5Dread(did2, tid2, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer);
CHECK(ret, FAIL, "H5Dread");
ret = H5Treclaim(tid2, sid1, H5P_DEFAULT, buffer);
@@ -2867,7 +2867,7 @@ test_file_double_file_dataset_open(hbool_t new_format)
CHECK(ret, FAIL, "H5Fclose");
/* First file's dataset read */
- HDmemset(buffer, 0, sizeof(char *) * 5);
+ memset(buffer, 0, sizeof(char *) * 5);
ret = H5Dread(did1, tid1, H5S_ALL, H5S_ALL, H5P_DEFAULT, buffer);
CHECK(ret, FAIL, "H5Dread");
ret = H5Treclaim(tid2, sid1, H5P_DEFAULT, buffer);
@@ -3245,19 +3245,19 @@ cal_chksum(const char *file, uint32_t *chksum)
CHECK(fdes, FAIL, "HDfstat");
/* Allocate space for the file data */
- file_data = HDmalloc((size_t)sb.st_size);
- CHECK_PTR(file_data, "HDmalloc");
+ file_data = malloc((size_t)sb.st_size);
+ CHECK_PTR(file_data, "malloc");
if (file_data) {
/* Read file's data into memory */
bytes_read = HDread(fdes, file_data, (size_t)sb.st_size);
- CHECK(bytes_read == sb.st_size, FALSE, "HDmalloc");
+ CHECK(bytes_read == sb.st_size, FALSE, "malloc");
/* Calculate checksum */
*chksum = H5_checksum_lookup3(file_data, sizeof(file_data), 0);
/* Free memory */
- HDfree(file_data);
+ free(file_data);
}
/* Close the file */
@@ -4486,9 +4486,9 @@ set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t split)
hbool_t relax;
H5FD_mem_t mt;
- HDassert(split);
+ assert(split);
- HDmemset(memb_name, 0, sizeof memb_name);
+ memset(memb_name, 0, sizeof memb_name);
/* Get current split settings */
if (H5Pget_fapl_multi(fapl, memb_map, memb_fapl_arr, memb_name, memb_addr, &relax) < 0)
@@ -4512,7 +4512,7 @@ set_multi_split(hid_t fapl, hsize_t pagesize, hbool_t split)
/* Free memb_name */
for (mt = H5FD_MEM_DEFAULT; mt < H5FD_MEM_NTYPES; mt++)
- HDfree(memb_name[mt]);
+ free(memb_name[mt]);
return 0;
@@ -4843,7 +4843,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(nsects, FAIL, "H5Fget_free_sections");
/* Retrieve and verify free space info for all the sections */
- HDmemset(all_sect_info, 0, sizeof(all_sect_info));
+ memset(all_sect_info, 0, sizeof(all_sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)nall, all_sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4857,7 +4857,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
last_size = all_sect_info[nall - 1].size;
/* Retrieve and verify free space info for -1 sections */
- HDmemset(sect_info, 0, sizeof(sect_info));
+ memset(sect_info, 0, sizeof(sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)(nall - 1), sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4872,7 +4872,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(((hsize_t)free_space - last_size), total, "H5Fget_free_sections");
#endif
/* Retrieve and verify free-space info for +1 sections */
- HDmemset(sect_info, 0, sizeof(sect_info));
+ memset(sect_info, 0, sizeof(sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DEFAULT, (size_t)(nall + 1), sect_info);
VERIFY(nsects, nall, "H5Fget_free_sections");
@@ -4889,7 +4889,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
VERIFY(free_space, total, "H5Fget_free_sections");
#endif
- HDmemset(meta_sect_info, 0, sizeof(meta_sect_info));
+ memset(meta_sect_info, 0, sizeof(meta_sect_info));
if (multi_vfd) {
hssize_t ntmp;
@@ -4922,7 +4922,7 @@ test_sects_freespace(const char *env_h5_drvr, hbool_t new_format)
CHECK(nraw, FAIL, "H5Fget_free_sections");
/* Retrieve and verify free-space sections for raw data */
- HDmemset(raw_sect_info, 0, sizeof(raw_sect_info));
+ memset(raw_sect_info, 0, sizeof(raw_sect_info));
nsects = H5Fget_free_sections(file, H5FD_MEM_DRAW, (size_t)nraw, raw_sect_info);
VERIFY(nsects, nraw, "H5Fget_free_sections");
@@ -5742,7 +5742,7 @@ test_libver_bounds_copy(void)
CHECK_I(ret, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
diff --git a/test/API/tgenprop.c b/test/API/tgenprop.c
index c1ee8af..43b05c1 100644
--- a/test/API/tgenprop.c
+++ b/test/API/tgenprop.c
@@ -703,8 +703,8 @@ test_genprop_basic_list(void)
CHECK_I(ret, "H5Pget");
/* Verify the floating-poing value in this way to avoid compiler warning. */
if (!H5_FLT_ABS_EQUAL(prop2_value, *PROP2_DEF_VALUE))
- HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
- (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__);
+ printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
+ (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__);
/* Close list */
ret = H5Pclose(lid1);
@@ -796,20 +796,20 @@ test_genprop_basic_list_prop(void)
CHECK_I(ret, "H5Pget");
/* Verify the floating-poing value in this way to avoid compiler warning. */
if (!H5_FLT_ABS_EQUAL(prop2_value, *PROP2_DEF_VALUE))
- HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
- (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__);
+ printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
+ (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__);
/* Check values of temporary properties (set with regular values) */
ret = H5Pget(lid1, PROP3_NAME, &prop3_value);
CHECK_I(ret, "H5Pget");
- if (HDmemcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
+ if (memcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
TestErrPrintf("Property #3 doesn't match!, line=%d\n", __LINE__);
ret = H5Pget(lid1, PROP4_NAME, &prop4_value);
CHECK_I(ret, "H5Pget");
/* Verify the floating-poing value in this way to avoid compiler warning. */
if (!H5_DBL_ABS_EQUAL(prop4_value, *PROP4_DEF_VALUE))
- HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
- *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__);
+ printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
+ *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__);
/* Delete permanent property */
ret = H5Premove(lid1, PROP2_NAME);
@@ -845,8 +845,8 @@ test_genprop_basic_list_prop(void)
CHECK_I(ret, "H5Pget");
/* Verify the floating-poing value in this way to avoid compiler warning. */
if (!H5_DBL_ABS_EQUAL(prop4_value, *PROP4_DEF_VALUE))
- HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
- *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__);
+ printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
+ *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__);
/* Close list */
ret = H5Pclose(lid1);
@@ -1027,8 +1027,8 @@ test_genprop_prop_crt_cb1(const char *name, size_t size, void *def_value)
/* Set the information from the creation call */
prop1_cb_info.crt_count++;
prop1_cb_info.crt_name = HDstrdup(name);
- prop1_cb_info.crt_value = HDmalloc(size);
- HDmemcpy(prop1_cb_info.crt_value, def_value, size);
+ prop1_cb_info.crt_value = malloc(size);
+ memcpy(prop1_cb_info.crt_value, def_value, size);
return (SUCCEED);
}
@@ -1047,8 +1047,8 @@ test_genprop_prop_set_cb1(hid_t plist_id, const char *name, size_t size, void *v
if (prop1_cb_info.set_name == NULL)
prop1_cb_info.set_name = HDstrdup(name);
if (prop1_cb_info.set_value == NULL)
- prop1_cb_info.set_value = HDmalloc(size);
- HDmemcpy(prop1_cb_info.set_value, value, size);
+ prop1_cb_info.set_value = malloc(size);
+ memcpy(prop1_cb_info.set_value, value, size);
return (SUCCEED);
}
@@ -1067,8 +1067,8 @@ test_genprop_prop_get_cb1(hid_t plist_id, const char *name, size_t size, void *v
if (prop1_cb_info.get_name == NULL)
prop1_cb_info.get_name = HDstrdup(name);
if (prop1_cb_info.get_value == NULL)
- prop1_cb_info.get_value = HDmalloc(size);
- HDmemcpy(prop1_cb_info.get_value, value, size);
+ prop1_cb_info.get_value = malloc(size);
+ memcpy(prop1_cb_info.get_value, value, size);
return (SUCCEED);
}
@@ -1086,8 +1086,8 @@ test_genprop_prop_cop_cb1(const char *name, size_t size, void *value)
if (prop1_cb_info.cop_name == NULL)
prop1_cb_info.cop_name = HDstrdup(name);
if (prop1_cb_info.cop_value == NULL)
- prop1_cb_info.cop_value = HDmalloc(size);
- HDmemcpy(prop1_cb_info.cop_value, value, size);
+ prop1_cb_info.cop_value = malloc(size);
+ memcpy(prop1_cb_info.cop_value, value, size);
return (SUCCEED);
}
@@ -1103,7 +1103,7 @@ test_genprop_prop_cmp_cb1(const void *value1, const void *value2, size_t size)
/* Set the information from the comparison call */
prop1_cb_info.cmp_count++;
- return (HDmemcmp(value1, value2, size));
+ return (memcmp(value1, value2, size));
}
/****************************************************************
@@ -1117,7 +1117,7 @@ test_genprop_prop_cmp_cb3(const void *value1, const void *value2, size_t size)
/* Set the information from the comparison call */
prop3_cb_info.cmp_count++;
- return (HDmemcmp(value1, value2, size));
+ return (memcmp(value1, value2, size));
}
/****************************************************************
@@ -1133,8 +1133,8 @@ test_genprop_prop_cls_cb1(const char *name, size_t size, void *value)
if (prop1_cb_info.cls_name == NULL)
prop1_cb_info.cls_name = HDstrdup(name);
if (prop1_cb_info.cls_value == NULL)
- prop1_cb_info.cls_value = HDmalloc(size);
- HDmemcpy(prop1_cb_info.cls_value, value, size);
+ prop1_cb_info.cls_value = malloc(size);
+ memcpy(prop1_cb_info.cls_value, value, size);
return (SUCCEED);
}
@@ -1151,8 +1151,8 @@ test_genprop_prop_del_cb2(hid_t plist_id, const char *name, size_t size, void *v
prop2_cb_info.del_count++;
prop2_cb_info.del_plist_id = plist_id;
prop2_cb_info.del_name = HDstrdup(name);
- prop2_cb_info.del_value = HDmalloc(size);
- HDmemcpy(prop2_cb_info.del_value, value, size);
+ prop2_cb_info.del_value = malloc(size);
+ memcpy(prop2_cb_info.del_value, value, size);
return (SUCCEED);
}
@@ -1221,9 +1221,9 @@ test_genprop_list_callback(void)
cop_cb_struct.id = (-1);
/* Initialize callback information for properties tracked */
- HDmemset(&prop1_cb_info, 0, sizeof(prop_cb_info));
- HDmemset(&prop2_cb_info, 0, sizeof(prop_cb_info));
- HDmemset(&prop3_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop1_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop2_cb_info, 0, sizeof(prop_cb_info));
+ memset(&prop3_cb_info, 0, sizeof(prop_cb_info));
/* Create a property list from the class */
lid1 = H5Pcreate(cid1);
@@ -1240,7 +1240,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.crt_count, 1, "H5Pcreate");
if (HDstrcmp(prop1_cb_info.crt_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.crt_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.crt_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Check values of permanent properties (set with default values) */
@@ -1253,13 +1253,13 @@ test_genprop_list_callback(void)
CHECK_I(ret, "H5Pget");
/* Verify the floating-poing value in this way to avoid compiler warning. */
if (!H5_FLT_ABS_EQUAL(prop2_value, *PROP2_DEF_VALUE))
- HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
- (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__);
+ printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
+ (double)*PROP2_DEF_VALUE, (double)prop2_value, (int)__LINE__, __FILE__);
/* Check values of temporary properties (set with regular values) */
ret = H5Pget(lid1, PROP3_NAME, &prop3_value);
CHECK_I(ret, "H5Pget");
- if (HDmemcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
+ if (memcmp(&prop3_value, PROP3_DEF_VALUE, PROP3_SIZE) != 0)
TestErrPrintf("Property #3 doesn't match!, line=%d\n", __LINE__);
/* The compare callback should not have been called, as there is no get
* callback for this property */
@@ -1268,15 +1268,15 @@ test_genprop_list_callback(void)
CHECK_I(ret, "H5Pget");
/* Verify the floating-poing value in this way to avoid compiler warning. */
if (!H5_DBL_ABS_EQUAL(prop4_value, *PROP4_DEF_VALUE))
- HDprintf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
- *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__);
+ printf("*** UNEXPECTED VALUE from %s should be %f, but is %f at line %4d in %s\n", "H5Pget",
+ *PROP4_DEF_VALUE, prop4_value, (int)__LINE__, __FILE__);
/* Verify get callback information for properties tracked */
VERIFY(prop1_cb_info.get_count, 1, "H5Pget");
VERIFY(prop1_cb_info.get_plist_id, lid1, "H5Pget");
if (HDstrcmp(prop1_cb_info.get_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.get_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.get_value, PROP1_DEF_VALUE, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Set value of property #1 to different value */
@@ -1288,7 +1288,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.set_plist_id, lid1, "H5Pset");
if (HDstrcmp(prop1_cb_info.set_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.set_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.set_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* The compare callback should not have been called */
@@ -1311,7 +1311,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.get_plist_id, lid1, "H5Pget");
if (HDstrcmp(prop1_cb_info.get_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.get_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.get_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Delete property #2 */
@@ -1323,7 +1323,7 @@ test_genprop_list_callback(void)
VERIFY(prop2_cb_info.del_plist_id, lid1, "H5Premove");
if (HDstrcmp(prop2_cb_info.del_name, PROP2_NAME) != 0)
TestErrPrintf("Property #2 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop2_cb_info.del_value, PROP2_DEF_VALUE, PROP2_SIZE) != 0)
+ if (memcmp(prop2_cb_info.del_value, PROP2_DEF_VALUE, PROP2_SIZE) != 0)
TestErrPrintf("Property #2 value doesn't match!, line=%d\n", __LINE__);
/* Copy first list */
@@ -1334,7 +1334,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.cop_count, 1, "H5Pcopy");
if (HDstrcmp(prop1_cb_info.cop_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.cop_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.cop_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Verify that the class creation callback occurred */
@@ -1357,7 +1357,7 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.cls_count, 1, "H5Pclose");
if (HDstrcmp(prop1_cb_info.cls_name, PROP1_NAME) != 0)
TestErrPrintf("Property #1 name doesn't match!, line=%d\n", __LINE__);
- if (HDmemcmp(prop1_cb_info.cls_value, &prop1_new_value, PROP1_SIZE) != 0)
+ if (memcmp(prop1_cb_info.cls_value, &prop1_new_value, PROP1_SIZE) != 0)
TestErrPrintf("Property #1 value doesn't match!, line=%d\n", __LINE__);
/* Close second list */
@@ -1368,18 +1368,18 @@ test_genprop_list_callback(void)
VERIFY(prop1_cb_info.cls_count, 2, "H5Pclose");
/* Free memory allocated for tracking properties */
- HDfree(prop1_cb_info.crt_name);
- HDfree(prop1_cb_info.crt_value);
- HDfree(prop1_cb_info.get_name);
- HDfree(prop1_cb_info.get_value);
- HDfree(prop1_cb_info.set_name);
- HDfree(prop1_cb_info.set_value);
- HDfree(prop1_cb_info.cop_name);
- HDfree(prop1_cb_info.cop_value);
- HDfree(prop1_cb_info.cls_name);
- HDfree(prop1_cb_info.cls_value);
- HDfree(prop2_cb_info.del_name);
- HDfree(prop2_cb_info.del_value);
+ free(prop1_cb_info.crt_name);
+ free(prop1_cb_info.crt_value);
+ free(prop1_cb_info.get_name);
+ free(prop1_cb_info.get_value);
+ free(prop1_cb_info.set_name);
+ free(prop1_cb_info.set_value);
+ free(prop1_cb_info.cop_name);
+ free(prop1_cb_info.cop_value);
+ free(prop1_cb_info.cls_name);
+ free(prop1_cb_info.cls_value);
+ free(prop2_cb_info.del_name);
+ free(prop2_cb_info.del_value);
/* Close class */
ret = H5Pclose_class(cid1);
diff --git a/test/API/th5o.c b/test/API/th5o.c
index 916f005..eab3281 100644
--- a/test/API/th5o.c
+++ b/test/API/th5o.c
@@ -962,10 +962,10 @@ test_h5o_link(void)
/* Allocate memory buffers */
/* (These are treated as 2-D buffers) */
- wdata = (int *)HDmalloc((size_t)(TEST6_DIM1 * TEST6_DIM2) * sizeof(int));
- CHECK_PTR(wdata, "HDmalloc");
- rdata = (int *)HDmalloc((size_t)(TEST6_DIM1 * TEST6_DIM2) * sizeof(int));
- CHECK_PTR(rdata, "HDmalloc");
+ wdata = (int *)malloc((size_t)(TEST6_DIM1 * TEST6_DIM2) * sizeof(int));
+ CHECK_PTR(wdata, "malloc");
+ rdata = (int *)malloc((size_t)(TEST6_DIM1 * TEST6_DIM2) * sizeof(int));
+ CHECK_PTR(rdata, "malloc");
/* Initialize the raw data */
for (i = n = 0; i < (TEST6_DIM1 * TEST6_DIM2); i++)
@@ -1088,8 +1088,8 @@ test_h5o_link(void)
CHECK(ret, FAIL, "H5Pclose");
/* Release buffers */
- HDfree(wdata);
- HDfree(rdata);
+ free(wdata);
+ free(rdata);
} /* end test_h5o_link() */
#if 0
@@ -1463,8 +1463,8 @@ test_h5o_getinfo_same_file(void)
CHECK(gid2, FAIL, "H5Gcreate2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, through group IDs */
ret = H5Oget_info3(gid1, &oinfo1, H5O_INFO_BASIC);
@@ -1475,8 +1475,8 @@ test_h5o_getinfo_same_file(void)
VERIFY(oinfo1.fileno, oinfo2.fileno, "file number from H5Oget_info3");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, by name */
ret = H5Oget_info_by_name3(fid1, "group1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT);
@@ -1507,8 +1507,8 @@ test_h5o_getinfo_same_file(void)
CHECK(gid2, FAIL, "H5Gopen2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, through group IDs */
ret = H5Oget_info3(gid1, &oinfo1, H5O_INFO_BASIC);
@@ -1519,8 +1519,8 @@ test_h5o_getinfo_same_file(void)
VERIFY(oinfo1.fileno, oinfo2.fileno, "file number from H5Oget_info3");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for each object, by name */
ret = H5Oget_info_by_name3(fid1, "group1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT);
@@ -1782,8 +1782,8 @@ test_h5o_getinfo_visit(void)
CHECK(gid2, FAIL, "H5Gcreate2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for "group1" via H5Oget_info1 and H5Oget_info2 */
ret = H5Oget_info1(gid1, &oinfo1);
@@ -1796,8 +1796,8 @@ test_h5o_getinfo_visit(void)
VERIFY(oinfo1.num_attrs, oinfo2.num_attrs, "obj info from H5Oget_info1/2");
/* Reset object info */
- HDmemset(&oinfo1, 0, sizeof(oinfo1));
- HDmemset(&oinfo2, 0, sizeof(oinfo2));
+ memset(&oinfo1, 0, sizeof(oinfo1));
+ memset(&oinfo2, 0, sizeof(oinfo2));
/* Query the object info for "group2" via H5Oget_info1 and H5Oget_info2 */
ret = H5Oget_info_by_name1(fid, "group2", &oinfo1, H5P_DEFAULT);
diff --git a/test/API/th5s.c b/test/API/th5s.c
index f09cfeb..e6343f2 100644
--- a/test/API/th5s.c
+++ b/test/API/th5s.c
@@ -148,7 +148,7 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
sid2 = H5Screate_simple(SPACE2_RANK, dims2, max2);
CHECK(sid2, FAIL, "H5Screate_simple");
@@ -163,16 +163,16 @@ test_h5s_basic(void)
rank = H5Sget_simple_extent_dims(sid2, tdims, tmax);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tmax, max2, SPACE2_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Change max dims to be equal to the dimensions */
ret = H5Sset_extent_simple(sid1, SPACE1_RANK, dims1, NULL);
CHECK(ret, FAIL, "H5Sset_extent_simple");
rank = H5Sget_simple_extent_dims(sid1, tdims, tmax);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tmax, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tmax, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
ret = H5Sclose(sid1);
CHECK(ret, FAIL, "H5Sclose");
@@ -213,7 +213,7 @@ test_h5s_basic(void)
CHECK_I(ret, "H5Fclose");
}
else
- HDprintf("***cannot open the pre-created H5S_MAX_RANK test file (%s)\n", testfile);
+ printf("***cannot open the pre-created H5S_MAX_RANK test file (%s)\n", testfile);
}
#endif
/* Verify that incorrect dimensions don't work */
@@ -723,7 +723,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
}
}
}
@@ -744,7 +744,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata_short[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]);
}
}
}
@@ -821,7 +821,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
}
}
@@ -846,8 +846,8 @@ test_h5s_zero_dim(void)
for (k = 0; k < SPACE1_DIM3; k++) {
if (rdata_real[i][j][k] != wdata_real[i][j][k]) {
H5_FAILED();
- HDprintf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k,
- rdata_real[i][j][k], wdata_real[i][j][k]);
+ printf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k,
+ rdata_real[i][j][k], wdata_real[i][j][k]);
}
}
}
@@ -870,7 +870,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
}
}
if ((vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) &&
@@ -919,7 +919,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
}
}
@@ -962,7 +962,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
}
}
}
@@ -993,7 +993,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
}
}
}
@@ -1014,7 +1014,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata_short[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]);
}
}
}
@@ -1043,7 +1043,7 @@ test_h5s_zero_dim(void)
rank = H5Sget_simple_extent_dims(sid_chunk, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Set it to chunked dataset */
plist_id = H5Pcreate(H5P_DATASET_CREATE);
@@ -1074,8 +1074,8 @@ test_h5s_zero_dim(void)
for (k = 0; k < SPACE1_DIM3; k++) {
if (rdata_real[i][j][k] != wdata_real[i][j][k]) {
H5_FAILED();
- HDprintf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k,
- rdata_real[i][j][k], wdata_real[i][j][k]);
+ printf("element [%d][%d][%d] is %d but should have been %d\n", i, j, k,
+ rdata_real[i][j][k], wdata_real[i][j][k]);
}
}
}
@@ -1161,7 +1161,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata[i][j]);
}
}
}
@@ -1198,7 +1198,7 @@ test_h5s_zero_dim(void)
for (j = 0; j < SPACE1_DIM3; j++) {
if (rdata_short[i][j] != 7) {
H5_FAILED();
- HDprintf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]);
+ printf("element [%d][%d] is %d but should have been 7\n", i, j, rdata_short[i][j]);
}
}
}
@@ -1274,8 +1274,8 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
CHECK(ret, FAIL, "H5Sencode2");
if (sbuf_size > 0) {
- sbuf = (unsigned char *)HDcalloc((size_t)1, sbuf_size);
- CHECK_PTR(sbuf, "HDcalloc");
+ sbuf = (unsigned char *)calloc((size_t)1, sbuf_size);
+ CHECK_PTR(sbuf, "calloc");
}
/* Try decoding bogus buffer */
@@ -1307,7 +1307,7 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
/* Retrieve and verify the dataspace dimensions */
rank = H5Sget_simple_extent_dims(decoded_sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Verify the type of dataspace selection */
sel_type = H5Sget_select_type(decoded_sid1);
@@ -1336,8 +1336,8 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
CHECK(ret, FAIL, "H5Sencode");
if (null_size > 0) {
- null_sbuf = (unsigned char *)HDcalloc((size_t)1, null_size);
- CHECK_PTR(null_sbuf, "HDcalloc");
+ null_sbuf = (unsigned char *)calloc((size_t)1, null_size);
+ CHECK_PTR(null_sbuf, "calloc");
}
/* Encode the null dataspace in the buffer */
@@ -1372,8 +1372,8 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
CHECK(ret, FAIL, "H5Sencode");
if (scalar_size > 0) {
- scalar_buf = (unsigned char *)HDcalloc((size_t)1, scalar_size);
- CHECK_PTR(scalar_buf, "HDcalloc");
+ scalar_buf = (unsigned char *)calloc((size_t)1, scalar_size);
+ CHECK_PTR(scalar_buf, "calloc");
}
/* Encode the scalar dataspace in the buffer */
@@ -1411,11 +1411,11 @@ test_h5s_encode(H5F_libver_t low, H5F_libver_t high)
/* Release resources */
if (sbuf)
- HDfree(sbuf);
+ free(sbuf);
if (null_sbuf)
- HDfree(null_sbuf);
+ free(null_sbuf);
if (scalar_buf)
- HDfree(scalar_buf);
+ free(scalar_buf);
} /* test_h5s_encode() */
#ifndef H5_NO_DEPRECATED_SYMBOLS
@@ -1466,8 +1466,8 @@ test_h5s_encode1(void)
CHECK(ret, FAIL, "H5Sencode2");
if (sbuf_size > 0) {
- sbuf = (unsigned char *)HDcalloc((size_t)1, sbuf_size);
- CHECK_PTR(sbuf, "HDcalloc");
+ sbuf = (unsigned char *)calloc((size_t)1, sbuf_size);
+ CHECK_PTR(sbuf, "calloc");
}
/* Try decoding bogus buffer */
@@ -1499,7 +1499,7 @@ test_h5s_encode1(void)
/* Retrieve and verify the dataspace dimensions */
rank = H5Sget_simple_extent_dims(decoded_sid1, tdims, NULL);
CHECK(rank, FAIL, "H5Sget_simple_extent_dims");
- VERIFY(HDmemcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
+ VERIFY(memcmp(tdims, dims1, SPACE1_RANK * sizeof(hsize_t)), 0, "H5Sget_simple_extent_dims");
/* Verify the type of dataspace selection */
sel_type = H5Sget_select_type(decoded_sid1);
@@ -1528,8 +1528,8 @@ test_h5s_encode1(void)
CHECK(ret, FAIL, "H5Sencode");
if (null_size > 0) {
- null_sbuf = (unsigned char *)HDcalloc((size_t)1, null_size);
- CHECK_PTR(null_sbuf, "HDcalloc");
+ null_sbuf = (unsigned char *)calloc((size_t)1, null_size);
+ CHECK_PTR(null_sbuf, "calloc");
}
/* Encode the null dataspace in the buffer */
@@ -1564,8 +1564,8 @@ test_h5s_encode1(void)
CHECK(ret, FAIL, "H5Sencode");
if (scalar_size > 0) {
- scalar_buf = (unsigned char *)HDcalloc((size_t)1, scalar_size);
- CHECK_PTR(scalar_buf, "HDcalloc");
+ scalar_buf = (unsigned char *)calloc((size_t)1, scalar_size);
+ CHECK_PTR(scalar_buf, "calloc");
}
/* Encode the scalar dataspace in the buffer */
@@ -1599,11 +1599,11 @@ test_h5s_encode1(void)
/* Release resources */
if (sbuf)
- HDfree(sbuf);
+ free(sbuf);
if (null_sbuf)
- HDfree(null_sbuf);
+ free(null_sbuf);
if (scalar_buf)
- HDfree(scalar_buf);
+ free(scalar_buf);
} /* test_h5s_encode1() */
#endif /* H5_NO_DEPRECATED_SYMBOLS */
@@ -1651,8 +1651,8 @@ test_h5s_check_encoding(hid_t in_fapl, hid_t in_sid, uint32_t expected_version,
CHECK(ret, FAIL, "H5Sencode2");
/* Allocate the buffer for encoding */
- buf = (char *)HDmalloc(buf_size);
- CHECK_PTR(buf, "HDmalloc");
+ buf = (char *)malloc(buf_size);
+ CHECK_PTR(buf, "malloc");
/* Encode according to the setting in in_fapl */
ret = H5Sencode2(in_sid, buf, &buf_size, in_fapl);
@@ -1711,7 +1711,7 @@ test_h5s_check_encoding(hid_t in_fapl, hid_t in_sid, uint32_t expected_version,
ret = H5Sclose(d_sid);
CHECK(ret, FAIL, "H5Sclose");
if (buf)
- HDfree(buf);
+ free(buf);
}
return (0);
@@ -1790,7 +1790,7 @@ test_h5s_encode_regular_hyper(H5F_libver_t low, H5F_libver_t high)
break;
default:
- HDassert(0);
+ assert(0);
break;
} /* end switch */
@@ -1815,7 +1815,7 @@ test_h5s_encode_regular_hyper(H5F_libver_t low, H5F_libver_t high)
expected_enc_size = (uint8_t)(expected_version == 3 ? 4 : 8);
break;
default:
- HDassert(0);
+ assert(0);
break;
} /* end switch */
@@ -1840,7 +1840,7 @@ test_h5s_encode_regular_hyper(H5F_libver_t low, H5F_libver_t high)
expected_enc_size = 8;
break;
default:
- HDassert(0);
+ assert(0);
break;
}
@@ -1865,7 +1865,7 @@ test_h5s_encode_regular_hyper(H5F_libver_t low, H5F_libver_t high)
expected_enc_size = 8;
break;
default:
- HDassert(0);
+ assert(0);
break;
} /* end switch */
@@ -1890,7 +1890,7 @@ test_h5s_encode_regular_hyper(H5F_libver_t low, H5F_libver_t high)
expected_enc_size = 8;
break;
default:
- HDassert(0);
+ assert(0);
break;
}
@@ -1984,7 +1984,7 @@ test_h5s_encode_irregular_hyper(H5F_libver_t low, H5F_libver_t high)
break;
default:
- HDassert(0);
+ assert(0);
break;
}
@@ -2013,7 +2013,7 @@ test_h5s_encode_irregular_hyper(H5F_libver_t low, H5F_libver_t high)
break;
default:
- HDassert(0);
+ assert(0);
break;
}
@@ -2026,7 +2026,7 @@ test_h5s_encode_irregular_hyper(H5F_libver_t low, H5F_libver_t high)
VERIFY(is_regular, FALSE, "H5Sis_regular_hyperslab");
/* Verify the version and encoded size expected for the configuration */
- HDassert(expected_enc_size <= 255);
+ assert(expected_enc_size <= 255);
ret = test_h5s_check_encoding(fapl, sid, expected_version, (uint8_t)expected_enc_size,
expected_to_fail);
CHECK(ret, FAIL, "test_h5s_check_encoding");
@@ -2177,7 +2177,7 @@ test_h5s_encode_length(void)
/* Allocate the buffer */
if (sbuf_size > 0) {
- sbuf = (unsigned char *)HDcalloc((size_t)1, sbuf_size);
+ sbuf = (unsigned char *)calloc((size_t)1, sbuf_size);
CHECK_PTR(sbuf, "H5Sencode2");
}
@@ -2202,7 +2202,7 @@ test_h5s_encode_length(void)
/* Free the buffer */
if (sbuf)
- HDfree(sbuf);
+ free(sbuf);
/* Close the original dataspace */
ret = H5Sclose(sid);
@@ -2478,11 +2478,11 @@ test_h5s_compound_scalar_read(void)
ret = H5Dread(dataset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata);
CHECK(ret, FAIL, "H5Dread");
- if (HDmemcmp(&space4_data, &rdata, sizeof(struct space4_struct)) != 0) {
- HDprintf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1, rdata.c1);
- HDprintf("scalar data different: space4_data.u=%u, read_data4.u=%u\n", space4_data.u, rdata.u);
- HDprintf("scalar data different: space4_data.f=%f, read_data4.f=%f\n", (double)space4_data.f,
- (double)rdata.f);
+ if (memcmp(&space4_data, &rdata, sizeof(struct space4_struct)) != 0) {
+ printf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1, rdata.c1);
+ printf("scalar data different: space4_data.u=%u, read_data4.u=%u\n", space4_data.u, rdata.u);
+ printf("scalar data different: space4_data.f=%f, read_data4.f=%f\n", (double)space4_data.f,
+ (double)rdata.f);
TestErrPrintf("scalar data different: space4_data.c1=%c, read_data4.c1=%c\n", space4_data.c1,
rdata.c2);
} /* end if */
@@ -2531,17 +2531,17 @@ test_h5s_chunk(void)
int i, j;
/* Allocate memory */
- chunk_data_dbl_data = (double *)HDcalloc(CHUNK_DATA_NX * CHUNK_DATA_NY, sizeof(double));
- CHECK_PTR(chunk_data_dbl_data, "HDcalloc");
- chunk_data_dbl = (double **)HDcalloc(CHUNK_DATA_NX, sizeof(chunk_data_dbl_data));
- CHECK_PTR(chunk_data_dbl, "HDcalloc");
+ chunk_data_dbl_data = (double *)calloc(CHUNK_DATA_NX * CHUNK_DATA_NY, sizeof(double));
+ CHECK_PTR(chunk_data_dbl_data, "calloc");
+ chunk_data_dbl = (double **)calloc(CHUNK_DATA_NX, sizeof(chunk_data_dbl_data));
+ CHECK_PTR(chunk_data_dbl, "calloc");
for (i = 0; i < CHUNK_DATA_NX; i++)
chunk_data_dbl[i] = chunk_data_dbl_data + (i * CHUNK_DATA_NY);
- chunk_data_flt_data = (float *)HDcalloc(CHUNK_DATA_NX * CHUNK_DATA_NY, sizeof(float));
- CHECK_PTR(chunk_data_flt_data, "HDcalloc");
- chunk_data_flt = (float **)HDcalloc(CHUNK_DATA_NX, sizeof(chunk_data_flt_data));
- CHECK_PTR(chunk_data_flt, "HDcalloc");
+ chunk_data_flt_data = (float *)calloc(CHUNK_DATA_NX * CHUNK_DATA_NY, sizeof(float));
+ CHECK_PTR(chunk_data_flt_data, "calloc");
+ chunk_data_flt = (float **)calloc(CHUNK_DATA_NX, sizeof(chunk_data_flt_data));
+ CHECK_PTR(chunk_data_flt, "calloc");
for (i = 0; i < CHUNK_DATA_NX; i++)
chunk_data_flt[i] = chunk_data_flt_data + (i * CHUNK_DATA_NY);
@@ -2583,8 +2583,8 @@ test_h5s_chunk(void)
CHECK(status, FAIL, "H5Fclose");
/* Reset/initialize the data arrays to read in */
- HDmemset(chunk_data_dbl_data, 0, sizeof(double) * CHUNK_DATA_NX * CHUNK_DATA_NY);
- HDmemset(chunk_data_flt_data, 0, sizeof(float) * CHUNK_DATA_NX * CHUNK_DATA_NY);
+ memset(chunk_data_dbl_data, 0, sizeof(double) * CHUNK_DATA_NX * CHUNK_DATA_NY);
+ memset(chunk_data_flt_data, 0, sizeof(float) * CHUNK_DATA_NX * CHUNK_DATA_NY);
fileID = H5Fopen(DATAFILE, H5F_ACC_RDONLY, H5P_DEFAULT);
CHECK(fileID, FAIL, "H5Fopen");
@@ -2611,10 +2611,10 @@ test_h5s_chunk(void)
} /* end for */
} /* end for */
- HDfree(chunk_data_dbl);
- HDfree(chunk_data_dbl_data);
- HDfree(chunk_data_flt);
- HDfree(chunk_data_flt_data);
+ free(chunk_data_dbl);
+ free(chunk_data_dbl_data);
+ free(chunk_data_flt);
+ free(chunk_data_flt_data);
} /* test_h5s_chunk() */
/****************************************************************
diff --git a/test/API/tid.c b/test/API/tid.c
index 2dd8851..b353a8a 100644
--- a/test/API/tid.c
+++ b/test/API/tid.c
@@ -34,7 +34,7 @@
static herr_t
free_wrapper(void *p, void H5_ATTR_UNUSED **_ctx)
{
- HDfree(p);
+ free(p);
return SUCCEED;
}
@@ -98,12 +98,12 @@ basic_id_test(void)
* Once the ID has been registered, testObj will be freed when
* its ID type is destroyed.
*/
- testObj = HDmalloc(7 * sizeof(int));
+ testObj = malloc(7 * sizeof(int));
arrayID = H5Iregister(myType, testObj);
CHECK(arrayID, H5I_INVALID_HID, "H5Iregister");
if (arrayID == H5I_INVALID_HID) {
- HDfree(testObj);
+ free(testObj);
goto out;
}
@@ -192,12 +192,12 @@ basic_id_test(void)
* freed when the previous type was destroyed. Allocate new
* memory for it.
*/
- testObj = HDmalloc(7 * sizeof(int));
+ testObj = malloc(7 * sizeof(int));
arrayID = H5Iregister(myType, testObj);
CHECK(arrayID, H5I_INVALID_HID, "H5Iregister");
if (arrayID == H5I_INVALID_HID) {
- HDfree(testObj);
+ free(testObj);
goto out;
}
@@ -272,7 +272,7 @@ id_predefined_test(void)
void *testPtr;
herr_t testErr;
- testObj = HDmalloc(sizeof(int));
+ testObj = malloc(sizeof(int));
/*
* Attempt to perform public functions on various library types
@@ -363,14 +363,14 @@ id_predefined_test(void)
/* testObj was never registered as an atom, so it will not be
* automatically freed. */
- HDfree(testObj);
+ free(testObj);
return 0;
out:
if (typeID != H5I_INVALID_HID)
H5Tclose(typeID);
if (testObj != NULL)
- HDfree(testObj);
+ free(testObj);
return -1;
}
@@ -720,8 +720,8 @@ test_remove_clear_type(void)
/* Create an array to hold the objects in the master list */
list_size = RCT_MAX_NOBJS * sizeof(rct_obj_t);
- obj_list.objects = HDmalloc(list_size);
- CHECK_PTR(obj_list.objects, "HDcalloc");
+ obj_list.objects = malloc(list_size);
+ CHECK_PTR(obj_list.objects, "calloc");
if (NULL == obj_list.objects)
goto error;
@@ -740,7 +740,7 @@ test_remove_clear_type(void)
* Build object list *
*********************/
- HDmemset(obj_list.objects, 0, list_size);
+ memset(obj_list.objects, 0, list_size);
/* The number of objects used is a random number between the min and max */
obj_list.count = obj_list.remaining =
@@ -866,7 +866,7 @@ test_remove_clear_type(void)
goto error;
/* Free the object array */
- HDfree(obj_list.objects);
+ free(obj_list.objects);
return 0;
@@ -878,7 +878,7 @@ error:
}
H5E_END_TRY
- HDfree(obj_list.objects);
+ free(obj_list.objects);
return -1;
} /* end test_remove_clear_type() */
@@ -901,7 +901,7 @@ free_actual_object(void *_p, void H5_ATTR_UNUSED **_ctx)
if (7 != *p)
return FAIL;
- HDfree(p);
+ free(p);
return SUCCEED;
}
@@ -934,7 +934,7 @@ realize_future_cb(void *_future_obj, hid_t *actual_id)
}
else {
/* Create a new object (the 'actual object') of the correct type */
- if (NULL == (actual_obj = HDmalloc(sizeof(int))))
+ if (NULL == (actual_obj = malloc(sizeof(int))))
return FAIL;
*actual_obj = 7;
@@ -955,7 +955,7 @@ discard_future_cb(void *future_obj)
if (NULL == future_obj)
return FAIL;
- HDfree(future_obj);
+ free(future_obj);
return SUCCEED;
}
@@ -970,7 +970,7 @@ realize_future_generate_cb(void *_future_obj, hid_t *actual_id)
if (NULL != future_obj)
return FAIL;
/* Create a new object (the 'actual object') of the correct type */
- if (NULL == (actual_obj = HDmalloc(sizeof(int))))
+ if (NULL == (actual_obj = malloc(sizeof(int))))
return FAIL;
*actual_obj = 7;
@@ -1054,7 +1054,7 @@ test_future_ids(void)
/* Test base use-case: create a future object and destroy type without
* realizing the future object.
*/
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = obj_type;
future_id = H5Iregister_future(obj_type, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1074,7 +1074,7 @@ test_future_ids(void)
goto error;
/* Test base use-case: create a future object and realize the actual object. */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = obj_type;
future_id = H5Iregister_future(obj_type, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1160,7 +1160,7 @@ test_future_ids(void)
/* Test base use-case: create a future object for a pre-defined type */
/* (DATASPACE) */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_DATASPACE;
future_id = H5Iregister_future(H5I_DATASPACE, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1178,7 +1178,7 @@ test_future_ids(void)
goto error;
/* Test base use-case: create a future object for a pre-defined type */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_DATASPACE;
future_id = H5Iregister_future(H5I_DATASPACE, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1201,7 +1201,7 @@ test_future_ids(void)
goto error;
/* Test base use-case: create a future object for a pre-defined type */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_DATASPACE;
future_id = H5Iregister_future(H5I_DATASPACE, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1232,7 +1232,7 @@ test_future_ids(void)
/* Test base use-case: create a future object for a pre-defined type */
/* (DATATYPE) */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_DATATYPE;
future_id = H5Iregister_future(H5I_DATATYPE, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1250,7 +1250,7 @@ test_future_ids(void)
goto error;
/* Test base use-case: create a future object for a pre-defined type */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_DATATYPE;
future_id = H5Iregister_future(H5I_DATATYPE, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1273,7 +1273,7 @@ test_future_ids(void)
goto error;
/* Test base use-case: create a future object for a pre-defined type */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_DATATYPE;
future_id = H5Iregister_future(H5I_DATATYPE, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1304,7 +1304,7 @@ test_future_ids(void)
/* Test base use-case: create a future object for a pre-defined type */
/* (PROPERTY LIST) */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_GENPROP_LST;
future_id = H5Iregister_future(H5I_GENPROP_LST, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1322,7 +1322,7 @@ test_future_ids(void)
goto error;
/* Test base use-case: create a future object for a pre-defined type */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_GENPROP_LST;
future_id = H5Iregister_future(H5I_GENPROP_LST, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
@@ -1345,7 +1345,7 @@ test_future_ids(void)
goto error;
/* Test base use-case: create a future object for a pre-defined type */
- future_obj = HDmalloc(sizeof(future_obj_t));
+ future_obj = malloc(sizeof(future_obj_t));
future_obj->obj_type = H5I_GENPROP_LST;
future_id = H5Iregister_future(H5I_GENPROP_LST, future_obj, realize_future_cb, discard_future_cb);
CHECK(future_id, H5I_INVALID_HID, "H5Iregister_future");
diff --git a/test/API/titerate.c b/test/API/titerate.c
index 6d86130..8ccbe27 100644
--- a/test/API/titerate.c
+++ b/test/API/titerate.c
@@ -92,8 +92,8 @@ liter_cb(hid_t H5_ATTR_UNUSED group, const char *name, const H5L_info2_t H5_ATTR
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for iterate aren't "
- "supported with this connector\n");
+ printf(" API functions for iterate aren't "
+ "supported with this connector\n");
return 1;
}
@@ -115,7 +115,7 @@ liter_cb(hid_t H5_ATTR_UNUSED group, const char *name, const H5L_info2_t H5_ATTR
return (count2 > 10 ? 1 : 0);
default:
- HDprintf("invalid iteration command");
+ printf("invalid iteration command");
return (-1);
} /* end switch */
} /* end liter_cb() */
@@ -381,7 +381,7 @@ test_iter_group(hid_t fapl, hbool_t new_format)
/* Free the dataset names */
for (i = 0; i < (NDATASETS + 2); i++)
- HDfree(lnames[i]);
+ free(lnames[i]);
}
} /* test_iter_group() */
@@ -415,7 +415,7 @@ aiter_cb(hid_t H5_ATTR_UNUSED group, const char *name, const H5A_info_t H5_ATTR_
return (count2 > 10 ? 1 : 0);
default:
- HDprintf("invalid iteration command");
+ printf("invalid iteration command");
return (-1);
} /* end switch */
} /* end aiter_cb() */
@@ -444,7 +444,7 @@ test_iter_attr(hid_t fapl, hbool_t new_format)
if ((vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) && (vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) &&
(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) && (vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
- HDmemset(&info, 0, sizeof(iter_info));
+ memset(&info, 0, sizeof(iter_info));
/* Create the test file with the datasets */
file = H5Fcreate(DATAFILE, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
@@ -590,7 +590,7 @@ test_iter_attr(hid_t fapl, hbool_t new_format)
/* Free the attribute names */
for (i = 0; i < NATTR; i++)
- HDfree(anames[i]);
+ free(anames[i]);
}
} /* test_iter_attr() */
@@ -619,8 +619,8 @@ liter_cb2(hid_t loc_id, const char *name, const H5L_info2_t H5_ATTR_UNUSED *link
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) || !(vol_cap_flags_g & H5VL_CAP_FLAG_LINK_BASIC)) {
SKIPPED();
- HDprintf(" API functions for iterate and basic links aren't "
- "supported with this connector\n");
+ printf(" API functions for iterate and basic links aren't "
+ "supported with this connector\n");
return 1;
}
@@ -672,8 +672,8 @@ test_iter_group_large(hid_t fapl)
} s1_t;
/* Allocate & initialize array */
- names = (iter_info *)HDcalloc(sizeof(iter_info), (ITER_NGROUPS + 2));
- CHECK_PTR(names, "HDcalloc");
+ names = (iter_info *)calloc(sizeof(iter_info), (ITER_NGROUPS + 2));
+ CHECK_PTR(names, "calloc");
/* Output message about test being performed */
MESSAGE(5, ("Testing Large Group Iteration Functionality\n"));
@@ -768,7 +768,7 @@ test_iter_group_large(hid_t fapl)
CHECK(ret, FAIL, "H5Fclose");
/* Release memory */
- HDfree(names);
+ free(names);
}
} /* test_iterate_group_large() */
@@ -921,8 +921,8 @@ test_grp_memb_funcs(hid_t fapl)
/* Free the dataset names */
for (i = 0; i < (NDATASETS + 2); i++) {
- HDfree(dnames[i]);
- HDfree(obj_names[i]);
+ free(dnames[i]);
+ free(obj_names[i]);
} /* end for */
} /* test_grp_memb_funcs() */
@@ -1068,7 +1068,7 @@ test_corrupted_attnamelen(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
diff --git a/test/API/tmisc.c b/test/API/tmisc.c
index 723c3d2..4094b48 100644
--- a/test/API/tmisc.c
+++ b/test/API/tmisc.c
@@ -496,8 +496,8 @@ test_misc2_write_attribute(void)
char *string_att1 = HDstrdup("string attribute in file one");
char *string_att2 = HDstrdup("string attribute in file two");
- HDmemset(&data, 0, sizeof(data));
- HDmemset(&data_check, 0, sizeof(data_check));
+ memset(&data, 0, sizeof(data));
+ memset(&data_check, 0, sizeof(data_check));
type = misc2_create_type();
@@ -568,8 +568,8 @@ test_misc2_write_attribute(void)
ret = H5Fclose(file2);
CHECK(ret, FAIL, "H5Fclose");
- HDfree(string_att1);
- HDfree(string_att2);
+ free(string_att1);
+ free(string_att2);
}
static void
@@ -782,7 +782,7 @@ create_struct3(void)
misc5_struct3_hndl *str3hndl; /* New 'struct3' created */
herr_t ret; /* For error checking */
- str3hndl = (misc5_struct3_hndl *)HDmalloc(sizeof(misc5_struct3_hndl));
+ str3hndl = (misc5_struct3_hndl *)malloc(sizeof(misc5_struct3_hndl));
CHECK_PTR(str3hndl, "malloc");
str3hndl->st3h_base = H5Tcreate(H5T_COMPOUND, sizeof(misc5_struct3));
@@ -808,7 +808,7 @@ delete_struct3(misc5_struct3_hndl *str3hndl)
ret = H5Tclose(str3hndl->st3h_base);
CHECK(ret, FAIL, "H5Tclose");
- HDfree(str3hndl);
+ free(str3hndl);
}
static void
@@ -825,8 +825,8 @@ create_struct2(void)
misc5_struct2_hndl *str2hndl; /* New 'struct2' created */
herr_t ret; /* For error checking */
- str2hndl = (misc5_struct2_hndl *)HDmalloc(sizeof(misc5_struct2_hndl));
- CHECK_PTR(str2hndl, "HDmalloc");
+ str2hndl = (misc5_struct2_hndl *)malloc(sizeof(misc5_struct2_hndl));
+ CHECK_PTR(str2hndl, "malloc");
str2hndl->st2h_base = H5Tcreate(H5T_COMPOUND, sizeof(misc5_struct2));
CHECK(str2hndl->st2h_base, FAIL, "H5Tcreate");
@@ -860,7 +860,7 @@ delete_struct2(misc5_struct2_hndl *str2hndl)
H5Tclose(str2hndl->st2h_base);
CHECK(ret, FAIL, "H5Tclose");
- HDfree(str2hndl);
+ free(str2hndl);
}
static void
@@ -871,8 +871,8 @@ set_struct2(misc5_struct2 *buf)
buf->st2_el1 = MISC5_DBGELVAL2;
buf->st2_el2.len = MISC5_DBGNELM3;
- buf->st2_el2.p = HDmalloc((buf->st2_el2.len) * sizeof(misc5_struct3));
- CHECK_PTR(buf->st2_el2.p, "HDmalloc");
+ buf->st2_el2.p = malloc((buf->st2_el2.len) * sizeof(misc5_struct3));
+ CHECK_PTR(buf->st2_el2.p, "malloc");
for (i = 0; i < (buf->st2_el2.len); i++)
set_struct3(&(((misc5_struct3 *)(buf->st2_el2.p))[i]));
@@ -881,7 +881,7 @@ set_struct2(misc5_struct2 *buf)
static void
clear_struct2(misc5_struct2 *buf)
{
- HDfree(buf->st2_el2.p);
+ free(buf->st2_el2.p);
}
/*********************** struct1 ***********************/
@@ -892,8 +892,8 @@ create_struct1(void)
misc5_struct1_hndl *str1hndl; /* New 'struct1' created */
herr_t ret; /* For error checking */
- str1hndl = (misc5_struct1_hndl *)HDmalloc(sizeof(misc5_struct1_hndl));
- CHECK_PTR(str1hndl, "HDmalloc");
+ str1hndl = (misc5_struct1_hndl *)malloc(sizeof(misc5_struct1_hndl));
+ CHECK_PTR(str1hndl, "malloc");
str1hndl->st1h_base = H5Tcreate(H5T_COMPOUND, sizeof(misc5_struct1));
CHECK(str1hndl->st1h_base, FAIL, "H5Tcreate");
@@ -927,7 +927,7 @@ delete_struct1(misc5_struct1_hndl *str1hndl)
ret = H5Tclose(str1hndl->st1h_base);
CHECK(ret, FAIL, "H5Tclose");
- HDfree(str1hndl);
+ free(str1hndl);
}
static void
@@ -938,8 +938,8 @@ set_struct1(misc5_struct1 *buf)
buf->st1_el1 = MISC5_DBGELVAL1;
buf->st1_el2.len = MISC5_DBGNELM2;
- buf->st1_el2.p = HDmalloc((buf->st1_el2.len) * sizeof(misc5_struct2));
- CHECK_PTR(buf->st1_el2.p, "HDmalloc");
+ buf->st1_el2.p = malloc((buf->st1_el2.len) * sizeof(misc5_struct2));
+ CHECK_PTR(buf->st1_el2.p, "malloc");
for (i = 0; i < (buf->st1_el2.len); i++)
set_struct2(&(((misc5_struct2 *)(buf->st1_el2.p))[i]));
@@ -952,7 +952,7 @@ clear_struct1(misc5_struct1 *buf)
for (i = 0; i < buf->st1_el2.len; i++)
clear_struct2(&(((misc5_struct2 *)(buf->st1_el2.p))[i]));
- HDfree(buf->st1_el2.p);
+ free(buf->st1_el2.p);
}
static void
@@ -989,8 +989,8 @@ test_misc5(void)
/* Create the variable-length buffer */
buf.len = MISC5_DBGNELM1;
- buf.p = HDmalloc((buf.len) * sizeof(misc5_struct1));
- CHECK_PTR(buf.p, "HDmalloc");
+ buf.p = malloc((buf.len) * sizeof(misc5_struct1));
+ CHECK_PTR(buf.p, "malloc");
/* Create the top-level VL information */
for (i = 0; i < MISC5_DBGNELM1; i++)
@@ -1005,7 +1005,7 @@ test_misc5(void)
clear_struct1(&(((misc5_struct1 *)(buf.p))[j]));
/* Free the variable-length buffer */
- HDfree(buf.p);
+ free(buf.p);
/* Close dataset */
ret = H5Dclose(dataset_id);
@@ -1044,16 +1044,16 @@ test_misc5(void)
/* Verify the correct information was read in */
for (i = 0; i < (buf.len); i++) {
- /* HDprintf("[%d]=%d\n",i, ((misc5_struct1 *)(buf.p))[i].st1_el1); */
+ /* printf("[%d]=%d\n",i, ((misc5_struct1 *)(buf.p))[i].st1_el1); */
VERIFY(((misc5_struct1 *)(buf.p))[i].st1_el1, MISC5_DBGELVAL1, "H5Dread");
for (j = 0; j < (((misc5_struct1 *)(buf.p))[i].st1_el2.len); j++) {
- /* HDprintf(" [%d]=%d\n",j, ((misc5_struct2 *)(((misc5_struct1 *)
+ /* printf(" [%d]=%d\n",j, ((misc5_struct2 *)(((misc5_struct1 *)
* (buf.p))[i].st1_el2.p))[j].st2_el1); */
VERIFY(((misc5_struct2 *)(((misc5_struct1 *)(buf.p))[i].st1_el2.p))[j].st2_el1, MISC5_DBGELVAL2,
"H5Dread");
for (k = 0; k < (((misc5_struct2 *)(((misc5_struct1 *)(buf.p))[i].st1_el2.p))[j].st2_el2.len);
k++) {
- /* HDprintf(" [%d]=%d\n",k, ((misc5_struct3 *)(((misc5_struct2 *) (((misc5_struct1
+ /* printf(" [%d]=%d\n",k, ((misc5_struct3 *)(((misc5_struct2 *) (((misc5_struct1
* *)(buf.p))[i]. st1_el2.p))[j].st2_el2.p))[k].st3_el1); */
VERIFY(((misc5_struct3 *)(((misc5_struct2 *)(((misc5_struct1 *)(buf.p))[i].st1_el2.p))[j]
.st2_el2.p))[k]
@@ -1323,11 +1323,11 @@ test_misc8(void)
MESSAGE(5, ("Testing dataset storage sizes\n"));
/* Allocate space for the data to write & read */
- wdata = (int *)HDmalloc(sizeof(int) * MISC8_DIM0 * MISC8_DIM1);
- CHECK_PTR(wdata, "HDmalloc");
+ wdata = (int *)malloc(sizeof(int) * MISC8_DIM0 * MISC8_DIM1);
+ CHECK_PTR(wdata, "malloc");
#ifdef VERIFY_DATA
- rdata = (int *)HDmalloc(sizeof(int) * MISC8_DIM0 * MISC8_DIM1);
- CHECK_PTR(rdata, "HDmalloc");
+ rdata = (int *)malloc(sizeof(int) * MISC8_DIM0 * MISC8_DIM1);
+ CHECK_PTR(rdata, "malloc");
#endif /* VERIFY_DATA */
/* Initialize values */
@@ -1794,9 +1794,9 @@ test_misc8(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free the read & write buffers */
- HDfree(wdata);
+ free(wdata);
#ifdef VERIFY_DATA
- HDfree(rdata);
+ free(rdata);
#endif /* VERIFY_DATA */
} /* end test_misc8() */
#endif
@@ -1863,7 +1863,7 @@ test_misc10(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
@@ -2264,8 +2264,8 @@ misc13_verify_dataset(hid_t loc_id, const char *name, const unsigned *data)
herr_t ret; /* Generic return value */
/* Create a data buffer for the dataset read */
- read_data = (unsigned *)HDcalloc(MISC13_DIM1, sizeof(unsigned));
- CHECK_PTR(read_data, "HDcalloc");
+ read_data = (unsigned *)calloc(MISC13_DIM1, sizeof(unsigned));
+ CHECK_PTR(read_data, "calloc");
/* Open the contiguous dataset in the root group */
dsid = H5Dopen2(loc_id, name, H5P_DEFAULT);
@@ -2284,7 +2284,7 @@ misc13_verify_dataset(hid_t loc_id, const char *name, const unsigned *data)
CHECK(ret, FAIL, "H5Dclose");
/* Free the dataset read buffer */
- HDfree(read_data);
+ free(read_data);
} /* end misc13_verify_dataset() */
@@ -2390,27 +2390,27 @@ misc13_insert_user_block(const char *old_name, const char *new_name, const char
int ret; /* Generic status value */
/* Allocate space for the user block */
- user_block = HDcalloc(size, (size_t)1);
- CHECK_PTR(user_block, "HDcalloc");
+ user_block = calloc(size, (size_t)1);
+ CHECK_PTR(user_block, "calloc");
/* Copy in the user block data */
- HDmemcpy(user_block, str, HDstrlen(str));
+ memcpy(user_block, str, HDstrlen(str));
/* Open the new file */
- new_fp = HDfopen(new_name, "wb");
- CHECK_PTR(new_fp, "HDfopen");
+ new_fp = fopen(new_name, "wb");
+ CHECK_PTR(new_fp, "fopen");
/* Write the user block to the new file */
written = HDfwrite(user_block, (size_t)1, size, new_fp);
VERIFY(written, size, "HDfwrite");
/* Open the old file */
- old_fp = HDfopen(old_name, "rb");
- CHECK_PTR(old_fp, "HDfopen");
+ old_fp = fopen(old_name, "rb");
+ CHECK_PTR(old_fp, "fopen");
/* Allocate space for the copy buffer */
- copy_buf = HDmalloc((size_t)MISC13_COPY_BUF_SIZE);
- CHECK_PTR(copy_buf, "HDmalloc");
+ copy_buf = malloc((size_t)MISC13_COPY_BUF_SIZE);
+ CHECK_PTR(copy_buf, "malloc");
/* Copy data from the old file to the new file */
while ((read_in = HDfread(copy_buf, (size_t)1, (size_t)MISC13_COPY_BUF_SIZE, old_fp)) > 0) {
@@ -2428,10 +2428,10 @@ misc13_insert_user_block(const char *old_name, const char *new_name, const char
VERIFY(ret, 0, "HDfclose");
/* Free the copy buffer */
- HDfree(copy_buf);
+ free(copy_buf);
/* Free the user block */
- HDfree(user_block);
+ free(user_block);
} /* end misc13_insert_user_block() */
@@ -2559,8 +2559,8 @@ test_misc13(void)
hbool_t check_for_new_dataset; /* Whether to check for the post-userblock-creation dataset */
/* Create a data buffer for the datasets */
- data = (unsigned *)HDcalloc(MISC13_DIM1, sizeof(unsigned));
- CHECK_PTR(data, "HDcalloc");
+ data = (unsigned *)calloc(MISC13_DIM1, sizeof(unsigned));
+ CHECK_PTR(data, "calloc");
/* Initialize data to write */
misc13_init_data(data);
@@ -2590,7 +2590,7 @@ test_misc13(void)
misc13_verify_file(MISC13_FILE_2, data, userblock_size, check_for_new_dataset);
/* Free the dataset buffer */
- HDfree(data);
+ free(data);
} /* end test_misc13() */
#endif
@@ -2888,15 +2888,15 @@ test_misc16(void)
hsize_t dims[] = {MISC16_SPACE_DIM};
int i;
- HDmemset(wdata, 0, sizeof(wdata));
- HDmemset(rdata, 0, sizeof(rdata));
+ memset(wdata, 0, sizeof(wdata));
+ memset(rdata, 0, sizeof(rdata));
/* Initialize the data */
/* (Note that these are supposed to stress the code, so are a little weird) */
- HDmemcpy(wdata[0], "1234567", MISC16_STR_SIZE);
- HDmemcpy(wdata[1], "1234567\0", MISC16_STR_SIZE);
- HDmemcpy(wdata[2], "12345678", MISC16_STR_SIZE);
- HDmemcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC16_STR_SIZE);
+ memcpy(wdata[0], "1234567", MISC16_STR_SIZE);
+ memcpy(wdata[1], "1234567\0", MISC16_STR_SIZE);
+ memcpy(wdata[2], "12345678", MISC16_STR_SIZE);
+ memcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC16_STR_SIZE);
/* Create the file */
file = H5Fcreate(MISC16_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -2979,15 +2979,15 @@ test_misc17(void)
hsize_t dims[] = {MISC17_SPACE_DIM1, MISC17_SPACE_DIM2};
int i;
- HDmemset(wdata, 0, sizeof(wdata));
- HDmemset(rdata, 0, sizeof(rdata));
+ memset(wdata, 0, sizeof(wdata));
+ memset(rdata, 0, sizeof(rdata));
/* Initialize the data */
/* (Note that these are supposed to stress the code, so are a little weird) */
- HDmemcpy(wdata[0], "1234567", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[1], "1234567\0", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[2], "12345678", MISC17_SPACE_DIM2);
- HDmemcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC17_SPACE_DIM2);
+ memcpy(wdata[0], "1234567", MISC17_SPACE_DIM2);
+ memcpy(wdata[1], "1234567\0", MISC17_SPACE_DIM2);
+ memcpy(wdata[2], "12345678", MISC17_SPACE_DIM2);
+ memcpy(wdata[3], "\0\0\0\0\0\0\0\0", MISC17_SPACE_DIM2);
/* Create the file */
file = H5Fcreate(MISC17_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -3718,7 +3718,7 @@ test_misc19(void)
H5E_END_TRY;
VERIFY(ret, FAIL, "H5FDunregister");
- HDfree(vfd_cls);
+ free(vfd_cls);
/* Check H5I operations on virtual object connectors */
@@ -3758,7 +3758,7 @@ test_misc19(void)
H5E_END_TRY;
VERIFY(ret, FAIL, "H5VLunregister_connector");
- HDfree(vol_cls);
+ free(vol_cls);
#endif
} /* end test_misc19() */
@@ -3792,7 +3792,7 @@ test_misc20(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
@@ -3968,8 +3968,8 @@ test_misc21(void)
MESSAGE(5, ("Testing late allocation time w/chunks & filters\n"));
/* Allocate space for the buffer */
- buf = (char *)HDcalloc(MISC21_SPACE_DIM0 * MISC21_SPACE_DIM1, 1);
- CHECK(buf, NULL, "HDcalloc");
+ buf = (char *)calloc(MISC21_SPACE_DIM0 * MISC21_SPACE_DIM1, 1);
+ CHECK(buf, NULL, "calloc");
/* Create the file */
fid = H5Fcreate(MISC21_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -4009,7 +4009,7 @@ test_misc21(void)
ret = H5Fclose(fid);
CHECK(ret, FAIL, "H5Fclose");
- HDfree(buf);
+ free(buf);
} /* end test_misc21() */
/****************************************************************
@@ -4053,8 +4053,8 @@ test_misc22(void)
MESSAGE(5, ("Testing datatypes with SZIP filter\n"));
/* Allocate space for the buffer */
- buf = (char *)HDcalloc(MISC22_SPACE_DIM0 * MISC22_SPACE_DIM1, 8);
- CHECK(buf, NULL, "HDcalloc");
+ buf = (char *)calloc(MISC22_SPACE_DIM0 * MISC22_SPACE_DIM1, 8);
+ CHECK(buf, NULL, "calloc");
/* Create the file */
fid = H5Fcreate(MISC22_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -4160,7 +4160,7 @@ test_misc22(void)
ret = H5Fclose(fid);
CHECK(ret, FAIL, "H5Fclose");
- HDfree(buf);
+ free(buf);
} /* end test_misc22() */
#endif /* H5_HAVE_FILTER_SZIP */
@@ -5099,7 +5099,7 @@ test_misc25b(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
@@ -5362,7 +5362,7 @@ test_misc27(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
@@ -5590,7 +5590,7 @@ test_misc29(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
@@ -5889,7 +5889,7 @@ test_misc33(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
@@ -6192,7 +6192,7 @@ test_misc37(void)
CHECK(ret, FAIL, "h5_driver_is_default_vfd_compatible");
if (!driver_is_default_compatible) {
- HDprintf("-- SKIPPED --\n");
+ printf("-- SKIPPED --\n");
return;
}
diff --git a/test/API/trefer.c b/test/API/trefer.c
index c09b586..2312c3f 100644
--- a/test/API/trefer.c
+++ b/test/API/trefer.c
@@ -112,10 +112,10 @@ test_reference_params(void)
MESSAGE(5, ("Testing Reference Parameters\n"));
/* Allocate write & read buffers */
- wbuf = (H5R_ref_t *)HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- rbuf = (H5R_ref_t *)HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- tbuf = (H5R_ref_t *)HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- obuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
+ wbuf = (H5R_ref_t *)calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ rbuf = (H5R_ref_t *)calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ tbuf = (H5R_ref_t *)calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ obuf = calloc(sizeof(unsigned), SPACE1_DIM1);
for (i = 0; i < SPACE1_DIM1; i++)
obuf[i] = i * 3;
@@ -411,10 +411,10 @@ test_reference_params(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(tbuf);
- HDfree(obuf);
+ free(wbuf);
+ free(rbuf);
+ free(tbuf);
+ free(obuf);
} /* test_reference_params() */
/****************************************************************
@@ -445,10 +445,10 @@ test_reference_obj(void)
MESSAGE(5, ("Testing Object Reference Functions\n"));
/* Allocate write & read buffers */
- wbuf = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- rbuf = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- ibuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
- obuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
+ wbuf = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ rbuf = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ ibuf = calloc(sizeof(unsigned), SPACE1_DIM1);
+ obuf = calloc(sizeof(unsigned), SPACE1_DIM1);
for (i = 0; i < SPACE1_DIM1; i++)
obuf[i] = i * 3;
@@ -645,10 +645,10 @@ test_reference_obj(void)
}
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(ibuf);
- HDfree(obuf);
+ free(wbuf);
+ free(rbuf);
+ free(ibuf);
+ free(obuf);
} /* test_reference_obj() */
/****************************************************************
@@ -682,9 +682,9 @@ test_reference_vlen_obj(void)
MESSAGE(5, ("Testing Object Reference Functions within VLEN type\n"));
/* Allocate write & read buffers */
- wbuf = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- ibuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
- obuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
+ wbuf = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ ibuf = calloc(sizeof(unsigned), SPACE1_DIM1);
+ obuf = calloc(sizeof(unsigned), SPACE1_DIM1);
for (i = 0; i < SPACE1_DIM1; i++)
obuf[i] = i * 3;
@@ -911,10 +911,10 @@ test_reference_vlen_obj(void)
}
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(ibuf);
- HDfree(obuf);
+ free(wbuf);
+ free(rbuf);
+ free(ibuf);
+ free(obuf);
} /* test_reference_vlen_obj() */
/****************************************************************
@@ -946,8 +946,8 @@ test_reference_cmpnd_obj(void)
MESSAGE(5, ("Testing Object Reference Functions within compound type\n"));
/* Allocate write & read buffers */
- ibuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
- obuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
+ ibuf = calloc(sizeof(unsigned), SPACE1_DIM1);
+ obuf = calloc(sizeof(unsigned), SPACE1_DIM1);
for (i = 0; i < SPACE1_DIM1; i++)
obuf[i] = i * 3;
@@ -1047,7 +1047,7 @@ test_reference_cmpnd_obj(void)
CHECK(dataset, H5I_INVALID_HID, "H5Dcreate2");
/* Reset buffer for writing */
- HDmemset(&cmpnd_wbuf, 0, sizeof(cmpnd_wbuf));
+ memset(&cmpnd_wbuf, 0, sizeof(cmpnd_wbuf));
/* Create reference to dataset */
ret = H5Rcreate_object(fid1, "/Group1/Dataset1", H5P_DEFAULT, &cmpnd_wbuf.ref0);
@@ -1202,8 +1202,8 @@ test_reference_cmpnd_obj(void)
CHECK(ret, FAIL, "H5Rdestroy");
/* Free memory buffers */
- HDfree(ibuf);
- HDfree(obuf);
+ free(ibuf);
+ free(obuf);
} /* test_reference_cmpnd_obj() */
/****************************************************************
@@ -1255,10 +1255,10 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high)
MESSAGE(5, ("Testing Dataset Region Reference Functions\n"));
/* Allocate write & read buffers */
- wbuf = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- rbuf = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- dwbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
- drbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
+ wbuf = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ rbuf = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ dwbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
+ drbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
for (tu8 = dwbuf, i = 0; i < (SPACE2_DIM1 * SPACE2_DIM2); i++)
*tu8++ = (uint8_t)(i * 3);
@@ -1529,7 +1529,7 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(ret, 1, "H5Sget_select_hyper_nblocks");
/* allocate space for the hyperslab blocks */
- coords = (hsize_t *)HDmalloc((size_t)ret * SPACE2_RANK * sizeof(hsize_t) * 2);
+ coords = (hsize_t *)malloc((size_t)ret * SPACE2_RANK * sizeof(hsize_t) * 2);
ret = H5Sget_select_hyper_blocklist(sid2, (hsize_t)0, (hsize_t)ret, coords);
CHECK(ret, FAIL, "H5Sget_select_hyper_blocklist");
@@ -1537,7 +1537,7 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(coords[1], 2, "Hyperslab Coordinates");
VERIFY(coords[2], 7, "Hyperslab Coordinates");
VERIFY(coords[3], 7, "Hyperslab Coordinates");
- HDfree(coords);
+ free(coords);
ret = H5Sget_select_bounds(sid2, low, high);
CHECK(ret, FAIL, "H5Sget_select_bounds");
VERIFY(low[0], 2, "Selection Bounds");
@@ -1560,7 +1560,7 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(ret, SPACE2_DIM2, "H5Sget_select_elem_npoints");
/* allocate space for the element points */
- coords = (hsize_t *)HDmalloc((size_t)ret * SPACE2_RANK * sizeof(hsize_t));
+ coords = (hsize_t *)malloc((size_t)ret * SPACE2_RANK * sizeof(hsize_t));
ret = H5Sget_select_elem_pointlist(sid2, (hsize_t)0, (hsize_t)ret, coords);
CHECK(ret, FAIL, "H5Sget_select_elem_pointlist");
@@ -1584,7 +1584,7 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(coords[17], coord1[8][1], "Element Coordinates");
VERIFY(coords[18], coord1[9][0], "Element Coordinates");
VERIFY(coords[19], coord1[9][1], "Element Coordinates");
- HDfree(coords);
+ free(coords);
ret = H5Sget_select_bounds(sid2, low, high);
CHECK(ret, FAIL, "H5Sget_select_bounds");
VERIFY(low[0], 0, "Selection Bounds");
@@ -1661,10 +1661,10 @@ test_reference_region(H5F_libver_t libver_low, H5F_libver_t libver_high)
}
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(dwbuf);
- HDfree(drbuf);
+ free(wbuf);
+ free(rbuf);
+ free(dwbuf);
+ free(drbuf);
} /* test_reference_region() */
@@ -1711,10 +1711,10 @@ test_reference_region_1D(H5F_libver_t libver_low, H5F_libver_t libver_high)
MESSAGE(5, ("Testing 1-D Dataset Region Reference Functions\n"));
/* Allocate write & read buffers */
- wbuf = HDcalloc(sizeof(H5R_ref_t), (size_t)SPACE1_DIM1);
- rbuf = HDcalloc(sizeof(H5R_ref_t), (size_t)SPACE1_DIM1);
- dwbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)SPACE3_DIM1);
- drbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)SPACE3_DIM1);
+ wbuf = calloc(sizeof(H5R_ref_t), (size_t)SPACE1_DIM1);
+ rbuf = calloc(sizeof(H5R_ref_t), (size_t)SPACE1_DIM1);
+ dwbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)SPACE3_DIM1);
+ drbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)SPACE3_DIM1);
for (tu8 = dwbuf, i = 0; i < SPACE3_DIM1; i++)
*tu8++ = (uint8_t)(i * 3);
@@ -1889,7 +1889,7 @@ test_reference_region_1D(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(ret, 15, "H5Sget_select_hyper_nblocks");
/* allocate space for the hyperslab blocks */
- coords = (hsize_t *)HDmalloc((size_t)ret * SPACE3_RANK * sizeof(hsize_t) * 2);
+ coords = (hsize_t *)malloc((size_t)ret * SPACE3_RANK * sizeof(hsize_t) * 2);
ret = H5Sget_select_hyper_blocklist(sid3, (hsize_t)0, (hsize_t)ret, coords);
CHECK(ret, FAIL, "H5Sget_select_hyper_blocklist");
@@ -1923,7 +1923,7 @@ test_reference_region_1D(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(coords[27], 68, "Hyperslab Coordinates");
VERIFY(coords[28], 72, "Hyperslab Coordinates");
VERIFY(coords[29], 73, "Hyperslab Coordinates");
- HDfree(coords);
+ free(coords);
ret = H5Sget_select_bounds(sid3, low, high);
CHECK(ret, FAIL, "H5Sget_select_bounds");
VERIFY(low[0], 2, "Selection Bounds");
@@ -1944,7 +1944,7 @@ test_reference_region_1D(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(ret, 10, "H5Sget_select_elem_npoints");
/* allocate space for the element points */
- coords = (hsize_t *)HDmalloc((size_t)ret * SPACE3_RANK * sizeof(hsize_t));
+ coords = (hsize_t *)malloc((size_t)ret * SPACE3_RANK * sizeof(hsize_t));
ret = H5Sget_select_elem_pointlist(sid3, (hsize_t)0, (hsize_t)ret, coords);
CHECK(ret, FAIL, "H5Sget_select_elem_pointlist");
@@ -1958,7 +1958,7 @@ test_reference_region_1D(H5F_libver_t libver_low, H5F_libver_t libver_high)
VERIFY(coords[7], coord1[7][0], "Element Coordinates");
VERIFY(coords[8], coord1[8][0], "Element Coordinates");
VERIFY(coords[9], coord1[9][0], "Element Coordinates");
- HDfree(coords);
+ free(coords);
ret = H5Sget_select_bounds(sid3, low, high);
CHECK(ret, FAIL, "H5Sget_select_bounds");
VERIFY(low[0], 3, "Selection Bounds");
@@ -2002,10 +2002,10 @@ test_reference_region_1D(H5F_libver_t libver_low, H5F_libver_t libver_high)
}
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(dwbuf);
- HDfree(drbuf);
+ free(wbuf);
+ free(rbuf);
+ free(dwbuf);
+ free(drbuf);
} /* test_reference_region_1D() */
@@ -2861,10 +2861,10 @@ test_reference_compat_conv(void)
MESSAGE(5, ("Testing Deprecated Object Reference Functions\n"));
/* Allocate write & read buffers */
- wbuf_obj = (hobj_ref_t *)HDcalloc(sizeof(hobj_ref_t), SPACE1_DIM1);
- rbuf_obj = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- wbuf_reg = HDcalloc(sizeof(hdset_reg_ref_t), SPACE1_DIM1);
- rbuf_reg = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ wbuf_obj = (hobj_ref_t *)calloc(sizeof(hobj_ref_t), SPACE1_DIM1);
+ rbuf_obj = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ wbuf_reg = calloc(sizeof(hdset_reg_ref_t), SPACE1_DIM1);
+ rbuf_reg = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
/* Create file */
fid1 = H5Fcreate(FILE_REF_COMPAT, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -3131,10 +3131,10 @@ test_reference_compat_conv(void)
}
/* Free memory buffers */
- HDfree(wbuf_obj);
- HDfree(rbuf_obj);
- HDfree(wbuf_reg);
- HDfree(rbuf_reg);
+ free(wbuf_obj);
+ free(rbuf_obj);
+ free(wbuf_reg);
+ free(rbuf_reg);
} /* test_reference_compat() */
#endif
@@ -3174,17 +3174,17 @@ test_reference_perf(void)
MESSAGE(5, ("Testing Object Reference Performance\n"));
/* Allocate write & read buffers */
- wbuf = HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- obuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
- ibuf = HDcalloc(sizeof(unsigned), SPACE1_DIM1);
- wbuf_deprec = (hobj_ref_t *)HDcalloc(sizeof(hobj_ref_t), SPACE1_DIM1);
- rbuf = (H5R_ref_t *)HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- rbuf_deprec = (hobj_ref_t *)HDcalloc(sizeof(hobj_ref_t), SPACE1_DIM1);
- tbuf = (H5R_ref_t *)HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- wbuf_reg = (H5R_ref_t *)HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- rbuf_reg = (H5R_ref_t *)HDcalloc(sizeof(H5R_ref_t), SPACE1_DIM1);
- wbuf_reg_deprec = (hdset_reg_ref_t *)HDcalloc(sizeof(hdset_reg_ref_t), SPACE1_DIM1);
- rbuf_reg_deprec = (hdset_reg_ref_t *)HDcalloc(sizeof(hdset_reg_ref_t), SPACE1_DIM1);
+ wbuf = calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ obuf = calloc(sizeof(unsigned), SPACE1_DIM1);
+ ibuf = calloc(sizeof(unsigned), SPACE1_DIM1);
+ wbuf_deprec = (hobj_ref_t *)calloc(sizeof(hobj_ref_t), SPACE1_DIM1);
+ rbuf = (H5R_ref_t *)calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ rbuf_deprec = (hobj_ref_t *)calloc(sizeof(hobj_ref_t), SPACE1_DIM1);
+ tbuf = (H5R_ref_t *)calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ wbuf_reg = (H5R_ref_t *)calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ rbuf_reg = (H5R_ref_t *)calloc(sizeof(H5R_ref_t), SPACE1_DIM1);
+ wbuf_reg_deprec = (hdset_reg_ref_t *)calloc(sizeof(hdset_reg_ref_t), SPACE1_DIM1);
+ rbuf_reg_deprec = (hdset_reg_ref_t *)calloc(sizeof(hdset_reg_ref_t), SPACE1_DIM1);
for (i = 0; i < SPACE1_DIM1; i++)
obuf[i] = i * 3;
@@ -3266,7 +3266,7 @@ test_reference_perf(void)
CHECK(ret, FAIL, "H5Rdestroy");
}
if (VERBOSE_MED)
- HDprintf("--- Object reference create time: %lfs\n", t / MAX_ITER_CREATE);
+ printf("--- Object reference create time: %lfs\n", t / MAX_ITER_CREATE);
/* Create reference to dataset */
ret = H5Rcreate_object(fid1, "/Group1/Dataset1", H5P_DEFAULT, &wbuf[0]);
@@ -3285,7 +3285,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Object reference write time: %lfs\n", t / MAX_ITER_WRITE);
+ printf("--- Object reference write time: %lfs\n", t / MAX_ITER_WRITE);
/* Close Dataset */
ret = H5Dclose(dataset);
@@ -3304,7 +3304,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Deprecated object reference create time: %lfs\n", t / MAX_ITER_CREATE);
+ printf("--- Deprecated object reference create time: %lfs\n", t / MAX_ITER_CREATE);
/* Create reference to dataset */
ret = H5Rcreate(&wbuf_deprec[0], fid1, "/Group1/Dataset1", H5R_OBJECT1, H5I_INVALID_HID);
@@ -3320,7 +3320,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Deprecated object reference write time: %lfs\n", t / MAX_ITER_WRITE);
+ printf("--- Deprecated object reference write time: %lfs\n", t / MAX_ITER_WRITE);
/* Close Dataset */
ret = H5Dclose(dataset);
@@ -3342,7 +3342,7 @@ test_reference_perf(void)
CHECK(ret, FAIL, "H5Rdestroy");
}
if (VERBOSE_MED)
- HDprintf("--- Region reference create time: %lfs\n", t / MAX_ITER_CREATE);
+ printf("--- Region reference create time: %lfs\n", t / MAX_ITER_CREATE);
/* Store first dataset region */
ret = H5Rcreate_region(fid1, "/Group1/Dataset1", sid1, H5P_DEFAULT, &wbuf_reg[0]);
@@ -3358,7 +3358,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Region reference write time: %lfs\n", t / MAX_ITER_WRITE);
+ printf("--- Region reference write time: %lfs\n", t / MAX_ITER_WRITE);
/* Close Dataset */
ret = H5Dclose(dataset);
@@ -3378,7 +3378,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Deprecated region reference create time: %lfs\n", t / MAX_ITER_CREATE);
+ printf("--- Deprecated region reference create time: %lfs\n", t / MAX_ITER_CREATE);
t = 0;
for (i = 0; i < MAX_ITER_WRITE; i++) {
@@ -3390,7 +3390,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Deprecated region reference write time: %lfs\n", t / MAX_ITER_WRITE);
+ printf("--- Deprecated region reference write time: %lfs\n", t / MAX_ITER_WRITE);
/* Close Dataset */
ret = H5Dclose(dataset);
@@ -3424,7 +3424,7 @@ test_reference_perf(void)
CHECK(ret, FAIL, "H5Rdestroy");
}
if (VERBOSE_MED)
- HDprintf("--- Object reference read time: %lfs\n", t / MAX_ITER_READ);
+ printf("--- Object reference read time: %lfs\n", t / MAX_ITER_READ);
/* Read selection from disk */
ret = H5Dread(dataset, H5T_STD_REF, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf);
@@ -3470,7 +3470,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Deprecated object reference read time: %lfs\n", t / MAX_ITER_READ);
+ printf("--- Deprecated object reference read time: %lfs\n", t / MAX_ITER_READ);
/* Close Dataset */
ret = H5Dclose(dataset);
@@ -3492,7 +3492,7 @@ test_reference_perf(void)
CHECK(ret, FAIL, "H5Rdestroy");
}
if (VERBOSE_MED)
- HDprintf("--- Region reference read time: %lfs\n", t / MAX_ITER_READ);
+ printf("--- Region reference read time: %lfs\n", t / MAX_ITER_READ);
/* Read selection from disk */
ret = H5Dread(dataset, H5T_STD_REF, H5S_ALL, H5S_ALL, H5P_DEFAULT, rbuf_reg);
@@ -3516,7 +3516,7 @@ test_reference_perf(void)
t += t2 - t1;
}
if (VERBOSE_MED)
- HDprintf("--- Deprecated region reference read time: %lfs\n", t / MAX_ITER_READ);
+ printf("--- Deprecated region reference read time: %lfs\n", t / MAX_ITER_READ);
/* Close Dataset */
ret = H5Dclose(dataset);
@@ -3543,17 +3543,17 @@ test_reference_perf(void)
}
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(wbuf_reg);
- HDfree(rbuf_reg);
- HDfree(wbuf_deprec);
- HDfree(rbuf_deprec);
- HDfree(wbuf_reg_deprec);
- HDfree(rbuf_reg_deprec);
- HDfree(tbuf);
- HDfree(ibuf);
- HDfree(obuf);
+ free(wbuf);
+ free(rbuf);
+ free(wbuf_reg);
+ free(rbuf_reg);
+ free(wbuf_deprec);
+ free(rbuf_deprec);
+ free(wbuf_reg_deprec);
+ free(rbuf_reg_deprec);
+ free(tbuf);
+ free(ibuf);
+ free(obuf);
} /* test_reference_perf() */
/****************************************************************
diff --git a/test/API/tselect.c b/test/API/tselect.c
index a2f377d..1b742e5 100644
--- a/test/API/tselect.c
+++ b/test/API/tselect.c
@@ -248,10 +248,10 @@ test_select_hyper(hid_t xfer_plist)
MESSAGE(5, ("Testing Hyperslab Selection Functions\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -435,8 +435,8 @@ test_select_hyper(hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper() */
struct pnt_iter {
@@ -502,10 +502,10 @@ test_select_point(hid_t xfer_plist)
MESSAGE(5, ("Testing Element Selection Functions\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -649,7 +649,7 @@ test_select_point(hid_t xfer_plist)
/* Save points for later iteration */
/* (these are in the second half of the buffer, because we are prepending */
/* the next list of points to the beginning of the point selection list) */
- HDmemcpy(((char *)pi.coord) + sizeof(coord2), coord2, sizeof(coord2));
+ memcpy(((char *)pi.coord) + sizeof(coord2), coord2, sizeof(coord2));
ret = (int)H5Sget_select_npoints(sid2);
VERIFY(ret, 10, "H5Sget_select_npoints");
@@ -689,7 +689,7 @@ test_select_point(hid_t xfer_plist)
VERIFY(ret, 20, "H5Sget_select_npoints");
/* Save points for later iteration */
- HDmemcpy(pi.coord, coord2, sizeof(coord2));
+ memcpy(pi.coord, coord2, sizeof(coord2));
/* Create a dataset */
dataset = H5Dcreate2(fid1, SPACE1_NAME, H5T_NATIVE_UCHAR, sid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
@@ -802,8 +802,8 @@ test_select_point(hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_point() */
/****************************************************************
@@ -864,10 +864,10 @@ test_select_all(hid_t xfer_plist)
MESSAGE(5, ("Testing 'All' Selection Functions\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE4_DIM1 * SPACE4_DIM2 * SPACE4_DIM3);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE4_DIM1 * SPACE4_DIM2 * SPACE4_DIM3));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE4_DIM1 * SPACE4_DIM2 * SPACE4_DIM3);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE4_DIM1 * SPACE4_DIM2 * SPACE4_DIM3));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE4_DIM1; i++)
@@ -917,8 +917,8 @@ test_select_all(hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_all() */
/****************************************************************
@@ -951,10 +951,10 @@ test_select_all_hyper(hid_t xfer_plist)
MESSAGE(5, ("Testing 'All' Selection Functions\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -1069,8 +1069,8 @@ test_select_all_hyper(hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_all_hyper() */
/****************************************************************
@@ -1105,10 +1105,10 @@ test_select_combo(void)
MESSAGE(5, ("Testing Combination of Hyperslab & Element Selection Functions\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -1230,8 +1230,8 @@ test_select_combo(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_combo() */
static int
@@ -1300,10 +1300,10 @@ test_select_hyper_stride(hid_t xfer_plist)
MESSAGE(5, ("Testing Hyperslabs with Strides Functionality\n"));
/* Allocate write & read buffers */
- wbuf = (uint16_t *)HDmalloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint16_t *)HDcalloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint16_t *)malloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -1390,10 +1390,10 @@ test_select_hyper_stride(hid_t xfer_plist)
tbuf = wbuf + loc1[i];
tbuf2 = rbuf + loc2[i];
if (*tbuf != *tbuf2) {
- HDprintf("%d: hyperslab values don't match!, loc1[%d]=%d, loc2[%d]=%d\n", __LINE__, i,
- (int)loc1[i], i, (int)loc2[i]);
- HDprintf("wbuf=%p, tbuf=%p, rbuf=%p, tbuf2=%p\n", (void *)wbuf, (void *)tbuf, (void *)rbuf,
- (void *)tbuf2);
+ printf("%d: hyperslab values don't match!, loc1[%d]=%d, loc2[%d]=%d\n", __LINE__, i, (int)loc1[i],
+ i, (int)loc2[i]);
+ printf("wbuf=%p, tbuf=%p, rbuf=%p, tbuf2=%p\n", (void *)wbuf, (void *)tbuf, (void *)rbuf,
+ (void *)tbuf2);
TestErrPrintf("*tbuf=%u, *tbuf2=%u\n", (unsigned)*tbuf, (unsigned)*tbuf2);
} /* end if */
} /* end for */
@@ -1415,8 +1415,8 @@ test_select_hyper_stride(hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_stride() */
/****************************************************************
@@ -1446,10 +1446,10 @@ test_select_hyper_contig(hid_t dset_type, hid_t xfer_plist)
MESSAGE(5, ("Testing Contiguous Hyperslabs Functionality\n"));
/* Allocate write & read buffers */
- wbuf = (uint16_t *)HDmalloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint16_t *)HDcalloc(sizeof(uint16_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint16_t *)malloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -1537,7 +1537,7 @@ test_select_hyper_contig(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, wbuf, sizeof(uint16_t) * 30 * 12) != 0)
+ if (memcmp(rbuf, wbuf, sizeof(uint16_t) * 30 * 12) != 0)
TestErrPrintf("hyperslab values don't match! Line=%d\n", __LINE__);
/* Close memory dataspace */
@@ -1557,8 +1557,8 @@ test_select_hyper_contig(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_contig() */
/****************************************************************
@@ -1586,11 +1586,11 @@ test_select_hyper_contig2(hid_t dset_type, hid_t xfer_plist)
MESSAGE(5, ("Testing More Contiguous Hyperslabs Functionality\n"));
/* Allocate write & read buffers */
- wbuf = (uint16_t *)HDmalloc(sizeof(uint16_t) * SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint16_t *)HDcalloc(sizeof(uint16_t),
- (size_t)(SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint16_t *)malloc(sizeof(uint16_t) * SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf =
+ (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE8_DIM1; i++)
@@ -1680,7 +1680,7 @@ test_select_hyper_contig2(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, wbuf, sizeof(uint16_t) * 2 * SPACE8_DIM3 * SPACE8_DIM2 * SPACE8_DIM1) != 0)
+ if (memcmp(rbuf, wbuf, sizeof(uint16_t) * 2 * SPACE8_DIM3 * SPACE8_DIM2 * SPACE8_DIM1) != 0)
TestErrPrintf("Error: hyperslab values don't match!\n");
/* Close memory dataspace */
@@ -1700,8 +1700,8 @@ test_select_hyper_contig2(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_contig2() */
/****************************************************************
@@ -1732,11 +1732,11 @@ test_select_hyper_contig3(hid_t dset_type, hid_t xfer_plist)
MESSAGE(5, ("Testing Yet More Contiguous Hyperslabs Functionality\n"));
/* Allocate write & read buffers */
- wbuf = (uint16_t *)HDmalloc(sizeof(uint16_t) * SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint16_t *)HDcalloc(sizeof(uint16_t),
- (size_t)(SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint16_t *)malloc(sizeof(uint16_t) * SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf =
+ (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE8_DIM1 * SPACE8_DIM2 * SPACE8_DIM3 * SPACE8_DIM4));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE8_DIM4; i++)
@@ -1835,14 +1835,14 @@ test_select_hyper_contig3(hid_t dset_type, hid_t xfer_plist)
(k >= start[2] && k < (start[2] + count[2])) &&
(l >= start[3] && l < (start[3] + count[3]))) {
if (*tbuf != *tbuf2) {
- HDprintf("Error: hyperslab values don't match!\n");
+ printf("Error: hyperslab values don't match!\n");
TestErrPrintf("Line: %d, i=%u, j=%u, k=%u, l=%u, *tbuf=%u,*tbuf2=%u\n", __LINE__,
i, j, k, l, (unsigned)*tbuf, (unsigned)*tbuf2);
} /* end if */
} /* end if */
else {
if (*tbuf2 != 0) {
- HDprintf("Error: invalid data in read buffer!\n");
+ printf("Error: invalid data in read buffer!\n");
TestErrPrintf("Line: %d, i=%u, j=%u, k=%u, l=%u, *tbuf=%u,*tbuf2=%u\n", __LINE__,
i, j, k, l, (unsigned)*tbuf, (unsigned)*tbuf2);
} /* end if */
@@ -1865,8 +1865,8 @@ test_select_hyper_contig3(hid_t dset_type, hid_t xfer_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_contig3() */
#if 0
@@ -1886,8 +1886,8 @@ verify_select_hyper_contig_dr__run_test(const uint16_t *cube_buf, size_t cube_si
size_t s; /* Local index variable */
hbool_t mis_match; /* Flag to indicate mismatch in expected value */
- HDassert(cube_buf);
- HDassert(cube_size > 0);
+ assert(cube_buf);
+ assert(cube_size > 0);
expected_value = 0;
mis_match = FALSE;
@@ -1904,7 +1904,7 @@ verify_select_hyper_contig_dr__run_test(const uint16_t *cube_buf, size_t cube_si
m = 0;
do {
/* Sanity check */
- HDassert(s < cube_size);
+ assert(s < cube_size);
/* Check for correct value */
if (*cube_ptr != expected_value)
@@ -1980,12 +1980,12 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
MESSAGE(7, ("\tranks = %u/%u, edge_size = %u, chunk_edge_size = %u.\n", small_rank, large_rank, edge_size,
chunk_edge_size));
- HDassert(edge_size >= 6);
- HDassert(edge_size >= chunk_edge_size);
- HDassert((chunk_edge_size == 0) || (chunk_edge_size >= 3));
- HDassert(small_rank > 0);
- HDassert(small_rank < large_rank);
- HDassert(large_rank <= SS_DR_MAX_RANK);
+ assert(edge_size >= 6);
+ assert(edge_size >= chunk_edge_size);
+ assert((chunk_edge_size == 0) || (chunk_edge_size >= 3));
+ assert(small_rank > 0);
+ assert(small_rank < large_rank);
+ assert(large_rank <= SS_DR_MAX_RANK);
/* Compute cube sizes */
small_cube_size = large_cube_size = (size_t)1;
@@ -1996,7 +1996,7 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
large_cube_size *= (size_t)edge_size;
} /* end for */
- HDassert(large_cube_size < (size_t)UINT_MAX);
+ assert(large_cube_size < (size_t)UINT_MAX);
/* set up the start, stride, count, and block pointers */
start_ptr = &(start[SS_DR_MAX_RANK - large_rank]);
@@ -2005,10 +2005,10 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
block_ptr = &(block[SS_DR_MAX_RANK - large_rank]);
/* Allocate buffers */
- small_cube_buf_1 = (uint16_t *)HDcalloc(sizeof(uint16_t), small_cube_size);
- CHECK_PTR(small_cube_buf_1, "HDcalloc");
- large_cube_buf_1 = (uint16_t *)HDcalloc(sizeof(uint16_t), large_cube_size);
- CHECK_PTR(large_cube_buf_1, "HDcalloc");
+ small_cube_buf_1 = (uint16_t *)calloc(sizeof(uint16_t), small_cube_size);
+ CHECK_PTR(small_cube_buf_1, "calloc");
+ large_cube_buf_1 = (uint16_t *)calloc(sizeof(uint16_t), large_cube_size);
+ CHECK_PTR(large_cube_buf_1, "calloc");
/* Create a dataset transfer property list */
fapl = H5Pcreate(H5P_FILE_ACCESS);
@@ -2199,7 +2199,7 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
*/
/* zero out the in-memory large cube */
- HDmemset(large_cube_buf_1, 0, large_cube_size * sizeof(uint16_t));
+ memset(large_cube_buf_1, 0, large_cube_size * sizeof(uint16_t));
u = 0;
do {
@@ -2242,8 +2242,8 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
(x * edge_size);
stop_index = start_index + small_cube_size - 1;
- HDassert(start_index < stop_index);
- HDassert(stop_index <= large_cube_size);
+ assert(start_index < stop_index);
+ assert(stop_index <= large_cube_size);
mis_match = FALSE;
ptr_1 = large_cube_buf_1;
@@ -2268,7 +2268,7 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
TestErrPrintf("large cube read from small cube has bad data! Line=%u\n", __LINE__);
/* Zero out the buffer for the next pass */
- HDmemset(large_cube_buf_1 + start_index, 0, small_cube_size * sizeof(uint16_t));
+ memset(large_cube_buf_1 + start_index, 0, small_cube_size * sizeof(uint16_t));
x++;
} while ((large_rank >= 2) && (small_rank <= 1) && (x < edge_size));
@@ -2436,8 +2436,8 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
(x * edge_size);
stop_index = start_index + small_cube_size - 1;
- HDassert(start_index < stop_index);
- HDassert(stop_index <= large_cube_size);
+ assert(start_index < stop_index);
+ assert(stop_index <= large_cube_size);
mis_match = FALSE;
ptr_1 = large_cube_buf_1;
@@ -2493,8 +2493,8 @@ test_select_hyper_contig_dr__run_test(int test_num, const uint16_t *cube_buf, co
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(small_cube_buf_1);
- HDfree(large_cube_buf_1);
+ free(small_cube_buf_1);
+ free(large_cube_buf_1);
} /* test_select_hyper_contig_dr__run_test() */
#endif
@@ -2533,8 +2533,8 @@ test_select_hyper_contig_dr(hid_t dset_type, hid_t xfer_plist)
max_cube_size *= (size_t)edge_size;
/* Allocate cube buffer for writing values */
- cube_buf = (uint16_t *)HDmalloc(sizeof(uint16_t) * max_cube_size);
- CHECK_PTR(cube_buf, "HDmalloc");
+ cube_buf = (uint16_t *)malloc(sizeof(uint16_t) * max_cube_size);
+ CHECK_PTR(cube_buf, "malloc");
/* Initialize the cube buffer */
cube_ptr = cube_buf;
@@ -2542,8 +2542,8 @@ test_select_hyper_contig_dr(hid_t dset_type, hid_t xfer_plist)
*cube_ptr++ = (uint16_t)s;
/* Allocate cube buffer for zeroing values on disk */
- zero_buf = (uint16_t *)HDcalloc(sizeof(uint16_t), max_cube_size);
- CHECK_PTR(zero_buf, "HDcalloc");
+ zero_buf = (uint16_t *)calloc(sizeof(uint16_t), max_cube_size);
+ CHECK_PTR(zero_buf, "calloc");
for (large_rank = 1; large_rank <= max_rank; large_rank++) {
for (small_rank = 1; small_rank < large_rank; small_rank++) {
@@ -2559,8 +2559,8 @@ test_select_hyper_contig_dr(hid_t dset_type, hid_t xfer_plist)
} /* for loop on small rank */
} /* for loop on large rank */
- HDfree(cube_buf);
- HDfree(zero_buf);
+ free(cube_buf);
+ free(zero_buf);
} /* test_select_hyper_contig_dr() */
#endif
@@ -2603,16 +2603,16 @@ test_select_hyper_checker_board_dr__select_checker_board(hid_t tgt_n_cube_sid, u
unsigned u; /* Local index variables */
herr_t ret; /* Generic return value */
- HDassert(edge_size >= 6);
- HDassert(0 < checker_edge_size);
- HDassert(checker_edge_size <= edge_size);
- HDassert(0 < sel_rank);
- HDassert(sel_rank <= tgt_n_cube_rank);
- HDassert(tgt_n_cube_rank <= SS_DR_MAX_RANK);
+ assert(edge_size >= 6);
+ assert(0 < checker_edge_size);
+ assert(checker_edge_size <= edge_size);
+ assert(0 < sel_rank);
+ assert(sel_rank <= tgt_n_cube_rank);
+ assert(tgt_n_cube_rank <= SS_DR_MAX_RANK);
sel_offset = SS_DR_MAX_RANK - sel_rank;
n_cube_offset = SS_DR_MAX_RANK - tgt_n_cube_rank;
- HDassert(n_cube_offset <= sel_offset);
+ assert(n_cube_offset <= sel_offset);
/* First, compute the base count (which assumes start == 0
* for the associated offset) and offset_count (which
@@ -2827,13 +2827,13 @@ test_select_hyper_checker_board_dr__verify_data(uint16_t *buf_ptr, unsigned rank
unsigned v, w, x, y, z; /* to track position in checker */
const unsigned test_max_rank = 5; /* code changes needed if this is increased */
- HDassert(buf_ptr != NULL);
- HDassert(0 < rank);
- HDassert(rank <= test_max_rank);
- HDassert(edge_size >= 6);
- HDassert(0 < checker_edge_size);
- HDassert(checker_edge_size <= edge_size);
- HDassert(test_max_rank <= SS_DR_MAX_RANK);
+ assert(buf_ptr != NULL);
+ assert(0 < rank);
+ assert(rank <= test_max_rank);
+ assert(edge_size >= 6);
+ assert(0 < checker_edge_size);
+ assert(checker_edge_size <= edge_size);
+ assert(test_max_rank <= SS_DR_MAX_RANK);
val_ptr = buf_ptr;
expected_value = first_expected_val;
@@ -2966,15 +2966,15 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
MESSAGE(7, ("\tranks = %d/%d, edge_size = %d, checker_edge_size = %d, chunk_edge_size = %d.\n",
small_rank, large_rank, edge_size, checker_edge_size, chunk_edge_size));
- HDassert(edge_size >= 6);
- HDassert(checker_edge_size > 0);
- HDassert(checker_edge_size <= edge_size);
- HDassert(edge_size >= chunk_edge_size);
- HDassert((chunk_edge_size == 0) || (chunk_edge_size >= 3));
- HDassert(small_rank > 0);
- HDassert(small_rank < large_rank);
- HDassert(large_rank <= test_max_rank);
- HDassert(test_max_rank <= SS_DR_MAX_RANK);
+ assert(edge_size >= 6);
+ assert(checker_edge_size > 0);
+ assert(checker_edge_size <= edge_size);
+ assert(edge_size >= chunk_edge_size);
+ assert((chunk_edge_size == 0) || (chunk_edge_size >= 3));
+ assert(small_rank > 0);
+ assert(small_rank < large_rank);
+ assert(large_rank <= test_max_rank);
+ assert(test_max_rank <= SS_DR_MAX_RANK);
/* Compute cube sizes */
small_cube_size = large_cube_size = (size_t)1;
@@ -2984,22 +2984,22 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
large_cube_size *= (size_t)edge_size;
} /* end for */
- HDassert(large_cube_size < (size_t)(UINT_MAX));
+ assert(large_cube_size < (size_t)(UINT_MAX));
small_rank_offset = test_max_rank - small_rank;
- HDassert(small_rank_offset >= 1);
+ assert(small_rank_offset >= 1);
/* also, at present, we use 16 bit values in this test --
* hence the following assertion. Delete it if we convert
* to 32 bit values.
*/
- HDassert(large_cube_size < (size_t)(64 * 1024));
+ assert(large_cube_size < (size_t)(64 * 1024));
/* Allocate & initialize buffers */
- small_cube_buf_1 = (uint16_t *)HDcalloc(sizeof(uint16_t), small_cube_size);
- CHECK_PTR(small_cube_buf_1, "HDcalloc");
- large_cube_buf_1 = (uint16_t *)HDcalloc(sizeof(uint16_t), large_cube_size);
- CHECK_PTR(large_cube_buf_1, "HDcalloc");
+ small_cube_buf_1 = (uint16_t *)calloc(sizeof(uint16_t), small_cube_size);
+ CHECK_PTR(small_cube_buf_1, "calloc");
+ large_cube_buf_1 = (uint16_t *)calloc(sizeof(uint16_t), large_cube_size);
+ CHECK_PTR(large_cube_buf_1, "calloc");
/* Create a dataset transfer property list */
fapl = H5Pcreate(H5P_FILE_ACCESS);
@@ -3160,11 +3160,11 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
* need for another inner loop.
*/
- HDassert((sel_start[0] == 0) || (0 < small_rank_offset));
- HDassert((sel_start[1] == 0) || (1 < small_rank_offset));
- HDassert((sel_start[2] == 0) || (2 < small_rank_offset));
- HDassert((sel_start[3] == 0) || (3 < small_rank_offset));
- HDassert((sel_start[4] == 0) || (4 < small_rank_offset));
+ assert((sel_start[0] == 0) || (0 < small_rank_offset));
+ assert((sel_start[1] == 0) || (1 < small_rank_offset));
+ assert((sel_start[2] == 0) || (2 < small_rank_offset));
+ assert((sel_start[3] == 0) || (3 < small_rank_offset));
+ assert((sel_start[4] == 0) || (4 < small_rank_offset));
test_select_hyper_checker_board_dr__select_checker_board(
file_large_cube_sid, large_rank, edge_size, checker_edge_size, small_rank, sel_start);
@@ -3176,7 +3176,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
VERIFY(check, TRUE, "H5Sselect_shape_same");
/* zero the buffer that we will be using for reading */
- HDmemset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
+ memset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
/* Read selection from disk */
ret = H5Dread(large_cube_dataset, H5T_NATIVE_UINT16, mem_small_cube_sid,
@@ -3240,11 +3240,11 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
* need for another inner loop.
*/
- HDassert((sel_start[0] == 0) || (0 < small_rank_offset));
- HDassert((sel_start[1] == 0) || (1 < small_rank_offset));
- HDassert((sel_start[2] == 0) || (2 < small_rank_offset));
- HDassert((sel_start[3] == 0) || (3 < small_rank_offset));
- HDassert((sel_start[4] == 0) || (4 < small_rank_offset));
+ assert((sel_start[0] == 0) || (0 < small_rank_offset));
+ assert((sel_start[1] == 0) || (1 < small_rank_offset));
+ assert((sel_start[2] == 0) || (2 < small_rank_offset));
+ assert((sel_start[3] == 0) || (3 < small_rank_offset));
+ assert((sel_start[4] == 0) || (4 < small_rank_offset));
test_select_hyper_checker_board_dr__select_checker_board(
mem_large_cube_sid, large_rank, edge_size, checker_edge_size, small_rank, sel_start);
@@ -3256,7 +3256,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
VERIFY(check, TRUE, "H5Sselect_shape_same");
/* zero out the in memory large cube */
- HDmemset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
+ memset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
/* Read selection from disk */
ret = H5Dread(small_cube_dataset, H5T_NATIVE_UINT16, mem_large_cube_sid,
@@ -3274,8 +3274,8 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
(x * edge_size);
stop_index = start_index + small_cube_size - 1;
- HDassert(start_index < stop_index);
- HDassert(stop_index <= large_cube_size);
+ assert(start_index < stop_index);
+ assert(stop_index <= large_cube_size);
/* verify that the large cube contains only zeros before the slice */
for (s = 0; s < start_index; s++) {
@@ -3283,7 +3283,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
data_ok = FALSE;
ptr_1++;
} /* end for */
- HDassert(s == start_index);
+ assert(s == start_index);
data_ok &= test_select_hyper_checker_board_dr__verify_data(
ptr_1, small_rank, edge_size, checker_edge_size, (uint16_t)0, (hbool_t)TRUE);
@@ -3291,7 +3291,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
ptr_1 += small_cube_size;
s += small_cube_size;
- HDassert(s == stop_index + 1);
+ assert(s == stop_index + 1);
/* verify that the large cube contains only zeros after the slice */
for (s = stop_index + 1; s < large_cube_size; s++) {
@@ -3360,11 +3360,11 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
* need for another inner loop.
*/
- HDassert((sel_start[0] == 0) || (0 < small_rank_offset));
- HDassert((sel_start[1] == 0) || (1 < small_rank_offset));
- HDassert((sel_start[2] == 0) || (2 < small_rank_offset));
- HDassert((sel_start[3] == 0) || (3 < small_rank_offset));
- HDassert((sel_start[4] == 0) || (4 < small_rank_offset));
+ assert((sel_start[0] == 0) || (0 < small_rank_offset));
+ assert((sel_start[1] == 0) || (1 < small_rank_offset));
+ assert((sel_start[2] == 0) || (2 < small_rank_offset));
+ assert((sel_start[3] == 0) || (3 < small_rank_offset));
+ assert((sel_start[4] == 0) || (4 < small_rank_offset));
test_select_hyper_checker_board_dr__select_checker_board(
mem_large_cube_sid, large_rank, edge_size, checker_edge_size, small_rank, sel_start);
@@ -3383,7 +3383,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
CHECK(ret, FAIL, "H5Dwrite");
/* zero the buffer that we will be using for reading */
- HDmemset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
+ memset(small_cube_buf_1, 0, sizeof(*small_cube_buf_1) * small_cube_size);
/* read the on disk small cube into memory */
ret = H5Dread(small_cube_dataset, H5T_NATIVE_UINT16, full_small_cube_sid,
@@ -3455,11 +3455,11 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
* need for another inner loop.
*/
- HDassert((sel_start[0] == 0) || (0 < small_rank_offset));
- HDassert((sel_start[1] == 0) || (1 < small_rank_offset));
- HDassert((sel_start[2] == 0) || (2 < small_rank_offset));
- HDassert((sel_start[3] == 0) || (3 < small_rank_offset));
- HDassert((sel_start[4] == 0) || (4 < small_rank_offset));
+ assert((sel_start[0] == 0) || (0 < small_rank_offset));
+ assert((sel_start[1] == 0) || (1 < small_rank_offset));
+ assert((sel_start[2] == 0) || (2 < small_rank_offset));
+ assert((sel_start[3] == 0) || (3 < small_rank_offset));
+ assert((sel_start[4] == 0) || (4 < small_rank_offset));
test_select_hyper_checker_board_dr__select_checker_board(
file_large_cube_sid, large_rank, edge_size, checker_edge_size, small_rank, sel_start);
@@ -3479,7 +3479,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
CHECK(ret, FAIL, "H5Dwrite");
/* zero out the in memory large cube */
- HDmemset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
+ memset(large_cube_buf_1, 0, sizeof(*large_cube_buf_1) * large_cube_size);
/* read the on disk large cube into memory */
ret = H5Dread(large_cube_dataset, H5T_NATIVE_UINT16, full_large_cube_sid,
@@ -3498,8 +3498,8 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
(x * edge_size);
stop_index = start_index + small_cube_size - 1;
- HDassert(start_index < stop_index);
- HDassert(stop_index <= large_cube_size);
+ assert(start_index < stop_index);
+ assert(stop_index <= large_cube_size);
/* verify that the large cube contains only zeros before the slice */
for (s = 0; s < start_index; s++) {
@@ -3507,7 +3507,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
data_ok = FALSE;
ptr_1++;
} /* end for */
- HDassert(s == start_index);
+ assert(s == start_index);
/* verify that the slice contains the expected data */
data_ok &= test_select_hyper_checker_board_dr__verify_data(
@@ -3516,7 +3516,7 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
ptr_1 += small_cube_size;
s += small_cube_size;
- HDassert(s == stop_index + 1);
+ assert(s == stop_index + 1);
/* verify that the large cube contains only zeros after the slice */
for (s = stop_index + 1; s < large_cube_size; s++) {
@@ -3571,8 +3571,8 @@ test_select_hyper_checker_board_dr__run_test(int test_num, const uint16_t *cube_
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(small_cube_buf_1);
- HDfree(large_cube_buf_1);
+ free(small_cube_buf_1);
+ free(large_cube_buf_1);
} /* test_select_hyper_checker_board_dr__run_test() */
#endif
@@ -3615,8 +3615,8 @@ test_select_hyper_checker_board_dr(hid_t dset_type, hid_t xfer_plist)
max_cube_size *= (size_t)(edge_size + 1);
/* Allocate cube buffer for writing values */
- cube_buf = (uint16_t *)HDmalloc(sizeof(uint16_t) * max_cube_size);
- CHECK_PTR(cube_buf, "HDmalloc");
+ cube_buf = (uint16_t *)malloc(sizeof(uint16_t) * max_cube_size);
+ CHECK_PTR(cube_buf, "malloc");
/* Initialize the cube buffer */
cube_ptr = cube_buf;
@@ -3624,8 +3624,8 @@ test_select_hyper_checker_board_dr(hid_t dset_type, hid_t xfer_plist)
*cube_ptr++ = (uint16_t)s;
/* Allocate cube buffer for zeroing values on disk */
- zero_buf = (uint16_t *)HDcalloc(sizeof(uint16_t), max_cube_size);
- CHECK_PTR(zero_buf, "HDcalloc");
+ zero_buf = (uint16_t *)calloc(sizeof(uint16_t), max_cube_size);
+ CHECK_PTR(zero_buf, "calloc");
for (large_rank = 1; large_rank <= max_rank; large_rank++) {
for (small_rank = 1; small_rank < large_rank; small_rank++) {
@@ -3653,8 +3653,8 @@ test_select_hyper_checker_board_dr(hid_t dset_type, hid_t xfer_plist)
} /* for loop on small rank */
} /* for loop on large rank */
- HDfree(cube_buf);
- HDfree(zero_buf);
+ free(cube_buf);
+ free(zero_buf);
} /* test_select_hyper_checker_board_dr() */
#endif
@@ -3688,12 +3688,12 @@ test_select_hyper_copy(void)
MESSAGE(5, ("Testing Hyperslabs with Strides Functionality\n"));
/* Allocate write & read buffers */
- wbuf = (uint16_t *)HDmalloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint16_t *)HDcalloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
- rbuf2 = (uint16_t *)HDcalloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf2, "HDcalloc");
+ wbuf = (uint16_t *)malloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
+ rbuf2 = (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf2, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -3797,7 +3797,7 @@ test_select_hyper_copy(void)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
+ if (memcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
TestErrPrintf("hyperslab values don't match! Line=%d\n", __LINE__);
/* Close memory dataspace */
@@ -3825,9 +3825,9 @@ test_select_hyper_copy(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(rbuf2);
+ free(wbuf);
+ free(rbuf);
+ free(rbuf2);
} /* test_select_hyper_copy() */
/****************************************************************
@@ -3859,12 +3859,12 @@ test_select_point_copy(void)
MESSAGE(5, ("Testing Hyperslabs with Strides Functionality\n"));
/* Allocate write & read buffers */
- wbuf = (uint16_t *)HDmalloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint16_t *)HDcalloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
- rbuf2 = (uint16_t *)HDcalloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf2, "HDcalloc");
+ wbuf = (uint16_t *)malloc(sizeof(uint16_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
+ rbuf2 = (uint16_t *)calloc(sizeof(uint16_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf2, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -4010,7 +4010,7 @@ test_select_point_copy(void)
CHECK(ret, FAIL, "H5Dread");
/* Compare data read with data written out */
- if (HDmemcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
+ if (memcmp(rbuf, rbuf2, sizeof(uint16_t) * SPACE3_DIM1 * SPACE3_DIM2) != 0)
TestErrPrintf("point values don't match!\n");
/* Close memory dataspace */
@@ -4038,9 +4038,9 @@ test_select_point_copy(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
- HDfree(rbuf2);
+ free(wbuf);
+ free(rbuf);
+ free(rbuf2);
} /* test_select_point_copy() */
/****************************************************************
@@ -4077,10 +4077,10 @@ test_select_hyper_offset(void)
MESSAGE(5, ("Testing Hyperslab Selection Functions with Offsets\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -4226,8 +4226,8 @@ test_select_hyper_offset(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_offset() */
/****************************************************************
@@ -4259,10 +4259,10 @@ test_select_hyper_offset2(void)
MESSAGE(5, ("Testing More Hyperslab Selection Functions with Offsets\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE7_DIM1 * SPACE7_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE7_DIM1 * SPACE7_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE7_DIM1; i++)
@@ -4353,8 +4353,8 @@ test_select_hyper_offset2(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_offset2() */
/****************************************************************
@@ -4389,10 +4389,10 @@ test_select_point_offset(void)
MESSAGE(5, ("Testing Element Selection Functions\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -4573,8 +4573,8 @@ test_select_point_offset(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_point_offset() */
/****************************************************************
@@ -4616,10 +4616,10 @@ test_select_hyper_union(void)
MESSAGE(5, ("Testing Hyperslab Selection Functions with unions of hyperslabs\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE3_DIM1 * SPACE3_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -5199,8 +5199,8 @@ test_select_hyper_union(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_union() */
/****************************************************************
@@ -5271,7 +5271,7 @@ test_select_hyper_union_stagger(void)
CHECK(error, FAIL, "H5Fclose");
/* Initialize input buffer */
- HDmemset(data_out, 0, 7 * 7 * sizeof(int));
+ memset(data_out, 0, 7 * 7 * sizeof(int));
/* Open file */
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
@@ -5316,10 +5316,10 @@ test_select_hyper_union_stagger(void)
/* Verify input data */
for (i = 0; i < 8; i++) {
if (data[input_loc[i][0]][input_loc[i][1]] != data_out[output_loc[i][0]][output_loc[i][1]]) {
- HDprintf("input data #%d is wrong!\n", i);
- HDprintf("input_loc=[%d][%d]\n", input_loc[i][0], input_loc[i][1]);
- HDprintf("output_loc=[%d][%d]\n", output_loc[i][0], output_loc[i][1]);
- HDprintf("data=%d\n", data[input_loc[i][0]][input_loc[i][1]]);
+ printf("input data #%d is wrong!\n", i);
+ printf("input_loc=[%d][%d]\n", input_loc[i][0], input_loc[i][1]);
+ printf("output_loc=[%d][%d]\n", output_loc[i][0], output_loc[i][1]);
+ printf("data=%d\n", data[input_loc[i][0]][input_loc[i][1]]);
TestErrPrintf("data_out=%d\n", data_out[output_loc[i][0]][output_loc[i][1]]);
} /* end if */
} /* end for */
@@ -5394,10 +5394,10 @@ test_select_hyper_union_3d(void)
MESSAGE(5, ("Testing Hyperslab Selection Functions with unions of 3-D hyperslabs\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE4_DIM1 * SPACE4_DIM2 * SPACE4_DIM3);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), SPACE3_DIM1 * SPACE3_DIM2);
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE4_DIM1 * SPACE4_DIM2 * SPACE4_DIM3);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), SPACE3_DIM1 * SPACE3_DIM2);
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE4_DIM1; i++)
@@ -5538,8 +5538,8 @@ test_select_hyper_union_3d(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_union_3d() */
/****************************************************************
@@ -5569,7 +5569,7 @@ test_select_hyper_valid_combination(void)
/* Output message about test being performed */
MESSAGE(6, ("Testing Selection Combination Validity\n"));
- HDassert(SPACE9_DIM2 >= POINT1_NPOINTS);
+ assert(SPACE9_DIM2 >= POINT1_NPOINTS);
/* Create dataspace for single point selection */
single_pt_sid = H5Screate_simple(SPACE9_RANK, dims2D, NULL);
@@ -5718,10 +5718,10 @@ test_select_hyper_and_2d(void)
MESSAGE(5, ("Testing Hyperslab Selection Functions with intersection of 2-D hyperslabs\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -5795,14 +5795,14 @@ test_select_hyper_and_2d(void)
for (j = 0; j < SPACE2_DIM2; j++, tbuf++) {
if ((i >= 5 && i <= 9) && (j >= 5 && j <= 9)) {
if (*tbuf != *tbuf2)
- HDprintf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__,
- i, j, (int)*tbuf, (int)*tbuf2);
+ printf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__,
+ i, j, (int)*tbuf, (int)*tbuf2);
tbuf2++;
} /* end if */
else {
if (*tbuf != 0)
- HDprintf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j,
- (int)*tbuf);
+ printf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j,
+ (int)*tbuf);
} /* end else */
} /* end for */
@@ -5823,8 +5823,8 @@ test_select_hyper_and_2d(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_and_2d() */
/****************************************************************
@@ -5857,10 +5857,10 @@ test_select_hyper_xor_2d(void)
MESSAGE(5, ("Testing Hyperslab Selection Functions with XOR of 2-D hyperslabs\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -5936,14 +5936,14 @@ test_select_hyper_xor_2d(void)
((i >= 5 && i <= 9) && ((j >= 0 && j <= 4) || (j >= 10 && j <= 14))) ||
((i >= 10 && i <= 14) && (j >= 5 && j <= 14))) {
if (*tbuf != *tbuf2)
- HDprintf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__,
- i, j, (int)*tbuf, (int)*tbuf2);
+ printf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__,
+ i, j, (int)*tbuf, (int)*tbuf2);
tbuf2++;
} /* end if */
else {
if (*tbuf != 0)
- HDprintf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j,
- (int)*tbuf);
+ printf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j,
+ (int)*tbuf);
} /* end else */
} /* end for */
@@ -5964,8 +5964,8 @@ test_select_hyper_xor_2d(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_xor_2d() */
/****************************************************************
@@ -5998,10 +5998,10 @@ test_select_hyper_notb_2d(void)
MESSAGE(5, ("Testing Hyperslab Selection Functions with NOTB of 2-D hyperslabs\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -6075,14 +6075,14 @@ test_select_hyper_notb_2d(void)
for (j = 0; j < SPACE2_DIM2; j++, tbuf++) {
if (((i >= 0 && i <= 4) && (j >= 0 && j <= 9)) || ((i >= 5 && i <= 9) && (j >= 0 && j <= 4))) {
if (*tbuf != *tbuf2)
- HDprintf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__,
- i, j, (int)*tbuf, (int)*tbuf2);
+ printf("%d: hyperslab values don't match!, i=%d, j=%d, *tbuf=%d, *tbuf2=%d\n", __LINE__,
+ i, j, (int)*tbuf, (int)*tbuf2);
tbuf2++;
} /* end if */
else {
if (*tbuf != 0)
- HDprintf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j,
- (int)*tbuf);
+ printf("%d: hyperslab element has wrong value!, i=%d, j=%d, *tbuf=%d\n", __LINE__, i, j,
+ (int)*tbuf);
} /* end else */
} /* end for */
@@ -6103,8 +6103,8 @@ test_select_hyper_notb_2d(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_notb_2d() */
/****************************************************************
@@ -6137,10 +6137,10 @@ test_select_hyper_nota_2d(void)
MESSAGE(5, ("Testing Hyperslab Selection Functions with NOTA of 2-D hyperslabs\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE2_DIM1 * SPACE2_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), (size_t)(SPACE2_DIM1 * SPACE2_DIM2));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE2_DIM1; i++)
@@ -6243,8 +6243,8 @@ test_select_hyper_nota_2d(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_nota_2d() */
/****************************************************************
@@ -6262,14 +6262,14 @@ test_select_hyper_iter2(void *_elem, hid_t H5_ATTR_UNUSED type_id, unsigned ndim
if (*tbuf != **tbuf2) {
TestErrPrintf("Error in hyperslab iteration!\n");
- HDprintf("location: { ");
+ printf("location: { ");
for (u = 0; u < ndim; u++) {
- HDprintf("%2d", (int)point[u]);
+ printf("%2d", (int)point[u]);
if (u < (ndim - 1))
- HDprintf(", ");
+ printf(", ");
} /* end for */
- HDprintf("}\n");
- HDprintf("*tbuf=%d, **tbuf2=%d\n", *tbuf, **tbuf2);
+ printf("}\n");
+ printf("*tbuf=%d, **tbuf2=%d\n", *tbuf, **tbuf2);
return (-1);
} /* end if */
else {
@@ -6308,11 +6308,11 @@ test_select_hyper_union_random_5d(hid_t read_plist)
MESSAGE(5, ("Testing Hyperslab Selection Functions with random unions of 5-D hyperslabs\n"));
/* Allocate write & read buffers */
- wbuf = (int *)HDmalloc(sizeof(int) * SPACE5_DIM1 * SPACE5_DIM2 * SPACE5_DIM3 * SPACE5_DIM4 * SPACE5_DIM5);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (int *)HDcalloc(sizeof(int),
- (size_t)(SPACE5_DIM1 * SPACE5_DIM2 * SPACE5_DIM3 * SPACE5_DIM4 * SPACE5_DIM5));
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (int *)malloc(sizeof(int) * SPACE5_DIM1 * SPACE5_DIM2 * SPACE5_DIM3 * SPACE5_DIM4 * SPACE5_DIM5);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (int *)calloc(sizeof(int),
+ (size_t)(SPACE5_DIM1 * SPACE5_DIM2 * SPACE5_DIM3 * SPACE5_DIM4 * SPACE5_DIM5));
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE5_DIM1; i++)
@@ -6401,7 +6401,7 @@ test_select_hyper_union_random_5d(hid_t read_plist)
} /* end if */
/* Set the read buffer back to all zeroes */
- HDmemset(rbuf, 0, (size_t)SPACE6_DIM1);
+ memset(rbuf, 0, (size_t)SPACE6_DIM1);
} /* end for */
/* Close memory dataspace */
@@ -6421,8 +6421,8 @@ test_select_hyper_union_random_5d(hid_t read_plist)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_union_random_5d() */
/****************************************************************
@@ -6463,10 +6463,10 @@ test_select_hyper_chunk(hid_t fapl_plist, hid_t xfer_plist)
MESSAGE(5, ("Testing Hyperslab I/O on Large Chunks\n"));
/* Allocate the transfer buffers */
- data = (short *)HDmalloc(sizeof(short) * X * Y * Z);
- CHECK_PTR(data, "HDmalloc");
- data_out = (short *)HDcalloc((size_t)(NX * NY * NZ), sizeof(short));
- CHECK_PTR(data_out, "HDcalloc");
+ data = (short *)malloc(sizeof(short) * X * Y * Z);
+ CHECK_PTR(data, "malloc");
+ data_out = (short *)calloc((size_t)(NX * NY * NZ), sizeof(short));
+ CHECK_PTR(data_out, "calloc");
/*
* Data buffer initialization.
@@ -6647,8 +6647,8 @@ test_select_hyper_chunk(hid_t fapl_plist, hid_t xfer_plist)
CHECK(status, FAIL, "H5Sclose");
status = H5Fclose(file);
CHECK(status, FAIL, "H5Fclose");
- HDfree(data);
- HDfree(data_out);
+ free(data);
+ free(data_out);
} /* test_select_hyper_chunk() */
/****************************************************************
@@ -6689,10 +6689,10 @@ test_select_point_chunk(void)
MESSAGE(5, ("Testing Point Selections on Chunked Datasets\n"));
/* Allocate the transfer buffers */
- data = (unsigned *)HDmalloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(data, "HDmalloc");
- data_out = (unsigned *)HDcalloc((size_t)(SPACE7_DIM1 * SPACE7_DIM2), sizeof(unsigned));
- CHECK_PTR(data_out, "HDcalloc");
+ data = (unsigned *)malloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(data, "malloc");
+ data_out = (unsigned *)calloc((size_t)(SPACE7_DIM1 * SPACE7_DIM2), sizeof(unsigned));
+ CHECK_PTR(data_out, "calloc");
/*
* Data buffer initialization.
@@ -6845,8 +6845,8 @@ test_select_point_chunk(void)
ret = H5Fclose(file);
CHECK(ret, FAIL, "H5Fclose");
- HDfree(data);
- HDfree(data_out);
+ free(data);
+ free(data_out);
} /* test_select_point_chunk() */
/****************************************************************
@@ -7133,7 +7133,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7168,7 +7168,7 @@ test_select_combine(void)
VERIFY(nblocks, 2, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7207,7 +7207,7 @@ test_select_combine(void)
VERIFY(nblocks, 2, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7266,7 +7266,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7321,7 +7321,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7376,7 +7376,7 @@ test_select_combine(void)
VERIFY(nblocks, 1, "H5Sget_select_hyper_nblocks");
/* Retrieve the block defined */
- HDmemset(blocks, -1, sizeof(blocks)); /* Reset block list */
+ memset(blocks, -1, sizeof(blocks)); /* Reset block list */
error = H5Sget_select_hyper_blocklist(space1, (hsize_t)0, (hsize_t)nblocks, (hsize_t *)blocks);
CHECK(error, FAIL, "H5Sget_select_hyper_blocklist");
@@ -7468,8 +7468,8 @@ test_select_fill_all(void)
MESSAGE(5, ("Testing Filling 'all' Selections\n"));
/* Allocate memory buffer */
- wbuf = (unsigned *)HDmalloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
+ wbuf = (unsigned *)malloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf, "malloc");
/* Initialize memory buffer */
for (u = 0, tbuf = wbuf; u < SPACE7_DIM1; u++)
@@ -7516,7 +7516,7 @@ test_select_fill_all(void)
CHECK(ret, FAIL, "H5Sclose");
/* Free memory buffers */
- HDfree(wbuf);
+ free(wbuf);
} /* test_select_fill_all() */
/****************************************************************
@@ -7544,8 +7544,8 @@ test_select_fill_point(hssize_t *offset)
MESSAGE(5, ("Testing Filling 'point' Selections\n"));
/* Allocate memory buffer */
- wbuf = (unsigned *)HDmalloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
+ wbuf = (unsigned *)malloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf, "malloc");
/* Initialize memory buffer */
for (u = 0, tbuf = wbuf; u < SPACE7_DIM1; u++)
@@ -7561,14 +7561,14 @@ test_select_fill_point(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_elements");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7614,7 +7614,7 @@ test_select_fill_point(hssize_t *offset)
CHECK(ret, FAIL, "H5Sclose");
/* Free memory buffers */
- HDfree(wbuf);
+ free(wbuf);
} /* test_select_fill_point() */
/****************************************************************
@@ -7644,8 +7644,8 @@ test_select_fill_hyper_simple(hssize_t *offset)
MESSAGE(5, ("Testing Filling Simple 'hyperslab' Selections\n"));
/* Allocate memory buffer */
- wbuf = (unsigned *)HDmalloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
+ wbuf = (unsigned *)malloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf, "malloc");
/* Initialize memory buffer */
for (u = 0, tbuf = wbuf; u < SPACE7_DIM1; u++)
@@ -7665,14 +7665,14 @@ test_select_fill_hyper_simple(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7720,7 +7720,7 @@ test_select_fill_hyper_simple(hssize_t *offset)
CHECK(ret, FAIL, "H5Sclose");
/* Free memory buffers */
- HDfree(wbuf);
+ free(wbuf);
} /* test_select_fill_hyper_simple() */
/****************************************************************
@@ -7755,8 +7755,8 @@ test_select_fill_hyper_regular(hssize_t *offset)
MESSAGE(5, ("Testing Filling Regular 'hyperslab' Selections\n"));
/* Allocate memory buffer */
- wbuf = (unsigned *)HDmalloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
+ wbuf = (unsigned *)malloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf, "malloc");
/* Initialize memory buffer */
for (u = 0, tbuf = wbuf; u < SPACE7_DIM1; u++)
@@ -7780,14 +7780,14 @@ test_select_fill_hyper_regular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7833,7 +7833,7 @@ test_select_fill_hyper_regular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sclose");
/* Free memory buffers */
- HDfree(wbuf);
+ free(wbuf);
} /* test_select_fill_hyper_regular() */
/****************************************************************
@@ -7875,8 +7875,8 @@ test_select_fill_hyper_irregular(hssize_t *offset)
MESSAGE(5, ("Testing Filling Irregular 'hyperslab' Selections\n"));
/* Allocate memory buffer */
- wbuf = (unsigned *)HDmalloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
+ wbuf = (unsigned *)malloc(sizeof(unsigned) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf, "malloc");
/* Initialize memory buffer */
for (u = 0, tbuf = wbuf; u < SPACE7_DIM1; u++)
@@ -7904,14 +7904,14 @@ test_select_fill_hyper_irregular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
if (offset != NULL) {
- HDmemcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
+ memcpy(real_offset, offset, SPACE7_RANK * sizeof(hssize_t));
/* Set offset, if provided */
ret = H5Soffset_simple(sid1, real_offset);
CHECK(ret, FAIL, "H5Soffset_simple");
} /* end if */
else
- HDmemset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
+ memset(real_offset, 0, SPACE7_RANK * sizeof(hssize_t));
/* Set fill value */
fill_value = SPACE7_FILL;
@@ -7957,7 +7957,7 @@ test_select_fill_hyper_irregular(hssize_t *offset)
CHECK(ret, FAIL, "H5Sclose");
/* Free memory buffers */
- HDfree(wbuf);
+ free(wbuf);
} /* test_select_fill_hyper_irregular() */
/****************************************************************
@@ -7984,10 +7984,10 @@ test_select_none(void)
MESSAGE(5, ("Testing I/O on 0-sized Selections\n"));
/* Allocate write & read buffers */
- wbuf = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (uint8_t *)HDcalloc(sizeof(uint8_t), SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (uint8_t *)malloc(sizeof(uint8_t) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (uint8_t *)calloc(sizeof(uint8_t), SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(rbuf, "calloc");
/* Initialize write buffer */
for (i = 0, tbuf = wbuf; i < SPACE7_DIM1; i++)
@@ -8054,8 +8054,8 @@ test_select_none(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_none() */
/****************************************************************
@@ -8087,10 +8087,10 @@ test_scalar_select(void)
MESSAGE(5, ("Testing I/O on Selections in Scalar Dataspaces\n"));
/* Allocate write & read buffers */
- wbuf_uint8 = (uint8_t *)HDmalloc(sizeof(uint8_t) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf_uint8, "HDmalloc");
- wbuf_ushort = (unsigned short *)HDmalloc(sizeof(unsigned short) * SPACE7_DIM1 * SPACE7_DIM2);
- CHECK_PTR(wbuf_ushort, "HDmalloc");
+ wbuf_uint8 = (uint8_t *)malloc(sizeof(uint8_t) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf_uint8, "malloc");
+ wbuf_ushort = (unsigned short *)malloc(sizeof(unsigned short) * SPACE7_DIM1 * SPACE7_DIM2);
+ CHECK_PTR(wbuf_ushort, "malloc");
/* Initialize write buffers */
for (i = 0, tbuf_uint8 = wbuf_uint8, tbuf_ushort = wbuf_ushort; i < SPACE7_DIM1; i++)
@@ -8213,8 +8213,8 @@ test_scalar_select(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free memory buffers */
- HDfree(wbuf_uint8);
- HDfree(wbuf_ushort);
+ free(wbuf_uint8);
+ free(wbuf_ushort);
} /* test_scalar_select() */
/****************************************************************
@@ -8459,7 +8459,7 @@ test_shape_same(void)
/* Output message about test being performed */
MESSAGE(6, ("Testing Same Shape Comparisons\n"));
- HDassert(SPACE9_DIM2 >= POINT1_NPOINTS);
+ assert(SPACE9_DIM2 >= POINT1_NPOINTS);
/* Create dataspace for "all" selection */
all_sid = H5Screate_simple(SPACE9_RANK, dims, NULL);
@@ -10912,13 +10912,13 @@ test_shape_same_dr__full_space_vs_slice(int test_num, int small_rank, int large_
htri_t check; /* Shape comparison return value */
herr_t ret; /* Generic return value */
- HDassert(0 < small_rank);
- HDassert(small_rank <= large_rank);
- HDassert(large_rank <= SS_DR_MAX_RANK);
- HDassert(0 <= offset);
- HDassert(offset < large_rank);
- HDassert(edge_size > 0);
- HDassert(edge_size <= 1000);
+ assert(0 < small_rank);
+ assert(small_rank <= large_rank);
+ assert(large_rank <= SS_DR_MAX_RANK);
+ assert(0 <= offset);
+ assert(offset < large_rank);
+ assert(edge_size > 0);
+ assert(edge_size <= 1000);
HDsnprintf(test_desc_0, sizeof(test_desc_0), "\tn-cube slice through m-cube (n <= m) test %d.\n",
test_num);
@@ -10970,7 +10970,7 @@ test_shape_same_dr__full_space_vs_slice(int test_num, int small_rank, int large_
*/
i = SS_DR_MAX_RANK - large_rank;
- HDassert(i >= 0);
+ assert(i >= 0);
start_ptr = &(start[i]);
stride_ptr = &(stride[i]);
@@ -11164,21 +11164,21 @@ test_shape_same_dr__checkerboard(int test_num, int small_rank, int large_rank, i
htri_t check; /* Shape comparison return value */
herr_t ret; /* Generic return value */
- HDassert(0 < small_rank);
- HDassert(small_rank <= large_rank);
- HDassert(large_rank <= SS_DR_MAX_RANK);
- HDassert(0 < checker_size);
- HDassert(checker_size <= edge_size);
- HDassert(edge_size <= 1000);
- HDassert(0 <= offset);
- HDassert(offset < (int)edge_size);
+ assert(0 < small_rank);
+ assert(small_rank <= large_rank);
+ assert(large_rank <= SS_DR_MAX_RANK);
+ assert(0 < checker_size);
+ assert(checker_size <= edge_size);
+ assert(edge_size <= 1000);
+ assert(0 <= offset);
+ assert(offset < (int)edge_size);
for (i = SS_DR_MAX_RANK - large_rank; i < SS_DR_MAX_RANK; i++)
if (dim_selected[i] == TRUE)
dims_selected++;
- HDassert(dims_selected >= 0);
- HDassert(dims_selected <= large_rank);
+ assert(dims_selected >= 0);
+ assert(dims_selected <= large_rank);
HDsnprintf(test_desc_0, sizeof(test_desc_0),
"\tcheckerboard n-cube slice through m-cube (n <= m) test %d.\n", test_num);
@@ -11367,7 +11367,7 @@ test_shape_same_dr__checkerboard(int test_num, int small_rank, int large_rank, i
*/
i = SS_DR_MAX_RANK - large_rank;
- HDassert(i >= 0);
+ assert(i >= 0);
start_ptr = &(start[i]);
stride_ptr = &(stride[i]);
@@ -11708,22 +11708,22 @@ test_shape_same_dr__irregular(int test_num, int small_rank, int large_rank, int
htri_t check; /* Shape comparison return value */
herr_t ret; /* Generic return value */
- HDassert(0 < small_rank);
- HDassert(small_rank <= large_rank);
- HDassert(large_rank <= SS_DR_MAX_RANK);
- HDassert(9 <= edge_size);
- HDassert(edge_size <= 1000);
- HDassert(0 <= slice_offset);
- HDassert(slice_offset < edge_size);
- HDassert(-2 <= pattern_offset);
- HDassert(pattern_offset <= 2);
+ assert(0 < small_rank);
+ assert(small_rank <= large_rank);
+ assert(large_rank <= SS_DR_MAX_RANK);
+ assert(9 <= edge_size);
+ assert(edge_size <= 1000);
+ assert(0 <= slice_offset);
+ assert(slice_offset < edge_size);
+ assert(-2 <= pattern_offset);
+ assert(pattern_offset <= 2);
for (i = SS_DR_MAX_RANK - large_rank; i < SS_DR_MAX_RANK; i++)
if (dim_selected[i] == TRUE)
dims_selected++;
- HDassert(dims_selected >= 0);
- HDassert(dims_selected <= large_rank);
+ assert(dims_selected >= 0);
+ assert(dims_selected <= large_rank);
HDsnprintf(test_desc_0, sizeof(test_desc_0),
"\tirregular sub set of n-cube slice through m-cube (n <= m) test %d.\n", test_num);
@@ -11821,7 +11821,7 @@ test_shape_same_dr__irregular(int test_num, int small_rank, int large_rank, int
*/
i = SS_DR_MAX_RANK - large_rank;
- HDassert(i >= 0);
+ assert(i >= 0);
start_ptr = &(start[i]);
stride_ptr = &(stride[i]);
@@ -13592,10 +13592,10 @@ test_select_hyper_chunk_offset(void)
MESSAGE(6, ("Testing hyperslab selections using offsets in chunked datasets\n"));
/* Allocate buffers */
- wbuf = (int *)HDmalloc(sizeof(int) * SPACE10_DIM1);
- CHECK_PTR(wbuf, "HDmalloc");
- rbuf = (int *)HDcalloc(sizeof(int), SPACE10_DIM1);
- CHECK_PTR(rbuf, "HDcalloc");
+ wbuf = (int *)malloc(sizeof(int) * SPACE10_DIM1);
+ CHECK_PTR(wbuf, "malloc");
+ rbuf = (int *)calloc(sizeof(int), SPACE10_DIM1);
+ CHECK_PTR(rbuf, "calloc");
/* Initialize the write buffer */
for (i = 0; i < SPACE10_DIM1; i++)
@@ -13775,8 +13775,8 @@ test_select_hyper_chunk_offset(void)
CHECK(ret, FAIL, "H5Fclose");
/* Free the buffers */
- HDfree(wbuf);
- HDfree(rbuf);
+ free(wbuf);
+ free(rbuf);
} /* test_select_hyper_chunk_offset() */
#endif
/****************************************************************
@@ -14327,14 +14327,14 @@ test_hyper_unlim_check(hid_t sid, hsize_t *dims, hssize_t endpoints, hssize_t en
hsize_t blocklist[12];
herr_t ret;
- HDassert(enblocks <= 2);
+ assert(enblocks <= 2);
/* Copy sid to lim_sid */
lim_sid = H5Scopy(sid);
CHECK(lim_sid, FAIL, "H5Scopy");
/* "And" lim_sid with dims to create limited selection */
- HDmemset(start, 0, sizeof(start));
+ memset(start, 0, sizeof(start));
ret = H5Sselect_hyperslab(lim_sid, H5S_SELECT_AND, start, NULL, dims, NULL);
CHECK(ret, FAIL, "H5Sselect_hyperslab");
@@ -14361,18 +14361,18 @@ test_hyper_unlim_check(hid_t sid, hsize_t *dims, hssize_t endpoints, hssize_t en
/* Verify blocklist */
if (nblocks == (hssize_t)1) {
- if (HDmemcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0)
+ if (memcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end if */
else {
- HDassert(nblocks == (hssize_t)2);
- if (HDmemcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0) {
- if (HDmemcmp(blocklist, eblock2, 6 * sizeof(eblock2[0])) != 0)
+ assert(nblocks == (hssize_t)2);
+ if (memcmp(blocklist, eblock1, 6 * sizeof(eblock1[0])) != 0) {
+ if (memcmp(blocklist, eblock2, 6 * sizeof(eblock2[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
- if (HDmemcmp(&blocklist[6], eblock1, 6 * sizeof(eblock1[0])) != 0)
+ if (memcmp(&blocklist[6], eblock1, 6 * sizeof(eblock1[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end if */
- else if (HDmemcmp(&blocklist[6], eblock2, 6 * sizeof(eblock2[0])) != 0)
+ else if (memcmp(&blocklist[6], eblock2, 6 * sizeof(eblock2[0])) != 0)
ERROR("H5Sget_select_hyper_blocklist");
} /* end else */
} /* end if */
@@ -14795,7 +14795,7 @@ test_internal_consistency(void)
/* Output message about test being performed */
MESSAGE(6, ("Testing Consistency of Internal States\n"));
- HDassert(SPACE9_DIM2 >= POINT1_NPOINTS);
+ assert(SPACE9_DIM2 >= POINT1_NPOINTS);
/* Create dataspace for "all" selection */
all_sid = H5Screate_simple(SPACE9_RANK, dims, NULL);
@@ -15144,7 +15144,7 @@ test_irreg_io(void)
CHECK(ret, FAIL, "H5Sselect_hyperslab");
/* Reset the buffer */
- HDmemset(rbuf, 0, sizeof(rbuf));
+ memset(rbuf, 0, sizeof(rbuf));
/* Read selection from disk */
ret = H5Dread(did, H5T_NATIVE_UCHAR, mem_sid, sid, H5P_DEFAULT, rbuf);
@@ -15362,7 +15362,7 @@ test_sel_iter(void)
case H5S_SEL_ERROR:
case H5S_SEL_N:
default:
- HDassert(0 && "Can't occur");
+ assert(0 && "Can't occur");
break;
} /* end switch */
@@ -15410,7 +15410,7 @@ test_sel_iter(void)
case H5S_SEL_ERROR:
case H5S_SEL_N:
default:
- HDassert(0 && "Can't occur");
+ assert(0 && "Can't occur");
break;
} /* end switch */
@@ -15481,7 +15481,7 @@ test_sel_iter(void)
case H5S_SEL_ERROR:
case H5S_SEL_N:
default:
- HDassert(0 && "Can't occur");
+ assert(0 && "Can't occur");
break;
} /* end switch */
@@ -15529,7 +15529,7 @@ test_sel_iter(void)
case H5S_SEL_ERROR:
case H5S_SEL_N:
default:
- HDassert(0 && "Can't occur");
+ assert(0 && "Can't occur");
break;
} /* end switch */
@@ -15567,7 +15567,7 @@ test_sel_iter(void)
case H5S_SEL_ERROR:
case H5S_SEL_N:
default:
- HDassert(0 && "Can't occur");
+ assert(0 && "Can't occur");
break;
} /* end switch */
@@ -16148,7 +16148,7 @@ test_select(void)
test_select_hyper_contig_dr(H5T_STD_U16BE, H5P_DEFAULT);
test_select_hyper_contig_dr(H5T_STD_U16BE, plist_id);
#else
- HDprintf("** SKIPPED a test due to file creation issues\n");
+ printf("** SKIPPED a test due to file creation issues\n");
#endif
#if 0
test_select_hyper_checker_board_dr(H5T_STD_U16LE, H5P_DEFAULT);
@@ -16156,7 +16156,7 @@ test_select(void)
test_select_hyper_checker_board_dr(H5T_STD_U16BE, H5P_DEFAULT);
test_select_hyper_checker_board_dr(H5T_STD_U16BE, plist_id);
#else
- HDprintf("** SKIPPED a test due to assertion in HDF5\n");
+ printf("** SKIPPED a test due to assertion in HDF5\n");
#endif
test_select_hyper_copy(); /* Test hyperslab selection copying code */
test_select_point_copy(); /* Test point selection copying code */
@@ -16261,7 +16261,7 @@ test_select(void)
test_select_hyper_chunk_offset();
test_select_hyper_chunk_offset2();
#else
- HDprintf("** SKIPPED a test due to assertion in HDF5\n");
+ printf("** SKIPPED a test due to assertion in HDF5\n");
#endif
/* Test selection bounds with & without offsets */
diff --git a/test/API/ttime.c b/test/API/ttime.c
index 74128fd..7735aad 100644
--- a/test/API/ttime.c
+++ b/test/API/ttime.c
@@ -176,13 +176,13 @@ test_time_io(void)
tid = H5Dget_type(dsid);
CHECK(tid, FAIL, "H5Dget_type");
if (H5Tget_class(tid) == H5T_TIME)
- HDfprintf(stderr, "datatype class is H5T_TIME\n");
+ fprintf(stderr, "datatype class is H5T_TIME\n");
status = H5Tclose(tid);
CHECK(status, FAIL, "H5Tclose");
status = H5Dread(dsid, H5T_UNIX_D32LE, H5S_ALL, H5S_ALL, H5P_DEFAULT, &timethen);
CHECK(status, FAIL, "H5Dread");
- HDfprintf(stderr, "time written was: %s\n", HDctime(&timethen));
+ fprintf(stderr, "time written was: %s\n", HDctime(&timethen));
status = H5Dclose(dsid);
CHECK(status, FAIL, "H5Dclose");
diff --git a/test/API/tunicode.c b/test/API/tunicode.c
index fa59456..93e28e3 100644
--- a/test/API/tunicode.c
+++ b/test/API/tunicode.c
@@ -152,7 +152,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
/* Create a src_type that holds the UTF-8 string and its final NULL */
big_len = length + 1; /* +1 byte for final NULL */
- HDassert((2 * big_len) <= sizeof(cmpbuf));
+ assert((2 * big_len) <= sizeof(cmpbuf));
src_type = mkstr(big_len, H5T_STR_NULLTERM);
CHECK(src_type, FAIL, "mkstr");
/* Create a dst_type that holds half of the UTF-8 string and a final
@@ -180,7 +180,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
cmpbuf[2 * small_len - 1] = '\0';
HDstrcpy(&cmpbuf[2 * small_len], new_string);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abc\0\0\0\0\0abc\0\0\0\0\0" */
@@ -188,12 +188,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with NULLs */
- HDmemset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len - 1);
HDstrncpy(&cmpbuf[big_len], new_string, small_len - 1);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -215,7 +215,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
/* Create a src_type that holds the UTF-8 string */
big_len = length;
- HDassert((2 * big_len) <= sizeof(cmpbuf));
+ assert((2 * big_len) <= sizeof(cmpbuf));
src_type = mkstr(big_len, H5T_STR_NULLPAD);
CHECK(src_type, FAIL, "mkstr");
/* Create a dst_type that holds half of the UTF-8 string */
@@ -240,7 +240,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
HDstrncpy(&cmpbuf[small_len], new_string, small_len);
HDstrncpy(&cmpbuf[2 * small_len], new_string, big_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abcd\0\0\0\0abcd\0\0\0\0" */
@@ -248,12 +248,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with NULLs */
- HDmemset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, '\0', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len);
HDstrncpy(&cmpbuf[big_len], new_string, small_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -285,7 +285,7 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
HDstrncpy(&cmpbuf[small_len], new_string, small_len);
HDstrncpy(&cmpbuf[2 * small_len], new_string, big_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
/* Now convert from smaller datatype to bigger datatype. This should
* leave our buffer looking like: "abcd abcd " */
@@ -293,12 +293,12 @@ test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string)
CHECK(ret, FAIL, "H5Tconvert");
/* First fill the buffer with spaces */
- HDmemset(cmpbuf, ' ', (size_t)LONG_BUF_SIZE);
+ memset(cmpbuf, ' ', (size_t)LONG_BUF_SIZE);
/* Copy in the characters */
HDstrncpy(cmpbuf, new_string, small_len);
HDstrncpy(&cmpbuf[big_len], new_string, small_len);
- VERIFY(HDmemcmp(buf, cmpbuf, 2 * big_len), 0, "HDmemcmp");
+ VERIFY(memcmp(buf, cmpbuf, 2 * big_len), 0, "memcmp");
ret = H5Tclose(src_type);
CHECK(ret, FAIL, "H5Tclose");
@@ -589,7 +589,7 @@ test_compound(hid_t fid, const char *string)
herr_t ret;
/* Initialize compound data */
- HDmemset(&s1, 0, sizeof(s1_t)); /* To make purify happy */
+ memset(&s1, 0, sizeof(s1_t)); /* To make purify happy */
s1.a = COMP_INT_VAL;
s1.c = COMP_DOUBLE_VAL;
s1.b = COMP_FLOAT_VAL;
@@ -783,15 +783,15 @@ dump_string(const char *string)
size_t length;
size_t x;
- HDprintf("The string was:\n %s", string);
- HDprintf("Or in hex:\n");
+ printf("The string was:\n %s", string);
+ printf("Or in hex:\n");
length = HDstrlen(string);
for (x = 0; x < length; x++)
- HDprintf("%x ", string[x] & (0x000000FF));
+ printf("%x ", string[x] & (0x000000FF));
- HDprintf("\n");
+ printf("\n");
}
/* Main test.
@@ -814,7 +814,7 @@ test_unicode(void)
/* Create a random string with length NUM_CHARS */
HDsrandom((unsigned)HDtime(NULL));
- HDmemset(test_string, 0, sizeof(test_string));
+ memset(test_string, 0, sizeof(test_string));
for (x = 0; x < NUM_CHARS; x++) {
/* We need to avoid unprintable characters (codes 0-31) and the
* . and / characters, since they aren't allowed in path names.
diff --git a/test/API/tvlstr.c b/test/API/tvlstr.c
index 35d5358..047b2ca 100644
--- a/test/API/tvlstr.c
+++ b/test/API/tvlstr.c
@@ -64,7 +64,7 @@ test_vlstr_alloc_custom(size_t size, void *info)
*/
extra = MAX(sizeof(void *), sizeof(size_t));
- if ((ret_value = HDmalloc(extra + size)) != NULL) {
+ if ((ret_value = malloc(extra + size)) != NULL) {
*(size_t *)ret_value = size;
*mem_used += size;
} /* end if */
@@ -96,7 +96,7 @@ test_vlstr_free_custom(void *_mem, void *info)
if (_mem != NULL) {
mem = ((unsigned char *)_mem) - extra;
*mem_used -= *(size_t *)((void *)mem);
- HDfree(mem);
+ free(mem);
} /* end if */
}
@@ -162,15 +162,15 @@ test_vlstrings_basic(void)
dataset2 = H5Dcreate2(fid1, "Dataset2", tid1, dataspace, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
CHECK(dataset, FAIL, "H5Dcreate2");
- wdata2 = (char *)HDcalloc((size_t)65534, sizeof(char));
- HDmemset(wdata2, 'A', (size_t)65533);
+ wdata2 = (char *)calloc((size_t)65534, sizeof(char));
+ memset(wdata2, 'A', (size_t)65533);
ret = H5Dwrite(dataset2, tid1, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata2);
CHECK(ret, FAIL, "H5Dwrite");
H5Sclose(dataspace);
H5Dclose(dataset2);
- HDfree(wdata2);
+ free(wdata2);
/* Change to the custom memory allocation routines for reading VL string */
xfer_pid = H5Pcreate(H5P_DATASET_XFER);
@@ -625,8 +625,8 @@ test_write_vl_string_attribute(void)
att = H5Acreate2(root, "test_scalar_large", type, dataspace, H5P_DEFAULT, H5P_DEFAULT);
CHECK(att, FAIL, "H5Acreate2");
- string_att_write = (char *)HDcalloc((size_t)8192, sizeof(char));
- HDmemset(string_att_write, 'A', (size_t)8191);
+ string_att_write = (char *)calloc((size_t)8192, sizeof(char));
+ memset(string_att_write, 'A', (size_t)8191);
ret = H5Awrite(att, type, &string_att_write);
CHECK(ret, FAIL, "H5Awrite");
@@ -642,7 +642,7 @@ test_write_vl_string_attribute(void)
string_att_check = NULL;
/* The attribute string written is freed below, in the test_read_vl_string_attribute() test */
- /* HDfree(string_att_write); */
+ /* free(string_att_write); */
ret = H5Aclose(att);
CHECK(ret, FAIL, "HAclose");
@@ -723,7 +723,7 @@ test_read_vl_string_attribute(void)
/* Free string allocated in test_write_vl_string_attribute */
if (string_att_write)
- HDfree(string_att_write);
+ free(string_att_write);
ret = H5Aclose(att);
CHECK(ret, FAIL, "HAclose");
diff --git a/test/API/tvltypes.c b/test/API/tvltypes.c
index eca534b..4579dc4 100644
--- a/test/API/tvltypes.c
+++ b/test/API/tvltypes.c
@@ -63,7 +63,7 @@ test_vltypes_alloc_custom(size_t size, void *mem_used)
* DEC Alpha to keep the alignment correct - QAK)
*/
- if ((ret_value = HDmalloc(extra + size)) != NULL) {
+ if ((ret_value = malloc(extra + size)) != NULL) {
*(size_t *)ret_value = size;
*(size_t *)mem_used += size;
} /* end if */
@@ -93,7 +93,7 @@ test_vltypes_free_custom(void *_mem, void *mem_used)
unsigned char *mem = ((unsigned char *)_mem) - extra; /* Pointer to actual block allocated */
*(size_t *)mem_used -= *(size_t *)((void *)mem);
- HDfree(mem);
+ free(mem);
} /* end if */
}
@@ -257,7 +257,7 @@ test_vltypes_vlen_atomic(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].p = HDmalloc((i + 1) * sizeof(unsigned int));
+ wdata[i].p = malloc((i + 1) * sizeof(unsigned int));
wdata[i].len = i + 1;
for (j = 0; j < (i + 1); j++)
((unsigned int *)wdata[i].p)[j] = i * 10 + j;
@@ -588,7 +588,7 @@ rewrite_vltypes_vlen_atomic(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].p = HDmalloc((i + increment) * sizeof(unsigned int));
+ wdata[i].p = malloc((i + increment) * sizeof(unsigned int));
wdata[i].len = i + increment;
for (j = 0; j < (i + increment); j++)
((unsigned int *)wdata[i].p)[j] = i * 20 + j;
@@ -750,7 +750,7 @@ test_vltypes_vlen_compound(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].p = HDmalloc((i + 1) * sizeof(s1));
+ wdata[i].p = malloc((i + 1) * sizeof(s1));
wdata[i].len = i + 1;
for (j = 0; j < (i + 1); j++) {
((s1 *)wdata[i].p)[j].i = (int)(i * 10 + j);
@@ -902,7 +902,7 @@ rewrite_vltypes_vlen_compound(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].p = HDmalloc((i + increment) * sizeof(s1));
+ wdata[i].p = malloc((i + increment) * sizeof(s1));
wdata[i].len = i + increment;
for (j = 0; j < (i + increment); j++) {
((s1 *)wdata[i].p)[j].i = (int)(i * 40 + j);
@@ -1051,17 +1051,17 @@ test_vltypes_compound_vlen_vlen(void)
MESSAGE(5, ("Testing Compound Datatypes with VL Atomic Datatype Component Functionality\n"));
/* Allocate and initialize VL data to write */
- wdata = (s1 *)HDmalloc(sizeof(s1) * SPACE3_DIM1);
- CHECK_PTR(wdata, "HDmalloc");
- rdata = (s1 *)HDmalloc(sizeof(s1) * SPACE3_DIM1);
- CHECK_PTR(rdata, "HDmalloc");
+ wdata = (s1 *)malloc(sizeof(s1) * SPACE3_DIM1);
+ CHECK_PTR(wdata, "malloc");
+ rdata = (s1 *)malloc(sizeof(s1) * SPACE3_DIM1);
+ CHECK_PTR(rdata, "malloc");
for (i = 0; i < SPACE3_DIM1; i++) {
wdata[i].i = (int)(i * 10);
wdata[i].f = (float)(i * 20) / 3.0F;
- wdata[i].v.p = HDmalloc((i + L1_INCM) * sizeof(hvl_t));
+ wdata[i].v.p = malloc((i + L1_INCM) * sizeof(hvl_t));
wdata[i].v.len = i + L1_INCM;
for (t1 = (hvl_t *)((wdata[i].v).p), j = 0; j < (i + L1_INCM); j++, t1++) {
- t1->p = HDmalloc((j + L2_INCM) * sizeof(unsigned int));
+ t1->p = malloc((j + L2_INCM) * sizeof(unsigned int));
t1->len = j + L2_INCM;
for (k = 0; k < j + L2_INCM; k++)
((unsigned int *)t1->p)[k] = i * 100 + j * 10 + k;
@@ -1193,8 +1193,8 @@ test_vltypes_compound_vlen_vlen(void)
CHECK(ret, FAIL, "H5Fclose");
/* Release buffers */
- HDfree(wdata);
- HDfree(rdata);
+ free(wdata);
+ free(rdata);
} /* end test_vltypes_compound_vlen_vlen() */
/****************************************************************
@@ -1241,11 +1241,11 @@ test_vltypes_compound_vlstr(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].v.p = (s2 *)HDmalloc((i + L3_INCM) * sizeof(s2));
+ wdata[i].v.p = (s2 *)malloc((i + L3_INCM) * sizeof(s2));
wdata[i].v.len = i + L3_INCM;
for (t1 = (s2 *)((wdata[i].v).p), j = 0; j < (i + L3_INCM); j++, t1++) {
HDstrcat(str, "m");
- t1->string = (char *)HDmalloc(HDstrlen(str) * sizeof(char) + 1);
+ t1->string = (char *)malloc(HDstrlen(str) * sizeof(char) + 1);
HDstrcpy(t1->string, str);
/*t1->color = red;*/
t1->color = blue;
@@ -1411,11 +1411,11 @@ test_vltypes_compound_vlstr(void)
/* Use this part for new data */
HDstrcpy(str, "bbbbbbbb\0");
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata2[i].v.p = (s2 *)HDmalloc((i + 1) * sizeof(s2));
+ wdata2[i].v.p = (s2 *)malloc((i + 1) * sizeof(s2));
wdata2[i].v.len = i + 1;
for (t1 = (s2 *)(wdata2[i].v).p, j = 0; j < i + 1; j++, t1++) {
HDstrcat(str, "pp");
- t1->string = (char *)HDmalloc(HDstrlen(str) * sizeof(char) + 1);
+ t1->string = (char *)malloc(HDstrlen(str) * sizeof(char) + 1);
HDstrcpy(t1->string, str);
t1->color = green;
}
@@ -1529,7 +1529,7 @@ test_vltypes_compound_vlen_atomic(void)
for (i = 0; i < SPACE1_DIM1; i++) {
wdata[i].i = (int)(i * 10);
wdata[i].f = (float)(i * 20) / 3.0F;
- wdata[i].v.p = HDmalloc((i + 1) * sizeof(unsigned int));
+ wdata[i].v.p = malloc((i + 1) * sizeof(unsigned int));
wdata[i].v.len = i + 1;
for (j = 0; j < (i + 1); j++)
((unsigned int *)wdata[i].v.p)[j] = i * 10 + j;
@@ -1633,7 +1633,7 @@ test_vltypes_compound_vlen_atomic(void)
CHECK(dcpl_pid, FAIL, "H5Pcreate");
/* Set the fill value for the second dataset */
- HDmemset(&fill, 0, sizeof(s1));
+ memset(&fill, 0, sizeof(s1));
ret = H5Pset_fill_value(dcpl_pid, tid2, &fill);
CHECK(ret, FAIL, "H5Pset_fill_value");
@@ -1763,7 +1763,7 @@ rewrite_vltypes_compound_vlen_atomic(void)
for (i = 0; i < SPACE1_DIM1; i++) {
wdata[i].i = (int)(i * 40);
wdata[i].f = (float)(i * 50) / 3.0F;
- wdata[i].v.p = HDmalloc((i + increment) * sizeof(unsigned int));
+ wdata[i].v.p = malloc((i + increment) * sizeof(unsigned int));
wdata[i].v.len = i + increment;
for (j = 0; j < (i + increment); j++)
((unsigned int *)wdata[i].v.p)[j] = i * 60 + j;
@@ -1937,14 +1937,14 @@ test_vltypes_vlen_vlen_atomic(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].p = HDmalloc((i + 1) * sizeof(hvl_t));
+ wdata[i].p = malloc((i + 1) * sizeof(hvl_t));
if (wdata[i].p == NULL) {
TestErrPrintf("Cannot allocate memory for VL data! i=%u\n", i);
return;
} /* end if */
wdata[i].len = i + 1;
for (t1 = (hvl_t *)(wdata[i].p), j = 0; j < (i + 1); j++, t1++) {
- t1->p = HDmalloc((j + 1) * sizeof(unsigned int));
+ t1->p = malloc((j + 1) * sizeof(unsigned int));
if (t1->p == NULL) {
TestErrPrintf("Cannot allocate memory for VL data! i=%u, j=%u\n", i, j);
return;
@@ -2138,14 +2138,14 @@ rewrite_longer_vltypes_vlen_vlen_atomic(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].p = HDmalloc((i + increment) * sizeof(hvl_t));
+ wdata[i].p = malloc((i + increment) * sizeof(hvl_t));
if (wdata[i].p == NULL) {
TestErrPrintf("Cannot allocate memory for VL data! i=%u\n", i);
return;
} /* end if */
wdata[i].len = i + increment;
for (t1 = (hvl_t *)(wdata[i].p), j = 0; j < (i + increment); j++, t1++) {
- t1->p = HDmalloc((j + 1) * sizeof(unsigned int));
+ t1->p = malloc((j + 1) * sizeof(unsigned int));
if (t1->p == NULL) {
TestErrPrintf("Cannot allocate memory for VL data! i=%u, j=%u\n", i, j);
return;
@@ -2318,14 +2318,14 @@ rewrite_shorter_vltypes_vlen_vlen_atomic(void)
/* Allocate and initialize VL data to write */
for (i = 0; i < SPACE1_DIM1; i++) {
- wdata[i].p = HDmalloc((i + increment) * sizeof(hvl_t));
+ wdata[i].p = malloc((i + increment) * sizeof(hvl_t));
if (wdata[i].p == NULL) {
TestErrPrintf("Cannot allocate memory for VL data! i=%u\n", i);
return;
} /* end if */
wdata[i].len = i + increment;
for (t1 = (hvl_t *)(wdata[i].p), j = 0; j < (i + increment); j++, t1++) {
- t1->p = HDmalloc((j + 1) * sizeof(unsigned int));
+ t1->p = malloc((j + 1) * sizeof(unsigned int));
if (t1->p == NULL) {
TestErrPrintf("Cannot allocate memory for VL data! i=%u, j=%u\n", i, j);
return;
@@ -2594,8 +2594,8 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Tclose");
/* Allocate space for the buffer to read data */
- rbuf = (dtype1_struct *)HDmalloc(SPACE4_DIM_LARGE * sizeof(dtype1_struct));
- CHECK_PTR(rbuf, "HDmalloc");
+ rbuf = (dtype1_struct *)malloc(SPACE4_DIM_LARGE * sizeof(dtype1_struct));
+ CHECK_PTR(rbuf, "malloc");
/* Create the small & large dataspaces to use */
small_dspace_id = H5Screate_simple(SPACE4_RANK, small_dims, NULL);
@@ -2693,13 +2693,13 @@ test_vltypes_fill_value(void)
} break;
case H5D_VIRTUAL:
- HDassert(0 && "Invalid layout type!");
+ assert(0 && "Invalid layout type!");
break;
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert(0 && "Unknown layout type!");
+ assert(0 && "Unknown layout type!");
break;
} /* end switch */
@@ -2801,13 +2801,13 @@ test_vltypes_fill_value(void)
break;
case H5D_VIRTUAL:
- HDassert(0 && "Invalid layout type!");
+ assert(0 && "Invalid layout type!");
break;
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert(0 && "Unknown layout type!");
+ assert(0 && "Unknown layout type!");
break;
} /* end switch */
@@ -2835,7 +2835,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from 'empty' dataset of fill value */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -2893,7 +2893,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from 'empty' dataset of fill value */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -2988,13 +2988,13 @@ test_vltypes_fill_value(void)
break;
case H5D_VIRTUAL:
- HDassert(0 && "Invalid layout type!");
+ assert(0 && "Invalid layout type!");
break;
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert(0 && "Unknown layout type!");
+ assert(0 && "Unknown layout type!");
break;
} /* end switch */
@@ -3048,7 +3048,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from dataset */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -3136,7 +3136,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Treclaim");
/* Clear the read buffer */
- HDmemset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
+ memset(rbuf, 0, dset_elmts * sizeof(dtype1_struct));
/* Read in non-contiguous selection from dataset */
ret = H5Dread(dset_id, dtype1_id, dset_select_dspace_id, dset_select_dspace_id, xfer_pid, rbuf);
@@ -3215,7 +3215,7 @@ test_vltypes_fill_value(void)
CHECK(ret, FAIL, "H5Tclose");
/* Release buffer */
- HDfree(rbuf);
+ free(rbuf);
} /* end test_vltypes_fill_value() */
/****************************************************************