summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/API/H5_api_async_test.c92
-rw-r--r--test/API/H5_api_attribute_test.c2262
-rw-r--r--test/API/H5_api_dataset_test.c1460
-rw-r--r--test/API/H5_api_datatype_test.c450
-rw-r--r--test/API/H5_api_file_test.c389
-rw-r--r--test/API/H5_api_group_test.c372
-rw-r--r--test/API/H5_api_link_test.c6982
-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.c60
-rw-r--r--test/API/H5_api_test_util.c104
-rw-r--r--test/API/tarray.c4
-rw-r--r--test/API/tattr.c18
-rw-r--r--test/API/testhdf5.c100
-rw-r--r--test/API/testhdf5.h6
-rw-r--r--test/API/tfile.c2
-rw-r--r--test/API/tgenprop.c24
-rw-r--r--test/API/th5s.c38
-rw-r--r--test/API/titerate.c14
-rw-r--r--test/API/tmisc.c20
-rw-r--r--test/API/trefer.c24
-rw-r--r--test/API/tselect.c60
-rw-r--r--test/API/ttime.c4
-rw-r--r--test/API/tunicode.c8
-rw-r--r--test/accum.c50
-rw-r--r--test/app_ref.c4
-rw-r--r--test/big.c42
-rw-r--r--test/bittests.c242
-rw-r--r--test/btree2.c20
-rw-r--r--test/cache.c1028
-rw-r--r--test/cache_api.c58
-rw-r--r--test/cache_common.c218
-rw-r--r--test/cache_common.h6
-rw-r--r--test/cache_image.c666
-rw-r--r--test/cache_logging.c6
-rw-r--r--test/cache_tagging.c8
-rw-r--r--test/chunk_info.c32
-rw-r--r--test/cmpd_dset.c38
-rw-r--r--test/cmpd_dtransform.c2
-rw-r--r--test/cross_read.c16
-rw-r--r--test/direct_chunk.c148
-rw-r--r--test/dsets.c536
-rw-r--r--test/dt_arith.c490
-rw-r--r--test/dtransform.c8
-rw-r--r--test/dtypes.c654
-rw-r--r--test/earray.c58
-rw-r--r--test/enc_dec_plist.c6
-rw-r--r--test/enc_dec_plist_cross_platform.c4
-rw-r--r--test/enum.c30
-rw-r--r--test/err_compat.c38
-rw-r--r--test/error_test.c26
-rw-r--r--test/evict_on_close.c42
-rw-r--r--test/extend.c22
-rw-r--r--test/external.c18
-rw-r--r--test/external_env.c2
-rw-r--r--test/farray.c14
-rw-r--r--test/fheap.c58
-rw-r--r--test/file_image.c6
-rw-r--r--test/fillval.c251
-rw-r--r--test/filter_fail.c26
-rw-r--r--test/filter_plugin.c40
-rw-r--r--test/flush1.c2
-rw-r--r--test/flush2.c6
-rw-r--r--test/flushrefresh.c34
-rw-r--r--test/freespace.c25
-rw-r--r--test/gen_filters.c4
-rw-r--r--test/h5test.c52
-rw-r--r--test/h5test.h8
-rw-r--r--test/hdfs.c32
-rw-r--r--test/hyperslab.c138
-rw-r--r--test/istore.c74
-rw-r--r--test/lheap.c8
-rw-r--r--test/links.c44
-rw-r--r--test/links_env.c6
-rw-r--r--test/mf.c33
-rw-r--r--test/mirror_vfd.c54
-rw-r--r--test/mount.c4
-rw-r--r--test/mtime.c6
-rw-r--r--test/ntypes.c98
-rw-r--r--test/objcopy.c4
-rw-r--r--test/objcopy_ref.c4
-rw-r--r--test/onion.c72
-rw-r--r--test/page_buffer.c36
-rw-r--r--test/reserved.c2
-rw-r--r--test/ros3.c32
-rw-r--r--test/s3comms.c26
-rw-r--r--test/select_io_dset.c130
-rw-r--r--test/set_extent.c234
-rw-r--r--test/stab.c2
-rw-r--r--test/swmr.c8
-rw-r--r--test/swmr_addrem_writer.c58
-rw-r--r--test/swmr_common.c6
-rw-r--r--test/swmr_generator.c54
-rw-r--r--test/swmr_reader.c86
-rw-r--r--test/swmr_remove_reader.c76
-rw-r--r--test/swmr_remove_writer.c54
-rw-r--r--test/swmr_sparse_reader.c75
-rw-r--r--test/swmr_sparse_writer.c52
-rw-r--r--test/swmr_start_write.c80
-rw-r--r--test/swmr_writer.c60
-rw-r--r--test/tarray.c4
-rw-r--r--test/tattr.c12
-rw-r--r--test/tcheck_version.c20
-rw-r--r--test/testframe.c10
-rw-r--r--test/testmeta.c20
-rw-r--r--test/tfile.c2
-rw-r--r--test/tgenprop.c24
-rw-r--r--test/th5s.c38
-rw-r--r--test/thread_id.c8
-rw-r--r--test/timer.c9
-rw-r--r--test/titerate.c6
-rw-r--r--test/tmisc.c20
-rw-r--r--test/trefer.c24
-rw-r--r--test/trefer_shutdown.c22
-rw-r--r--test/tselect.c54
-rw-r--r--test/tsohm.c36
-rw-r--r--test/ttime.c4
-rw-r--r--test/ttsafe.c2
-rw-r--r--test/ttsafe_error.c22
-rw-r--r--test/tunicode.c8
-rw-r--r--test/twriteorder.c82
-rw-r--r--test/unlink.c12
-rw-r--r--test/unregister.c8
-rw-r--r--test/use_append_chunk.c44
-rw-r--r--test/use_append_chunk_mirror.c60
-rw-r--r--test/use_append_mchunks.c44
-rw-r--r--test/use_common.c188
-rw-r--r--test/use_disable_mdc_flushes.c138
-rw-r--r--test/vds.c15
-rw-r--r--test/vds_env.c10
-rw-r--r--test/vds_swmr_reader.c4
-rw-r--r--test/vds_swmr_writer.c6
-rw-r--r--test/vfd.c78
-rw-r--r--test/vfd_plugin.c2
-rw-r--r--test/vol.c6
-rw-r--r--test/vol_plugin.c2
136 files changed, 10743 insertions, 10982 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..84ddbb0 100644
--- a/test/API/H5_api_attribute_test.c
+++ b/test/API/H5_api_attribute_test.c
@@ -126,7 +126,7 @@ test_create_attribute_on_root(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or attribute aren't supported with this connector\n");
+ printf(" API functions for basic file or attribute aren't supported with this connector\n");
return 0;
}
@@ -134,7 +134,7 @@ test_create_attribute_on_root(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -157,22 +157,22 @@ test_create_attribute_on_root(void)
if ((attr_id = H5Acreate2(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME, attr_dtype1, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s' using H5Acreate\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" couldn't create attribute '%s' using H5Acreate\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME);
PART_ERROR(H5Acreate2);
}
@@ -187,21 +187,21 @@ test_create_attribute_on_root(void)
if ((attr_id2 = H5Acreate_by_name(file_id, "/", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2, attr_dtype2,
space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on root group using H5Acreate_by_name\n");
+ printf(" couldn't create attribute on root group using H5Acreate_by_name\n");
PART_ERROR(H5Acreate_by_name);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(file_id, ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_ROOT_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name);
}
@@ -269,8 +269,8 @@ test_create_attribute_on_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or attribute aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, dataset, or attribute aren't supported with this "
+ "connector\n");
return 0;
}
@@ -278,20 +278,20 @@ test_create_attribute_on_dataset(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATASET_GROUP_NAME);
goto error;
}
@@ -312,7 +312,7 @@ test_create_attribute_on_dataset(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_CREATE_ON_DATASET_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -327,21 +327,21 @@ test_create_attribute_on_dataset(void)
if ((attr_id = H5Acreate2(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME, attr_dtype1,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
PART_ERROR(H5Acreate_on_dataset);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
PART_ERROR(H5Acreate_on_dataset);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME);
PART_ERROR(H5Acreate_on_dataset);
}
@@ -357,21 +357,21 @@ test_create_attribute_on_dataset(void)
ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2, attr_dtype2,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on dataset by name\n");
+ printf(" couldn't create attribute on dataset by name\n");
PART_ERROR(H5Acreate_by_name_on_dataset);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name_on_dataset);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_CREATE_ON_DATASET_ATTR_NAME2);
PART_ERROR(H5Acreate_by_name_on_dataset);
}
@@ -453,8 +453,8 @@ test_create_attribute_on_datatype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, stored datatype, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, stored datatype, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -462,33 +462,33 @@ test_create_attribute_on_datatype(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_ON_DATATYPE_GROUP_NAME);
goto error;
}
if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create datatype\n");
+ printf(" couldn't create datatype\n");
goto error;
}
if (H5Tcommit2(group_id, ATTRIBUTE_CREATE_ON_DATATYPE_DTYPE_NAME, type_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype\n");
+ printf(" couldn't commit datatype\n");
goto error;
}
@@ -511,19 +511,19 @@ test_create_attribute_on_datatype(void)
if ((attr_id = H5Acreate2(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME, attr_dtype1, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on datatype using H5Acreate\n");
+ printf(" couldn't create attribute on datatype using H5Acreate\n");
PART_ERROR(H5Acreate_on_datatype);
}
if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Acreate_on_datatype);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
PART_ERROR(H5Acreate_on_datatype);
}
@@ -539,20 +539,20 @@ test_create_attribute_on_datatype(void)
ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2, attr_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute on datatype using H5Acreate_by_name\n");
+ printf(" couldn't create attribute on datatype using H5Acreate_by_name\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(type_id, ATTRIBUTE_CREATE_ON_DATATYPE_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
PART_ERROR(H5Acreate_by_name_on_datatype);
}
@@ -625,27 +625,27 @@ test_create_attribute_with_null_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -658,20 +658,20 @@ test_create_attribute_with_null_space(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -680,7 +680,7 @@ test_create_attribute_with_null_space(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_NULL_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -736,27 +736,27 @@ test_create_attribute_with_scalar_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -769,20 +769,20 @@ test_create_attribute_with_scalar_space(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -791,7 +791,7 @@ test_create_attribute_with_scalar_space(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_CREATE_SCALAR_DATASPACE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -849,28 +849,27 @@ test_create_attribute_with_space_in_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_GROUP_NAME);
goto error;
}
@@ -884,20 +883,20 @@ test_create_attribute_with_space_in_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_CREATE_WITH_SPACE_IN_NAME_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -953,7 +952,7 @@ test_create_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -962,20 +961,20 @@ test_create_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_CREATE_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group\n");
+ printf(" couldn't create container group\n");
goto error;
}
@@ -1002,7 +1001,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid loc_id!\n");
+ printf(" created attribute using H5Acreate with an invalid loc_id!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_loc_id);
}
@@ -1023,7 +1022,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with a NULL name!\n");
+ printf(" created attribute using H5Acreate with a NULL name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_attr_name);
}
@@ -1036,7 +1035,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid name of ''!\n");
+ printf(" created attribute using H5Acreate with an invalid name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_attr_name);
}
@@ -1058,7 +1057,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid datatype!\n");
+ printf(" created attribute using H5Acreate with an invalid datatype!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_datatype);
}
@@ -1080,7 +1079,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid dataspace!\n");
+ printf(" created attribute using H5Acreate with an invalid dataspace!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_dataspace);
}
@@ -1102,7 +1101,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid ACPL!\n");
+ printf(" created attribute using H5Acreate with an invalid ACPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_acpl);
}
@@ -1124,7 +1123,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate with an invalid AAPL!\n");
+ printf(" created attribute using H5Acreate with an invalid AAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_invalid_aapl);
}
@@ -1147,7 +1146,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid loc_id!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_loc_id);
}
@@ -1169,7 +1168,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with a NULL object name!\n");
+ printf(" created attribute using H5Acreate_by_name with a NULL object name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_obj_name);
}
@@ -1183,8 +1182,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " created attribute using H5Acreate_by_name with an invalid object name of ''!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid object name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_obj_name);
}
@@ -1206,7 +1204,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n");
+ printf(" created attribute using H5Acreate_by_name with a NULL attribute name!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_attr_name);
}
@@ -1220,7 +1218,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" created attribute using H5Acreate_by_name with an invalid attribute name of ''!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_attr_name);
@@ -1244,7 +1242,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid datatype!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid datatype!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_datatype);
}
@@ -1267,7 +1265,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid dataspace!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_dataspace);
}
@@ -1290,7 +1288,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid ACPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_acpl);
}
@@ -1313,7 +1311,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid AAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_aapl);
}
@@ -1336,7 +1334,7 @@ test_create_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n");
+ printf(" created attribute using H5Acreate_by_name with an invalid LAPL!\n");
H5Aclose(attr_id);
PART_ERROR(H5Acreate_by_name_invalid_lapl);
}
@@ -1398,8 +1396,8 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -1407,26 +1405,26 @@ test_open_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -1434,7 +1432,7 @@ test_open_attribute(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_TEST_GROUP_NAME);
goto error;
}
@@ -1448,7 +1446,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
goto error;
}
@@ -1458,7 +1456,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME2, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
goto error;
}
@@ -1468,7 +1466,7 @@ test_open_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME3, attr_type, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
goto error;
}
@@ -1485,13 +1483,13 @@ test_open_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s' using H5Aopen\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen);
}
@@ -1506,14 +1504,14 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_name(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME,
ATTRIBUTE_OPEN_TEST_ATTR_NAME, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' using H5Aopen_by_name\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s' using H5Aopen_by_name\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_name);
}
@@ -1527,52 +1525,52 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported with this VOL connector\n");
+ printf(" creation order tracking is not supported with this VOL connector\n");
PART_EMPTY(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_crt_order_increasing);
}
@@ -1586,52 +1584,52 @@ test_open_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported with this VOL connector\n");
+ printf(" creation order tracking is not supported with this VOL connector\n");
PART_EMPTY(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
- "order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by creation "
+ "order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_crt_order_decreasing);
}
@@ -1646,45 +1644,45 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 0);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
- "order in increasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by alphabetical "
+ "order in increasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 2);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_name_order_increasing);
}
@@ -1699,45 +1697,45 @@ test_open_attribute(void)
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME, 2);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME2, 1);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME2);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if ((attr_id = H5Aopen_by_idx(container_group, ATTRIBUTE_OPEN_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
- "alphabetical order in decreasing order\n",
- ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
+ printf(" couldn't open attribute '%s' at index %d using H5Aopen_by_idx by "
+ "alphabetical order in decreasing order\n",
+ ATTRIBUTE_OPEN_TEST_ATTR_NAME3, 0);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_OPEN_TEST_ATTR_NAME3);
PART_ERROR(H5Aopen_by_idx_name_order_decreasing);
}
@@ -1801,7 +1799,7 @@ test_open_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -1810,20 +1808,20 @@ test_open_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -1837,7 +1835,7 @@ test_open_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME, attr_type, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
goto error;
}
@@ -1860,8 +1858,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_loc_id);
}
@@ -1882,8 +1880,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with a NULL attribute name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_attr_name);
}
@@ -1896,8 +1894,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid attribute name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_attr_name);
}
@@ -1918,8 +1916,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_invalid_aapl);
}
@@ -1942,8 +1940,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_loc_id);
}
@@ -1965,8 +1963,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with a NULL object name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_obj_name);
}
@@ -1980,9 +1978,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid object name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_obj_name);
}
@@ -2004,8 +2001,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with a NULL attribute name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_attr_name);
}
@@ -2019,7 +2016,7 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" opened attribute '%s' using H5Aopen_by_name with an invalid attribute name of ''!\n",
ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
@@ -2044,8 +2041,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_aapl);
}
@@ -2068,8 +2065,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_name with an invalid LAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_name_invalid_lapl);
}
@@ -2091,8 +2088,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid loc_id!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_loc_id);
}
@@ -2114,8 +2111,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with a NULL object name!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_obj_name);
}
@@ -2129,9 +2126,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid object name of ''!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_obj_name);
}
@@ -2153,9 +2149,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_index_type);
}
@@ -2169,9 +2165,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(
- " opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid index type H5_INDEX_N!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_index_type);
}
@@ -2193,9 +2188,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_iter_order);
}
@@ -2209,9 +2204,9 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
- "H5_ITER_N!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with invalid iteration order "
+ "H5_ITER_N!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_iter_order);
}
@@ -2233,8 +2228,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid AAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_aapl);
}
@@ -2256,8 +2251,8 @@ test_open_attribute_invalid_params(void)
if (attr_id >= 0) {
H5_FAILED();
- HDprintf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n",
- ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
+ printf(" opened attribute '%s' using H5Aopen_by_idx with an invalid LAPL!\n",
+ ATTRIBUTE_OPEN_INVALID_PARAMS_TEST_ATTR_NAME);
H5Aclose(attr_id);
PART_ERROR(H5Aopen_by_idx_invalid_lapl);
}
@@ -2323,27 +2318,27 @@ test_write_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_FLUSH_REFRESH)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or file flush aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, attribute, or file flush aren't supported with "
+ "this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -2353,20 +2348,20 @@ test_write_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2382,14 +2377,14 @@ test_write_attribute(void)
if (H5Awrite(attr_id, ATTRIBUTE_WRITE_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
/* Make sure that the attribute can be flushed to the file */
if (H5Fflush(file_id, H5F_SCOPE_GLOBAL) < 0) {
H5_FAILED();
- HDprintf(" couldn't flush the attribute\n");
+ printf(" couldn't flush the attribute\n");
goto error;
}
@@ -2453,7 +2448,7 @@ test_write_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -2462,21 +2457,20 @@ test_write_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -2488,20 +2482,20 @@ test_write_attribute_invalid_params(void)
ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_WRITE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2531,7 +2525,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid attr_id!\n");
+ printf(" wrote to attribute using an invalid attr_id!\n");
PART_ERROR(H5Awrite_invalid_attr_id);
}
@@ -2551,7 +2545,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid datatype!\n");
+ printf(" wrote to attribute using an invalid datatype!\n");
PART_ERROR(H5Awrite_invalid_datatype);
}
@@ -2571,7 +2565,7 @@ test_write_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to attribute using an invalid data buffer!\n");
+ printf(" wrote to attribute using an invalid data buffer!\n");
PART_ERROR(H5Awrite_invalid_data_buf);
}
@@ -2644,27 +2638,27 @@ test_read_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -2674,20 +2668,20 @@ test_read_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, ATTRIBUTE_READ_TEST_ATTR_DTYPE,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2705,7 +2699,7 @@ test_read_attribute(void)
if (H5Awrite(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
@@ -2719,20 +2713,20 @@ test_read_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
if (H5Aread(attr_id, ATTRIBUTE_READ_TEST_ATTR_DTYPE, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from attribute\n");
+ printf(" couldn't read from attribute\n");
goto error;
}
for (i = 0; i < data_size / ATTRIBUTE_READ_TEST_ATTR_DTYPE_SIZE; i++) {
if (((int *)read_buf)[i] != (int)i) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
goto error;
}
}
@@ -2800,7 +2794,7 @@ test_read_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -2809,20 +2803,20 @@ test_read_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -2834,20 +2828,20 @@ test_read_attribute_invalid_params(void)
ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -2865,7 +2859,7 @@ test_read_attribute_invalid_params(void)
if (H5Awrite(attr_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_DTYPE, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to attribute\n");
+ printf(" couldn't write to attribute\n");
goto error;
}
@@ -2879,7 +2873,7 @@ test_read_attribute_invalid_params(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_INVALID_PARAMS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -2899,7 +2893,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid attr_id!\n");
+ printf(" read attribute with an invalid attr_id!\n");
PART_ERROR(H5Aread_invalid_attr_id);
}
@@ -2919,7 +2913,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid datatype!\n");
+ printf(" read attribute with an invalid datatype!\n");
PART_ERROR(H5Aread_invalid_datatype);
}
@@ -2939,7 +2933,7 @@ test_read_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read attribute with an invalid read buffer!\n");
+ printf(" read attribute with an invalid read buffer!\n");
PART_ERROR(H5Aread_invalid_read_buf);
}
@@ -3011,27 +3005,27 @@ test_read_empty_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_READ_EMPTY_ATTR_GROUP_NAME);
goto error;
}
@@ -3041,20 +3035,20 @@ test_read_empty_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, ATTRIBUTE_READ_EMPTY_DTYPE, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3063,7 +3057,7 @@ test_read_empty_attribute(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_READ_EMPTY_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute\n");
+ printf(" couldn't open attribute\n");
goto error;
}
@@ -3076,7 +3070,7 @@ test_read_empty_attribute(void)
if (H5Aread(attr_id, ATTRIBUTE_READ_EMPTY_DTYPE, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from attribute\n");
+ printf(" couldn't read from attribute\n");
goto error;
}
@@ -3130,13 +3124,13 @@ test_close_attribute_invalid_id(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or attribute aren't supported with this connector\n");
+ printf(" API functions for basic file or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -3148,7 +3142,7 @@ test_close_attribute_invalid_id(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aclose succeeded with an invalid attribute ID!\n");
+ printf(" H5Aclose succeeded with an invalid attribute ID!\n");
goto error;
}
@@ -3195,8 +3189,8 @@ test_get_attribute_space_and_type(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or attribute aren't supported with "
- "this connector\n");
+ printf(" API functions for basic file, group, attribute, or attribute aren't supported with "
+ "this connector\n");
return 0;
}
@@ -3204,20 +3198,20 @@ test_get_attribute_space_and_type(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_GROUP_NAME);
goto error;
}
@@ -3231,20 +3225,20 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3259,7 +3253,7 @@ test_get_attribute_space_and_type(void)
if ((tmp_type_id = H5Aget_type(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's datatype\n");
+ printf(" couldn't retrieve attribute's datatype\n");
PART_ERROR(H5Aget_type);
}
@@ -3268,13 +3262,13 @@ test_get_attribute_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Aget_type);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" attribute's datatype did not match\n");
+ printf(" attribute's datatype did not match\n");
PART_ERROR(H5Aget_type);
}
}
@@ -3289,7 +3283,7 @@ test_get_attribute_space_and_type(void)
if ((tmp_space_id = H5Aget_space(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's dataspace\n");
+ printf(" couldn't retrieve attribute's dataspace\n");
PART_ERROR(H5Aget_space);
}
@@ -3298,14 +3292,14 @@ test_get_attribute_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dimensions of dataspace\n");
+ printf(" couldn't retrieve dimensions of dataspace\n");
PART_ERROR(H5Aget_space);
}
for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++)
if (space_dims[i] != attr_dims[i]) {
H5_FAILED();
- HDprintf(" attribute's dataspace dims didn't match\n");
+ printf(" attribute's dataspace dims didn't match\n");
PART_ERROR(H5Aget_space);
}
}
@@ -3348,13 +3342,13 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
PART_ERROR(H5Aget_type_reopened);
}
if ((tmp_type_id = H5Aget_type(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's datatype\n");
+ printf(" couldn't retrieve attribute's datatype\n");
PART_ERROR(H5Aget_type_reopened);
}
@@ -3363,13 +3357,13 @@ test_get_attribute_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Aget_type_reopened);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" attribute's datatype did not match\n");
+ printf(" attribute's datatype did not match\n");
PART_ERROR(H5Aget_type_reopened);
}
}
@@ -3393,13 +3387,13 @@ test_get_attribute_space_and_type(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_SPACE_TYPE_TEST_ATTR_NAME);
PART_ERROR(H5Aget_space_reopened);
}
if ((tmp_space_id = H5Aget_space(attr_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute's dataspace\n");
+ printf(" couldn't retrieve attribute's dataspace\n");
PART_ERROR(H5Aget_space_reopened);
}
@@ -3408,14 +3402,14 @@ test_get_attribute_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dimensions of dataspace\n");
+ printf(" couldn't retrieve dimensions of dataspace\n");
PART_ERROR(H5Aget_space_reopened);
}
for (i = 0; i < ATTRIBUTE_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) {
if (space_dims[i] != attr_dims[i]) {
H5_FAILED();
- HDprintf(" dataspace dims didn't match!\n");
+ printf(" dataspace dims didn't match!\n");
PART_ERROR(H5Aget_space_reopened);
}
}
@@ -3498,7 +3492,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -3507,21 +3501,21 @@ test_get_attribute_space_and_type_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -3535,20 +3529,20 @@ test_get_attribute_space_and_type_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_SPACE_TYPE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3569,7 +3563,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (tmp_type_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of attribute's datatype using an invalid attr_id!\n");
+ printf(" retrieved copy of attribute's datatype using an invalid attr_id!\n");
PART_ERROR(H5Aget_type_invalid_attr_id);
}
@@ -3589,7 +3583,7 @@ test_get_attribute_space_and_type_invalid_params(void)
if (tmp_space_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n");
+ printf(" retrieved copy of attribute's dataspace using an invalid attr_id!\n");
PART_ERROR(H5Aget_space_invalid_attr_id);
}
@@ -3658,8 +3652,8 @@ test_attribute_property_lists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or getting property list aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, or getting property list aren't "
+ "supported with this connector\n");
return 0;
}
@@ -3667,20 +3661,20 @@ test_attribute_property_lists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group\n");
+ printf(" couldn't create container sub-group\n");
goto error;
}
@@ -3694,27 +3688,27 @@ test_attribute_property_lists(void)
if ((acpl_id1 = H5Pcreate(H5P_ATTRIBUTE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create ACPL\n");
+ printf(" couldn't create ACPL\n");
goto error;
}
if (H5Pset_char_encoding(acpl_id1, encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't set ACPL property value\n");
+ printf(" couldn't set ACPL property value\n");
goto error;
}
if ((attr_id1 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, attr_dtype1, space_id,
acpl_id1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, attr_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
@@ -3724,25 +3718,25 @@ test_attribute_property_lists(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -3758,13 +3752,13 @@ test_attribute_property_lists(void)
* does not */
if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist);
}
if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3773,13 +3767,13 @@ test_attribute_property_lists(void)
if (H5Pget_char_encoding(acpl_id1, &encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve ACPL property value\n");
+ printf(" couldn't retrieve ACPL property value\n");
PART_ERROR(H5Aget_create_plist);
}
if (H5T_CSET_UTF8 != encoding) {
H5_FAILED();
- HDprintf(" ACPL property value was incorrect\n");
+ printf(" ACPL property value was incorrect\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3787,13 +3781,13 @@ test_attribute_property_lists(void)
if (H5Pget_char_encoding(acpl_id2, &encoding) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve ACPL property value\n");
+ printf(" couldn't retrieve ACPL property value\n");
PART_ERROR(H5Aget_create_plist);
}
if (H5T_CSET_UTF8 == encoding) {
H5_FAILED();
- HDprintf(" ACPL property value was set!\n");
+ printf(" ACPL property value was set!\n");
PART_ERROR(H5Aget_create_plist);
}
@@ -3844,26 +3838,26 @@ test_attribute_property_lists(void)
if ((attr_id1 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME1);
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_PROPERTY_LIST_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((acpl_id1 = H5Aget_create_plist(attr_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist_reopened);
}
if ((acpl_id2 = H5Aget_create_plist(attr_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Aget_create_plist_reopened);
}
@@ -3945,8 +3939,8 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -3954,26 +3948,26 @@ test_get_attribute_name(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -3981,7 +3975,7 @@ test_get_attribute_name(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_NAME_TEST_GROUP_NAME);
goto error;
}
@@ -3995,7 +3989,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
@@ -4005,7 +3999,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
@@ -4015,7 +4009,7 @@ test_get_attribute_name(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
@@ -4025,39 +4019,37 @@ test_get_attribute_name(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
goto error;
}
@@ -4065,7 +4057,7 @@ test_get_attribute_name(void)
name_buf_size = strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 2;
if (NULL == (name_buf = (char *)HDmalloc((size_t)name_buf_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for storing attribute's name\n");
+ printf(" couldn't allocate buffer for storing attribute's name\n");
goto error;
}
@@ -4079,28 +4071,28 @@ test_get_attribute_name(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
*name_buf = '\0';
if (H5Aget_name(attr_id, (size_t)name_buf_size, name_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve attribute name\n");
+ printf(" couldn't retrieve attribute name\n");
PART_ERROR(H5Aget_name);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name);
}
@@ -4121,7 +4113,7 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4129,17 +4121,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4147,17 +4139,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4165,17 +4157,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in increasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_crt_order_increasing);
}
@@ -4189,7 +4181,7 @@ test_get_attribute_name(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4197,17 +4189,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4215,17 +4207,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4233,17 +4225,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "creation order in decreasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "creation order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_crt_order_decreasing);
}
@@ -4259,17 +4251,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4277,17 +4269,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4295,17 +4287,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
- "alphabetical order in increasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index by "
+ "alphabetical order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_name_order_increasing);
}
@@ -4321,17 +4313,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 2);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4339,17 +4331,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 1);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME2);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4357,17 +4349,17 @@ test_get_attribute_name(void)
if (H5Aget_name_by_idx(container_group, ATTRIBUTE_GET_NAME_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, name_buf, (size_t)name_buf_size, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
- "by alphabetical order in decreasing order\n",
- 0);
+ printf(" couldn't retrieve name of attribute at index %d using H5Aget_name_by_index "
+ "by alphabetical order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
if (HDstrncmp(name_buf, ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3,
strlen(ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3) + 1)) {
H5_FAILED();
- HDprintf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
- ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
+ printf(" retrieved attribute name '%s' didn't match '%s'\n", name_buf,
+ ATTRIBUTE_GET_NAME_TEST_ATTRIBUTE_NAME3);
PART_ERROR(H5Aget_name_by_idx_name_order_decreasing);
}
@@ -4443,7 +4435,7 @@ test_get_attribute_name_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -4452,21 +4444,21 @@ test_get_attribute_name_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -4480,20 +4472,20 @@ test_get_attribute_name_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NAME_INVALID_PARAMS_TEST_ATTRIBUTE_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -4503,7 +4495,7 @@ test_get_attribute_name_invalid_params(void)
if ((name_buf_size = H5Aget_name(attr_id, 0, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve name buf size\n");
+ printf(" couldn't retrieve name buf size\n");
goto error;
}
@@ -4526,7 +4518,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n");
+ printf(" retrieved attribute name using H5Aget_name with an invalid attr_id!\n");
PART_ERROR(H5Aget_name_invalid_attr_id);
}
@@ -4547,7 +4539,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n");
+ printf(" retrieved attribute name using H5Aget_name with an invalid name buffer!\n");
PART_ERROR(H5Aget_name_invalid_name_buf);
}
@@ -4569,7 +4561,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_loc_id);
}
@@ -4590,7 +4582,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with a NULL object name!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_obj_name);
}
@@ -4603,8 +4595,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_obj_name);
}
@@ -4626,8 +4618,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_index_type);
}
@@ -4641,8 +4633,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_index_type);
}
@@ -4664,8 +4656,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_iter_order);
}
@@ -4679,8 +4671,8 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
- "H5_ITER_N!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with invalid iteration order "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_iter_order);
}
@@ -4703,7 +4695,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" retrieved attribute name using H5Aget_name_by_idx with an invalid name buffer!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_name_buf);
}
@@ -4726,7 +4718,7 @@ test_get_attribute_name_invalid_params(void)
if (name_buf_size >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n");
+ printf(" retrieved attribute name using H5Aget_name_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Aget_name_by_idx_invalid_lapl);
}
@@ -4812,8 +4804,8 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -4821,26 +4813,26 @@ test_get_attribute_info(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -4848,7 +4840,7 @@ test_get_attribute_info(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_GET_INFO_TEST_GROUP_NAME);
goto error;
}
@@ -4862,7 +4854,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
@@ -4872,7 +4864,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
@@ -4882,7 +4874,7 @@ test_get_attribute_info(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
@@ -4892,37 +4884,37 @@ test_get_attribute_info(void)
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
goto error;
}
@@ -4936,21 +4928,21 @@ test_get_attribute_info(void)
if ((attr_id = H5Aopen(group_id, ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't open attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info);
}
HDmemset(&attr_info, 0, sizeof(attr_info));
if (H5Aget_info(attr_id, &attr_info) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info\n");
+ printf(" couldn't get attribute info\n");
PART_ERROR(H5Aget_info);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info);
}
@@ -4958,13 +4950,13 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't close attribute '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info);
}
@@ -4987,14 +4979,14 @@ test_get_attribute_info(void)
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5002,7 +4994,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
@@ -5010,15 +5002,14 @@ test_get_attribute_info(void)
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n",
- ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME2);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5026,7 +5017,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
@@ -5034,15 +5025,14 @@ test_get_attribute_info(void)
if (H5Aget_info_by_name(group_id, ".", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get attribute info by name '%s'\n",
- ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
+ printf(" couldn't get attribute info by name '%s'\n", ATTRIBUTE_GET_INFO_TEST_ATTR_NAME3);
PART_ERROR(H5Aget_info_by_name);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_name);
}
@@ -5050,7 +5040,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_name);
}
@@ -5064,7 +5054,7 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5072,16 +5062,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5089,7 +5079,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5097,16 +5087,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5114,7 +5104,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5122,16 +5112,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_INC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in increasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5139,7 +5129,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_increasing);
}
@@ -5153,7 +5143,7 @@ test_get_attribute_info(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5161,16 +5151,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 2, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5178,7 +5168,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5186,16 +5176,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 1, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5203,7 +5193,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5211,16 +5201,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_CRT_ORDER, H5_ITER_DEC, 0, &attr_info,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "creation order in decreasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "creation order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5228,7 +5218,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_crt_order_decreasing);
}
@@ -5244,16 +5234,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5261,7 +5251,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5269,16 +5259,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5286,7 +5276,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5294,16 +5284,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in increasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in increasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5311,7 +5301,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_increasing);
}
@@ -5327,16 +5317,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 2, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 2);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 2);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 0)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)0);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)0);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5344,7 +5334,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5352,16 +5342,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 1, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 1);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 1);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 1)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)1);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)1);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5369,7 +5359,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5377,16 +5367,16 @@ test_get_attribute_info(void)
if (H5Aget_info_by_idx(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, &attr_info, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
- "alphabetical order in decreasing order\n",
- 0);
+ printf(" couldn't get info for attribute at index %d using H5Aget_info_by_idx by "
+ "alphabetical order in decreasing order\n",
+ 0);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
if (attr_info.corder_valid && (attr_info.corder != 2)) {
H5_FAILED();
- HDprintf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
- (long long)attr_info.corder, (long long)2);
+ printf(" attribute's creation order value '%lld' did not match expected value '%lld'\n",
+ (long long)attr_info.corder, (long long)2);
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5394,7 +5384,7 @@ test_get_attribute_info(void)
if (attr_info.cset != H5T_CSET_ASCII && attr_info.cset != H5T_CSET_UTF8 &&
attr_info.cset != H5T_CSET_ERROR) {
H5_FAILED();
- HDprintf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
+ printf(" attribute info's 'cset' field wasn't set to a meaningful value\n");
PART_ERROR(H5Aget_info_by_idx_name_order_decreasing);
}
@@ -5462,7 +5452,7 @@ test_get_attribute_info_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -5471,21 +5461,21 @@ test_get_attribute_info_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -5499,20 +5489,20 @@ test_get_attribute_info_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_INFO_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -5532,7 +5522,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
+ printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
PART_ERROR(H5Aget_info_invalid_attr_id);
}
@@ -5552,7 +5542,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
+ printf(" retrieved attribute info using H5Aget_info with an invalid attr_id!\n");
PART_ERROR(H5Aget_info_invalid_attr_info_pointer);
}
@@ -5574,7 +5564,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid loc_id!\n");
PART_ERROR(H5Aget_info_by_name_invalid_loc_id);
}
@@ -5596,7 +5586,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with a NULL object name!\n");
PART_ERROR(H5Aget_info_by_name_invalid_obj_name);
}
@@ -5609,8 +5599,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_info_by_name_invalid_obj_name);
}
@@ -5630,7 +5620,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" retrieved attribute info using H5Aget_info_by_name with a NULL attribute name!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_name);
}
@@ -5643,8 +5633,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
- "name of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
+ "name of ''!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_name);
}
@@ -5665,8 +5655,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
- "info pointer!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid attribute "
+ "info pointer!\n");
PART_ERROR(H5Aget_info_by_name_invalid_attr_info_pointer);
}
@@ -5687,7 +5677,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_name with an invalid LAPL!\n");
PART_ERROR(H5Aget_info_by_name_invalid_lapl);
}
@@ -5708,7 +5698,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_loc_id);
}
@@ -5729,7 +5719,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with a NULL object name!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_obj_name);
}
@@ -5742,8 +5732,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name "
- "of ''!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_obj_name);
}
@@ -5764,8 +5754,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_index_type);
}
@@ -5778,8 +5768,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_index_type);
}
@@ -5800,8 +5790,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
- "H5_ITER_UNKNOWN!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_iter_order);
}
@@ -5814,8 +5804,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
- "H5_ITER_N!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with invalid iteration order "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_iter_order);
}
@@ -5835,8 +5825,8 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute "
- "info pointer!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid attribute "
+ "info pointer!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_attr_info_pointer);
}
@@ -5857,7 +5847,7 @@ test_get_attribute_info_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n");
+ printf(" retrieved attribute info using H5Aget_info_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Aget_info_by_idx_invalid_lapl);
}
@@ -5922,7 +5912,7 @@ test_rename_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -5931,20 +5921,20 @@ test_rename_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_TEST_GROUP_NAME);
goto error;
}
@@ -5957,39 +5947,39 @@ test_rename_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2, attr_dtype, attr_space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -6003,33 +5993,33 @@ test_rename_attribute(void)
if (H5Arename(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME) < 0) {
H5_FAILED();
- HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename\n",
- ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME);
+ printf(" couldn't rename attribute '%s' to '%s' using H5Arename\n",
+ ATTRIBUTE_RENAME_TEST_ATTR_NAME, ATTRIBUTE_RENAME_TEST_NEW_NAME);
PART_ERROR(H5Arename);
}
/* Verify the attribute has been renamed */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename);
}
@@ -6045,33 +6035,33 @@ test_rename_attribute(void)
ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n",
- ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2);
+ printf(" couldn't rename attribute '%s' to '%s' using H5Arename_by_name\n",
+ ATTRIBUTE_RENAME_TEST_ATTR_NAME2, ATTRIBUTE_RENAME_TEST_NEW_NAME2);
PART_ERROR(H5Arename_by_name);
}
/* Verify the attribute has been renamed */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename_by_name);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename_by_name);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_TEST_NEW_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Arename_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not get renamed!\n");
+ printf(" attribute did not get renamed!\n");
PART_ERROR(H5Arename_by_name);
}
@@ -6140,7 +6130,7 @@ test_rename_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_MORE)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -6149,21 +6139,20 @@ test_rename_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -6177,39 +6166,39 @@ test_rename_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_RENAME_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -6230,7 +6219,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid loc_id!\n");
+ printf(" renamed attribute using H5Arename with an invalid loc_id!\n");
PART_ERROR(H5Arename_invalid_loc_id);
}
@@ -6250,7 +6239,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with a NULL old attribute name!\n");
+ printf(" renamed attribute using H5Arename with a NULL old attribute name!\n");
PART_ERROR(H5Arename_invalid_old_attr_name);
}
@@ -6262,7 +6251,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n");
+ printf(" renamed attribute using H5Arename with an invalid old attribute name of ''!\n");
PART_ERROR(H5Arename_invalid_old_attr_name);
}
@@ -6282,7 +6271,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with a NULL new attribute name!\n");
+ printf(" renamed attribute using H5Arename with a NULL new attribute name!\n");
PART_ERROR(H5Arename_invalid_new_attr_name);
}
@@ -6294,7 +6283,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n");
+ printf(" renamed attribute using H5Arename with an invalid new attribute name of ''!\n");
PART_ERROR(H5Arename_invalid_new_attr_name);
}
@@ -6316,7 +6305,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid loc_id!\n");
PART_ERROR(H5Arename_by_name_invalid_loc_id);
}
@@ -6337,7 +6326,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL object name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL object name!\n");
PART_ERROR(H5Arename_by_name_invalid_obj_name);
}
@@ -6350,8 +6339,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " renamed attribute using H5Arename_by_name with an invalid object name of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid object name of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_obj_name);
}
@@ -6372,7 +6360,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL old attribute name!\n");
PART_ERROR(H5Arename_by_name_invalid_old_attr_name);
}
@@ -6385,8 +6373,8 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid old attribute name "
- "of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid old attribute name "
+ "of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_old_attr_name);
}
@@ -6407,7 +6395,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n");
+ printf(" renamed attribute using H5Arename_by_name with a NULL new attribute name!\n");
PART_ERROR(H5Arename_by_name_invalid_new_attr_name);
}
@@ -6420,8 +6408,8 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid new attribute name "
- "of ''!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid new attribute name "
+ "of ''!\n");
PART_ERROR(H5Arename_by_name_invalid_new_attr_name);
}
@@ -6442,7 +6430,7 @@ test_rename_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n");
+ printf(" renamed attribute using H5Arename_by_name with an invalid LAPL!\n");
PART_ERROR(H5Arename_by_name_invalid_lapl);
}
@@ -6515,8 +6503,8 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or iterate aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, or iterate aren't "
+ "supported with this connector\n");
return 0;
}
@@ -6524,26 +6512,26 @@ test_attribute_iterate_group(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -6551,7 +6539,7 @@ test_attribute_iterate_group(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME, H5P_DEFAULT,
gcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME);
goto error;
}
@@ -6571,26 +6559,26 @@ test_attribute_iterate_group(void)
if ((attr_id = H5Acreate2(group_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -6617,15 +6605,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -6642,15 +6630,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -6664,7 +6652,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -6674,15 +6662,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -6696,7 +6684,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -6706,15 +6694,15 @@ test_attribute_iterate_group(void)
if (H5Aiterate2(group_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -6733,15 +6721,15 @@ test_attribute_iterate_group(void)
file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -6760,15 +6748,15 @@ test_attribute_iterate_group(void)
file_id, "/" ATTRIBUTE_TEST_GROUP_NAME "/" ATTRIBUTE_ITERATE_TEST_GRP_SUBGROUP_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -6782,7 +6770,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -6794,15 +6782,15 @@ test_attribute_iterate_group(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -6816,7 +6804,7 @@ test_attribute_iterate_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -6828,15 +6816,15 @@ test_attribute_iterate_group(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -6911,8 +6899,8 @@ test_attribute_iterate_dataset(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -6920,33 +6908,33 @@ test_attribute_iterate_dataset(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_SUBGROUP_NAME);
goto error;
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL for attribute creation order tracking\n");
+ printf(" couldn't create DCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(dcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -6966,7 +6954,7 @@ test_attribute_iterate_dataset(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", ATTRIBUTE_ITERATE_TEST_DSET_NAME);
goto error;
}
@@ -6980,26 +6968,26 @@ test_attribute_iterate_dataset(void)
if ((attr_id = H5Acreate2(dset_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(dset_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -7026,15 +7014,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -7051,15 +7039,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -7073,7 +7061,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -7083,15 +7071,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -7105,7 +7093,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -7115,15 +7103,15 @@ test_attribute_iterate_dataset(void)
if (H5Aiterate2(dset_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -7144,15 +7132,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -7173,15 +7161,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -7195,7 +7183,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -7208,15 +7196,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -7230,7 +7218,7 @@ test_attribute_iterate_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -7243,15 +7231,15 @@ test_attribute_iterate_dataset(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -7333,8 +7321,8 @@ test_attribute_iterate_datatype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, stored datatype, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, stored datatype, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -7342,33 +7330,33 @@ test_attribute_iterate_datatype(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_SUBGROUP_NAME);
goto error;
}
if ((tcpl_id = H5Pcreate(H5P_DATATYPE_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create TCPL for attribute creation order tracking\n");
+ printf(" couldn't create TCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(tcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -7385,7 +7373,7 @@ test_attribute_iterate_datatype(void)
if (H5Tcommit2(group_id, ATTRIBUTE_ITERATE_TEST_DTYPE_NAME, type_id, H5P_DEFAULT, tcpl_id, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME);
+ printf(" couldn't commit datatype '%s'\n", ATTRIBUTE_ITERATE_TEST_DTYPE_NAME);
goto error;
}
@@ -7399,26 +7387,26 @@ test_attribute_iterate_datatype(void)
if ((attr_id = H5Acreate2(type_id, attr_name, attr_dtype, attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", attr_name);
+ printf(" couldn't create attribute '%s'\n", attr_name);
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(type_id, attr_name)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n", attr_name);
+ printf(" couldn't determine if attribute '%s' exists\n", attr_name);
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", attr_name);
+ printf(" attribute '%s' did not exist\n", attr_name);
goto error;
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", attr_name);
+ printf(" failed to close attribute '%s'\n", attr_name);
goto error;
}
}
@@ -7445,15 +7433,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in increasing order failed\n");
+ printf(" H5Aiterate2 by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_increasing);
}
@@ -7470,15 +7458,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter) <
0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type name in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_name_decreasing);
}
@@ -7492,7 +7480,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_increasing);
}
@@ -7502,15 +7490,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_increasing);
}
@@ -7524,7 +7512,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate2_creation_decreasing);
}
@@ -7534,15 +7522,15 @@ test_attribute_iterate_datatype(void)
if (H5Aiterate2(type_id, H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1,
&link_counter) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate2 by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
- "have been called!\n");
+ printf(" H5Aiterate sentinel value is unchanged; supplied callback function must not "
+ "have been called!\n");
PART_ERROR(H5Aiterate2_creation_decreasing);
}
@@ -7563,15 +7551,15 @@ test_attribute_iterate_datatype(void)
"/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME,
H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_increasing);
}
@@ -7592,15 +7580,15 @@ test_attribute_iterate_datatype(void)
"/" ATTRIBUTE_ITERATE_TEST_DTYPE_NAME,
H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type name in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_name_decreasing);
}
@@ -7614,7 +7602,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_increasing);
}
@@ -7628,15 +7616,15 @@ test_attribute_iterate_datatype(void)
H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in increasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 2 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_increasing);
}
@@ -7650,7 +7638,7 @@ test_attribute_iterate_datatype(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Aiterate_by_name_creation_decreasing);
}
@@ -7664,15 +7652,15 @@ test_attribute_iterate_datatype(void)
H5_INDEX_CRT_ORDER, H5_ITER_DEC, NULL, attr_iter_callback1, &link_counter,
H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
+ printf(" H5Aiterate_by_name by index type creation order in decreasing order failed\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
/* Make sure that the attribute iteration callback was actually called */
if (link_counter == 3 * ATTRIBUTE_ITERATE_TEST_NUM_ATTRS) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
- "must not have been called!\n");
+ printf(" H5Aiterate_by_name sentinel value is unchanged; supplied callback function "
+ "must not have been called!\n");
PART_ERROR(H5Aiterate_by_name_creation_decreasing);
}
@@ -7760,8 +7748,8 @@ test_attribute_iterate_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or iterate aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, attribute, or iterate aren't supported with this "
+ "connector\n");
return 0;
}
@@ -7769,20 +7757,20 @@ test_attribute_iterate_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -7796,77 +7784,77 @@ test_attribute_iterate_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id2 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id3 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
if ((attr_id4 = H5Acreate2(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4, attr_dtype,
attr_space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_ITERATE_INVALID_PARAMS_TEST_ATTR_NAME4)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -7887,7 +7875,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n");
+ printf(" iterated over attributes using H5Aiterate with an invalid loc_id!\n");
PART_ERROR(H5Aiterate_invalid_loc_id);
}
@@ -7908,8 +7896,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aiterate_invalid_index_type);
}
@@ -7921,8 +7909,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
- " iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Aiterate_invalid_index_type);
}
@@ -7943,8 +7930,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aiterate_invalid_index_order);
}
@@ -7956,7 +7943,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" iterated over attributes using H5Aiterate with invalid index ordering H5_ITER_N!\n");
PART_ERROR(H5Aiterate_invalid_index_order);
}
@@ -7978,7 +7965,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid loc_id!\n");
PART_ERROR(H5Aiterate_by_name_invalid_loc_id);
}
@@ -7999,7 +7986,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with a NULL object name!\n");
PART_ERROR(H5Aiterate_by_name_invalid_obj_name);
}
@@ -8012,8 +7999,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid object name "
- "of ''!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid object name "
+ "of ''!\n");
PART_ERROR(H5Aiterate_by_name_invalid_obj_name);
}
@@ -8034,8 +8021,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_type);
}
@@ -8048,8 +8035,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
- "H5_INDEX_N!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index type "
+ "H5_INDEX_N!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_type);
}
@@ -8070,8 +8057,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_order);
}
@@ -8084,8 +8071,8 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
- "H5_ITER_N!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with invalid index ordering "
+ "H5_ITER_N!\n");
PART_ERROR(H5Aiterate_by_name_invalid_index_order);
}
@@ -8106,7 +8093,7 @@ test_attribute_iterate_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n");
+ printf(" iterated over attributes using H5Aiterate_by_name with an invalid LAPL!\n");
PART_ERROR(H5Aiterate_by_name_invalid_lapl);
}
@@ -8180,8 +8167,8 @@ test_attribute_iterate_0_attributes(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_ITERATE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, attribute, or iterate "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, dataset, attribute, or iterate "
+ "aren't supported with this connector\n");
return 0;
}
@@ -8189,20 +8176,20 @@ test_attribute_iterate_0_attributes(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup\n");
+ printf(" couldn't create container subgroup\n");
goto error;
}
@@ -8216,7 +8203,7 @@ test_attribute_iterate_0_attributes(void)
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, dset_dtype,
dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -8230,7 +8217,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_native);
}
@@ -8244,7 +8231,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_INC, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_inc);
}
@@ -8258,7 +8245,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate2(dset_id, H5_INDEX_NAME, H5_ITER_DEC, NULL, attr_iter_callback2, NULL) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate2 on object with 0 attributes failed\n");
+ printf(" H5Aiterate2 on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_0_attributes_dec);
}
@@ -8273,7 +8260,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_NATIVE, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_native);
}
@@ -8288,7 +8275,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_INC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_inc);
}
@@ -8302,7 +8289,7 @@ test_attribute_iterate_0_attributes(void)
if (H5Aiterate_by_name(group_id, ATTRIBUTE_ITERATE_TEST_0_ATTRIBUTES_DSET_NAME, H5_INDEX_NAME,
H5_ITER_DEC, NULL, attr_iter_callback2, NULL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" H5Aiterate_by_name on object with 0 attributes failed\n");
+ printf(" H5Aiterate_by_name on object with 0 attributes failed\n");
PART_ERROR(H5Aiterate_by_name_0_attributes_dec);
}
@@ -8368,8 +8355,8 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or attribute aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, or attribute aren't supported "
+ "with this connector\n");
return 0;
}
@@ -8377,26 +8364,26 @@ test_delete_attribute(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((gcpl_id = H5Pcreate(H5P_GROUP_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create GCPL for attribute creation order tracking\n");
+ printf(" couldn't create GCPL for attribute creation order tracking\n");
goto error;
}
if (vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER) {
if (H5Pset_attr_creation_order(gcpl_id, H5P_CRT_ORDER_TRACKED) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order tracking\n");
+ printf(" couldn't set attribute creation order tracking\n");
goto error;
}
}
@@ -8404,7 +8391,7 @@ test_delete_attribute(void)
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5P_DEFAULT, gcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_DELETION_TEST_GROUP_NAME);
goto error;
}
@@ -8426,49 +8413,49 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Delete the attribute */
if (H5Adelete(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
/* Verify the attribute has been deleted */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete);
}
@@ -8491,22 +8478,22 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
@@ -8514,27 +8501,27 @@ test_delete_attribute(void)
if (H5Adelete_by_name(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME,
ATTRIBUTE_DELETION_TEST_ATTR_NAME, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to delete attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
/* Verify the attribute has been deleted */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_name);
}
@@ -8555,7 +8542,7 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8563,82 +8550,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8646,50 +8633,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8697,95 +8684,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_increasing);
}
@@ -8806,7 +8793,7 @@ test_delete_attribute(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking isn't supported with this VOL connector\n");
+ printf(" creation order tracking isn't supported with this VOL connector\n");
PART_EMPTY(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8814,82 +8801,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8897,50 +8884,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -8948,95 +8935,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_CRT_ORDER,
H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by creation order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_crt_order_decreasing);
}
@@ -9059,82 +9046,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9142,50 +9129,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9193,95 +9180,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_INC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "increasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "increasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_increasing);
}
@@ -9304,82 +9291,82 @@ test_delete_attribute(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't create attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Aclose(attr_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" failed to close attribute '%s'\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
/* Verify the attributes have been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' didn't exist before deletion\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' didn't exist before deletion\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9387,50 +9374,50 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 2, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
/* Ensure that the attribute is gone and others remain */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9438,95 +9425,95 @@ test_delete_attribute(void)
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 1, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' doesn't exist after deletion of a different attribute!\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (H5Adelete_by_idx(container_group, ATTRIBUTE_DELETION_TEST_GROUP_NAME, H5_INDEX_NAME,
H5_ITER_DEC, 0, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
- "decreasing order\n");
+ printf(" failed to delete attribute using H5Adelete_by_idx by alphabetical order in "
+ "decreasing order\n");
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME2);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_TEST_ATTR_NAME3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute '%s' exists\n",
- ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" couldn't determine if attribute '%s' exists\n",
+ ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
if (attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
+ printf(" attribute '%s' exists after deletion!\n", ATTRIBUTE_DELETION_TEST_ATTR_NAME3);
PART_ERROR(H5Adelete_by_idx_name_order_decreasing);
}
@@ -9601,7 +9588,7 @@ test_delete_attribute_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -9610,21 +9597,21 @@ test_delete_attribute_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -9638,20 +9625,20 @@ test_delete_attribute_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype,
space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DELETION_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute didn't exists\n");
+ printf(" attribute didn't exists\n");
goto error;
}
@@ -9671,7 +9658,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete with an invalid loc_id!\n");
PART_ERROR(H5Adelete_invalid_loc_id);
}
@@ -9691,7 +9678,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with a NULL attribute name!\n");
+ printf(" deleted an attribute using H5Adelete with a NULL attribute name!\n");
PART_ERROR(H5Adelete_invalid_attr_name);
}
@@ -9703,7 +9690,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n");
+ printf(" deleted an attribute using H5Adelete with an invalid attribute name of ''!\n");
PART_ERROR(H5Adelete_invalid_attr_name);
}
@@ -9724,7 +9711,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid loc_id!\n");
PART_ERROR(H5Adelete_by_name_invalid_loc_id);
}
@@ -9745,7 +9732,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with a NULL object name!\n");
PART_ERROR(H5Adelete_by_name_invalid_obj_name);
}
@@ -9758,7 +9745,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_name with an invalid object name of ''!\n");
PART_ERROR(H5Adelete_by_name_invalid_obj_name);
}
@@ -9779,7 +9766,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with a NULL attribute name!\n");
PART_ERROR(H5Adelete_by_name_invalid_attr_name);
}
@@ -9791,8 +9778,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of "
- "''!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid attribute name of "
+ "''!\n");
PART_ERROR(H5Adelete_by_name_invalid_attr_name);
}
@@ -9813,7 +9800,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n");
+ printf(" deleted an attribute using H5Adelete_by_name with an invalid LAPL!\n");
PART_ERROR(H5Adelete_by_name_invalid_lapl);
}
@@ -9833,7 +9820,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with an invalid loc_id!\n");
PART_ERROR(H5Adelete_by_idx_invalid_loc_id);
}
@@ -9853,7 +9840,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with a NULL object name!\n");
PART_ERROR(H5Adelete_by_idx_invalid_obj_name);
}
@@ -9865,7 +9852,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_idx with an invalid object name of ''!\n");
PART_ERROR(H5Adelete_by_idx_invalid_obj_name);
}
@@ -9886,8 +9873,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index type "
- "H5_INDEX_UNKNOWN!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index type "
+ "H5_INDEX_UNKNOWN!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_type);
}
@@ -9899,7 +9886,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(
+ printf(
" deleted an attribute using H5Adelete_by_idx with invalid index type H5_INDEX_N!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_type);
}
@@ -9920,8 +9907,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
- "H5_ITER_UNKNOWN!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
+ "H5_ITER_UNKNOWN!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_order);
}
@@ -9933,8 +9920,8 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
- "H5_ITER_N!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with invalid index ordering "
+ "H5_ITER_N!\n");
PART_ERROR(H5Adelete_by_idx_invalid_index_order);
}
@@ -9954,7 +9941,7 @@ test_delete_attribute_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n");
+ printf(" deleted an attribute using H5Adelete_by_idx with an invalid LAPL!\n");
PART_ERROR(H5Adelete_by_idx_invalid_lapl);
}
@@ -10018,7 +10005,7 @@ test_attribute_exists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -10027,20 +10014,20 @@ test_attribute_exists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_TEST_GROUP_NAME);
goto error;
}
@@ -10053,7 +10040,7 @@ test_attribute_exists(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
@@ -10067,13 +10054,13 @@ test_attribute_exists(void)
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
PART_ERROR(H5Aexists);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
PART_ERROR(H5Aexists);
}
@@ -10088,13 +10075,13 @@ test_attribute_exists(void)
if ((attr_exists = H5Aexists_by_name(container_group, ATTRIBUTE_EXISTS_TEST_GROUP_NAME,
ATTRIBUTE_EXISTS_TEST_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists by name\n");
+ printf(" couldn't determine if attribute exists by name\n");
PART_ERROR(H5Aexists_by_name);
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
+ printf(" attribute '%s' did not exist by name\n", ATTRIBUTE_EXISTS_TEST_ATTR_NAME);
PART_ERROR(H5Aexists_by_name);
}
@@ -10160,7 +10147,7 @@ test_attribute_exists_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
@@ -10169,21 +10156,20 @@ test_attribute_exists_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -10197,20 +10183,20 @@ test_attribute_exists_invalid_params(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_EXISTS_INVALID_PARAMS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute didn't exists\n");
+ printf(" attribute didn't exists\n");
goto error;
}
@@ -10230,7 +10216,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with an invalid loc_id succeeded!\n");
+ printf(" H5Aexists with an invalid loc_id succeeded!\n");
PART_ERROR(H5Aexists_invalid_loc_id);
}
@@ -10250,7 +10236,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with a NULL attribute name succeeded!\n");
+ printf(" H5Aexists with a NULL attribute name succeeded!\n");
PART_ERROR(H5Aexists_invalid_attr_name);
}
@@ -10262,7 +10248,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists with an invalid attribute name of '' succeeded!\n");
+ printf(" H5Aexists with an invalid attribute name of '' succeeded!\n");
PART_ERROR(H5Aexists_invalid_attr_name);
}
@@ -10283,7 +10269,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid loc_id succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid loc_id succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_loc_id);
}
@@ -10304,7 +10290,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with a NULL object name succeeded!\n");
+ printf(" H5Aexists_by_name with a NULL object name succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_obj_name);
}
@@ -10317,7 +10303,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid object name of '' succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_obj_name);
}
@@ -10338,7 +10324,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with a NULL attribute name succeeded!\n");
+ printf(" H5Aexists_by_name with a NULL attribute name succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_attr_name);
}
@@ -10351,7 +10337,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid attribute name of '' succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_attr_name);
}
@@ -10372,7 +10358,7 @@ test_attribute_exists_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Aexists_by_name with an invalid link access property list succeeded!\n");
+ printf(" H5Aexists_by_name with an invalid link access property list succeeded!\n");
PART_ERROR(H5Aexists_by_name_invalid_lapl);
}
@@ -10439,27 +10425,27 @@ test_attribute_many(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_MANY_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_MANY_GROUP_NAME);
goto error;
}
@@ -10475,20 +10461,20 @@ test_attribute_many(void)
if ((attr_id = H5Acreate2(group_id, attrname, attr_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, attrname)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -10547,27 +10533,27 @@ test_attribute_duplicate_id(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC)) {
SKIPPED();
- HDprintf(
+ printf(
" API functions for basic file, group, or attribute aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_DUPLICATE_ID_GRP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_DUPLICATE_ID_GRP_NAME);
goto error;
}
@@ -10580,27 +10566,27 @@ test_attribute_duplicate_id(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
/* Open the attribute just created and get a second ID */
if ((attr_id2 = H5Aopen(group_id, ATTRIBUTE_DUPLICATE_ID_ATTR_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" attribute can't be opened for a second time\n");
+ printf(" attribute can't be opened for a second time\n");
goto error;
}
@@ -10663,8 +10649,8 @@ test_get_number_attributes(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_ATTR_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, or object aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, attribute, or object aren't supported with this "
+ "connector\n");
return 0;
}
@@ -10672,20 +10658,20 @@ test_get_number_attributes(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME);
goto error;
}
@@ -10698,20 +10684,20 @@ test_get_number_attributes(void)
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME, attr_dtype, space_id,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_GET_NUM_ATTRS_TEST_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
@@ -10726,13 +10712,13 @@ test_get_number_attributes(void)
/* Now get the number of attributes from the group */
if (H5Oget_info3(group_id, &obj_info, H5O_INFO_ALL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info3\n");
+ printf(" couldn't retrieve group info using H5Oget_info3\n");
PART_ERROR(H5Oget_info);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info);
}
@@ -10747,13 +10733,13 @@ test_get_number_attributes(void)
if (H5Oget_info_by_name3(container_group, ATTRIBUTE_GET_NUM_ATTRS_TEST_GRP_NAME, &obj_info,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve group info using H5Oget_info_by_name3\n");
PART_ERROR(H5Oget_info_by_name);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info_by_name);
}
@@ -10768,13 +10754,13 @@ test_get_number_attributes(void)
if (H5Oget_info_by_idx3(container_group, ".", H5_INDEX_NAME, H5_ITER_INC, 0, &obj_info,
H5O_INFO_ALL, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve group info using H5Oget_info_by_idx3\n");
+ printf(" couldn't retrieve group info using H5Oget_info_by_idx3\n");
PART_ERROR(H5Oget_info_by_idx);
}
if (obj_info.num_attrs != 1) {
H5_FAILED();
- HDprintf(" invalid number of attributes received\n");
+ printf(" invalid number of attributes received\n");
PART_ERROR(H5Oget_info_by_idx);
}
@@ -10845,27 +10831,27 @@ test_attr_shared_dtype(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_STORED_DATATYPES) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_OBJECT_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, attribute, stored datatype, or object aren't "
- "supported with this connector\n");
+ printf(" API functions for basic file, group, attribute, stored datatype, or object aren't "
+ "supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file\n");
+ printf(" couldn't open file\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, ATTRIBUTE_SHARED_DTYPE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME);
+ printf(" couldn't create the group '%s'\n", ATTRIBUTE_SHARED_DTYPE_GROUP_NAME);
goto error;
}
@@ -10879,73 +10865,73 @@ test_attr_shared_dtype(void)
if (H5Tcommit2(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, attr_dtype, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't commit datatype\n");
+ printf(" couldn't commit datatype\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 1) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
if ((attr_id = H5Acreate2(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create attribute\n");
+ printf(" couldn't create attribute\n");
goto error;
}
/* Verify the attribute has been created */
if ((attr_exists = H5Aexists(group_id, ATTRIBUTE_SHARED_DTYPE_ATTR_NAME)) < 0) {
H5_FAILED();
- HDprintf(" couldn't determine if attribute exists\n");
+ printf(" couldn't determine if attribute exists\n");
goto error;
}
if (!attr_exists) {
H5_FAILED();
- HDprintf(" attribute did not exist\n");
+ printf(" attribute did not exist\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 2) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
if ((dset_id = H5Dcreate2(group_id, ATTRIBUTE_SHARED_DTYPE_DSET_NAME, attr_dtype, space_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
if (H5Oget_info_by_name3(group_id, ATTRIBUTE_SHARED_DTYPE_NAME, &obj_info, H5O_INFO_ALL, H5P_DEFAULT) <
0) {
H5_FAILED();
- HDprintf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
+ printf(" couldn't retrieve root group info using H5Oget_info_by_name3\n");
goto error;
}
if (obj_info.rc != 3) {
H5_FAILED();
- HDprintf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
+ printf(" reference count of the named datatype is wrong: %u\n", obj_info.rc);
goto error;
}
@@ -11016,7 +11002,7 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t *
}
if (HDstrncmp(attr_name, expected_attr_name, ATTRIBUTE_ITERATE_TEST_ATTR_NAME_BUF_SIZE)) {
- HDprintf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name);
+ printf(" attribute name '%s' didn't match expected name '%s'\n", attr_name, expected_attr_name);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -11043,8 +11029,8 @@ attr_iter_callback1(hid_t location_id, const char *attr_name, const H5A_info_t *
if (ainfo->corder != expected_crt_order) {
H5_FAILED();
- HDprintf(" attribute's creation order value of %lld didn't match expected value of %lld\n",
- (long long)ainfo->corder, (long long)expected_crt_order);
+ printf(" attribute's creation order value of %lld didn't match expected value of %lld\n",
+ (long long)ainfo->corder, (long long)expected_crt_order);
ret_val = H5_ITER_ERROR;
goto done;
}
@@ -11073,17 +11059,17 @@ H5_api_attribute_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Attribute Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Attribute Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(attribute_tests); i++) {
nerrors += (*attribute_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}
diff --git a/test/API/H5_api_dataset_test.c b/test/API/H5_api_dataset_test.c
index e31ed43..e3843a6 100644
--- a/test/API/H5_api_dataset_test.c
+++ b/test/API/H5_api_dataset_test.c
@@ -169,13 +169,13 @@ test_create_dataset_under_root(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -189,7 +189,7 @@ test_create_dataset_under_root(void)
if ((dset_id = H5Dcreate2(file_id, DATASET_CREATE_UNDER_ROOT_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_ROOT_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_ROOT_DSET_NAME);
goto error;
}
@@ -238,27 +238,26 @@ test_create_dataset_under_existing_group(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_UNDER_EXISTING_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_UNDER_EXISTING_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_CREATE_UNDER_EXISTING_GROUP_NAME);
goto error;
}
@@ -272,7 +271,7 @@ test_create_dataset_under_existing_group(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_UNDER_EXISTING_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_EXISTING_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_UNDER_EXISTING_DSET_NAME);
goto error;
}
@@ -327,8 +326,7 @@ test_create_dataset_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -336,20 +334,20 @@ test_create_dataset_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_INVALID_PARAMS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_CREATE_INVALID_PARAMS_GROUP_NAME);
goto error;
}
@@ -377,7 +375,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid loc_id!\n");
+ printf(" created dataset using H5Dcreate with an invalid loc_id!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_loc_id);
}
@@ -399,7 +397,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with a NULL dataset name!\n");
+ printf(" created dataset using H5Dcreate with a NULL dataset name!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dataset_name);
}
@@ -413,7 +411,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid dataset name of ''!\n");
+ printf(" created dataset using H5Dcreate with an invalid dataset name of ''!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dataset_name);
}
@@ -435,7 +433,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid datatype!\n");
+ printf(" created dataset using H5Dcreate with an invalid datatype!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_datatype);
}
@@ -457,7 +455,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid dataspace!\n");
+ printf(" created dataset using H5Dcreate with an invalid dataspace!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dataspace);
}
@@ -479,7 +477,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid LCPL!\n");
+ printf(" created dataset using H5Dcreate with an invalid LCPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_lcpl);
}
@@ -501,7 +499,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid DCPL!\n");
+ printf(" created dataset using H5Dcreate with an invalid DCPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dcpl);
}
@@ -523,7 +521,7 @@ test_create_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created dataset using H5Dcreate with an invalid DAPL!\n");
+ printf(" created dataset using H5Dcreate with an invalid DAPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_invalid_dapl);
}
@@ -584,27 +582,26 @@ test_create_anonymous_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_ANONYMOUS_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_CREATE_ANONYMOUS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_CREATE_ANONYMOUS_GROUP_NAME);
goto error;
}
@@ -616,7 +613,7 @@ test_create_anonymous_dataset(void)
if ((dset_id = H5Dcreate_anon(group_id, dset_dtype, fspace_id, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create anonymous dataset\n");
+ printf(" couldn't create anonymous dataset\n");
goto error;
}
@@ -672,8 +669,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -681,21 +677,21 @@ test_create_anonymous_dataset_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ DATASET_CREATE_ANONYMOUS_INVALID_PARAMS_GROUP_NAME);
goto error;
}
@@ -722,7 +718,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid loc_id!\n");
+ printf(" created anonymous dataset using an invalid loc_id!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_loc_id);
}
@@ -743,7 +739,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid dataset datatype!\n");
+ printf(" created anonymous dataset using an invalid dataset datatype!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_datatype);
}
@@ -764,7 +760,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid dataset dataspace!\n");
+ printf(" created anonymous dataset using an invalid dataset dataspace!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_dataspace);
}
@@ -785,7 +781,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid DCPL!\n");
+ printf(" created anonymous dataset using an invalid DCPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_dcpl);
}
@@ -806,7 +802,7 @@ test_create_anonymous_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" created anonymous dataset using an invalid DAPL!\n");
+ printf(" created anonymous dataset using an invalid DAPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dcreate_anon_invalid_dapl);
}
@@ -868,28 +864,27 @@ test_create_dataset_null_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ DATASET_CREATE_NULL_DATASPACE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -902,7 +897,7 @@ test_create_dataset_null_space(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -911,7 +906,7 @@ test_create_dataset_null_space(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_CREATE_NULL_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -966,28 +961,27 @@ test_create_dataset_scalar_space(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container subgroup '%s'\n",
- DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container subgroup '%s'\n",
+ DATASET_CREATE_SCALAR_DATASPACE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1000,7 +994,7 @@ test_create_dataset_scalar_space(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -1009,7 +1003,7 @@ test_create_dataset_scalar_space(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_CREATE_SCALAR_DATASPACE_TEST_DSET_NAME);
goto error;
}
@@ -1066,27 +1060,26 @@ test_create_zero_dim_dset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATATYPE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATATYPE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, ZERO_DIM_DSET_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", ZERO_DIM_DSET_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", ZERO_DIM_DSET_TEST_GROUP_NAME);
goto error;
}
@@ -1096,27 +1089,27 @@ test_create_zero_dim_dset(void)
if ((dset_id = H5Dcreate2(group_id, ZERO_DIM_DSET_TEST_DSET_NAME, H5T_NATIVE_INT, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to create 0-sized dataset\n");
+ printf(" failed to create 0-sized dataset\n");
goto error;
}
if (H5Sselect_none(fspace_id) < 0) {
H5_FAILED();
- HDprintf(" failed to set none selection in dataset's file dataspace\n");
+ printf(" failed to set none selection in dataset's file dataspace\n");
goto error;
}
/* Attempt to write 0 elements to dataset */
if (H5Dwrite(dset_id, H5T_NATIVE_INT, fspace_id, fspace_id, H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" failed to write 0 elements to 0-sized dataset\n");
+ printf(" failed to write 0 elements to 0-sized dataset\n");
goto error;
}
/* Attempt to read 0 elements from dataset */
if (H5Dread(dset_id, H5T_NATIVE_INT, fspace_id, fspace_id, H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" failed to read 0 elements from 0-sized dataset\n");
+ printf(" failed to read 0 elements from 0-sized dataset\n");
goto error;
}
@@ -1168,27 +1161,26 @@ test_create_dataset_random_shapes(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group\n");
+ printf(" couldn't open container group\n");
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SHAPE_TEST_SUBGROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group\n");
+ printf(" couldn't create container sub-group\n");
goto error;
}
@@ -1201,7 +1193,7 @@ test_create_dataset_random_shapes(void)
if ((space_id = generate_random_dataspace(ndims, NULL, NULL, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataspace\n");
+ printf(" couldn't create dataspace\n");
goto error;
}
@@ -1210,7 +1202,7 @@ test_create_dataset_random_shapes(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, space_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
goto error;
}
@@ -1273,28 +1265,26 @@ test_create_dataset_predefined_types(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create sub-container group '%s'\n",
- DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create sub-container group '%s'\n", DATASET_PREDEFINED_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1310,7 +1300,7 @@ test_create_dataset_predefined_types(void)
if ((dset_id = H5Dcreate2(group_id, name, predefined_type_test_table[i], fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
goto error;
}
@@ -1321,7 +1311,7 @@ test_create_dataset_predefined_types(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", name);
+ printf(" failed to open dataset '%s'\n", name);
goto error;
}
@@ -1373,8 +1363,7 @@ test_create_dataset_string_types(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -1382,32 +1371,32 @@ test_create_dataset_string_types(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_STRING_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_STRING_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_STRING_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
if ((type_id_fixed = H5Tcreate(H5T_STRING, DATASET_STRING_TYPE_TEST_STRING_LENGTH)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create fixed-length string type\n");
+ printf(" couldn't create fixed-length string type\n");
goto error;
}
if ((type_id_variable = H5Tcreate(H5T_STRING, H5T_VARIABLE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create variable-length string type\n");
+ printf(" couldn't create variable-length string type\n");
goto error;
}
@@ -1425,8 +1414,8 @@ test_create_dataset_string_types(void)
if ((dset_id_fixed = H5Dcreate2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME1, type_id_fixed,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create fixed-length string dataset '%s'\n",
- DATASET_STRING_TYPE_TEST_DSET_NAME1);
+ printf(" couldn't create fixed-length string dataset '%s'\n",
+ DATASET_STRING_TYPE_TEST_DSET_NAME1);
PART_ERROR(H5Dcreate_fixed_string_type);
}
@@ -1441,7 +1430,7 @@ test_create_dataset_string_types(void)
if ((dset_id_fixed = H5Dopen2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME1);
+ printf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME1);
PART_ERROR(H5Dcreate_fixed_string_type);
}
@@ -1457,8 +1446,8 @@ test_create_dataset_string_types(void)
H5Dcreate2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME2, type_id_variable, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create variable-length string dataset '%s'\n",
- DATASET_STRING_TYPE_TEST_DSET_NAME2);
+ printf(" couldn't create variable-length string dataset '%s'\n",
+ DATASET_STRING_TYPE_TEST_DSET_NAME2);
PART_ERROR(H5Dcreate_variable_string_type);
}
@@ -1474,7 +1463,7 @@ test_create_dataset_string_types(void)
if ((dset_id_variable = H5Dopen2(group_id, DATASET_STRING_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_STRING_TYPE_TEST_DSET_NAME2);
PART_ERROR(H5Dcreate_variable_string_type);
}
@@ -1546,8 +1535,7 @@ test_create_dataset_compound_types(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -1561,20 +1549,20 @@ test_create_dataset_compound_types(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_COMPOUND_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1601,7 +1589,7 @@ test_create_dataset_compound_types(void)
if ((compound_type = H5Tcreate(H5T_COMPOUND, 1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create compound datatype\n");
+ printf(" couldn't create compound datatype\n");
goto error;
}
@@ -1614,13 +1602,13 @@ test_create_dataset_compound_types(void)
if ((type_pool[j] = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create compound datatype member %zu\n", j);
+ printf(" couldn't create compound datatype member %zu\n", j);
goto error;
}
if (!(member_size = H5Tget_size(type_pool[j]))) {
H5_FAILED();
- HDprintf(" couldn't get compound member %zu size\n", j);
+ printf(" couldn't get compound member %zu size\n", j);
goto error;
}
@@ -1643,7 +1631,7 @@ test_create_dataset_compound_types(void)
if ((dset_id = H5Dcreate2(group_id, dset_name, compound_type, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", dset_name);
+ printf(" couldn't create dataset '%s'\n", dset_name);
goto error;
}
@@ -1652,7 +1640,7 @@ test_create_dataset_compound_types(void)
if ((dset_id = H5Dopen2(group_id, dset_name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", dset_name);
+ printf(" failed to open dataset '%s'\n", dset_name);
goto error;
}
@@ -1717,33 +1705,32 @@ test_create_dataset_enum_types(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_ENUM_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
if ((enum_native = H5Tcreate(H5T_ENUM, sizeof(int))) < 0) {
H5_FAILED();
- HDprintf(" couldn't create native enum type\n");
+ printf(" couldn't create native enum type\n");
goto error;
}
@@ -1753,7 +1740,7 @@ test_create_dataset_enum_types(void)
if ((enum_non_native = H5Tenum_create(H5T_STD_U32LE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create non-native enum type\n");
+ printf(" couldn't create non-native enum type\n");
goto error;
}
@@ -1772,14 +1759,14 @@ test_create_dataset_enum_types(void)
if ((dset_id_native = H5Dcreate2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME1, enum_native, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
+ printf(" couldn't create native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id_non_native = H5Dcreate2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME2, enum_non_native,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create non-native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
+ printf(" couldn't create non-native enum dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
goto error;
}
@@ -1790,13 +1777,13 @@ test_create_dataset_enum_types(void)
if ((dset_id_native = H5Dopen2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
+ printf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id_non_native = H5Dopen2(group_id, DATASET_ENUM_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_ENUM_TYPE_TEST_DSET_NAME2);
goto error;
}
@@ -1865,27 +1852,26 @@ test_create_dataset_array_types(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_ARRAY_TYPE_TEST_SUBGROUP_NAME);
goto error;
}
@@ -1899,7 +1885,7 @@ test_create_dataset_array_types(void)
if ((array_type_id1 = H5Tarray_create2(array_base_type_id1, DATASET_ARRAY_TYPE_TEST_RANK1, array_dims1)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create first array type\n");
+ printf(" couldn't create first array type\n");
goto error;
}
@@ -1912,7 +1898,7 @@ test_create_dataset_array_types(void)
if ((array_type_id2 = H5Tarray_create2(array_base_type_id2, DATASET_ARRAY_TYPE_TEST_RANK2, array_dims2)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create second array type\n");
+ printf(" couldn't create second array type\n");
goto error;
}
@@ -1926,13 +1912,13 @@ test_create_dataset_array_types(void)
if ((nested_type_id = H5Tarray_create2(array_base_type_id3, DATASET_ARRAY_TYPE_TEST_RANK3, array_dims3)) <
0) {
H5_FAILED();
- HDprintf(" couldn't create nested array base type\n");
+ printf(" couldn't create nested array base type\n");
goto error;
}
if ((array_type_id3 = H5Tarray_create2(nested_type_id, DATASET_ARRAY_TYPE_TEST_RANK3, array_dims3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested array type\n");
+ printf(" couldn't create nested array type\n");
goto error;
}
@@ -1942,21 +1928,21 @@ test_create_dataset_array_types(void)
if ((dset_id1 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME1, array_type_id1, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
+ printf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id2 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME2, array_type_id2, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
+ printf(" couldn't create array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
goto error;
}
if ((dset_id3 = H5Dcreate2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME3, array_type_id3, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create nested array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
+ printf(" couldn't create nested array type dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
goto error;
}
@@ -1969,19 +1955,19 @@ test_create_dataset_array_types(void)
if ((dset_id1 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
+ printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME1);
goto error;
}
if ((dset_id2 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME2);
goto error;
}
if ((dset_id3 = H5Dopen2(group_id, DATASET_ARRAY_TYPE_TEST_DSET_NAME3, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
+ printf(" failed to open dataset '%s'\n", DATASET_ARRAY_TYPE_TEST_DSET_NAME3);
goto error;
}
@@ -2063,8 +2049,8 @@ test_create_dataset_creation_properties(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or dataset "
- "aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset "
+ "aren't supported with this connector\n");
return 0;
}
@@ -2072,20 +2058,20 @@ test_create_dataset_creation_properties(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create group '%s'\n", DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME);
+ printf(" couldn't create group '%s'\n", DATASET_CREATION_PROPERTIES_TEST_GROUP_NAME);
goto error;
}
@@ -2119,7 +2105,7 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2128,7 +2114,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_alloc_time(dcpl_id, alloc_times[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set alloc time property value\n");
+ printf(" couldn't set alloc time property value\n");
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2137,7 +2123,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2152,7 +2138,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_alloc_time_test);
}
@@ -2189,13 +2175,13 @@ test_create_dataset_creation_properties(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_CREATION_ORDER)) {
SKIPPED();
- HDprintf(" creation order tracking is not supported by this VOL connector\n");
+ printf(" creation order tracking is not supported by this VOL connector\n");
PART_EMPTY(DCPL_attr_crt_order_test);
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2204,7 +2190,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_attr_creation_order(dcpl_id, creation_orders[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute creation order property\n");
+ printf(" couldn't set attribute creation order property\n");
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2213,7 +2199,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2228,7 +2214,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_attr_crt_order_test);
}
@@ -2262,22 +2248,22 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_attr_phase_change_test);
}
if (H5Pset_attr_phase_change(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_MAX_COMPACT,
DATASET_CREATION_PROPERTIES_TEST_MIN_DENSE) < 0) {
H5_FAILED();
- HDprintf(" couldn't set attribute phase change property\n");
+ printf(" couldn't set attribute phase change property\n");
PART_ERROR(DCPL_attr_phase_change_test);
}
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME,
dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
PART_ERROR(DCPL_attr_phase_change_test);
}
@@ -2293,8 +2279,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_PHASE_CHANGE_DSET_NAME);
PART_ERROR(DCPL_attr_phase_change_test);
}
@@ -2328,7 +2314,7 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2337,7 +2323,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_fill_time(dcpl_id, fill_times[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set dataset fill time property\n");
+ printf(" couldn't set dataset fill time property\n");
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2346,7 +2332,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, name, dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2361,7 +2347,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_fill_time_property_test);
}
@@ -2397,46 +2383,46 @@ test_create_dataset_creation_properties(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILTERS)) {
SKIPPED();
- HDprintf(" dataset filters are not supported by this VOL connector\n");
+ printf(" dataset filters are not supported by this VOL connector\n");
PART_EMPTY(DCPL_filters_test);
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_chunk(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_SHAPE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't set chunking on DCPL\n");
+ printf(" couldn't set chunking on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
/* Set all of the available filters on the DCPL */
if (H5Pset_deflate(dcpl_id, 7) < 0) {
H5_FAILED();
- HDprintf(" couldn't set deflate filter on DCPL\n");
+ printf(" couldn't set deflate filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_shuffle(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't set shuffle filter on DCPL\n");
+ printf(" couldn't set shuffle filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_fletcher32(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't set fletcher32 filter on DCPL\n");
+ printf(" couldn't set fletcher32 filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_nbit(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't set nbit filter on DCPL\n");
+ printf(" couldn't set nbit filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
if (H5Pset_scaleoffset(dcpl_id, H5Z_SO_FLOAT_ESCALE, 2) < 0) {
H5_FAILED();
- HDprintf(" couldn't set scaleoffset filter on DCPL\n");
+ printf(" couldn't set scaleoffset filter on DCPL\n");
PART_ERROR(DCPL_filters_test);
}
@@ -2446,8 +2432,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME,
H5T_NATIVE_INT, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
PART_ERROR(DCPL_filters_test);
}
@@ -2463,8 +2449,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_FILTERS_DSET_NAME);
PART_ERROR(DCPL_filters_test);
}
@@ -2499,7 +2485,7 @@ test_create_dataset_creation_properties(void)
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2508,7 +2494,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_layout(dcpl_id, layouts[i]) < 0) {
H5_FAILED();
- HDprintf(" couldn't set storage layout property\n");
+ printf(" couldn't set storage layout property\n");
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2522,7 +2508,7 @@ test_create_dataset_creation_properties(void)
if (H5Pset_chunk(dcpl_id, DATASET_CREATION_PROPERTIES_TEST_CHUNK_DIM_RANK,
local_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't set chunk dimensionality\n");
+ printf(" couldn't set chunk dimensionality\n");
PART_ERROR(DCPL_storage_layout_test);
}
}
@@ -2534,7 +2520,7 @@ test_create_dataset_creation_properties(void)
(H5D_COMPACT == layouts[i]) ? compact_fspace_id : fspace_id, H5P_DEFAULT,
dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", name);
+ printf(" couldn't create dataset '%s'\n", name);
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2549,7 +2535,7 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, name, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", name);
+ printf(" couldn't open dataset '%s'\n", name);
PART_ERROR(DCPL_storage_layout_test);
}
@@ -2583,27 +2569,27 @@ test_create_dataset_creation_properties(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_TRACK_TIMES)) {
SKIPPED();
- HDprintf(" object time tracking is not supported by this VOL connector\n");
+ printf(" object time tracking is not supported by this VOL connector\n");
PART_EMPTY(DCPL_track_obj_times_test);
}
if ((dcpl_id = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
PART_ERROR(DCPL_track_obj_times_test);
}
if (H5Pset_obj_track_times(dcpl_id, true) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object time tracking property\n");
+ printf(" couldn't set object time tracking property\n");
PART_ERROR(DCPL_track_obj_times_test);
}
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME,
dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2619,8 +2605,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_YES_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2635,15 +2621,15 @@ test_create_dataset_creation_properties(void)
if (H5Pset_obj_track_times(dcpl_id, false) < 0) {
H5_FAILED();
- HDprintf(" couldn't set object time tracking property\n");
+ printf(" couldn't set object time tracking property\n");
PART_ERROR(DCPL_track_obj_times_test);
}
if ((dset_id = H5Dcreate2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME,
dset_dtype, fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2659,8 +2645,8 @@ test_create_dataset_creation_properties(void)
if ((dset_id = H5Dopen2(group_id, DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_CREATION_PROPERTIES_TEST_TRACK_TIMES_NO_DSET_NAME);
PART_ERROR(DCPL_track_obj_times_test);
}
@@ -2746,58 +2732,57 @@ test_create_many_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MANY_CREATE_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_MANY_CREATE_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_MANY_CREATE_GROUP_NAME);
goto error;
}
if ((dataspace_id = H5Screate(H5S_SCALAR)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create scalar data space\n");
+ printf(" couldn't create scalar data space\n");
goto error;
}
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < DATASET_NUMB; i++) {
- HDprintf("\r %u/%u", i + 1, DATASET_NUMB);
+ printf("\r %u/%u", i + 1, DATASET_NUMB);
sprintf(dset_name, "dset_%02u", i);
data = i % 256;
if ((dset_id = H5Dcreate2(group_id, dset_name, H5T_NATIVE_UCHAR, dataspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", dset_name);
+ printf(" couldn't create dataset '%s'\n", dset_name);
goto error;
}
if (H5Dwrite(dset_id, H5T_NATIVE_UCHAR, H5S_ALL, H5S_ALL, H5P_DEFAULT, &data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", dset_name);
+ printf(" couldn't write to dataset '%s'\n", dset_name);
goto error;
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" couldn't close dataset '%s'\n", dset_name);
+ printf(" couldn't close dataset '%s'\n", dset_name);
goto error;
}
}
@@ -2862,8 +2847,7 @@ test_open_dataset_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -2871,20 +2855,20 @@ test_open_dataset_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_OPEN_INVALID_PARAMS_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_OPEN_INVALID_PARAMS_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_OPEN_INVALID_PARAMS_GROUP_NAME);
goto error;
}
@@ -2898,7 +2882,7 @@ test_open_dataset_invalid_params(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_OPEN_INVALID_PARAMS_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_OPEN_INVALID_PARAMS_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_OPEN_INVALID_PARAMS_DSET_NAME);
goto error;
}
@@ -2921,7 +2905,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with an invalid loc_id!\n");
+ printf(" opened dataset using H5Dopen2 with an invalid loc_id!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_loc_id);
}
@@ -2942,7 +2926,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with a NULL dataset name!\n");
+ printf(" opened dataset using H5Dopen2 with a NULL dataset name!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_dataset_name);
}
@@ -2955,7 +2939,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with an invalid dataset name of ''!\n");
+ printf(" opened dataset using H5Dopen2 with an invalid dataset name of ''!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_dataset_name);
}
@@ -2976,7 +2960,7 @@ test_open_dataset_invalid_params(void)
if (dset_id >= 0) {
H5_FAILED();
- HDprintf(" opened dataset using H5Dopen2 with an invalid DAPL!\n");
+ printf(" opened dataset using H5Dopen2 with an invalid DAPL!\n");
H5Dclose(dset_id);
PART_ERROR(H5Dopen_invalid_dapl);
}
@@ -3034,13 +3018,13 @@ test_close_dataset_invalid_params(void)
/* Make sure the connector supports the API functions being tested */
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(" API functions for basic file or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
@@ -3052,7 +3036,7 @@ test_close_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" H5Dclose succeeded with an invalid dataset ID!\n");
+ printf(" H5Dclose succeeded with an invalid dataset ID!\n");
goto error;
}
@@ -3098,8 +3082,7 @@ test_get_dataset_space_and_type(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -3107,20 +3090,20 @@ test_get_dataset_space_and_type(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n", DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n", DATASET_GET_SPACE_TYPE_TEST_GROUP_NAME);
goto error;
}
@@ -3134,7 +3117,7 @@ test_get_dataset_space_and_type(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, dset_dtype, dset_space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
goto error;
}
@@ -3149,7 +3132,7 @@ test_get_dataset_space_and_type(void)
if ((tmp_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's datatype\n");
+ printf(" couldn't retrieve dataset's datatype\n");
PART_ERROR(H5Dget_type);
}
@@ -3158,13 +3141,13 @@ test_get_dataset_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Dget_type);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" dataset's datatype did not match\n");
+ printf(" dataset's datatype did not match\n");
PART_ERROR(H5Dget_type);
}
}
@@ -3179,7 +3162,7 @@ test_get_dataset_space_and_type(void)
if ((tmp_space_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's dataspace\n");
+ printf(" couldn't retrieve dataset's dataspace\n");
PART_ERROR(H5Dget_space);
}
@@ -3188,14 +3171,14 @@ test_get_dataset_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataspace dimensions\n");
+ printf(" couldn't retrieve dataspace dimensions\n");
PART_ERROR(H5Dget_space);
}
for (i = 0; i < DATASET_GET_SPACE_TYPE_TEST_SPACE_RANK; i++)
if (space_dims[i] != dset_dims[i]) {
H5_FAILED();
- HDprintf(" dataset's dataspace dims didn't match\n");
+ printf(" dataset's dataspace dims didn't match\n");
PART_ERROR(H5Dget_space);
}
}
@@ -3238,13 +3221,13 @@ test_get_dataset_space_and_type(void)
if ((dset_id = H5Dopen2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
PART_ERROR(H5Dget_type_reopened);
}
if ((tmp_type_id = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's datatype\n");
+ printf(" couldn't retrieve dataset's datatype\n");
PART_ERROR(H5Dget_type_reopened);
}
@@ -3253,13 +3236,13 @@ test_get_dataset_space_and_type(void)
if (types_equal < 0) {
H5_FAILED();
- HDprintf(" datatype was invalid\n");
+ printf(" datatype was invalid\n");
PART_ERROR(H5Dget_type_reopened);
}
if (!types_equal) {
H5_FAILED();
- HDprintf(" dataset's datatype did not match\n");
+ printf(" dataset's datatype did not match\n");
PART_ERROR(H5Dget_type_reopened);
}
}
@@ -3283,13 +3266,13 @@ test_get_dataset_space_and_type(void)
if ((dset_id = H5Dopen2(group_id, DATASET_GET_SPACE_TYPE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_GET_SPACE_TYPE_TEST_DSET_NAME);
PART_ERROR(H5Dget_space_reopened);
}
if ((tmp_space_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataset's dataspace\n");
+ printf(" couldn't retrieve dataset's dataspace\n");
PART_ERROR(H5Dget_space_reopened);
}
@@ -3298,14 +3281,14 @@ test_get_dataset_space_and_type(void)
if (H5Sget_simple_extent_dims(tmp_space_id, space_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve dataspace dimensions\n");
+ printf(" couldn't retrieve dataspace dimensions\n");
PART_ERROR(H5Dget_space_reopened);
}
for (i = 0; i < DATASET_GET_SPACE_TYPE_TEST_SPACE_RANK; i++) {
if (space_dims[i] != dset_dims[i]) {
H5_FAILED();
- HDprintf(" dataset's dataspace dims didn't match!\n");
+ printf(" dataset's dataspace dims didn't match!\n");
PART_ERROR(H5Dget_space_reopened);
}
}
@@ -3387,8 +3370,7 @@ test_get_dataset_space_and_type_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -3396,21 +3378,21 @@ test_get_dataset_space_and_type_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, ATTRIBUTE_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", ATTRIBUTE_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container group '%s'\n",
- DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container group '%s'\n",
+ DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -3424,7 +3406,7 @@ test_get_dataset_space_and_type_invalid_params(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype,
dset_space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_GET_SPACE_TYPE_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
@@ -3444,7 +3426,7 @@ test_get_dataset_space_and_type_invalid_params(void)
if (tmp_type_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of dataset's datatype using an invalid dataset ID!\n");
+ printf(" retrieved copy of dataset's datatype using an invalid dataset ID!\n");
PART_ERROR(H5Dget_type_invalid_dset_id);
}
@@ -3464,7 +3446,7 @@ test_get_dataset_space_and_type_invalid_params(void)
if (tmp_space_id >= 0) {
H5_FAILED();
- HDprintf(" retrieved copy of dataset's dataspace using an invalid dataset ID!\n");
+ printf(" retrieved copy of dataset's dataspace using an invalid dataset ID!\n");
PART_ERROR(H5Dget_space_invalid_dset_id);
}
@@ -3571,8 +3553,8 @@ test_dataset_property_lists(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
@@ -3580,27 +3562,27 @@ test_dataset_property_lists(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
/** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */
if (H5VLget_connector_name(file_id, vol_name, 5) < 0) {
H5_FAILED();
- HDprintf(" couldn't get VOL connector name\n");
+ printf(" couldn't get VOL connector name\n");
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_PROPERTY_LIST_TEST_SUBGROUP_NAME);
goto error;
}
@@ -3621,27 +3603,27 @@ test_dataset_property_lists(void)
if ((dcpl_id1 = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DCPL\n");
+ printf(" couldn't create DCPL\n");
goto error;
}
if (H5Pset_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't set DCPL property\n");
+ printf(" couldn't set DCPL property\n");
goto error;
}
if ((dset_id1 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME1, dset_dtype1, space_id,
H5P_DEFAULT, dcpl_id1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
+ printf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
goto error;
}
if ((dset_id2 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME2, dset_dtype2, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
+ printf(" couldn't create dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
goto error;
}
@@ -3660,13 +3642,13 @@ test_dataset_property_lists(void)
* does not */
if ((dcpl_id1 = H5Dget_create_plist(dset_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist);
}
if ((dcpl_id2 = H5Dget_create_plist(dset_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist);
}
@@ -3678,14 +3660,14 @@ test_dataset_property_lists(void)
if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't get DCPL property value\n");
+ printf(" couldn't get DCPL property value\n");
PART_ERROR(H5Dget_create_plist);
}
for (i = 0; i < DATASET_PROPERTY_LIST_TEST_SPACE_RANK; i++)
if (tmp_chunk_dims[i] != chunk_dims[i]) {
H5_FAILED();
- HDprintf(" DCPL property values were incorrect\n");
+ printf(" DCPL property values were incorrect\n");
PART_ERROR(H5Dget_create_plist);
}
@@ -3698,8 +3680,8 @@ test_dataset_property_lists(void)
/* DAOS VOL can auto chunk, so don't fail */
if (err_ret >= 0 && strcmp(vol_name, "daos") != 0) {
H5_FAILED();
- HDprintf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
- "layout)\n");
+ printf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
+ "layout)\n");
PART_ERROR(H5Dget_create_plist);
}
}
@@ -3714,27 +3696,27 @@ test_dataset_property_lists(void)
if ((dapl_id1 = H5Pcreate(H5P_DATASET_ACCESS)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create DAPL\n");
+ printf(" couldn't create DAPL\n");
PART_ERROR(H5Dget_access_plist);
}
if (H5Pset_efile_prefix(dapl_id1, path_prefix) < 0) {
H5_FAILED();
- HDprintf(" couldn't set DAPL property\n");
+ printf(" couldn't set DAPL property\n");
PART_ERROR(H5Dget_access_plist);
}
if ((dset_id3 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME3, dset_dtype3, space_id,
H5P_DEFAULT, H5P_DEFAULT, dapl_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
PART_ERROR(H5Dget_access_plist);
}
if ((dset_id4 = H5Dcreate2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME4, dset_dtype4, space_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset\n");
+ printf(" couldn't create dataset\n");
PART_ERROR(H5Dget_access_plist);
}
@@ -3751,13 +3733,13 @@ test_dataset_property_lists(void)
* does not */
if ((dapl_id1 = H5Dget_access_plist(dset_id3)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_access_plist);
}
if ((dapl_id2 = H5Dget_access_plist(dset_id4)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_access_plist);
}
@@ -3767,25 +3749,25 @@ test_dataset_property_lists(void)
if ((buf_size = H5Pget_efile_prefix(dapl_id1, NULL, 0)) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve size for property value buffer\n");
+ printf(" couldn't retrieve size for property value buffer\n");
PART_ERROR(H5Dget_access_plist);
}
if (NULL == (tmp_prefix = (char *)HDcalloc(1, (size_t)buf_size + 1))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for property value\n");
+ printf(" couldn't allocate buffer for property value\n");
PART_ERROR(H5Dget_access_plist);
}
if (H5Pget_efile_prefix(dapl_id1, tmp_prefix, (size_t)buf_size + 1) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve property list value\n");
+ printf(" couldn't retrieve property list value\n");
PART_ERROR(H5Dget_access_plist);
}
if (HDstrncmp(tmp_prefix, path_prefix, (size_t)buf_size + 1)) {
H5_FAILED();
- HDprintf(" DAPL values were incorrect!\n");
+ printf(" DAPL values were incorrect!\n");
PART_ERROR(H5Dget_access_plist);
}
@@ -3793,13 +3775,13 @@ test_dataset_property_lists(void)
if (H5Pget_efile_prefix(dapl_id2, tmp_prefix, (size_t)buf_size) < 0) {
H5_FAILED();
- HDprintf(" couldn't retrieve property list value\n");
+ printf(" couldn't retrieve property list value\n");
PART_ERROR(H5Dget_access_plist);
}
if (!HDstrncmp(tmp_prefix, path_prefix, (size_t)buf_size + 1)) {
H5_FAILED();
- HDprintf(" DAPL property value was set!\n");
+ printf(" DAPL property value was set!\n");
PART_ERROR(H5Dget_access_plist);
}
}
@@ -3850,25 +3832,25 @@ test_dataset_property_lists(void)
if ((dset_id1 = H5Dopen2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME1, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
+ printf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME1);
PART_ERROR(H5Dget_create_plist_reopened);
}
if ((dset_id2 = H5Dopen2(group_id, DATASET_PROPERTY_LIST_TEST_DSET_NAME2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
+ printf(" couldn't open dataset '%s'\n", DATASET_PROPERTY_LIST_TEST_DSET_NAME2);
PART_ERROR(H5Dget_create_plist_reopened);
}
if ((dcpl_id1 = H5Dget_create_plist(dset_id1)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
if ((dcpl_id2 = H5Dget_create_plist(dset_id2)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get property list\n");
+ printf(" couldn't get property list\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
@@ -3880,14 +3862,14 @@ test_dataset_property_lists(void)
if (H5Pget_chunk(dcpl_id1, DATASET_PROPERTY_LIST_TEST_SPACE_RANK, tmp_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" couldn't get DCPL property value\n");
+ printf(" couldn't get DCPL property value\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
for (i = 0; i < DATASET_PROPERTY_LIST_TEST_SPACE_RANK; i++)
if (tmp_chunk_dims[i] != chunk_dims[i]) {
H5_FAILED();
- HDprintf(" DCPL property values were incorrect\n");
+ printf(" DCPL property values were incorrect\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
@@ -3900,8 +3882,8 @@ test_dataset_property_lists(void)
/* DAOS VOL can auto chunk, so don't fail */
if (err_ret >= 0 && strcmp(vol_name, "daos") != 0) {
H5_FAILED();
- HDprintf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
- "layout)\n");
+ printf(" property list 2 shouldn't have had chunk dimensionality set (not a chunked "
+ "layout)\n");
PART_ERROR(H5Dget_create_plist_reopened);
}
}
@@ -4088,27 +4070,26 @@ test_read_dataset_small_all(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_ALL_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_READ_TEST_ALL_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_READ_TEST_ALL_GROUP_NAME);
goto error;
}
@@ -4119,7 +4100,7 @@ test_read_dataset_small_all(void)
DATASET_SMALL_READ_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
goto error;
}
@@ -4133,7 +4114,7 @@ test_read_dataset_small_all(void)
if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_ALL_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) <
0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_ALL_DSET_NAME);
goto error;
}
@@ -4198,28 +4179,27 @@ test_read_dataset_small_hyperslab(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_READ_TEST_HYPERSLAB_GROUP_NAME);
goto error;
}
@@ -4232,7 +4212,7 @@ test_read_dataset_small_hyperslab(void)
DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -4258,7 +4238,7 @@ test_read_dataset_small_hyperslab(void)
if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -4326,28 +4306,27 @@ test_read_dataset_small_point_selection(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_READ_TEST_POINT_SELECTION_GROUP_NAME);
goto error;
}
@@ -4361,7 +4340,7 @@ test_read_dataset_small_point_selection(void)
DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -4381,14 +4360,14 @@ test_read_dataset_small_point_selection(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_SMALL_READ_TEST_POINT_SELECTION_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select points\n");
+ printf(" couldn't select points\n");
goto error;
}
if (H5Dread(dset_id, DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SMALL_READ_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -4481,8 +4460,7 @@ test_dataset_io_point_selections(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -4951,8 +4929,7 @@ test_read_dataset_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -4960,21 +4937,20 @@ test_read_dataset_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -4985,7 +4961,7 @@ test_read_dataset_invalid_params(void)
DATASET_READ_INVALID_PARAMS_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_READ_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
@@ -5013,7 +4989,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid dataset ID!\n");
+ printf(" read from dataset using H5Dread with an invalid dataset ID!\n");
PART_ERROR(H5Dread_invalid_dset_id);
}
@@ -5033,7 +5009,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid memory datatype!\n");
+ printf(" read from dataset using H5Dread with an invalid memory datatype!\n");
PART_ERROR(H5Dread_invalid_datatype);
}
@@ -5054,7 +5030,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid memory dataspace!\n");
+ printf(" read from dataset using H5Dread with an invalid memory dataspace!\n");
PART_ERROR(H5Dread_invalid_mem_dataspace);
}
@@ -5075,7 +5051,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid file dataspace!\n");
+ printf(" read from dataset using H5Dread with an invalid file dataspace!\n");
PART_ERROR(H5Dread_invalid_file_dataspace);
}
@@ -5096,7 +5072,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid DXPL!\n");
+ printf(" read from dataset using H5Dread with an invalid DXPL!\n");
PART_ERROR(H5Dread_invalid_dxpl);
}
@@ -5117,7 +5093,7 @@ test_read_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" read from dataset using H5Dread with an invalid data buffer!\n");
+ printf(" read from dataset using H5Dread with an invalid data buffer!\n");
PART_ERROR(H5Dread_invalid_data_buf);
}
@@ -5187,27 +5163,26 @@ test_write_dataset_small_all(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_GROUP_NAME);
goto error;
}
@@ -5218,7 +5193,7 @@ test_write_dataset_small_all(void)
DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
goto error;
}
@@ -5230,19 +5205,19 @@ test_write_dataset_small_all(void)
if ((dset_id = H5Dopen2(group_id, DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
goto error;
}
@@ -5254,7 +5229,7 @@ test_write_dataset_small_all(void)
if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_ALL_DSET_NAME);
goto error;
}
@@ -5319,28 +5294,27 @@ test_write_dataset_small_hyperslab(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_WRITE_TEST_HYPERSLAB_GROUP_NAME);
goto error;
}
@@ -5354,7 +5328,7 @@ test_write_dataset_small_hyperslab(void)
DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -5383,7 +5357,7 @@ test_write_dataset_small_hyperslab(void)
if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_DTYPE, mspace_id, fspace_id, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_HYPERSLAB_DSET_NAME);
goto error;
}
@@ -5451,28 +5425,27 @@ test_write_dataset_small_point_selection(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SMALL_WRITE_TEST_POINT_SELECTION_GROUP_NAME);
goto error;
}
@@ -5486,7 +5459,7 @@ test_write_dataset_small_point_selection(void)
DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPE, fspace_id, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -5509,14 +5482,14 @@ test_write_dataset_small_point_selection(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select points\n");
+ printf(" couldn't select points\n");
goto error;
}
if (H5Dwrite(dset_id, DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SMALL_WRITE_TEST_POINT_SELECTION_DSET_NAME);
goto error;
}
@@ -5590,8 +5563,8 @@ test_write_dataset_data_verification(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -5599,20 +5572,20 @@ test_write_dataset_data_verification(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -5623,7 +5596,7 @@ test_write_dataset_data_verification(void)
DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
goto error;
}
@@ -5648,7 +5621,7 @@ test_write_dataset_data_verification(void)
if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
@@ -5676,40 +5649,40 @@ test_write_dataset_data_verification(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_all_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_all_read);
}
if (NULL ==
(data = HDmalloc((hsize_t)space_npoints * DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_all_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
for (i = 0; i < (hsize_t)space_npoints; i++)
if (((int *)data)[i] != (int)i) {
H5_FAILED();
- HDprintf(" H5S_ALL selection data verification failed\n");
+ printf(" H5S_ALL selection data verification failed\n");
PART_ERROR(H5Dwrite_all_read);
}
@@ -5730,7 +5703,7 @@ test_write_dataset_data_verification(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5743,14 +5716,14 @@ test_write_dataset_data_verification(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5771,7 +5744,7 @@ test_write_dataset_data_verification(void)
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, stride, count, block) < 0) {
H5_FAILED();
- HDprintf(" couldn't select hyperslab for dataset write\n");
+ printf(" couldn't select hyperslab for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5780,7 +5753,7 @@ test_write_dataset_data_verification(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
}
@@ -5788,7 +5761,7 @@ test_write_dataset_data_verification(void)
if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5819,39 +5792,39 @@ test_write_dataset_data_verification(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" hyperslab selection data verification failed\n");
+ printf(" hyperslab selection data verification failed\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -5883,7 +5856,7 @@ test_write_dataset_data_verification(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5896,14 +5869,14 @@ test_write_dataset_data_verification(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5931,7 +5904,7 @@ test_write_dataset_data_verification(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_DATA_VERIFY_WRITE_TEST_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select elements in dataspace\n");
+ printf(" couldn't select elements in dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5940,7 +5913,7 @@ test_write_dataset_data_verification(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
}
@@ -5948,7 +5921,7 @@ test_write_dataset_data_verification(void)
if (H5Dwrite(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -5979,39 +5952,39 @@ test_write_dataset_data_verification(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_VERIFY_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" point selection data verification failed\n");
+ printf(" point selection data verification failed\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6097,8 +6070,7 @@ test_write_dataset_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -6106,21 +6078,21 @@ test_write_dataset_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_WRITE_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -6131,13 +6103,13 @@ test_write_dataset_invalid_params(void)
DATASET_SMALL_WRITE_TEST_ALL_DSET_DTYPE, fspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_WRITE_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_WRITE_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
goto error;
}
@@ -6164,7 +6136,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid dataset ID!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid dataset ID!\n");
PART_ERROR(H5Dwrite_invalid_dset_id);
}
@@ -6184,7 +6156,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid memory datatype!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid memory datatype!\n");
PART_ERROR(H5Dwrite_invalid_datatype);
}
@@ -6205,7 +6177,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid memory dataspace!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid memory dataspace!\n");
PART_ERROR(H5Dwrite_invalid_mem_dataspace);
}
@@ -6226,7 +6198,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid file dataspace!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid file dataspace!\n");
PART_ERROR(H5Dwrite_invalid_file_dataspace);
}
@@ -6247,7 +6219,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid DXPL!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid DXPL!\n");
PART_ERROR(H5Dwrite_invalid_dxpl);
}
@@ -6268,7 +6240,7 @@ test_write_dataset_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" wrote to dataset using H5Dwrite with an invalid data buffer!\n");
+ printf(" wrote to dataset using H5Dwrite with an invalid data buffer!\n");
PART_ERROR(H5Dwrite_invalid_data_buf);
}
@@ -6350,8 +6322,8 @@ test_dataset_builtin_type_conversion(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -6359,7 +6331,7 @@ test_dataset_builtin_type_conversion(void)
if ((native_order = H5Tget_order(DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get native byte order\n");
+ printf(" couldn't get native byte order\n");
goto error;
}
if (native_order == H5T_ORDER_LE)
@@ -6369,20 +6341,20 @@ test_dataset_builtin_type_conversion(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_DATA_BUILTIN_CONVERSION_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_DATA_VERIFY_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -6392,7 +6364,7 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, file_type_id,
fspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
goto error;
}
@@ -6417,8 +6389,8 @@ test_dataset_builtin_type_conversion(void)
if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
@@ -6447,41 +6419,41 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_all_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_all_read);
}
if (NULL == (data = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_all_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_all_read);
}
for (i = 0; i < (hsize_t)space_npoints; i++)
if (((int *)data)[i] != (int)i) {
H5_FAILED();
- HDprintf(" H5S_ALL selection data verification failed\n");
+ printf(" H5S_ALL selection data verification failed\n");
PART_ERROR(H5Dwrite_all_read);
}
@@ -6502,7 +6474,7 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6515,15 +6487,15 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6544,7 +6516,7 @@ test_dataset_builtin_type_conversion(void)
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, stride, count, block) < 0) {
H5_FAILED();
- HDprintf(" couldn't select hyperslab for dataset write\n");
+ printf(" couldn't select hyperslab for dataset write\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6553,7 +6525,7 @@ test_dataset_builtin_type_conversion(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
}
@@ -6561,8 +6533,8 @@ test_dataset_builtin_type_conversion(void)
if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6594,40 +6566,40 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_hyperslab_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" hyperslab selection data verification failed\n");
+ printf(" hyperslab selection data verification failed\n");
PART_ERROR(H5Dwrite_hyperslab_read);
}
@@ -6659,7 +6631,7 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (write_buf = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset write\n");
+ printf(" couldn't allocate buffer for dataset write\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6672,15 +6644,15 @@ test_dataset_builtin_type_conversion(void)
if (NULL == (data = HDmalloc(data_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset data verification\n");
+ printf(" couldn't allocate buffer for dataset data verification\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, data) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6708,7 +6680,7 @@ test_dataset_builtin_type_conversion(void)
if (H5Sselect_elements(fspace_id, H5S_SELECT_SET, DATASET_DATA_BUILTIN_CONVERSION_TEST_NUM_POINTS,
points) < 0) {
H5_FAILED();
- HDprintf(" couldn't select elements in dataspace\n");
+ printf(" couldn't select elements in dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6717,7 +6689,7 @@ test_dataset_builtin_type_conversion(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create memory dataspace\n");
+ printf(" couldn't create memory dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
}
@@ -6725,8 +6697,8 @@ test_dataset_builtin_type_conversion(void)
if (H5Dwrite(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6758,40 +6730,40 @@ test_dataset_builtin_type_conversion(void)
if ((dset_id = H5Dopen2(group_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (NULL == (read_buf = HDmalloc((hsize_t)space_npoints *
DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
if (H5Dread(dset_id, DATASET_DATA_BUILTIN_CONVERSION_TEST_MEM_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_DATA_BUILTIN_CONVERSION_TEST_DSET_NAME);
PART_ERROR(H5Dwrite_point_sel_read);
}
if (memcmp(data, read_buf, data_size)) {
H5_FAILED();
- HDprintf(" point selection data verification failed\n");
+ printf(" point selection data verification failed\n");
PART_ERROR(H5Dwrite_point_sel_read);
}
@@ -6887,8 +6859,7 @@ test_dataset_compound_partial_io(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC)) {
SKIPPED();
- HDprintf(
- " API functions for basic file, group, or dataset aren't supported with this connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this connector\n");
return 0;
}
@@ -6896,21 +6867,21 @@ test_dataset_compound_partial_io(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_GROUP_NAME);
goto error;
}
@@ -6937,7 +6908,7 @@ test_dataset_compound_partial_io(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME, full_type_id,
space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_DATA_COMPOUND_PARTIAL_IO_TEST_DSET_NAME);
goto error;
}
@@ -7144,28 +7115,28 @@ test_dataset_set_extent_chunked_unlimited(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_GROUP_NAME);
goto error;
}
@@ -7186,14 +7157,14 @@ test_dataset_set_extent_chunked_unlimited(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
goto error;
}
@@ -7209,7 +7180,7 @@ test_dataset_set_extent_chunked_unlimited(void)
if (H5Dset_extent(dset_id, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent\n");
+ printf(" failed to set dataset extent\n");
goto error;
}
@@ -7221,13 +7192,13 @@ test_dataset_set_extent_chunked_unlimited(void)
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7237,7 +7208,7 @@ test_dataset_set_extent_chunked_unlimited(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK; j++) {
if (dims[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7265,7 +7236,7 @@ test_dataset_set_extent_chunked_unlimited(void)
if (H5Dset_extent(dset_id, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent\n");
+ printf(" failed to set dataset extent\n");
goto error;
}
@@ -7280,20 +7251,19 @@ test_dataset_set_extent_chunked_unlimited(void)
if ((dset_id = H5Dopen2(group_id, DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n",
- DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
+ printf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7303,7 +7273,7 @@ test_dataset_set_extent_chunked_unlimited(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_UNLIMITED_TEST_SPACE_RANK; j++) {
if (dims[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7377,28 +7347,28 @@ test_dataset_set_extent_chunked_fixed(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_GROUP_NAME);
goto error;
}
@@ -7423,7 +7393,7 @@ test_dataset_set_extent_chunked_fixed(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
@@ -7435,14 +7405,14 @@ test_dataset_set_extent_chunked_fixed(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME);
goto error;
}
if ((dset_id2 = H5Dcreate2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2, dset_dtype,
fspace_id2, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
goto error;
}
@@ -7471,7 +7441,7 @@ test_dataset_set_extent_chunked_fixed(void)
if (H5Dset_extent(dset_id, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent\n");
+ printf(" failed to set dataset extent\n");
goto error;
}
@@ -7483,13 +7453,13 @@ test_dataset_set_extent_chunked_fixed(void)
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7499,7 +7469,7 @@ test_dataset_set_extent_chunked_fixed(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK; j++) {
if (dims[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7540,7 +7510,7 @@ test_dataset_set_extent_chunked_fixed(void)
if (H5Dset_extent(dset_id2, new_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set dataset extent2\n");
+ printf(" failed to set dataset extent2\n");
goto error;
}
@@ -7555,19 +7525,19 @@ test_dataset_set_extent_chunked_fixed(void)
if ((dset_id2 = H5Dopen2(group_id, DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
+ printf(" failed to open dataset '%s'\n", DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_DSET_NAME2);
goto error;
}
if ((fspace_id2 = H5Dget_space(dset_id2)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset's dataspace\n");
+ printf(" failed to retrieve dataset's dataspace\n");
goto error;
}
if (H5Sget_simple_extent_dims(fspace_id2, new_dims, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataset dimensionality\n");
+ printf(" failed to retrieve dataset dimensionality\n");
goto error;
}
@@ -7577,7 +7547,7 @@ test_dataset_set_extent_chunked_fixed(void)
for (j = 0; j < DATASET_SET_EXTENT_CHUNKED_FIXED_TEST_SPACE_RANK; j++) {
if (dims2[j] == new_dims[j]) {
H5_FAILED();
- HDprintf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
+ printf(" dataset dimension %llu wasn't changed!\n", (unsigned long long)j);
goto error;
}
}
@@ -7666,8 +7636,8 @@ test_dataset_set_extent_data(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -7675,20 +7645,20 @@ test_dataset_set_extent_data(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
goto error;
}
@@ -7700,14 +7670,14 @@ test_dataset_set_extent_data(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_DATA_TEST_SPACE_RANK, dims_chunk) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_DATA_TEST_DSET_NAME, H5T_NATIVE_INT, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DATA_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DATA_TEST_DSET_NAME);
goto error;
}
@@ -7766,15 +7736,15 @@ test_dataset_set_extent_data(void)
if (i >= (int)dims_origin[0] || j >= (int)dims_origin[1]) {
if (buf_expand[i][j] != 0) {
H5_FAILED();
- HDprintf(" buf_expand[%d][%d] = %d. It should be 0\n", i, j, buf_expand[i][j]);
+ printf(" buf_expand[%d][%d] = %d. It should be 0\n", i, j, buf_expand[i][j]);
PART_ERROR(H5Dset_extent_data_expand);
}
}
else {
if (buf_expand[i][j] != buf_origin[i][j]) {
H5_FAILED();
- HDprintf(" buf_expand[%d][%d] = %d. It should be %d\n", i, j, buf_expand[i][j],
- buf_origin[i][j]);
+ printf(" buf_expand[%d][%d] = %d. It should be %d\n", i, j, buf_expand[i][j],
+ buf_origin[i][j]);
PART_ERROR(H5Dset_extent_data_expand);
}
}
@@ -7807,8 +7777,8 @@ test_dataset_set_extent_data(void)
for (j = 0; j < (int)dims_shrink[1]; j++) {
if (buf_shrink[i][j] != buf_origin[i][j]) {
H5_FAILED();
- HDprintf(" buf_shrink[%d][%d] = %d. It should be %d\n", i, j, buf_shrink[i][j],
- buf_origin[i][j]);
+ printf(" buf_shrink[%d][%d] = %d. It should be %d\n", i, j, buf_shrink[i][j],
+ buf_origin[i][j]);
PART_ERROR(H5Dset_extent_data_shrink);
}
}
@@ -7844,16 +7814,15 @@ test_dataset_set_extent_data(void)
if (i >= (int)dims_shrink[0] || j >= (int)dims_shrink[1]) {
if (buf_expand2[i][j] != 0) {
H5_FAILED();
- HDprintf(" buf_expand2[%d][%d] = %d. It should be 0\n", i, j,
- buf_expand2[i][j]);
+ printf(" buf_expand2[%d][%d] = %d. It should be 0\n", i, j, buf_expand2[i][j]);
PART_ERROR(H5Dset_extent_data_expand_to_origin);
}
}
else {
if (buf_expand2[i][j] != buf_origin[i][j]) {
H5_FAILED();
- HDprintf(" buf_expand2[%d][%d] = %d. It should be %d.\n", i, j,
- buf_expand2[i][j], buf_origin[i][j]);
+ printf(" buf_expand2[%d][%d] = %d. It should be %d.\n", i, j,
+ buf_expand2[i][j], buf_origin[i][j]);
PART_ERROR(H5Dset_extent_data_expand_to_origin);
}
}
@@ -7889,8 +7858,8 @@ test_dataset_set_extent_data(void)
for (i = 0; i < DATASET_SET_EXTENT_DATA_TEST_SPACE_RANK; i++)
if (dims_out[i] != 0) {
H5_FAILED();
- HDprintf(" dims_out[%d] = %llu. It should be 0.\n", i,
- (long long unsigned int)dims_out[i]);
+ printf(" dims_out[%d] = %llu. It should be 0.\n", i,
+ (long long unsigned int)dims_out[i]);
PART_ERROR(H5Dset_extent_data_shrink_to_zero);
}
@@ -7923,7 +7892,7 @@ test_dataset_set_extent_data(void)
for (j = 0; j < (int)dims_origin[1]; j++) {
if (buf_expand2[i][j] != 0) {
H5_FAILED();
- HDprintf(" buf_expand2[%d][%d] = %d. It should be 0.\n", i, j, buf_expand2[i][j]);
+ printf(" buf_expand2[%d][%d] = %d. It should be 0.\n", i, j, buf_expand2[i][j]);
PART_ERROR(H5Dset_extent_data_expand_to_origin_again);
}
}
@@ -8001,27 +7970,27 @@ test_dataset_set_extent_double_handles(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SET_EXTENT_DATA_TEST_GROUP_NAME);
goto error;
}
@@ -8034,7 +8003,7 @@ test_dataset_set_extent_double_handles(void)
if (H5Pset_chunk(dcpl_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_SPACE_RANK, dims_chunk) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
@@ -8042,14 +8011,14 @@ test_dataset_set_extent_double_handles(void)
if ((dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME, H5T_NATIVE_INT,
fspace_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
goto error;
}
/* Open the same dataset again */
if ((dset_id2 = H5Dopen2(group_id, DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_DSET_NAME);
goto error;
}
@@ -8071,8 +8040,8 @@ test_dataset_set_extent_double_handles(void)
for (i = 0; i < DATASET_SET_EXTENT_DOUBLE_HANDLES_TEST_SPACE_RANK; i++)
if (dims_out[i] != dims_expand[i]) {
H5_FAILED();
- HDprintf(" dims_out[%d] = %" PRIuHSIZE ". It should be %" PRIuHSIZE ".\n", i, dims_out[i],
- dims_expand[i]);
+ printf(" dims_out[%d] = %" PRIuHSIZE ". It should be %" PRIuHSIZE ".\n", i, dims_out[i],
+ dims_expand[i]);
goto error;
}
@@ -8141,8 +8110,8 @@ test_dataset_set_extent_invalid_params(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, basic or more dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, basic or more dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -8150,14 +8119,14 @@ test_dataset_set_extent_invalid_params(void)
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
/** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */
if (H5VLget_connector_name(file_id, vol_name, 5) < 0) {
H5_FAILED();
- HDprintf(" couldn't get VOL connector name\n");
+ printf(" couldn't get VOL connector name\n");
goto error;
}
if (strcmp(vol_name, "daos") == 0) {
@@ -8169,15 +8138,15 @@ test_dataset_set_extent_invalid_params(void)
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_SET_EXTENT_INVALID_PARAMS_TEST_GROUP_NAME);
goto error;
}
@@ -8213,8 +8182,8 @@ test_dataset_set_extent_invalid_params(void)
H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME, H5T_NATIVE_INT,
compact_fspace_id, H5P_DEFAULT, compact_dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_COMPACT_DSET_NAME);
goto error;
}
@@ -8229,8 +8198,8 @@ test_dataset_set_extent_invalid_params(void)
H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, contiguous_dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_SET_EXTENT_INVALID_LAYOUT_TEST_CONTIGUOUS_DSET_NAME);
goto error;
}
@@ -8240,14 +8209,14 @@ test_dataset_set_extent_invalid_params(void)
if (H5Pset_chunk(chunked_dcpl_id, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" unable to set dataset chunk dimensionality\n");
+ printf(" unable to set dataset chunk dimensionality\n");
goto error;
}
if ((chunked_dset_id = H5Dcreate2(group_id, DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME, dset_dtype,
fspace_id, H5P_DEFAULT, chunked_dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SET_EXTENT_INVALID_PARAMS_TEST_DSET_NAME);
goto error;
}
@@ -8267,7 +8236,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with an invalid layout (compact)\n");
+ printf(" setting dataset extent succeeded with an invalid layout (compact)\n");
PART_ERROR(H5Dset_extent_invalid_layout_compact);
}
@@ -8287,7 +8256,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with an invalid layout (contiguous)\n");
+ printf(" setting dataset extent succeeded with an invalid layout (contiguous)\n");
PART_ERROR(H5Dset_extent_invalid_layout_contiguous);
}
@@ -8307,7 +8276,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with an invalid dataset ID\n");
+ printf(" setting dataset extent succeeded with an invalid dataset ID\n");
PART_ERROR(H5Dset_extent_invalid_dset_id);
}
@@ -8327,7 +8296,7 @@ test_dataset_set_extent_invalid_params(void)
if (err_ret >= 0) {
H5_FAILED();
- HDprintf(" setting dataset extent succeeded with a NULL dimension pointer\n");
+ printf(" setting dataset extent succeeded with a NULL dimension pointer\n");
PART_ERROR(H5Dset_extent_null_dim_pointer);
}
@@ -8465,27 +8434,27 @@ test_create_single_chunk_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SINGLE_CHUNK_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_TEST_GROUP_NAME);
goto error;
}
@@ -8499,14 +8468,14 @@ test_create_single_chunk_dataset(void)
if (H5Pset_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_SINGLE_CHUNK_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_TEST_DSET_NAME);
goto error;
}
@@ -8515,28 +8484,28 @@ test_create_single_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_SINGLE_CHUNK_TEST_SPACE_RANK; i++) {
if (dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8547,40 +8516,40 @@ test_create_single_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close dataset\n");
+ printf(" failed to close dataset\n");
goto error;
}
if ((dset_id = H5Dopen2(group_id, DATASET_SINGLE_CHUNK_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_SINGLE_CHUNK_TEST_SPACE_RANK; i++) {
if (dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8646,28 +8615,27 @@ test_write_single_chunk_dataset(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_GROUP_NAME);
goto error;
}
@@ -8680,7 +8648,7 @@ test_write_single_chunk_dataset(void)
if (H5Pset_chunk(dcpl_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK, dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -8688,7 +8656,7 @@ test_write_single_chunk_dataset(void)
DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT, dcpl_id,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
@@ -8697,28 +8665,28 @@ test_write_single_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_SPACE_RANK; i++) {
if (dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8736,7 +8704,7 @@ test_write_single_chunk_dataset(void)
if (H5Dwrite(dset_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
@@ -8764,40 +8732,40 @@ test_write_single_chunk_dataset(void)
if ((dset_id = H5Dopen2(group_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
if ((space_npoints = H5Sget_simple_extent_npoints(fspace_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataspace num points\n");
+ printf(" couldn't get dataspace num points\n");
goto error;
}
if (NULL ==
(read_buf = HDmalloc((hsize_t)space_npoints * DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPESIZE))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
goto error;
}
if (H5Dread(dset_id, DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n", DATASET_SINGLE_CHUNK_WRITE_TEST_DSET_NAME);
goto error;
}
for (i = 0; i < (hsize_t)space_npoints; i++)
if (((int *)read_buf)[i] != (int)i) {
H5_FAILED();
- HDprintf(" data verification failed\n");
+ printf(" data verification failed\n");
goto error;
}
@@ -8865,27 +8833,27 @@ test_create_multi_chunk_dataset(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_TEST_GROUP_NAME, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_MULTI_CHUNK_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_MULTI_CHUNK_TEST_GROUP_NAME);
goto error;
}
@@ -8899,14 +8867,14 @@ test_create_multi_chunk_dataset(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
if ((dset_id = H5Dcreate2(group_id, DATASET_MULTI_CHUNK_TEST_DSET_NAME, dset_dtype, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_MULTI_CHUNK_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_MULTI_CHUNK_TEST_DSET_NAME);
goto error;
}
@@ -8915,28 +8883,28 @@ test_create_multi_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_TEST_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -8947,40 +8915,40 @@ test_create_multi_chunk_dataset(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if (H5Dclose(dset_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close dataset\n");
+ printf(" failed to close dataset\n");
goto error;
}
if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
memset(retrieved_chunk_dims, 0, sizeof(retrieved_chunk_dims));
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_TEST_SPACE_RANK, retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_TEST_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9051,28 +9019,28 @@ test_write_multi_chunk_dataset_same_shape_read(void)
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -9086,7 +9054,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) <
0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -9094,8 +9062,8 @@ test_write_multi_chunk_dataset_same_shape_read(void)
DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9104,13 +9072,13 @@ test_write_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -9118,15 +9086,15 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9202,8 +9170,8 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9232,14 +9200,13 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if ((dset_id =
H5Dopen2(group_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -9251,7 +9218,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if ((mspace_id = H5Screate_simple(2, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -9263,11 +9230,11 @@ test_write_multi_chunk_dataset_same_shape_read(void)
/*
* Read every chunk in the dataset, checking the data for each one.
*/
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < data_size / chunk_size; i++) {
size_t j, k;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -9284,7 +9251,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -9295,8 +9262,8 @@ test_write_multi_chunk_dataset_same_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9304,7 +9271,7 @@ test_write_multi_chunk_dataset_same_shape_read(void)
for (k = 0; k < chunk_dims[1]; k++) {
if (read_buf[j][k] != (int)((j * chunk_dims[0]) + k + i)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -9378,28 +9345,28 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -9413,7 +9380,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK, chunk_dims) <
0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -9421,8 +9388,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9431,13 +9398,13 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -9445,15 +9412,15 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9529,8 +9496,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9559,14 +9526,13 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if ((dset_id =
H5Dopen2(group_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n", DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -9575,7 +9541,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
*/
if (NULL == (read_buf = HDmalloc(chunk_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
goto error;
}
@@ -9587,7 +9553,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -9599,11 +9565,11 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
/*
* Read every chunk in the dataset, checking the data for each one.
*/
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < data_size / chunk_size; i++) {
size_t j;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -9620,7 +9586,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -9628,8 +9594,8 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_WRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9637,7 +9603,7 @@ test_write_multi_chunk_dataset_diff_shape_read(void)
j++)
if (((int *)read_buf)[j] != (int)(j + i)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -9717,28 +9683,28 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -9752,7 +9718,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK,
chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -9760,8 +9726,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9770,13 +9736,13 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -9784,15 +9750,15 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -9816,7 +9782,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if ((mspace_id = H5Screate_simple(2, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -9825,7 +9791,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
count[i] = chunk_dims[i];
}
- HDprintf("\n");
+ printf("\n");
for (niter = 0; niter < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_NITERS; niter++) {
memset(write_buf, 0, data_size);
@@ -9892,8 +9858,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9917,14 +9883,14 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -9934,7 +9900,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
for (i = 0; i < data_size / chunk_size; i++) {
size_t j, k;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -9951,7 +9917,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -9962,8 +9928,8 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_DTYPE, mspace_id,
fspace_id, H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_SAME_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -9971,7 +9937,7 @@ test_overwrite_multi_chunk_dataset_same_shape_read(void)
for (k = 0; k < chunk_dims[1]; k++) {
if (read_buf[j][k] != (int)((j * chunk_dims[0]) + k + i + niter)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -10052,28 +10018,28 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_GROUP_NAME);
goto error;
}
@@ -10087,7 +10053,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Pset_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK,
chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -10095,8 +10061,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, fspace_id,
H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -10105,13 +10071,13 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -10119,15 +10085,15 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Pget_chunk(dcpl_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -10148,7 +10114,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
*/
if (NULL == (read_buf = HDmalloc(chunk_size))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for dataset read\n");
+ printf(" couldn't allocate buffer for dataset read\n");
goto error;
}
@@ -10160,7 +10126,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if ((mspace_id = H5Screate_simple(1, mdims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -10169,7 +10135,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
count[i] = chunk_dims[i];
}
- HDprintf("\n");
+ printf("\n");
for (niter = 0; niter < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_NITERS; niter++) {
memset(write_buf, 0, data_size);
@@ -10236,8 +10202,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Dwrite(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't write to dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't write to dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -10261,14 +10227,14 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if ((dset_id = H5Dopen2(group_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't open dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" couldn't get dataset dataspace\n");
+ printf(" couldn't get dataset dataspace\n");
goto error;
}
@@ -10278,7 +10244,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
for (i = 0; i < data_size / chunk_size; i++) {
size_t j;
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
for (j = 0; j < DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_SPACE_RANK; j++) {
if (dims[j] == chunk_dims[j])
@@ -10295,7 +10261,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
*/
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to set hyperslab selection\n");
+ printf(" failed to set hyperslab selection\n");
goto error;
}
@@ -10303,8 +10269,8 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
if (H5Dread(dset_id, DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_DTYPE, mspace_id,
fspace_id, H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" couldn't read from dataset '%s'\n",
- DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
+ printf(" couldn't read from dataset '%s'\n",
+ DATASET_MULTI_CHUNK_OVERWRITE_DIFF_SPACE_READ_TEST_DSET_NAME);
goto error;
}
@@ -10313,7 +10279,7 @@ test_overwrite_multi_chunk_dataset_diff_shape_read(void)
j++)
if (((int *)read_buf)[j] != (int)(j + i + niter)) {
H5_FAILED();
- HDprintf(" data verification failed for chunk %lld\n", (long long)i);
+ printf(" data verification failed for chunk %lld\n", (long long)i);
goto error;
}
}
@@ -10397,28 +10363,28 @@ test_read_partial_chunk_all_selection(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_GROUP_NAME);
goto error;
}
@@ -10431,7 +10397,7 @@ test_read_partial_chunk_all_selection(void)
if (H5Pset_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -10439,7 +10405,7 @@ test_read_partial_chunk_all_selection(void)
DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT,
dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME);
goto error;
}
@@ -10448,13 +10414,13 @@ test_read_partial_chunk_all_selection(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -10462,15 +10428,15 @@ test_read_partial_chunk_all_selection(void)
if (H5Pget_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK, retrieved_chunk_dims) <
0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -10486,7 +10452,7 @@ test_read_partial_chunk_all_selection(void)
if (H5Dwrite(dset_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
write_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to write to dataset\n");
+ printf(" failed to write to dataset\n");
goto error;
}
@@ -10497,14 +10463,14 @@ test_read_partial_chunk_all_selection(void)
TEST_ERROR;
if ((dset_id = H5Dopen2(group_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if (H5Dread(dset_id, DATASET_PARTIAL_CHUNK_READ_ALL_SEL_TEST_DSET_DTYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT,
read_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to read from dataset\n");
+ printf(" failed to read from dataset\n");
goto error;
}
@@ -10512,7 +10478,7 @@ test_read_partial_chunk_all_selection(void)
for (j = 0; j < FIXED_DIMSIZE; j++)
if (read_buf[i][j] != (int)((i * FIXED_DIMSIZE) + j)) {
H5_FAILED();
- HDprintf(
+ printf(
" data verification failed for read buffer element %lld: expected %lld but was %lld\n",
(long long)((i * FIXED_DIMSIZE) + j), (long long)((i * FIXED_DIMSIZE) + j),
(long long)read_buf[i][j]);
@@ -10584,28 +10550,28 @@ test_read_partial_chunk_hyperslab_selection(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GET_PLIST)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, dataset, or get property list aren't supported "
- "with this connector\n");
+ printf(" API functions for basic file, group, dataset, or get property list aren't supported "
+ "with this connector\n");
return 0;
}
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n",
- DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n",
+ DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_GROUP_NAME);
goto error;
}
@@ -10618,7 +10584,7 @@ test_read_partial_chunk_hyperslab_selection(void)
if (H5Pset_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to set chunking on DCPL\n");
+ printf(" failed to set chunking on DCPL\n");
goto error;
}
@@ -10626,7 +10592,7 @@ test_read_partial_chunk_hyperslab_selection(void)
DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, fspace_id, H5P_DEFAULT,
dcpl_id, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME);
+ printf(" couldn't create dataset '%s'\n", DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME);
goto error;
}
@@ -10635,13 +10601,13 @@ test_read_partial_chunk_hyperslab_selection(void)
*/
if (H5Pclose(dcpl_id) < 0) {
H5_FAILED();
- HDprintf(" failed to close DCPL\n");
+ printf(" failed to close DCPL\n");
goto error;
}
if ((dcpl_id = H5Dget_create_plist(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve copy of DCPL\n");
+ printf(" failed to retrieve copy of DCPL\n");
goto error;
}
@@ -10649,15 +10615,15 @@ test_read_partial_chunk_hyperslab_selection(void)
if (H5Pget_chunk(dcpl_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK,
retrieved_chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve chunking info\n");
+ printf(" failed to retrieve chunking info\n");
goto error;
}
for (i = 0; i < DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK; i++) {
if (chunk_dims[i] != retrieved_chunk_dims[i]) {
H5_FAILED();
- HDprintf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
- "dimensionality\n");
+ printf(" chunk dimensionality retrieved from DCPL didn't match originally specified "
+ "dimensionality\n");
goto error;
}
}
@@ -10681,7 +10647,7 @@ test_read_partial_chunk_hyperslab_selection(void)
if ((mspace_id = H5Screate_simple(DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_SPACE_RANK, mdims,
NULL)) < 0) {
H5_FAILED();
- HDprintf(" failed to create memory dataspace\n");
+ printf(" failed to create memory dataspace\n");
goto error;
}
}
@@ -10734,30 +10700,30 @@ test_read_partial_chunk_hyperslab_selection(void)
if (H5Sselect_hyperslab(mspace_id, H5S_SELECT_SET, m_start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to select hyperslab in memory dataspace\n");
+ printf(" failed to select hyperslab in memory dataspace\n");
goto error;
}
}
else {
if (H5Sselect_all(mspace_id) < 0) {
H5_FAILED();
- HDprintf(" failed to select entire memory dataspace\n");
+ printf(" failed to select entire memory dataspace\n");
goto error;
}
}
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to select hyperslab\n");
+ printf(" failed to select hyperslab\n");
goto error;
}
- HDprintf("\r Writing chunk %zu", i);
+ printf("\r Writing chunk %zu", i);
if (H5Dwrite(dset_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, write_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to write to dataset\n");
+ printf(" failed to write to dataset\n");
goto error;
}
@@ -10771,28 +10737,28 @@ test_read_partial_chunk_hyperslab_selection(void)
if ((dset_id = H5Dopen2(group_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_NAME, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" failed to re-open dataset\n");
+ printf(" failed to re-open dataset\n");
goto error;
}
if ((fspace_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
- HDprintf(" failed to retrieve dataspace from dataset\n");
+ printf(" failed to retrieve dataspace from dataset\n");
goto error;
}
if (H5Sselect_hyperslab(fspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
H5_FAILED();
- HDprintf(" failed to select hyperslab\n");
+ printf(" failed to select hyperslab\n");
goto error;
}
- HDprintf("\r Reading chunk %zu", i);
+ printf("\r Reading chunk %zu", i);
if (H5Dread(dset_id, DATASET_PARTIAL_CHUNK_READ_HYPER_SEL_TEST_DSET_DTYPE, mspace_id, fspace_id,
H5P_DEFAULT, read_buf) < 0) {
H5_FAILED();
- HDprintf(" failed to read from dataset\n");
+ printf(" failed to read from dataset\n");
goto error;
}
@@ -10800,10 +10766,10 @@ test_read_partial_chunk_hyperslab_selection(void)
for (k = 0; k < FIXED_CHUNK_DIMSIZE; k++)
if (read_buf[j][k] != (int)((j * FIXED_CHUNK_DIMSIZE) + k)) {
H5_FAILED();
- HDprintf(" data verification failed for read buffer element %lld: expected %lld but "
- "was %lld\n",
- (long long)((j * FIXED_CHUNK_DIMSIZE) + k),
- (long long)((j * FIXED_CHUNK_DIMSIZE) + k), (long long)read_buf[j][k]);
+ printf(" data verification failed for read buffer element %lld: expected %lld but "
+ "was %lld\n",
+ (long long)((j * FIXED_CHUNK_DIMSIZE) + k),
+ (long long)((j * FIXED_CHUNK_DIMSIZE) + k), (long long)read_buf[j][k]);
goto error;
}
}
@@ -10889,8 +10855,8 @@ test_get_vlen_buf_size(void)
if (!(vol_cap_flags_g & H5VL_CAP_FLAG_FILE_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_GROUP_BASIC) ||
!(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_BASIC) || !(vol_cap_flags_g & H5VL_CAP_FLAG_DATASET_MORE)) {
SKIPPED();
- HDprintf(" API functions for basic file, group, or dataset aren't supported with this "
- "connector\n");
+ printf(" API functions for basic file, group, or dataset aren't supported with this "
+ "connector\n");
return 0;
}
@@ -10905,20 +10871,20 @@ test_get_vlen_buf_size(void)
/* Open the file */
if ((file_id = H5Fopen(H5_api_test_filename, H5F_ACC_RDWR, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open file '%s'\n", H5_api_test_filename);
+ printf(" couldn't open file '%s'\n", H5_api_test_filename);
goto error;
}
if ((container_group = H5Gopen2(file_id, DATASET_TEST_GROUP_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
+ printf(" couldn't open container group '%s'\n", DATASET_TEST_GROUP_NAME);
goto error;
}
if ((group_id = H5Gcreate2(container_group, DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME, H5P_DEFAULT,
H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" couldn't create container sub-group '%s'\n", DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME);
+ printf(" couldn't create container sub-group '%s'\n", DATASET_GET_VLEN_BUF_SIZE_GROUP_NAME);
goto error;
}
@@ -10948,11 +10914,11 @@ test_get_vlen_buf_size(void)
((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) / 2) *
sizeof(unsigned int)) {
H5_FAILED();
- HDprintf(
- " H5Dvlen_get_buf_size returned wrong size (%lu), compared to the correct size (%lu)\n", size,
- ((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) /
- 2) *
- sizeof(unsigned int));
+ printf(" H5Dvlen_get_buf_size returned wrong size (%lu), compared to the correct size (%lu)\n",
+ size,
+ ((DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM * (DATASET_GET_VLEN_BUF_SIZE_DSET_SPACE_DIM + 1)) /
+ 2) *
+ sizeof(unsigned int));
goto error;
}
@@ -11005,17 +10971,17 @@ H5_api_dataset_test(void)
size_t i;
int nerrors;
- HDprintf("**********************************************\n");
- HDprintf("* *\n");
- HDprintf("* API Dataset Tests *\n");
- HDprintf("* *\n");
- HDprintf("**********************************************\n\n");
+ printf("**********************************************\n");
+ printf("* *\n");
+ printf("* API Dataset Tests *\n");
+ printf("* *\n");
+ printf("**********************************************\n\n");
for (i = 0, nerrors = 0; i < ARRAY_LENGTH(dataset_tests); i++) {
nerrors += (*dataset_tests[i])() ? 1 : 0;
}
- HDprintf("\n");
+ printf("\n");
return nerrors;
}
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..a73e28f 100644
--- a/test/API/H5_api_file_test.c
+++ b/test/API/H5_api_file_test.c
@@ -67,19 +67,19 @@ 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;
}
@@ -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);
}
@@ -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,14 +303,14 @@ 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;
}
@@ -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,7 +556,7 @@ 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;
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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);
}
@@ -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..3559254 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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -11687,59 +11569,59 @@ test_get_link_val(void)
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);
}
@@ -11767,88 +11649,88 @@ 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_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,58 +11793,58 @@ 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);
}
@@ -11971,15 +11853,15 @@ test_get_link_val(void)
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);
}
@@ -11987,14 +11869,14 @@ test_get_link_val(void)
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);
}
@@ -12002,15 +11884,15 @@ test_get_link_val(void)
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);
}
@@ -12018,14 +11900,14 @@ test_get_link_val(void)
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);
}
@@ -12033,15 +11915,15 @@ test_get_link_val(void)
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);
}
@@ -12049,20 +11931,20 @@ test_get_link_val(void)
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,58 +11987,58 @@ 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);
}
@@ -12165,15 +12047,15 @@ test_get_link_val(void)
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);
}
@@ -12181,14 +12063,14 @@ test_get_link_val(void)
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);
}
@@ -12196,15 +12078,15 @@ test_get_link_val(void)
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);
}
@@ -12212,14 +12094,14 @@ test_get_link_val(void)
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);
}
@@ -12227,15 +12109,15 @@ test_get_link_val(void)
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);
}
@@ -12243,20 +12125,20 @@ test_get_link_val(void)
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,58 +12175,58 @@ 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);
}
@@ -12353,15 +12235,15 @@ test_get_link_val(void)
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);
}
@@ -12369,14 +12251,14 @@ test_get_link_val(void)
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);
}
@@ -12384,15 +12266,15 @@ test_get_link_val(void)
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);
}
@@ -12400,14 +12282,14 @@ test_get_link_val(void)
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);
}
@@ -12415,15 +12297,15 @@ test_get_link_val(void)
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);
}
@@ -12431,20 +12313,20 @@ test_get_link_val(void)
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,58 +12363,58 @@ 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);
}
@@ -12541,15 +12423,15 @@ test_get_link_val(void)
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);
}
@@ -12557,14 +12439,14 @@ test_get_link_val(void)
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);
}
@@ -12572,15 +12454,15 @@ test_get_link_val(void)
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);
}
@@ -12588,14 +12470,14 @@ test_get_link_val(void)
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);
}
@@ -12603,15 +12485,15 @@ test_get_link_val(void)
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);
}
@@ -12619,20 +12501,20 @@ test_get_link_val(void)
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,58 +12569,58 @@ 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);
}
@@ -12747,15 +12629,15 @@ test_get_link_val(void)
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);
}
@@ -12763,28 +12645,28 @@ test_get_link_val(void)
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);
}
@@ -12792,15 +12674,15 @@ test_get_link_val(void)
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);
}
@@ -12808,28 +12690,28 @@ test_get_link_val(void)
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);
}
@@ -12837,15 +12719,15 @@ test_get_link_val(void)
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);
}
@@ -12853,34 +12735,34 @@ test_get_link_val(void)
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,58 +12819,58 @@ 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);
}
@@ -12997,15 +12879,15 @@ test_get_link_val(void)
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);
}
@@ -13013,28 +12895,28 @@ test_get_link_val(void)
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);
}
@@ -13042,15 +12924,15 @@ test_get_link_val(void)
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);
}
@@ -13058,28 +12940,28 @@ test_get_link_val(void)
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);
}
@@ -13087,15 +12969,15 @@ test_get_link_val(void)
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);
}
@@ -13103,34 +12985,34 @@ test_get_link_val(void)
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,58 +13063,58 @@ 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);
}
@@ -13241,15 +13123,15 @@ test_get_link_val(void)
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);
}
@@ -13257,28 +13139,28 @@ test_get_link_val(void)
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);
}
@@ -13286,15 +13168,15 @@ test_get_link_val(void)
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);
}
@@ -13302,28 +13184,28 @@ test_get_link_val(void)
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);
}
@@ -13331,15 +13213,15 @@ test_get_link_val(void)
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);
}
@@ -13347,34 +13229,34 @@ test_get_link_val(void)
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,58 +13307,58 @@ 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);
}
@@ -13485,15 +13367,15 @@ test_get_link_val(void)
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);
}
@@ -13501,28 +13383,28 @@ test_get_link_val(void)
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);
}
@@ -13530,15 +13412,15 @@ test_get_link_val(void)
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);
}
@@ -13546,28 +13428,28 @@ test_get_link_val(void)
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);
}
@@ -13575,15 +13457,15 @@ test_get_link_val(void)
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);
}
@@ -13591,34 +13473,34 @@ test_get_link_val(void)
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))) {
H5_FAILED();
- HDprintf(" couldn't allocate buffer for storing link value\n");
+ printf(" couldn't allocate buffer for storing link value\n");
goto error;
}
@@ -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);
}
@@ -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);
}
@@ -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;
}
@@ -14158,54 +14038,54 @@ test_get_link_info(void)
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);
}
@@ -14229,7 +14109,7 @@ test_get_link_info(void)
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);
}
@@ -14314,75 +14194,75 @@ 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_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,64 +14318,64 @@ 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);
}
@@ -14504,20 +14384,20 @@ test_get_link_info(void)
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);
}
@@ -14525,20 +14405,20 @@ test_get_link_info(void)
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);
}
@@ -14546,26 +14426,26 @@ test_get_link_info(void)
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,64 +14481,64 @@ 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);
}
@@ -14667,20 +14547,20 @@ test_get_link_info(void)
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);
}
@@ -14688,20 +14568,20 @@ test_get_link_info(void)
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);
}
@@ -14709,26 +14589,26 @@ test_get_link_info(void)
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,64 +14638,64 @@ 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);
}
@@ -14824,21 +14704,21 @@ test_get_link_info(void)
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);
}
}
@@ -14847,21 +14727,21 @@ test_get_link_info(void)
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);
}
}
@@ -14870,28 +14750,28 @@ test_get_link_info(void)
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,64 +14801,64 @@ 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);
}
@@ -14987,21 +14867,21 @@ test_get_link_info(void)
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);
}
}
@@ -15010,21 +14890,21 @@ test_get_link_info(void)
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);
}
}
@@ -15033,28 +14913,28 @@ test_get_link_info(void)
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,50 +14990,50 @@ 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);
}
@@ -15162,13 +15042,13 @@ test_get_link_info(void)
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,15 +15057,15 @@ 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);
}
@@ -15193,13 +15073,13 @@ test_get_link_info(void)
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,15 +15088,15 @@ 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);
}
@@ -15224,13 +15104,13 @@ test_get_link_info(void)
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,50 +15189,50 @@ 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);
}
@@ -15361,13 +15241,13 @@ test_get_link_info(void)
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,15 +15256,15 @@ 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);
}
@@ -15392,13 +15272,13 @@ test_get_link_info(void)
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,15 +15287,15 @@ 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);
}
@@ -15423,13 +15303,13 @@ test_get_link_info(void)
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,50 +15382,50 @@ 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);
}
@@ -15554,13 +15434,13 @@ test_get_link_info(void)
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,16 +15449,16 @@ 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);
}
}
@@ -15587,13 +15467,13 @@ test_get_link_info(void)
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,16 +15482,16 @@ 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);
}
}
@@ -15620,13 +15500,13 @@ test_get_link_info(void)
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,50 +15581,50 @@ 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);
}
@@ -15753,13 +15633,13 @@ test_get_link_info(void)
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,16 +15648,16 @@ 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);
}
}
@@ -15786,13 +15666,13 @@ test_get_link_info(void)
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,16 +15681,16 @@ 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);
}
}
@@ -15819,13 +15699,13 @@ test_get_link_info(void)
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,64 +15781,64 @@ 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);
}
@@ -15967,28 +15847,28 @@ test_get_link_info(void)
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);
}
@@ -15996,28 +15876,28 @@ test_get_link_info(void)
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);
}
@@ -16025,34 +15905,34 @@ test_get_link_info(void)
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,64 +15985,64 @@ 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);
}
@@ -16171,28 +16051,28 @@ test_get_link_info(void)
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);
}
@@ -16200,28 +16080,28 @@ test_get_link_info(void)
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);
}
@@ -16229,34 +16109,34 @@ test_get_link_info(void)
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,64 +16183,64 @@ 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);
}
@@ -16369,29 +16249,29 @@ test_get_link_info(void)
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);
}
}
@@ -16400,29 +16280,29 @@ test_get_link_info(void)
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);
}
}
@@ -16431,36 +16311,36 @@ test_get_link_info(void)
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,64 +16387,64 @@ 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);
}
@@ -16573,29 +16453,29 @@ test_get_link_info(void)
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);
}
}
@@ -16604,29 +16484,29 @@ test_get_link_info(void)
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);
}
}
@@ -16635,36 +16515,36 @@ test_get_link_info(void)
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;
}
@@ -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);
}
@@ -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,20 +19285,20 @@ 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;
}
@@ -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);
}
@@ -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..411062e 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);
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;
}
diff --git a/test/API/H5_api_test_util.c b/test/API/H5_api_test_util.c
index c37a9ed..cab1de3 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");
+ 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;
}
}
@@ -541,7 +541,7 @@ 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;
@@ -559,7 +559,7 @@ 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");
+ printf(" couldn't allocate space for array datatype dims\n");
goto done;
}
@@ -567,12 +567,12 @@ 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;
}
@@ -583,12 +583,12 @@ done:
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;
}
@@ -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");
+ 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,7 +783,7 @@ 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;
}
diff --git a/test/API/tarray.c b/test/API/tarray.c
index 214a022..5780c66 100644
--- a/test/API/tarray.c
+++ b/test/API/tarray.c
@@ -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 476e32b..43d76ab 100644
--- a/test/API/tattr.c
+++ b/test/API/tattr.c
@@ -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);
@@ -936,10 +936,10 @@ test_attr_compound_read(hid_t fapl)
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);
+ 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);
@@ -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;
}
diff --git a/test/API/testhdf5.c b/test/API/testhdf5.c
index 58cbfdf..5e0409c 100644
--- a/test/API/testhdf5.c
+++ b/test/API/testhdf5.c
@@ -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
@@ -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);
+ printf("** HDF5 tests failed with %d errors **\n", nerrors);
HDexit(EXIT_FAILURE);
}
else {
- HDprintf("** HDF5 tests ran successfully **\n");
+ printf("** HDF5 tests ran successfully **\n");
HDexit(EXIT_SUCCESS);
}
} /* end main() */
diff --git a/test/API/testhdf5.h b/test/API/testhdf5.h
index 3d945f8..e4aaacd 100644
--- a/test/API/testhdf5.h
+++ b/test/API/testhdf5.h
@@ -207,15 +207,15 @@
#define TEST_STR "Test"
#define CLEAN_STR "Cleanup"
-#define AT() HDprintf(" at %s:%d in %s()...\n", __FILE__, __LINE__, __func__);
+#define AT() printf(" at %s:%d in %s()...\n", __FILE__, __LINE__, __func__);
#define TESTING(WHAT) \
{ \
- HDprintf("Testing %-62s", WHAT); \
+ printf("Testing %-62s", WHAT); \
HDfflush(stdout); \
}
#define TESTING_2(WHAT) \
{ \
- HDprintf(" Testing %-60s", WHAT); \
+ printf(" Testing %-60s", WHAT); \
HDfflush(stdout); \
}
#define PASSED() \
diff --git a/test/API/tfile.c b/test/API/tfile.c
index 12c57e6..5462467 100644
--- a/test/API/tfile.c
+++ b/test/API/tfile.c
@@ -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..b22409a 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,8 +796,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_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);
@@ -808,8 +808,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__);
/* 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);
@@ -1253,8 +1253,8 @@ 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);
@@ -1268,8 +1268,8 @@ 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");
diff --git a/test/API/th5s.c b/test/API/th5s.c
index d27e57c..3e403e7 100644
--- a/test/API/th5s.c
+++ b/test/API/th5s.c
@@ -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]);
}
}
}
@@ -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]);
}
}
}
@@ -2479,10 +2479,10 @@ 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);
+ 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 */
diff --git a/test/API/titerate.c b/test/API/titerate.c
index e528803..343c601 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() */
@@ -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() */
@@ -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;
}
@@ -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 6e323e1..4696bda 100644
--- a/test/API/tmisc.c
+++ b/test/API/tmisc.c
@@ -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]
@@ -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;
}
@@ -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;
}
@@ -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..ea8888c 100644
--- a/test/API/trefer.c
+++ b/test/API/trefer.c
@@ -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);
diff --git a/test/API/tselect.c b/test/API/tselect.c
index 619df42..34c90c3 100644
--- a/test/API/tselect.c
+++ b/test/API/tselect.c
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 */
@@ -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 {
@@ -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 04d0d8b..326de86 100644
--- a/test/API/tunicode.c
+++ b/test/API/tunicode.c
@@ -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.
diff --git a/test/accum.c b/test/accum.c
index ebd7a90..85e6179 100644
--- a/test/accum.c
+++ b/test/accum.c
@@ -1965,7 +1965,7 @@ test_random_write(H5F_t *f)
seed = (unsigned)HDtime(NULL);
#if 0
/* seed = (unsigned)1155438845; */
-HDfprintf(stderr, "Random # seed was: %u\n", seed);
+fprintf(stderr, "Random # seed was: %u\n", seed);
#endif
HDsrandom(seed);
@@ -2067,7 +2067,7 @@ error:
HDfree(off);
HDfree(len);
- HDfprintf(stderr, "Random # seed was: %u\n", seed);
+ fprintf(stderr, "Random # seed was: %u\n", seed);
return 1;
} /* end test_random_write() */
@@ -2238,7 +2238,7 @@ test_swmr_write_big(hbool_t newest_format)
ZeroMemory(&pi, sizeof(pi));
if (0 == CreateProcess(NULL, SWMR_READER, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
- HDprintf("CreateProcess failed (%d).\n", GetLastError());
+ printf("CreateProcess failed (%d).\n", GetLastError());
FAIL_STACK_ERROR;
}
@@ -2272,7 +2272,7 @@ test_swmr_write_big(hbool_t newest_format)
char *const new_argv[] = {swmr_reader, NULL};
/* Run the reader */
status = execv(SWMR_READER, new_argv);
- HDprintf("errno from execv = %s\n", HDstrerror(errno));
+ printf("errno from execv = %s\n", HDstrerror(errno));
FAIL_STACK_ERROR;
} /* end if */
@@ -2355,31 +2355,31 @@ accum_printf(const H5F_t *f)
{
H5F_meta_accum_t *accum = &f->shared->accum;
- HDprintf("\n");
- HDprintf("Current contents of accumulator:\n");
+ printf("\n");
+ printf("Current contents of accumulator:\n");
if (accum->alloc_size == 0) {
- HDprintf("=====================================================\n");
- HDprintf(" No accumulator allocated.\n");
- HDprintf("=====================================================\n");
+ printf("=====================================================\n");
+ printf(" No accumulator allocated.\n");
+ printf("=====================================================\n");
}
else {
- HDprintf("=====================================================\n");
- HDprintf(" accumulator allocated size == %zu\n", accum->alloc_size);
- HDprintf(" accumulated data size == %zu\n", accum->size);
- HDfprintf(stdout, " accumulator dirty? == %s\n", accum->dirty ? "TRUE" : "FALSE");
- HDprintf("=====================================================\n");
- HDfprintf(stdout, " start of accumulated data, loc = %" PRIuHADDR "\n", accum->loc);
+ printf("=====================================================\n");
+ printf(" accumulator allocated size == %zu\n", accum->alloc_size);
+ printf(" accumulated data size == %zu\n", accum->size);
+ fprintf(stdout, " accumulator dirty? == %s\n", accum->dirty ? "TRUE" : "FALSE");
+ printf("=====================================================\n");
+ fprintf(stdout, " start of accumulated data, loc = %" PRIuHADDR "\n", accum->loc);
if (accum->dirty) {
- HDfprintf(stdout, " start of dirty region, loc = %" PRIuHADDR "\n",
- (haddr_t)(accum->loc + accum->dirty_off));
- HDfprintf(stdout, " end of dirty region, loc = %" PRIuHADDR "\n",
- (haddr_t)(accum->loc + accum->dirty_off + accum->dirty_len));
+ fprintf(stdout, " start of dirty region, loc = %" PRIuHADDR "\n",
+ (haddr_t)(accum->loc + accum->dirty_off));
+ fprintf(stdout, " end of dirty region, loc = %" PRIuHADDR "\n",
+ (haddr_t)(accum->loc + accum->dirty_off + accum->dirty_len));
} /* end if */
- HDfprintf(stdout, " end of accumulated data, loc = %" PRIuHADDR "\n",
- (haddr_t)(accum->loc + accum->size));
- HDfprintf(stdout, " end of accumulator allocation, loc = %" PRIuHADDR "\n",
- (haddr_t)(accum->loc + accum->alloc_size));
- HDprintf("=====================================================\n");
+ fprintf(stdout, " end of accumulated data, loc = %" PRIuHADDR "\n",
+ (haddr_t)(accum->loc + accum->size));
+ fprintf(stdout, " end of accumulator allocation, loc = %" PRIuHADDR "\n",
+ (haddr_t)(accum->loc + accum->alloc_size));
+ printf("=====================================================\n");
}
- HDprintf("\n\n");
+ printf("\n\n");
} /* accum_printf() */
diff --git a/test/app_ref.c b/test/app_ref.c
index 68b4e5b..af91749 100644
--- a/test/app_ref.c
+++ b/test/app_ref.c
@@ -72,9 +72,9 @@ Abrt_Handler(int H5_ATTR_UNUSED sig)
const char *string = " ID reference count: ";
for (i = 0; i < T_NUMCLASSES; i++) {
- HDfprintf(stderr, "%s%s", IDNAME[i], string);
+ fprintf(stderr, "%s%s", IDNAME[i], string);
n = (int)(strlen(IDNAME[i]) + strlen(string));
- HDfprintf(stderr, "%*d\n", (n < ERR_WIDTH) ? (ERR_WIDTH - n) : 0, rc[i]);
+ fprintf(stderr, "%*d\n", (n < ERR_WIDTH) ? (ERR_WIDTH - n) : 0, rc[i]);
}
}
diff --git a/test/big.c b/test/big.c
index 0311a93..07f16fa 100644
--- a/test/big.c
+++ b/test/big.c
@@ -356,12 +356,12 @@ writer(char *filename, hid_t fapl, fsizes_t testsize, int wrt_n)
case NO_FILE:
/* what to do?? */
- HDfprintf(stdout, "Unexpected file size of NO_FILE\n");
+ fprintf(stdout, "Unexpected file size of NO_FILE\n");
goto error;
break;
default:
- HDfprintf(stdout, "Unexpected file size(%d)\n", testsize);
+ fprintf(stdout, "Unexpected file size(%d)\n", testsize);
goto error;
break;
}
@@ -404,7 +404,7 @@ writer(char *filename, hid_t fapl, fsizes_t testsize, int wrt_n)
for (i = 0; i < wrt_n; i++) {
/* start position must be at least hs_size from the end */
hs_start[0] = randll(size2[0] - hs_size[0], i);
- HDfprintf(out, "#%03d 0x%016" PRIxHSIZE "\n", i, hs_start[0]);
+ fprintf(out, "#%03d 0x%016" PRIxHSIZE "\n", i, hs_start[0]);
if (H5Sselect_hyperslab(space2, H5S_SELECT_SET, hs_start, NULL, hs_size, NULL) < 0)
goto error;
for (j = 0; j < WRT_SIZE; j++) {
@@ -497,7 +497,7 @@ reader(char *filename, hid_t fapl)
break;
i = (int)HDstrtol(ln + 1, &s, 10);
hs_offset[0] = HDstrtoull(s, NULL, 0);
- HDfprintf(stdout, "#%03d 0x%016" PRIxHSIZE "%47s", i, hs_offset[0], "");
+ fprintf(stdout, "#%03d 0x%016" PRIxHSIZE "%47s", i, hs_offset[0], "");
HDfflush(stdout);
if (H5Sselect_hyperslab(fspace, H5S_SELECT_SET, hs_offset, NULL, hs_size, NULL) < 0)
@@ -514,7 +514,7 @@ reader(char *filename, hid_t fapl)
}
if (zero) {
H5_FAILED();
- HDprintf(" %d zero%s\n", zero, 1 == zero ? "" : "s");
+ printf(" %d zero%s\n", zero, 1 == zero ? "" : "s");
}
else if (wrong) {
SKIPPED();
@@ -570,18 +570,18 @@ error:
static void
usage(void)
{
- HDfprintf(stdout,
- "Usage: big [-h] [-c] [-fsize <fsize>}\n"
- "\t-h\tPrint the help page\n"
- "\t-c\tFile system Checking skipped. Caution: this test generates\n"
- "\t\tmany big files and may fill up the file system.\n"
- "\t-fsize\tChange family size default to <fsize> where <fsize> is\n"
- "\t\ta positive float point number. Default value is %" PRIuHSIZE ".\n"
- "Examples:\n"
- "\t big -fsize 2.1e9 \t# test with file size just under 2GB\n"
- "\t big -fsize 2.2e9 \t# test with file size just above 2GB\n"
- "\t Be sure the file system can support the file size requested\n",
- (hsize_t)FAMILY_SIZE);
+ fprintf(stdout,
+ "Usage: big [-h] [-c] [-fsize <fsize>}\n"
+ "\t-h\tPrint the help page\n"
+ "\t-c\tFile system Checking skipped. Caution: this test generates\n"
+ "\t\tmany big files and may fill up the file system.\n"
+ "\t-fsize\tChange family size default to <fsize> where <fsize> is\n"
+ "\t\ta positive float point number. Default value is %" PRIuHSIZE ".\n"
+ "Examples:\n"
+ "\t big -fsize 2.1e9 \t# test with file size just under 2GB\n"
+ "\t big -fsize 2.2e9 \t# test with file size just above 2GB\n"
+ "\t Be sure the file system can support the file size requested\n",
+ (hsize_t)FAMILY_SIZE);
}
static int
@@ -592,7 +592,7 @@ test_sec2(hid_t fapl)
testsize = supports_big();
if (testsize == NO_FILE) {
- HDfprintf(stdout, "Test for sec2 is skipped because file system does not support big files.\n");
+ fprintf(stdout, "Test for sec2 is skipped because file system does not support big files.\n");
goto quit;
}
/* Test big file with the SEC2 driver */
@@ -627,7 +627,7 @@ test_stdio(hid_t fapl)
testsize = supports_big();
if (testsize == NO_FILE) {
- HDfprintf(stdout, "Test for stdio is skipped because file system does not support big files.\n");
+ fprintf(stdout, "Test for stdio is skipped because file system does not support big files.\n");
goto quit;
}
HDputs("\nTesting big file with the STDIO Driver ");
@@ -744,7 +744,7 @@ main(int ac, char **av)
family_size_def = (hsize_t)HDstrtoull(*av, NULL, 0);
}
else {
- HDprintf("***Missing fsize value***\n");
+ printf("***Missing fsize value***\n");
usage();
return 1;
}
@@ -777,7 +777,7 @@ main(int ac, char **av)
seed = (unsigned long)HDtime(NULL);
#if 0
/* seed = (unsigned long)1155438845; */
- HDfprintf(stderr, "Random # seed was: %lu\n", seed);
+ fprintf(stderr, "Random # seed was: %lu\n", seed);
#endif
HDsrandom((unsigned)seed);
diff --git a/test/bittests.c b/test/bittests.c
index 285f404..13ad749 100644
--- a/test/bittests.c
+++ b/test/bittests.c
@@ -85,13 +85,13 @@ test_find(void)
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_LSB, TRUE);
if ((ssize_t)i != n) {
H5_FAILED();
- HDprintf(" Test for set bit %d failed (lsb)!\n", i);
+ printf(" Test for set bit %d failed (lsb)!\n", i);
goto failed;
}
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_MSB, TRUE);
if ((ssize_t)i != n) {
H5_FAILED();
- HDprintf(" Test for set bit %d failed (msb)!\n", i);
+ printf(" Test for set bit %d failed (msb)!\n", i);
goto failed;
}
}
@@ -118,13 +118,13 @@ test_find(void)
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_LSB, FALSE);
if ((ssize_t)i != n) {
H5_FAILED();
- HDprintf(" Test for clear bit %d failed (lsb)!\n", i);
+ printf(" Test for clear bit %d failed (lsb)!\n", i);
goto failed;
}
n = H5T__bit_find(v1, (size_t)0, 8 * sizeof(v1), H5T_BIT_MSB, FALSE);
if ((ssize_t)i != n) {
H5_FAILED();
- HDprintf(" Test for clear bit %d failed (lsb)!\n", i);
+ printf(" Test for clear bit %d failed (lsb)!\n", i);
goto failed;
}
}
@@ -133,10 +133,10 @@ test_find(void)
return 0;
failed:
- HDprintf(" v = 0x");
+ printf(" v = 0x");
for (i = 0; i < (int)sizeof(v1); i++)
- HDprintf("%02x", v1[i]);
- HDprintf("\n");
+ printf("%02x", v1[i]);
+ printf("\n");
return -1;
}
@@ -192,9 +192,9 @@ test_copy(void)
n = H5T__bit_find(v2, (size_t)0, 8 * sizeof(v2), H5T_BIT_LSB, 1);
if (size > 0 && n != (ssize_t)d_offset) {
H5_FAILED();
- HDprintf(" Unable to find first copied bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first copied bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == size && n >= 0) {
@@ -205,9 +205,9 @@ test_copy(void)
n = H5T__bit_find(v2, d_offset, 8 * sizeof(v2) - d_offset, H5T_BIT_LSB, 0);
if (d_offset + size < 8 * sizeof(v2) && n != (ssize_t)size) {
H5_FAILED();
- HDprintf(" Unable to find last copied bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find last copied bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
if (d_offset + size == 8 * sizeof(v2) && n >= 0) {
@@ -223,9 +223,9 @@ test_copy(void)
n = H5T__bit_find(v2, (size_t)0, 8 * sizeof(v2), H5T_BIT_MSB, 1);
if (size > 0 && (size_t)(n + 1) != d_offset + size) {
H5_FAILED();
- HDprintf(" Unable to find last copied bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last copied bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == size && n >= 0) {
@@ -236,9 +236,9 @@ test_copy(void)
n = H5T__bit_find(v2, (size_t)0, d_offset + size, H5T_BIT_MSB, 0);
if (d_offset > 0 && n + 1 != (ssize_t)d_offset) {
H5_FAILED();
- HDprintf(" Unable to find beginning of copied data "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find beginning of copied data "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == d_offset && n >= 0) {
@@ -252,15 +252,15 @@ test_copy(void)
return 0;
failed:
- HDprintf(" i=%d, s_offset=%lu, d_offset=%lu, size=%lu\n", i, (unsigned long)s_offset,
- (unsigned long)d_offset, (unsigned long)size);
- HDprintf(" s = 0x");
+ printf(" i=%d, s_offset=%lu, d_offset=%lu, size=%lu\n", i, (unsigned long)s_offset,
+ (unsigned long)d_offset, (unsigned long)size);
+ printf(" s = 0x");
for (j = sizeof(v1) - 1; j >= 0; --j)
- HDprintf("%02x", v1[j]);
- HDprintf("\n d = 0x");
+ printf("%02x", v1[j]);
+ printf("\n d = 0x");
for (j = sizeof(v2) - 1; j >= 0; --j)
- HDprintf("%02x", v2[j]);
- HDprintf("\n");
+ printf("%02x", v2[j]);
+ printf("\n");
return -1;
}
@@ -306,9 +306,9 @@ test_shift(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_LSB, 1);
if (n != (ssize_t)offset + shift_dist) {
H5_FAILED();
- HDprintf(" Unable to find first bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
@@ -319,9 +319,9 @@ test_shift(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_MSB, 1);
if (n != (ssize_t)(offset + size - 1)) {
H5_FAILED();
- HDprintf(" Unable to find last bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
@@ -335,9 +335,9 @@ test_shift(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_LSB, 1);
if ((size_t)n != offset) {
H5_FAILED();
- HDprintf(" Unable to find first bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
@@ -348,9 +348,9 @@ test_shift(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_MSB, 1);
if (n != (ssize_t)(offset + size) - shift_dist - 1) {
H5_FAILED();
- HDprintf(" Unable to find last bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
@@ -372,9 +372,9 @@ test_shift(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_LSB, 1);
if (n >= 0) {
H5_FAILED();
- HDprintf(" Unable to verify all bits are zero in destination(LSB) "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to verify all bits are zero in destination(LSB) "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
@@ -382,9 +382,9 @@ test_shift(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_MSB, 1);
if (n >= 0) {
H5_FAILED();
- HDprintf(" Unable to verify all bits are zero in destination(MSB) "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to verify all bits are zero in destination(MSB) "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
}
@@ -393,11 +393,11 @@ test_shift(void)
return 0;
failed:
- HDprintf(" i=%d, offset=%lu, size=%lu, shift_dist=%lu\n", i, (unsigned long)offset,
- (unsigned long)size, (unsigned long)shift_dist);
+ printf(" i=%d, offset=%lu, size=%lu, shift_dist=%lu\n", i, (unsigned long)offset, (unsigned long)size,
+ (unsigned long)shift_dist);
for (j = sizeof(vector) - 1; j >= 0; --j)
- HDprintf("%02x", vector[j]);
- HDprintf("\n");
+ printf("%02x", vector[j]);
+ printf("\n");
return -1;
}
@@ -445,16 +445,16 @@ test_increment(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_LSB, 1);
if (size != 1 && (size_t)n != offset + size - 1) {
H5_FAILED();
- HDprintf(" Unable to find first bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
if (size == 1 && n >= 0) {
H5_FAILED();
- HDprintf(" Unable to verify all-zero bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to verify all-zero bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
@@ -465,16 +465,16 @@ test_increment(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_MSB, 1);
if (size != 1 && n != (ssize_t)(offset + size - 1)) {
H5_FAILED();
- HDprintf(" Unable to find last bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
if (size == 1 && n >= 0) {
H5_FAILED();
- HDprintf(" Unable to verify all-zero bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to verify all-zero bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
}
@@ -483,10 +483,10 @@ test_increment(void)
return 0;
failed:
- HDprintf(" i=%d, offset=%lu, size=%lu\n", i, (unsigned long)offset, (unsigned long)size);
+ printf(" i=%d, offset=%lu, size=%lu\n", i, (unsigned long)offset, (unsigned long)size);
for (j = sizeof(vector) - 1; j >= 0; --j)
- HDprintf("%02x", vector[j]);
- HDprintf("\n");
+ printf("%02x", vector[j]);
+ printf("\n");
return -1;
}
@@ -531,9 +531,9 @@ test_decrement(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_LSB, 1);
if ((size_t)n != offset) {
H5_FAILED();
- HDprintf(" Unable to find first bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
@@ -544,9 +544,9 @@ test_decrement(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_MSB, 1);
if (n != (ssize_t)(offset + size - 1)) {
H5_FAILED();
- HDprintf(" Unable to find last bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
}
@@ -555,10 +555,10 @@ test_decrement(void)
return 0;
failed:
- HDprintf(" i=%d, offset=%lu, size=%lu\n", i, (unsigned long)offset, (unsigned long)size);
+ printf(" i=%d, offset=%lu, size=%lu\n", i, (unsigned long)offset, (unsigned long)size);
for (j = sizeof(vector) - 1; j >= 0; --j)
- HDprintf("%02x", vector[j]);
- HDprintf("\n");
+ printf("%02x", vector[j]);
+ printf("\n");
return -1;
}
@@ -603,9 +603,9 @@ test_negate(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_LSB, 1);
if ((size_t)n != offset) {
H5_FAILED();
- HDprintf(" Unable to find first bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
@@ -616,9 +616,9 @@ test_negate(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_MSB, 1);
if (n != (ssize_t)(offset + size - 1)) {
H5_FAILED();
- HDprintf(" Unable to find last bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
@@ -633,9 +633,9 @@ test_negate(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_LSB, 1);
if (n >= 0) {
H5_FAILED();
- HDprintf(" Unable to verify all-zero bits in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to verify all-zero bits in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
@@ -646,9 +646,9 @@ test_negate(void)
n = H5T__bit_find(vector, (size_t)0, 8 * sizeof(vector), H5T_BIT_MSB, 1);
if (n >= 0) {
H5_FAILED();
- HDprintf(" Unable to verify all-zero bits in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to verify all-zero bits in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
}
@@ -657,10 +657,10 @@ test_negate(void)
return 0;
failed:
- HDprintf(" i=%d, offset=%lu, size=%lu\n", i, (unsigned long)offset, (unsigned long)size);
+ printf(" i=%d, offset=%lu, size=%lu\n", i, (unsigned long)offset, (unsigned long)size);
for (j = sizeof(vector) - 1; j >= 0; --j)
- HDprintf("%02x", vector[j]);
- HDprintf("\n");
+ printf("%02x", vector[j]);
+ printf("\n");
return -1;
}
@@ -714,9 +714,9 @@ test_set(void)
n = H5T__bit_find(v2, (size_t)0, 8 * sizeof(v2), H5T_BIT_LSB, 1);
if (size > 0 && n != (ssize_t)d_offset) {
H5_FAILED();
- HDprintf(" Unable to find first set bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first set bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == size && n >= 0) {
@@ -727,9 +727,9 @@ test_set(void)
n = H5T__bit_find(v2, d_offset, 8 * sizeof(v2) - d_offset, H5T_BIT_LSB, 0);
if (d_offset + size < 8 * sizeof(v2) && n != (ssize_t)size) {
H5_FAILED();
- HDprintf(" Unable to find last set bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find last set bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
if (d_offset + size == 8 * sizeof(v2) && n >= 0) {
@@ -745,9 +745,9 @@ test_set(void)
n = H5T__bit_find(v2, (size_t)0, 8 * sizeof(v2), H5T_BIT_MSB, 1);
if (size > 0 && (size_t)(n + 1) != d_offset + size) {
H5_FAILED();
- HDprintf(" Unable to find last set bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last set bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == size && n >= 0) {
@@ -758,9 +758,9 @@ test_set(void)
n = H5T__bit_find(v2, (size_t)0, d_offset + size, H5T_BIT_MSB, 0);
if (d_offset > 0 && n + 1 != (ssize_t)d_offset) {
H5_FAILED();
- HDprintf(" Unable to find beginning of set bit region "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find beginning of set bit region "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == d_offset && n >= 0) {
@@ -774,11 +774,11 @@ test_set(void)
return 0;
failed:
- HDprintf(" i=%d, d_offset=%lu, size=%lu\n", i, (unsigned long)d_offset, (unsigned long)size);
- HDprintf(" d = 0x");
+ printf(" i=%d, d_offset=%lu, size=%lu\n", i, (unsigned long)d_offset, (unsigned long)size);
+ printf(" d = 0x");
for (j = sizeof(v2) - 1; j >= 0; --j)
- HDprintf("%02x", v2[j]);
- HDprintf("\n");
+ printf("%02x", v2[j]);
+ printf("\n");
return -1;
}
@@ -832,9 +832,9 @@ test_clear(void)
n = H5T__bit_find(v2, (size_t)0, 8 * sizeof(v2), H5T_BIT_LSB, 0);
if (size > 0 && n != (ssize_t)d_offset) {
H5_FAILED();
- HDprintf(" Unable to find first cleared bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find first cleared bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == size && n >= 0) {
@@ -845,9 +845,9 @@ test_clear(void)
n = H5T__bit_find(v2, d_offset, 8 * sizeof(v2) - d_offset, H5T_BIT_LSB, 1);
if (d_offset + size < 8 * sizeof(v2) && n != (ssize_t)size) {
H5_FAILED();
- HDprintf(" Unable to find last cleared bit in destination "
- "(n=%d)\n",
- (int)n);
+ printf(" Unable to find last cleared bit in destination "
+ "(n=%d)\n",
+ (int)n);
goto failed;
}
if (d_offset + size == 8 * sizeof(v2) && n >= 0) {
@@ -863,9 +863,9 @@ test_clear(void)
n = H5T__bit_find(v2, (size_t)0, 8 * sizeof(v2), H5T_BIT_MSB, 0);
if (size > 0 && (size_t)(n + 1) != d_offset + size) {
H5_FAILED();
- HDprintf(" Unable to find last cleared bit in destination "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find last cleared bit in destination "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == size && n >= 0) {
@@ -876,9 +876,9 @@ test_clear(void)
n = H5T__bit_find(v2, (size_t)0, d_offset + size, H5T_BIT_MSB, 1);
if (d_offset > 0 && n + 1 != (ssize_t)d_offset) {
H5_FAILED();
- HDprintf(" Unable to find beginning of cleared bit region "
- "(reverse, n=%d)\n",
- (int)n);
+ printf(" Unable to find beginning of cleared bit region "
+ "(reverse, n=%d)\n",
+ (int)n);
goto failed;
}
if (0 == d_offset && n >= 0) {
@@ -892,11 +892,11 @@ test_clear(void)
return 0;
failed:
- HDprintf(" i=%d, d_offset=%lu, size=%lu\n", i, (unsigned long)d_offset, (unsigned long)size);
- HDprintf(" d = 0x");
+ printf(" i=%d, d_offset=%lu, size=%lu\n", i, (unsigned long)d_offset, (unsigned long)size);
+ printf(" d = 0x");
for (j = sizeof(v2) - 1; j >= 0; --j)
- HDprintf("%02x", v2[j]);
- HDprintf("\n");
+ printf("%02x", v2[j]);
+ printf("\n");
return -1;
}
@@ -932,10 +932,10 @@ main(void)
nerrors += test_negate() < 0 ? 1 : 0;
if (nerrors) {
- HDprintf("***** %u FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %u FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
- HDprintf("All bit tests passed.\n");
+ printf("All bit tests passed.\n");
H5close();
diff --git a/test/btree2.c b/test/btree2.c
index aebdebe..7169f3e 100644
--- a/test/btree2.c
+++ b/test/btree2.c
@@ -3008,7 +3008,7 @@ test_insert_lots(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_t
curr_time = HDtime(NULL);
#if 0
curr_time=1109170019;
-HDfprintf(stderr,"curr_time=%lu\n",(unsigned long)curr_time);
+fprintf(stderr,"curr_time=%lu\n",(unsigned long)curr_time);
#endif
HDsrandom((unsigned)curr_time);
@@ -5102,7 +5102,7 @@ test_update_lots(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_t
curr_time = HDtime(NULL);
#if 0
curr_time = 1451342093;
-HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
+fprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
#endif
HDsrandom((unsigned)curr_time);
@@ -5305,7 +5305,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
return 0;
error:
- HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
+ fprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
H5E_BEGIN_TRY
{
if (bt2)
@@ -8814,7 +8814,7 @@ test_remove_lots(const char *env_h5_drvr, hid_t fapl, const H5B2_create_t *cpara
curr_time = HDtime(NULL);
#if 0
curr_time = 1163537969;
-HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
+fprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
#endif
HDsrandom((unsigned)curr_time);
@@ -10139,7 +10139,7 @@ main(void)
ExpressMode = 2;
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests may be skipped\n");
+ printf("***Express test mode on. Some tests may be skipped\n");
/* Initialize v2 B-tree creation parameters */
init_cparam(&cparam, &cparam2);
@@ -10152,11 +10152,11 @@ main(void)
/* Loop over re-opening B-tree during tests */
for (reopen = FALSE; reopen <= TRUE; reopen++) {
if (reopen) {
- HDfprintf(stdout, "Testing with reopening B-tree:\n");
+ fprintf(stdout, "Testing with reopening B-tree:\n");
tparam.reopen_btree = TRUE;
} /* end if */
else {
- HDfprintf(stdout, "Testing without reopening B-tree:\n");
+ fprintf(stdout, "Testing without reopening B-tree:\n");
tparam.reopen_btree = FALSE;
} /* end else */
@@ -10176,7 +10176,7 @@ main(void)
nerrors += test_insert_level2_3internal_redistrib(fapl, &cparam, &tparam);
nerrors += test_insert_level2_3internal_split(fapl, &cparam, &tparam);
if (ExpressMode > 1)
- HDprintf("***Express test mode on. test_insert_lots skipped\n");
+ printf("***Express test mode on. test_insert_lots skipped\n");
else
nerrors += test_insert_lots(fapl, &cparam, &tparam);
@@ -10190,7 +10190,7 @@ main(void)
nerrors += test_update_level1_middle_split(fapl, &cparam2, &tparam);
nerrors += test_update_make_level2(fapl, &cparam2, &tparam);
if (ExpressMode > 1)
- HDprintf("***Express test mode on. test_update_lots skipped\n");
+ printf("***Express test mode on. test_update_lots skipped\n");
else
nerrors += test_update_lots(fapl, &cparam2, &tparam);
@@ -10217,7 +10217,7 @@ main(void)
nerrors += test_remove_level2_3internal_merge(fapl, &cparam, &tparam);
nerrors += test_remove_level2_collapse_right(fapl, &cparam, &tparam);
if (ExpressMode > 1)
- HDprintf("***Express test mode on. test_remove_lots skipped\n");
+ printf("***Express test mode on. test_remove_lots skipped\n");
else
nerrors += test_remove_lots(envval, fapl, &cparam);
diff --git a/test/cache.c b/test/cache.c
index b1eb744..ecd6578 100644
--- a/test/cache.c
+++ b/test/cache.c
@@ -286,7 +286,7 @@ smoke_check_1(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -294,17 +294,17 @@ smoke_check_1(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(4 * 1024 * 1024), (size_t)(2 * 1024 * 1024), paged);
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -322,7 +322,7 @@ smoke_check_1(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -340,7 +340,7 @@ smoke_check_1(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -358,7 +358,7 @@ smoke_check_1(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -368,7 +368,7 @@ smoke_check_1(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -381,7 +381,7 @@ smoke_check_1(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -391,7 +391,7 @@ smoke_check_1(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -404,12 +404,12 @@ smoke_check_1(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -423,7 +423,7 @@ smoke_check_1(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -484,7 +484,7 @@ smoke_check_2(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -492,17 +492,17 @@ smoke_check_2(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(4 * 1024 * 1024), (size_t)(2 * 1024 * 1024), paged);
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -520,7 +520,7 @@ smoke_check_2(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -538,7 +538,7 @@ smoke_check_2(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -556,7 +556,7 @@ smoke_check_2(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -566,7 +566,7 @@ smoke_check_2(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -579,7 +579,7 @@ smoke_check_2(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -589,7 +589,7 @@ smoke_check_2(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -602,12 +602,12 @@ smoke_check_2(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -621,7 +621,7 @@ smoke_check_2(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -681,7 +681,7 @@ smoke_check_3(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -689,17 +689,17 @@ smoke_check_3(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(2 * 1024), (size_t)(1 * 1024), paged);
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -717,7 +717,7 @@ smoke_check_3(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -735,7 +735,7 @@ smoke_check_3(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -753,7 +753,7 @@ smoke_check_3(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -763,7 +763,7 @@ smoke_check_3(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -776,7 +776,7 @@ smoke_check_3(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -786,7 +786,7 @@ smoke_check_3(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -799,12 +799,12 @@ smoke_check_3(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -818,7 +818,7 @@ smoke_check_3(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -879,7 +879,7 @@ smoke_check_4(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -887,17 +887,17 @@ smoke_check_4(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(2 * 1024), (size_t)(1 * 1024), paged);
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -915,7 +915,7 @@ smoke_check_4(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -933,7 +933,7 @@ smoke_check_4(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -951,7 +951,7 @@ smoke_check_4(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -961,7 +961,7 @@ smoke_check_4(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -974,7 +974,7 @@ smoke_check_4(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -984,7 +984,7 @@ smoke_check_4(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -997,12 +997,12 @@ smoke_check_4(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -1016,7 +1016,7 @@ smoke_check_4(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -1117,7 +1117,7 @@ smoke_check_5(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -1125,12 +1125,12 @@ smoke_check_5(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(2 * 1024), (size_t)(1 * 1024), paged);
cache_ptr = file_ptr->shared->cache;
@@ -1147,7 +1147,7 @@ smoke_check_5(int express_test, unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1158,7 +1158,7 @@ smoke_check_5(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1169,7 +1169,7 @@ smoke_check_5(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1180,7 +1180,7 @@ smoke_check_5(int express_test, unsigned paged)
/* do_inserts */ TRUE);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -1190,7 +1190,7 @@ smoke_check_5(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1202,7 +1202,7 @@ smoke_check_5(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -1212,7 +1212,7 @@ smoke_check_5(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1224,12 +1224,12 @@ smoke_check_5(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -1243,7 +1243,7 @@ smoke_check_5(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -1346,18 +1346,18 @@ smoke_check_6(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(2 * 1024), (size_t)(1 * 1024), paged);
cache_ptr = file_ptr->shared->cache;
@@ -1374,7 +1374,7 @@ smoke_check_6(int express_test, unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1385,7 +1385,7 @@ smoke_check_6(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1396,7 +1396,7 @@ smoke_check_6(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1407,7 +1407,7 @@ smoke_check_6(int express_test, unsigned paged)
/* do_inserts */ TRUE);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -1417,7 +1417,7 @@ smoke_check_6(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1429,7 +1429,7 @@ smoke_check_6(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -1439,7 +1439,7 @@ smoke_check_6(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1451,12 +1451,12 @@ smoke_check_6(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -1470,7 +1470,7 @@ smoke_check_6(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -1572,7 +1572,7 @@ smoke_check_7(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -1580,12 +1580,12 @@ smoke_check_7(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(2 * 1024), (size_t)(1 * 1024), paged);
cache_ptr = file_ptr->shared->cache;
@@ -1602,7 +1602,7 @@ smoke_check_7(int express_test, unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1613,7 +1613,7 @@ smoke_check_7(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1624,7 +1624,7 @@ smoke_check_7(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1635,7 +1635,7 @@ smoke_check_7(int express_test, unsigned paged)
/* do_inserts */ TRUE);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -1645,7 +1645,7 @@ smoke_check_7(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1657,7 +1657,7 @@ smoke_check_7(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -1667,7 +1667,7 @@ smoke_check_7(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1679,12 +1679,12 @@ smoke_check_7(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -1698,7 +1698,7 @@ smoke_check_7(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -1800,7 +1800,7 @@ smoke_check_8(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -1808,12 +1808,12 @@ smoke_check_8(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(2 * 1024), (size_t)(1 * 1024), paged);
cache_ptr = file_ptr->shared->cache;
@@ -1830,7 +1830,7 @@ smoke_check_8(int express_test, unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1841,7 +1841,7 @@ smoke_check_8(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1852,7 +1852,7 @@ smoke_check_8(int express_test, unsigned paged)
/* do_inserts */ FALSE);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1863,7 +1863,7 @@ smoke_check_8(int express_test, unsigned paged)
/* do_inserts */ TRUE);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -1873,7 +1873,7 @@ smoke_check_8(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1885,7 +1885,7 @@ smoke_check_8(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -1895,7 +1895,7 @@ smoke_check_8(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
hl_col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -1907,12 +1907,12 @@ smoke_check_8(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -1926,7 +1926,7 @@ smoke_check_8(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -1993,7 +1993,7 @@ smoke_check_9(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -2001,12 +2001,12 @@ smoke_check_9(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(4 * 1024 * 1024), (size_t)(2 * 1024 * 1024), paged);
cache_ptr = file_ptr->shared->cache;
@@ -2014,7 +2014,7 @@ smoke_check_9(int express_test, unsigned paged)
/* disable evictions */
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2028,8 +2028,7 @@ smoke_check_9(int express_test, unsigned paged)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2049,7 +2048,7 @@ smoke_check_9(int express_test, unsigned paged)
/* enable evictions */
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2063,8 +2062,7 @@ smoke_check_9(int express_test, unsigned paged)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled \n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled \n", __func__, mile_stone++, (int)pass);
row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2082,7 +2080,7 @@ smoke_check_9(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2096,8 +2094,8 @@ smoke_check_9(int express_test, unsigned paged)
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled \n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled \n", __func__, mile_stone++,
+ (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2115,7 +2113,7 @@ smoke_check_9(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2129,8 +2127,7 @@ smoke_check_9(int express_test, unsigned paged)
}
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled \n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled \n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -2140,7 +2137,7 @@ smoke_check_9(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2154,8 +2151,7 @@ smoke_check_9(int express_test, unsigned paged)
}
if (show_progress) /* 12 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass);
col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2168,7 +2164,7 @@ smoke_check_9(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 13 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -2178,7 +2174,7 @@ smoke_check_9(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 14 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2192,8 +2188,7 @@ smoke_check_9(int express_test, unsigned paged)
}
if (show_progress) /* 15 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++, (int)pass);
col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2206,7 +2201,7 @@ smoke_check_9(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 16 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2220,13 +2215,12 @@ smoke_check_9(int express_test, unsigned paged)
}
if (show_progress) /* 17 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 18 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -2240,7 +2234,7 @@ smoke_check_9(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -2307,7 +2301,7 @@ smoke_check_10(int express_test, unsigned paged)
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -2315,19 +2309,18 @@ smoke_check_10(int express_test, unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(4 * 1024 * 1024), (size_t)(2 * 1024 * 1024), paged);
cache_ptr = file_ptr->shared->cache;
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2345,7 +2338,7 @@ smoke_check_10(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2359,8 +2352,7 @@ smoke_check_10(int express_test, unsigned paged)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass);
row_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2378,7 +2370,7 @@ smoke_check_10(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2392,8 +2384,7 @@ smoke_check_10(int express_test, unsigned paged)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2411,7 +2402,7 @@ smoke_check_10(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2425,8 +2416,7 @@ smoke_check_10(int express_test, unsigned paged)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -2436,7 +2426,7 @@ smoke_check_10(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2450,8 +2440,7 @@ smoke_check_10(int express_test, unsigned paged)
}
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++, (int)pass);
col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2464,7 +2453,7 @@ smoke_check_10(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 12 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2478,8 +2467,7 @@ smoke_check_10(int express_test, unsigned paged)
}
if (show_progress) /* 13 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass);
/* flush all entries in the cache: */
@@ -2489,7 +2477,7 @@ smoke_check_10(int express_test, unsigned paged)
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 14 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2503,8 +2491,7 @@ smoke_check_10(int express_test, unsigned paged)
}
if (show_progress) /* 15 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions enabled\n", __func__, mile_stone++, (int)pass);
col_major_scan_backward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2517,7 +2504,7 @@ smoke_check_10(int express_test, unsigned paged)
/* dirty_unprotects */ dirty_unprotects);
if (show_progress) /* 16 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -2531,13 +2518,12 @@ smoke_check_10(int express_test, unsigned paged)
}
if (show_progress) /* 17 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++,
- (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 18 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -2551,7 +2537,7 @@ smoke_check_10(int express_test, unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -2616,7 +2602,7 @@ write_permitted_check(int
default:
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return 0; /* <========== note return */
break;
}
@@ -2624,17 +2610,17 @@ write_permitted_check(int
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
reset_entries();
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
file_ptr = setup_cache((size_t)(1 * 1024 * 1024), (size_t)0, paged);
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
row_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2652,7 +2638,7 @@ write_permitted_check(int
/* dirty_unprotects */ TRUE);
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
write_permitted = FALSE;
@@ -2672,7 +2658,7 @@ write_permitted_check(int
/* dirty_unprotects */ NO_CHANGE);
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
write_permitted = TRUE;
@@ -2692,7 +2678,7 @@ write_permitted_check(int
/* dirty_unprotects */ TRUE);
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* flush and destroy all entries in the cache: */
@@ -2702,7 +2688,7 @@ write_permitted_check(int
/* dump_detailed_stats */ FALSE);
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
col_major_scan_forward(/* file_ptr */ file_ptr,
/* max_index */ max_index,
@@ -2715,7 +2701,7 @@ write_permitted_check(int
/* dirty_unprotects */ TRUE);
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
write_permitted = FALSE;
@@ -2732,12 +2718,12 @@ write_permitted_check(int
write_permitted = TRUE;
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
takedown_cache(file_ptr, display_stats, TRUE);
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
verify_clean();
verify_unprotected();
@@ -2751,14 +2737,14 @@ write_permitted_check(int
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
#else /* H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS */
SKIPPED();
- HDfprintf(stdout, " Clean and dirty LRU lists disabled.\n");
+ fprintf(stdout, " Clean and dirty LRU lists disabled.\n");
#endif /* H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS */
@@ -3039,7 +3025,7 @@ check_insert_entry(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -3126,7 +3112,7 @@ check_flush_cache(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -11258,7 +11244,7 @@ check_get_entry_status(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -11536,7 +11522,7 @@ check_expunge_entry(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -11923,7 +11909,7 @@ check_multiple_read_protect(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -12023,7 +12009,7 @@ check_move_entry(unsigned paged)
H5_FAILED();
if (!pass)
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
return (unsigned)!pass;
} /* check_move_entry() */
@@ -12275,7 +12261,7 @@ check_pin_protected_entry(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -13137,7 +13123,7 @@ check_resize_entry(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -13216,7 +13202,7 @@ check_evictions_enabled(unsigned paged)
pass = TRUE;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* create the cache */
if (pass) {
@@ -13238,7 +13224,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that it is empty */
if (pass) {
@@ -13254,7 +13240,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that H5C_get_evictions_enabled() returns the expected value */
if (pass) {
@@ -13270,7 +13256,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13282,7 +13268,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that the cache is full */
if (pass) {
@@ -13298,7 +13284,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13308,7 +13294,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that an entry has been evicted */
if (pass) {
@@ -13324,7 +13310,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13354,7 +13340,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13363,7 +13349,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that another entry has been evicted */
if (pass) {
@@ -13380,7 +13366,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13410,7 +13396,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 12 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* disable evictions */
if (pass) {
@@ -13426,7 +13412,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 13 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that evictions are disabled */
if (pass) {
@@ -13443,7 +13429,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 14 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13453,7 +13439,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 15 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that no entry has been evicted */
if (pass) {
@@ -13470,7 +13456,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 16 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13479,7 +13465,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 17 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that no entry has been evicted */
if (pass) {
@@ -13496,7 +13482,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 18 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* re-enable evictions */
if (pass) {
@@ -13512,7 +13498,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 19 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13522,7 +13508,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 20 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that no entries have been evicted */
if (pass) {
@@ -13539,7 +13525,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 21 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13549,7 +13535,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 22 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that the entries have been evicted to bring the
* cache back down to its normal size.
@@ -13569,7 +13555,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 23 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13599,7 +13585,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 24 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13629,7 +13615,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 25 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* disable evictions again */
if (pass) {
@@ -13645,7 +13631,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 26 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13657,7 +13643,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 27 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that the cache has grown */
if (pass) {
@@ -13674,7 +13660,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 28 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* re-enable evictions again */
if (pass) {
@@ -13690,7 +13676,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 29 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13699,7 +13685,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 30 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* verify that the cache has returned to its maximum size */
if (pass) {
@@ -13716,7 +13702,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 31 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13746,7 +13732,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 32 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* disable evictions one last time before we shut down */
if (pass) {
@@ -13762,7 +13748,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 33 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -13770,7 +13756,7 @@ check_evictions_enabled(unsigned paged)
}
if (show_progress) /* 34 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
PASSED();
@@ -13781,7 +13767,7 @@ check_evictions_enabled(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -13872,7 +13858,7 @@ check_flush_protected_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -13958,7 +13944,7 @@ check_destroy_pinned_err(unsigned paged)
}
if (!pass)
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
return (unsigned)!pass;
@@ -14052,7 +14038,7 @@ check_destroy_protected_err(unsigned paged)
}
if (!pass)
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
return (unsigned)!pass;
@@ -14131,7 +14117,7 @@ check_duplicate_insert_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14216,7 +14202,7 @@ check_double_pin_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14310,7 +14296,7 @@ check_double_unpin_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14418,7 +14404,7 @@ check_pin_entry_errs(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14500,7 +14486,7 @@ check_double_protect_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14578,7 +14564,7 @@ check_double_unprotect_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14660,7 +14646,7 @@ check_mark_entry_dirty_errs(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14773,7 +14759,7 @@ check_expunge_entry_errs(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -14890,7 +14876,7 @@ check_move_entry_errs(unsigned paged)
else {
H5_FAILED();
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
} /* end else */
return (unsigned)!pass;
@@ -14990,7 +14976,7 @@ check_resize_entry_errs(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -15111,7 +15097,7 @@ check_unprotect_ro_dirty_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -15194,7 +15180,7 @@ check_protect_ro_rw_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -15323,7 +15309,7 @@ check_protect_retries(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_msg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_msg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -15459,7 +15445,7 @@ check_check_evictions_enabled_err(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -15554,7 +15540,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
pass = TRUE;
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* allocate a cache, enable automatic cache resizing, and then force
* the cache through all its operational modes. Verify that all
@@ -15585,7 +15571,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache not full -- should result in not
* full status.
@@ -15610,7 +15596,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full -- should result in increase
* of cache size from .5 to 1 meg.
@@ -15636,7 +15622,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache not full -- should result in not
* full status.
@@ -15662,7 +15648,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full again -- should result in increase
* of cache size from 1 to 2 meg.
@@ -15689,7 +15675,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full again -- should result in increase
* of cache size from 2 to 4 meg.
@@ -15716,7 +15702,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full again -- should result in increase
* of cache size from 4 to 8 meg.
@@ -15743,7 +15729,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full again -- should result in increase
* of cache size from 8 to 12 meg. Note that max increase reduced the
@@ -15771,7 +15757,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full again -- should result in increase
* of cache size from 12 to 14 meg.
@@ -15798,7 +15784,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full and at maximum size -- should
* in no change in size and a result of at_max_size.
@@ -15825,7 +15811,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate with cache full and at maximum size -- should
* result in a decrease from 14 to 13 Meg -- note that max decrease
@@ -15853,7 +15839,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* the current cache configuration is inconvenient for testing cache
* size reduction, so lets change it some something easier to work
@@ -15920,7 +15906,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should result in a decrease from ~4 to ~3
* M -- note that max decrease reduces the size of the reduction
@@ -15947,7 +15933,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- should result in a decrease from ~3
* to ~2 M -- again note that max decrease reduces the size of the
@@ -15975,7 +15961,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- should result in a decrease from ~2
* to ~1 M -- again note that max decrease reduces the size of the
@@ -16003,7 +15989,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- should result in a decrease from ~1
* to ~0.5 M -- max decrease is no longer a factor. New size is five
@@ -16030,7 +16016,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- should result in a decrease of five
* bytes to the minimum cache size.
@@ -16056,7 +16042,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- Already at minimum size so no change in
* cache size and result should be at_min_size.
@@ -16082,7 +16068,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force in range hit rate -- should be no change in cache size,
* and result should be in_spec.
@@ -16116,7 +16102,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full -- should
* increase cache size from .5 to 1 M.
@@ -16142,7 +16128,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should result in a decrease to the
* minimum cache size.
@@ -16168,7 +16154,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/******************************************************************
* now do some tests with the maximum increase and decrease sizes
@@ -16235,7 +16221,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should result in a decrease to the
* minimum cache size.
@@ -16261,7 +16247,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full -- should increase cache size
* from 1 to 4 Meg.
@@ -16288,7 +16274,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate again with cache full -- should increase cache
* size from 4 to 16 Meg.
@@ -16315,7 +16301,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should result in a decrease cache size from
* 16 to 4 Meg.
@@ -16342,7 +16328,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/******************************************************************
* We have tested the threshold increment and decrement modes.
@@ -16411,7 +16397,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (cork_ageout)
cork_entry_type(file_ptr, MEDIUM_ENTRY_TYPE);
@@ -16444,7 +16430,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* second epoch */
rpt_fcn_called = FALSE;
@@ -16467,7 +16453,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* third epoch */
rpt_fcn_called = FALSE;
@@ -16490,7 +16476,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fourth epoch -- If the hit rate were above the lower threshold,
* we would see cache size reduction now. However, nothing will
@@ -16517,7 +16503,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fifth epoch -- force the hit rate to 100%. We should see cache size
* reduction now.
@@ -16542,7 +16528,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* sixth epoch -- force the hit rate to 100% again.
*/
@@ -16566,7 +16552,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* seventh epoch -- force the hit rate to 100% again.
*/
@@ -16590,7 +16576,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* eighth epoch -- force the hit rate to 100% again -- should be steady
* state.
@@ -16615,7 +16601,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* now just bang on one entry -- after three epochs, this should
* get all entries other than the one evicted, and the cache size
@@ -16641,7 +16627,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* tenth epoch */
rpt_fcn_called = FALSE;
@@ -16663,7 +16649,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* eleventh epoch -- cache size reduction */
rpt_fcn_called = FALSE;
@@ -16686,7 +16672,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* twelfth epoch -- at minimum size so no more ageouts */
rpt_fcn_called = FALSE;
@@ -16709,7 +16695,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (cork_ageout)
uncork_entry_type(file_ptr, MEDIUM_ENTRY_TYPE);
@@ -16781,7 +16767,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fill the cache with 1024 byte entries -- nothing should happen
* for three epochs while the markers are inserted into the cache
@@ -16812,7 +16798,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* second epoch */
@@ -16836,7 +16822,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* third epoch */
@@ -16860,7 +16846,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fourth epoch -- If the hit rate were above the lower threshold,
* we would see cache size reduction now. However, nothing will
@@ -16888,7 +16874,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fifth epoch -- force the hit rate to 100%. We should see cache size
* reduction now.
@@ -16915,7 +16901,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* sixth epoch -- force the hit rate to 100% again.
*/
@@ -16941,7 +16927,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* seventh epoch -- keep hit rate at 100%, and keep 2K entries active.
*/
@@ -16967,7 +16953,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* eighth epoch -- still 100% hit rate
*/
@@ -16993,7 +16979,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* ninth epoch --hit rate at 100%.
*/
@@ -17019,7 +17005,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* tenth epoch -- still 100% hit rate
*/
@@ -17045,7 +17031,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* eleventh epoch -- hit rate at 100% -- starting to stableize
*/
@@ -17070,7 +17056,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* twelfth epoch -- force the hit rate to 100% again -- should be steady
* state.
@@ -17096,7 +17082,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* now just bang on one entry -- after three epochs, this should
* get all entries other than the one evicted, and the cache size
@@ -17123,7 +17109,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* fourteenth epoch */
@@ -17147,7 +17133,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* fifteenth epoch -- cache size reduction */
@@ -17171,7 +17157,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* sixteenth epoch -- at minimum size so no more ageouts */
@@ -17195,7 +17181,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* repeat the test yet again, this time with empty reserve enabled.
* Again, some structural changes in the test are necessary.
@@ -17263,7 +17249,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fill the cache with 1024 byte entries -- nothing should happen
* for three epochs while the markers are inserted into the cache
@@ -17294,7 +17280,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* second epoch */
@@ -17318,7 +17304,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* third epoch */
@@ -17342,7 +17328,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fourth epoch -- If the hit rate were above the lower threshold,
* we would see cache size reduction now. However, nothing will
@@ -17370,7 +17356,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fifth epoch -- force the hit rate to 100%. We should see cache size
* reduction now.
@@ -17396,7 +17382,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* sixth epoch -- force the hit rate to 100% again.
*/
@@ -17421,7 +17407,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* seventh epoch -- force the hit rate to 100% again.
*/
@@ -17446,7 +17432,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* eighth epoch -- force the hit rate to 100% again -- should be steady
* state.
@@ -17472,7 +17458,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* now just bang on one entry -- after three epochs, this should
* get all entries other than the one evicted, and the cache size
@@ -17499,7 +17485,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* tenth epoch */
@@ -17522,7 +17508,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* eleventh epoch -- cache size reduction */
@@ -17546,7 +17532,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* twelfth epoch -- at minimum size so no more ageouts */
@@ -17570,7 +17556,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Repeat the test again, this time using the age out with threshold
* mode. To simplify the testing, set epochs to eviction to 1.
@@ -17641,7 +17627,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fill the cache with 4K byte entries -- increment mode is off,
* so cache size reduction should kick in as soon as we get the
@@ -17669,7 +17655,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* second epoch -- hit rate 0 */
@@ -17693,7 +17679,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* third epoch -- hit rate 1.0 -- should see decrease */
@@ -17717,7 +17703,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fourth epoch -- load up the cache again -- hit rate 0 */
if (pass) {
@@ -17742,7 +17728,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fifth epoch -- still loading up the cache -- hit rate 0 */
if (pass) {
@@ -17767,7 +17753,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* sixth epoch -- force hit rate to .998 -- should be no reduction */
if (pass) {
@@ -17792,7 +17778,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* seventh epoch -- force hit rate to .999 -- should see reduction
*/
@@ -17818,7 +17804,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* We have now tested all the major ageout modes individually.
* Lets try them all together to look for unexpected interactions
@@ -17885,7 +17871,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fill the cache with 4K byte entries -- increment mode is threshold,
* so the decrease code will not be executed until the hit rate exceeds
@@ -17913,7 +17899,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) { /* second epoch -- hit rate 0 */
@@ -17937,7 +17923,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* third epoch -- force the hit rate to 1.0. Should be no change
* in the cache size due to the combination of the empty reserve
@@ -17970,7 +17956,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fourth epoch -- hit rate still 1.0. Index size should decrease,
* but otherwise no change expected.
@@ -17998,7 +17984,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fifth epoch -- hit rate still 1.0. Index size should decrease,
* but otherwise no change expected.
@@ -18026,7 +18012,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* sixth epoch -- hit rate still 1.0. Index size should decrease,
* but otherwise no change expected. Note that the cache size is
@@ -18055,7 +18041,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* seventh epoch -- hit rate still 1.0. No change in index size expected.
*/
@@ -18082,7 +18068,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* eighth epoch -- start loading 1 KB entries. Hit rate 0 so
* decrease code shouldn't be called.
@@ -18110,7 +18096,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* ninth epoch -- access the 1 KB entries again, driving the hit rate
* to 1.0. Decrease code should be triggered, but the max decrease
@@ -18139,7 +18125,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* tenth epoch -- access the 1 KB entries yet again, forcing hit rate
* to 1.0. Decrease code should be triggered, and the empty reserve
@@ -18168,7 +18154,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* eleventh epoch -- access the 1 KB entries yet again, forcing hit rate
* to 1.0. Decrease code should be triggered, and the empty reserve
@@ -18197,7 +18183,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* twelfth epoch -- hit rate 1.0 -- decrease as before.
*/
@@ -18224,7 +18210,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* thirteenth epoch -- hit rate 1.0 -- decrease as before.
*/
@@ -18251,7 +18237,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fourteenth epoch -- hit rate 1.0 -- decrease as before.
*/
@@ -18278,7 +18264,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* fifteenth epoch -- hit rate 1.0 -- decrease as before.
*/
@@ -18305,7 +18291,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* sixteenth epoch -- hit rate 1.0 -- should be stable now
*/
@@ -18332,7 +18318,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* now test the flash cache size increment code. At least at present,
* there should be no interaction between the regular auto-resize
@@ -18346,7 +18332,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
*/
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Place the cache in a known state via a flush-destroy on the cache
* to clear out all entries, and then a reset on all the entries.
@@ -18361,7 +18347,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* now repeat the above tests using the add space flash cache size
* increment algorithm.
@@ -18427,7 +18413,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Load a huge entry into the cache */
if (pass) {
@@ -18447,7 +18433,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now load a monster entry. Since a monster entry is larger than
* half the size of the cache, and there is not sufficient space
@@ -18472,7 +18458,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Load a second monster entry. Since the monster entry is larger
* than half the size of the cache yet again, and there is not
@@ -18496,7 +18482,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Load a third moster entry. Should be no cache size increase this
* time.
@@ -18518,7 +18504,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* delete existing entries to prepare for next test, and reset
* the size of the cache.
@@ -18551,7 +18537,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
*/
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* insert a huge entry into the cache */
if (pass) {
@@ -18574,7 +18560,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now insert a monster entry. Since a monster entry is larger than
* half the size of the cache, and there is not sufficient space
@@ -18596,7 +18582,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Insert a second monster entry. Cache size should increase again.
*/
@@ -18615,7 +18601,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Insert a third monster entry. Should be no cache size increase this
* time.
@@ -18637,7 +18623,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* delete existing entries to prepare for next test, and reset
* the size of the cache. We must also change the size of the needed
@@ -18689,7 +18675,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now load the variable entries into the cache */
if (pass) {
@@ -18716,7 +18702,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* protect a variable entry, and re-size it to 3K. Should be
* no effect on the size of the cache.
@@ -18737,7 +18723,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* protect the variable entry again, and re-size it to 10K. Should
* resize the cache to 13 KB. Note that cache_accesses will be 0
@@ -18759,7 +18745,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* protect a second variable entry, and re-size it to 10K. Should
* resize to 22 KB.
@@ -18780,7 +18766,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* protect a third variable entry, and re-size it to 10K. Should
* be no change in cache size.
@@ -18801,7 +18787,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* re-size the variable entries back down to their initial size, and
* restore the cache to its initial size as well, in preparation
@@ -18843,7 +18829,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now test flash cache resizes with pinned entries...
*/
@@ -18863,7 +18849,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -18879,7 +18865,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -18897,7 +18883,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -18915,7 +18901,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Unpin the entries. Note that no entries are evicted as we don't
* load any entries.
@@ -18941,7 +18927,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* re-size the variable entries back down to their initial size, and
* restore the cache to its initial size as well, in preparation
@@ -18998,7 +18984,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -19014,7 +19000,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -19032,7 +19018,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -19050,7 +19036,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Unpin the entries. Note that no entries are evicted as we don't
* load any entries.
@@ -19095,7 +19081,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* ...and then reconfigure. Note that we change the flash_multiple
* and flash_threshold just to make sure that such changed perform
@@ -19151,7 +19137,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -19164,7 +19150,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* protect and unprotect a large entry -- no change in cache size since
* a large entry will just fill the available space in the cache.
@@ -19186,7 +19172,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* protect and unprotect another a large entry -- should trigger a
* flash cache size increase to 12 KB (remember that flash_multiple is
@@ -19210,7 +19196,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* protect and unprotect two more large entries -- shouldn't trigger a
* flash cache size increase.
@@ -19235,7 +19221,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* do many accesses of a single entry to talk the cache into reducing
* its size to the minimum.
@@ -19261,7 +19247,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Force another flash increase */
if (pass) {
@@ -19283,7 +19269,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force regular size increase up to maximum */
if (pass) {
@@ -19307,7 +19293,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -19315,7 +19301,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
PASSED();
@@ -19325,7 +19311,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged)
} /* end else */
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return (unsigned)!pass;
} /* check_auto_cache_resize() */
@@ -19403,7 +19389,7 @@ check_auto_cache_resize_disable(unsigned paged)
pass = TRUE;
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* allocate a cache, enable automatic cache resizing, and then force
* the cache through all its operational modes. Verify that all
@@ -19448,7 +19434,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/******************************************************************
* So far, we have forced the auto cache resize through all modes
@@ -19519,7 +19505,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full -- increase disabled so should
* be no change in cache size, and result should be increase_disabled.
@@ -19547,7 +19533,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- make sure that we haven't disabled decreases.
* should result in a decrease cache size from 4 to 2 Meg.
@@ -19575,7 +19561,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate again -- increase disabled so should
* be no change in cache size, and result should be increase_disabled.
@@ -19603,7 +19589,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Repeat the above tests, disabling increase through the lower
* threshold instead of the increment.
@@ -19670,7 +19656,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full -- increase disabled so should
* be no change in cache size, and result should be in_spec.
@@ -19698,7 +19684,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- make sure that we haven't disabled decreases.
* should result in a decrease cache size from 4 to 2 Meg.
@@ -19726,7 +19712,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate again -- increase disabled so should
* be no change in cache size, and result should be increase_disabled.
@@ -19754,7 +19740,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Repeat the above tests yet again, disabling increase through the
* incr_mode.
@@ -19822,7 +19808,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate with cache full -- increase disabled so should
* be no change in cache size, and result should be in_spec.
@@ -19850,7 +19836,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- make sure that we haven't disabled decreases.
* should result in a decrease cache size from 4 to 2 Meg.
@@ -19878,7 +19864,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate again -- increase disabled so should
* be no change in cache size, and result should be increase_disabled.
@@ -19906,7 +19892,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now, disable size decreases, and repeat the above tests.
*/
@@ -19963,7 +19949,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -19976,7 +19962,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no change in cache size,
* and result should be decrease_disabled.
@@ -20004,7 +19990,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- cache size should increase from 4 to 6 Meg.
*/
@@ -20031,7 +20017,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- should be no change in cache size,
* and result should be decrease_disabled.
@@ -20059,7 +20045,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Repeat the above tests, disabling decrease through the upper
* threshold instead of the decrement.
@@ -20127,7 +20113,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no change in cache size,
* and result should be in_spec.
@@ -20155,7 +20141,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- cache size should increase from 4 to 6 Meg.
*/
@@ -20182,7 +20168,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- should be no change in cache size,
* and result should be in_spec.
@@ -20210,7 +20196,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Repeat the above tests, disabling decrease through the decr_mode.
*/
@@ -20277,7 +20263,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no change in cache size,
* and result should be in_spec.
@@ -20305,7 +20291,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- cache size should increase from 4 to 6 Meg.
*/
@@ -20332,7 +20318,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate again -- should be no change in cache size,
* and result should be in_spec.
@@ -20360,7 +20346,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now do tests disabling size decrement in age out mode.
*
@@ -20429,7 +20415,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -20438,7 +20424,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* load up the cache with small entries. Note that it will take an
* epoch for the ageout code to initialize itself if it is enabled.
@@ -20466,7 +20452,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Load up some more small entries.
*/
@@ -20493,7 +20479,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now force a high hit rate so that the size increase code is
* is satisfied. We would see a decrease here if decrease were
@@ -20522,7 +20508,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- cache size should increase from 4 to 6 Meg.
*/
@@ -20549,7 +20535,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* just bang on a single entry. This will see to it that there are
* many entries that could be aged out were decreases enabled.
@@ -20579,7 +20565,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now disable size decrement in age out mode via the empty reserve.
*/
@@ -20646,7 +20632,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -20655,7 +20641,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* load up the cache with small entries. Note that it will take an
* epoch for the ageout code to initialize itself if it is enabled.
@@ -20683,7 +20669,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Load up some more small entries.
*/
@@ -20710,7 +20696,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now force a high hit rate so that the size increase code is
* is satisfied. We would see a decrease here if decrease were
@@ -20739,7 +20725,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- cache size should increase from 4 to 6 Meg.
*/
@@ -20766,7 +20752,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* just bang on a single entry. This will see to it that there are
* many entries that could be aged out were decreases enabled.
@@ -20796,7 +20782,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now work with age out with threshold. One can argue that we should
* repeat the above age out tests with age out with threshold, but the
@@ -20870,7 +20856,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -20879,7 +20865,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* load up the cache with small entries. Note that it will take an
* epoch for the ageout code to initialize itself if it is enabled.
@@ -20907,7 +20893,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Load up some more small entries.
*/
@@ -20934,7 +20920,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now force a high hit rate so that the size increase code is
* is satisfied. We would see a decrease here if decrease were
@@ -20966,7 +20952,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- cache size should increase from 4 to 6 Meg.
*/
@@ -20993,7 +20979,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* just bang on a single entry. This keeps the hit rate high, and sees
* to it that there are many entries that could be aged out were
@@ -21025,7 +21011,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/*********************************************************************
* Finally, use the auto cache resize code to set the size of the
@@ -21096,7 +21082,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21124,7 +21110,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21152,7 +21138,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -21216,7 +21202,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21244,7 +21230,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21272,7 +21258,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -21336,7 +21322,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21364,7 +21350,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21392,7 +21378,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -21456,7 +21442,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21484,7 +21470,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21512,7 +21498,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -21576,7 +21562,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21604,7 +21590,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21632,7 +21618,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -21696,7 +21682,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force low hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21724,7 +21710,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* force high hit rate -- should be no response as the auto-resize
* code should be disabled.
@@ -21752,7 +21738,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now test the flash cache size increment code to verify that it
* is disabled when it should be.
@@ -21856,11 +21842,11 @@ check_auto_cache_resize_disable(unsigned paged)
(cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 1) ||
(cache_ptr->index_size != LARGE_ENTRY_SIZE) || (rpt_fcn_called != FALSE)))) {
- HDfprintf(stdout, "\nmax_cache_size = %ld.\n", (long)(cache_ptr->max_cache_size));
- HDfprintf(stdout, "min_clean_size = %ld.\n", (long)(cache_ptr->min_clean_size));
- HDfprintf(stdout, "index_len = %ld.\n", (long)(cache_ptr->index_len));
- HDfprintf(stdout, "index_size = %ld.\n", (long)(cache_ptr->index_size));
- HDfprintf(stdout, "rpt_fcn_called = %ld.\n", (long)(rpt_fcn_called));
+ fprintf(stdout, "\nmax_cache_size = %ld.\n", (long)(cache_ptr->max_cache_size));
+ fprintf(stdout, "min_clean_size = %ld.\n", (long)(cache_ptr->min_clean_size));
+ fprintf(stdout, "index_len = %ld.\n", (long)(cache_ptr->index_len));
+ fprintf(stdout, "index_size = %ld.\n", (long)(cache_ptr->index_size));
+ fprintf(stdout, "rpt_fcn_called = %ld.\n", (long)(rpt_fcn_called));
pass = FALSE;
failure_mssg = "Unexpected cache size change results 46.\n";
@@ -21868,7 +21854,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now protect and unprotect a monster entry. If the flash cache
* size increment code was active, this would trigger an increase.
@@ -21888,11 +21874,11 @@ check_auto_cache_resize_disable(unsigned paged)
(cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 1) ||
(cache_ptr->index_size != MONSTER_ENTRY_SIZE) || (rpt_fcn_called != FALSE)))) {
- HDfprintf(stdout, "\nmax_cache_size = %ld.\n", (long)(cache_ptr->max_cache_size));
- HDfprintf(stdout, "min_clean_size = %ld.\n", (long)(cache_ptr->min_clean_size));
- HDfprintf(stdout, "index_len = %ld.\n", (long)(cache_ptr->index_len));
- HDfprintf(stdout, "index_size = %ld.\n", (long)(cache_ptr->index_size));
- HDfprintf(stdout, "rpt_fcn_called = %ld.\n", (long)(rpt_fcn_called));
+ fprintf(stdout, "\nmax_cache_size = %ld.\n", (long)(cache_ptr->max_cache_size));
+ fprintf(stdout, "min_clean_size = %ld.\n", (long)(cache_ptr->min_clean_size));
+ fprintf(stdout, "index_len = %ld.\n", (long)(cache_ptr->index_len));
+ fprintf(stdout, "index_size = %ld.\n", (long)(cache_ptr->index_size));
+ fprintf(stdout, "rpt_fcn_called = %ld.\n", (long)(rpt_fcn_called));
pass = FALSE;
failure_mssg = "Unexpected cache size change results 47.\n";
@@ -21900,7 +21886,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -21908,7 +21894,7 @@ check_auto_cache_resize_disable(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
PASSED();
@@ -21919,7 +21905,7 @@ check_auto_cache_resize_disable(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -22000,7 +21986,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
pass = TRUE;
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -22031,7 +22017,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Now make sure that we are managing the epoch markers correctly.
*/
@@ -22098,7 +22084,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Since we just created the cache, there should be no epoch markers
* active. Verify that this is true.
@@ -22137,7 +22123,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -22166,7 +22152,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* we now have a full complement of epoch markers -- see if
* we get the expected reduction.
@@ -22195,7 +22181,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* now reduce the epochs before eviction, and see if the cache
* deletes the extra markers
@@ -22262,7 +22248,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* There should be exactly one active epoch marker at present.
*/
@@ -22302,7 +22288,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* There should be exactly one active epoch marker at present...
*/
@@ -22391,7 +22377,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* shift the decrement mode to age out with threshold. Set epochs
* before eviction to 10 again.
@@ -22459,7 +22445,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* build up a full set of epoch markers. */
if (pass) {
@@ -22489,7 +22475,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* Verify that there are now 10 active epoch markers.
*/
@@ -22568,7 +22554,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
/* verify that we still have the expected number of entries in the cache,
* and that the cache is of the expected size.
@@ -22585,7 +22571,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
@@ -22593,7 +22579,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
}
if (show_progress)
- HDfprintf(stderr, "check point %d\n", checkpoint++);
+ fprintf(stderr, "check point %d\n", checkpoint++);
if (pass) {
PASSED();
@@ -22604,7 +22590,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -24818,7 +24804,7 @@ check_auto_cache_resize_input_errs(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -25307,7 +25293,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -25410,7 +25396,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
} /* end else */
if (show_progress) /* 0 */
- HDfprintf(stdout, "\n%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "\n%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (pass) {
@@ -25431,7 +25417,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -25494,7 +25480,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -25564,7 +25550,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (pass) {
@@ -25618,7 +25604,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (pass) {
@@ -25671,7 +25657,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -25746,7 +25732,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (pass) {
@@ -25817,7 +25803,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -25876,7 +25862,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (pass) {
@@ -25924,7 +25910,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (pass) {
@@ -25975,7 +25961,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (pass) {
@@ -26021,7 +26007,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
if (cache_ptr) {
@@ -26031,7 +26017,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 12 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", __func__, checkpoint++, pass);
HDfree(expected);
@@ -27963,7 +27949,7 @@ done:
PASSED();
else {
H5_FAILED();
- HDfprintf(stdout, "%s.\n", failure_mssg);
+ fprintf(stdout, "%s.\n", failure_mssg);
} /* end else */
return (unsigned)!pass;
@@ -28229,7 +28215,7 @@ done:
PASSED();
else {
H5_FAILED();
- HDfprintf(stdout, "%s.\n", failure_mssg);
+ fprintf(stdout, "%s.\n", failure_mssg);
} /* end else */
return (unsigned)!pass;
@@ -30959,7 +30945,7 @@ done:
PASSED();
else {
H5_FAILED();
- HDfprintf(stdout, "%s.\n", failure_mssg);
+ fprintf(stdout, "%s.\n", failure_mssg);
} /* end else */
return (unsigned)!pass;
@@ -31175,7 +31161,7 @@ done:
PASSED();
else {
H5_FAILED();
- HDfprintf(stdout, "%s.\n", failure_mssg);
+ fprintf(stdout, "%s.\n", failure_mssg);
} /* end else */
return (unsigned)!pass;
@@ -31259,7 +31245,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
TESTING("to ensure cork/uncork metadata on protect/unprotect");
if (show_progress) /* 0 */
- HDfprintf(stdout, "\n%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "\n%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31283,7 +31269,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
cork_entry_type(file_ptr, entry_type);
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -31336,7 +31322,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -31392,7 +31378,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31433,7 +31419,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31482,7 +31468,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -31495,7 +31481,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
*/
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31534,7 +31520,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
/* ========================================================================
* ========================================================================
@@ -31578,7 +31564,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31621,7 +31607,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31665,7 +31651,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31705,7 +31691,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
if (pass) {
@@ -31749,14 +31735,14 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged)
}
if (show_progress) /* 12 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
/* We're done with testing. We can take down the cache. */
takedown_cache(file_ptr, FALSE, FALSE);
reset_entries();
if (show_progress) /* 13 */
- HDfprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
+ fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass);
HDfree(expected);
@@ -31858,7 +31844,7 @@ check_entry_deletions_during_scans(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return (unsigned)!pass;
@@ -33270,14 +33256,14 @@ check_stats(unsigned paged)
if (!pass) {
- HDfprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s(): failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
#else /* H5C_COLLECT_CACHE_STATS */
SKIPPED();
- HDfprintf(stdout, " Statistics collection disabled.\n");
+ fprintf(stdout, " Statistics collection disabled.\n");
#endif /* H5C_COLLECT_CACHE_STATS */
@@ -33738,7 +33724,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
hid_t fcpl_id = H5P_DEFAULT;
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
saved_fid = -1;
@@ -33781,7 +33767,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass && try_core_file_driver) {
if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) == FAIL) {
@@ -33798,7 +33784,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
core_file_driver_failed = TRUE;
if (verbose)
- HDfprintf(stdout, "%s: H5Fcreate() with CFD failed.\n", __func__);
+ fprintf(stdout, "%s: H5Fcreate() with CFD failed.\n", __func__);
}
else {
saved_fapl_id = fapl_id;
@@ -33806,7 +33792,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
/* if we either aren't using the core file driver, or a create
* with the core file driver failed, try again with a regular file.
@@ -33821,7 +33807,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
failure_mssg = "H5Fcreate() failed.";
if (verbose)
- HDfprintf(stdout, "%s: H5Fcreate() failed.\n", __func__);
+ fprintf(stdout, "%s: H5Fcreate() failed.\n", __func__);
} /* end if */
} /* end if */
@@ -33829,7 +33815,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
H5CX_push();
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
assert(fid >= 0);
@@ -33839,7 +33825,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
failure_mssg = "H5Fflush() failed.";
if (verbose)
- HDfprintf(stdout, "%s: H5Fflush() failed.\n", __func__);
+ fprintf(stdout, "%s: H5Fflush() failed.\n", __func__);
}
else {
file_ptr = (H5F_t *)H5VL_object_verify(fid, H5I_FILE);
@@ -33848,13 +33834,13 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
failure_mssg = "Can't get file_ptr.";
if (verbose)
- HDfprintf(stdout, "%s: H5Fflush() failed.\n", __func__);
+ fprintf(stdout, "%s: H5Fflush() failed.\n", __func__);
}
}
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
@@ -33897,7 +33883,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
if (cache_ptr == NULL) {
@@ -33905,12 +33891,12 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
failure_mssg = "H5C_create() failed.";
if (verbose)
- HDfprintf(stdout, "%s: H5C_create() failed.\n", __func__);
+ fprintf(stdout, "%s: H5C_create() failed.\n", __func__);
}
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) { /* allocate space for test entries */
actual_base_addr = H5MF_alloc(file_ptr, H5FD_MEM_DEFAULT, (hsize_t)(ADDR_SPACE_SIZE + BASE_ADDR));
@@ -33920,7 +33906,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
failure_mssg = "H5MF_alloc() failed.";
if (verbose)
- HDfprintf(stdout, "%s: H5MF_alloc() failed.\n", __func__);
+ fprintf(stdout, "%s: H5MF_alloc() failed.\n", __func__);
}
else if (actual_base_addr > BASE_ADDR) {
/* If this happens, must increase BASE_ADDR so that the
@@ -33931,14 +33917,14 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
failure_mssg = "actual_base_addr > BASE_ADDR";
if (verbose)
- HDfprintf(stdout, "%s: actual_base_addr > BASE_ADDR.\n", __func__);
+ fprintf(stdout, "%s: actual_base_addr > BASE_ADDR.\n", __func__);
}
saved_actual_base_addr = actual_base_addr;
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
if (pass) {
/* Need to set this else all cache tests will fail */
@@ -33949,7 +33935,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
+ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass);
return (ret_val);
} /* setup_cache() */
@@ -34079,10 +34065,10 @@ main(void)
express_test = GetTestExpress();
- HDprintf("=========================================\n");
- HDprintf("Internal cache tests\n");
- HDprintf(" express_test = %d\n", express_test);
- HDprintf("=========================================\n");
+ printf("=========================================\n");
+ printf("Internal cache tests\n");
+ printf(" express_test = %d\n", express_test);
+ printf("=========================================\n");
if (!h5_using_default_driver(NULL)) {
HDputs(" -- SKIPPED for incompatible VFD --");
@@ -34091,7 +34077,7 @@ main(void)
if (create_entry_arrays() < 0) {
- HDprintf("ERROR: Unable to create entries arrays. Aborting.\n");
+ printf("ERROR: Unable to create entries arrays. Aborting.\n");
return EXIT_FAILURE;
} /* end if */
@@ -34101,12 +34087,12 @@ main(void)
if (paged) {
- HDfprintf(stdout, "\n\nRe-running tests with paged aggregation:\n");
+ fprintf(stdout, "\n\nRe-running tests with paged aggregation:\n");
if (express_test > 0)
- HDfprintf(stdout, " Skipping smoke checks.\n");
+ fprintf(stdout, " Skipping smoke checks.\n");
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
}
nerrs += smoke_check_1(express_test, paged);
diff --git a/test/cache_api.c b/test/cache_api.c
index 9e09b86..413232e 100644
--- a/test/cache_api.c
+++ b/test/cache_api.c
@@ -475,7 +475,7 @@ check_fapl_mdc_api_calls(unsigned paged, hid_t fcpl_id)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return pass;
@@ -800,7 +800,7 @@ check_file_mdc_api_calls(unsigned paged, hid_t fcpl_id)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return pass;
@@ -964,7 +964,7 @@ mdc_api_call_smoke_check(int express_test, unsigned paged, hid_t fcpl_id)
SKIPPED();
- HDfprintf(stdout, " Long tests disabled.\n");
+ fprintf(stdout, " Long tests disabled.\n");
return pass;
}
@@ -1418,7 +1418,7 @@ mdc_api_call_smoke_check(int express_test, unsigned paged, hid_t fcpl_id)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return pass;
@@ -1796,7 +1796,7 @@ check_fapl_mdc_api_errs(void)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return pass;
@@ -1849,7 +1849,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: calling h5_fixname().\n", __func__);
+ fprintf(stdout, "%s: calling h5_fixname().\n", __func__);
}
if (h5_fixname(FILENAME[0], H5P_DEFAULT, filename, sizeof(filename)) == NULL) {
@@ -1863,7 +1863,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: calling H5Fcreate().\n", __func__);
+ fprintf(stdout, "%s: calling H5Fcreate().\n", __func__);
}
file_id = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl_id, H5P_DEFAULT);
@@ -1884,7 +1884,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fget_mdc_config() 1.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fget_mdc_config() 1.\n", __func__);
}
H5E_BEGIN_TRY
@@ -1904,7 +1904,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fget_mdc_config() 2.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fget_mdc_config() 2.\n", __func__);
}
H5E_BEGIN_TRY
@@ -1925,7 +1925,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fget_mdc_config() 3.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fget_mdc_config() 3.\n", __func__);
}
H5E_BEGIN_TRY
@@ -1948,7 +1948,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fset_mdc_config() 1.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fset_mdc_config() 1.\n", __func__);
}
H5E_BEGIN_TRY
@@ -1968,7 +1968,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fset_mdc_config() 2.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fset_mdc_config() 2.\n", __func__);
}
H5E_BEGIN_TRY
@@ -1988,7 +1988,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
while ((pass) && (i < NUM_INVALID_CONFIGS)) {
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fset_mdc_config() with invalid config %d.\n", __func__, i);
+ fprintf(stdout, "%s: testing H5Fset_mdc_config() with invalid config %d.\n", __func__, i);
}
H5E_BEGIN_TRY
@@ -2016,7 +2016,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fget_mdc_hit_rate() 1.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fget_mdc_hit_rate() 1.\n", __func__);
}
H5E_BEGIN_TRY
@@ -2036,7 +2036,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fget_mdc_hit_rate() 2.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fget_mdc_hit_rate() 2.\n", __func__);
}
H5E_BEGIN_TRY
@@ -2057,7 +2057,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Freset_mdc_hit_rate_stats().\n", __func__);
+ fprintf(stdout, "%s: testing H5Freset_mdc_hit_rate_stats().\n", __func__);
}
H5E_BEGIN_TRY
@@ -2078,7 +2078,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fget_mdc_size() 1.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fget_mdc_size() 1.\n", __func__);
}
H5E_BEGIN_TRY
@@ -2098,7 +2098,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: testing H5Fget_mdc_size() 2.\n", __func__);
+ fprintf(stdout, "%s: testing H5Fget_mdc_size() 2.\n", __func__);
}
if ((H5Fget_mdc_size(file_id, &max_size, NULL, NULL, NULL) < 0) ||
@@ -2117,7 +2117,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (show_progress) {
- HDfprintf(stdout, "%s: cleaning up from tests.\n", __func__);
+ fprintf(stdout, "%s: cleaning up from tests.\n", __func__);
}
if (H5Fclose(file_id) < 0) {
@@ -2143,7 +2143,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
if (!pass) {
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
}
return pass;
@@ -2175,36 +2175,36 @@ main(void)
express_test = GetTestExpress();
- HDprintf("===================================\n");
- HDprintf("Cache API tests\n");
- HDprintf(" express_test = %d\n", express_test);
- HDprintf("===================================\n");
+ printf("===================================\n");
+ printf("Cache API tests\n");
+ printf(" express_test = %d\n", express_test);
+ printf("===================================\n");
/* Initialize invalid configurations.
*/
invalid_configs = init_invalid_configs();
if (NULL == invalid_configs) {
failure_mssg = "Unable to allocate memory for invalid configs.";
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return EXIT_FAILURE;
} /* end if */
if ((fcpl_id = H5Pcreate(H5P_FILE_CREATE)) < 0) {
failure_mssg = "H5Pcreate(H5P_FILE_CREATE) failed.\n";
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return EXIT_FAILURE;
} /* end if */
/* Set file space strategy to default or paged aggregation strategy */
if ((fcpl2_id = H5Pcopy(fcpl_id)) < 0) {
failure_mssg = "H5Pcreate(H5P_FILE_CREATE) failed.\n";
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return EXIT_FAILURE;
} /* end if */
if (H5Pset_file_space_strategy(fcpl2_id, H5F_FSPACE_STRATEGY_PAGE, 1, (hsize_t)1) < 0) {
failure_mssg = "H5Pset_file_space_strategy() failed.\n";
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return EXIT_FAILURE;
} /* end if */
@@ -2242,7 +2242,7 @@ main(void)
if (H5Pclose(fcpl_id) < 0) {
failure_mssg = "H5Pclose() failed.\n";
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return EXIT_FAILURE;
} /* end if */
diff --git a/test/cache_common.c b/test/cache_common.c
index e4135b0..454d194 100644
--- a/test/cache_common.c
+++ b/test/cache_common.c
@@ -710,20 +710,20 @@ deserialize(const void *image, size_t H5_ATTR_NDEBUG_UNUSED len, void *udata, hb
(!entry->at_main_addr && entry->written_to_alt_addr)) {
if ((type == PICO_ENTRY_TYPE) || (type == VARIABLE_ENTRY_TYPE) || (type == NOTIFY_ENTRY_TYPE)) {
if ((*((const char *)image)) != (char)(idx & 0xFF)) {
- HDfprintf(stdout, "type = %d, idx = %d, addr = 0x%lx.\n", type, idx, (long)addr);
- HDfprintf(stdout, "*image = 0x%x\n", (int)(*((const char *)image)));
- HDfprintf(stdout, "expected *image = 0x%x\n", (int)(idx & 0xFF));
+ fprintf(stdout, "type = %d, idx = %d, addr = 0x%lx.\n", type, idx, (long)addr);
+ fprintf(stdout, "*image = 0x%x\n", (int)(*((const char *)image)));
+ fprintf(stdout, "expected *image = 0x%x\n", (int)(idx & 0xFF));
} /* end if */
assert((*((const char *)image)) == (char)(idx & 0xFF));
} /* end if */
else {
if ((*(((const char *)image) + 2)) != (char)(idx & 0xFF)) {
- HDfprintf(stdout, "type = %d, idx = %d, addr = 0x%lx.\n", type, idx, (long)addr);
- HDfprintf(stdout, "*image = 0x%" PRIx8 " 0x%" PRIx8 " 0x%" PRIx8 "\n",
- (*((const uint8_t *)image)), (*(((const uint8_t *)image) + 1)),
- (*(((const uint8_t *)image) + 2)));
- HDfprintf(stdout, "expected *image = 0x%02" PRIx32 "%02" PRIx32 "\n", (uint32_t)idx & 0xFF,
- (((uint32_t)idx & 0xFF00) >> 8));
+ fprintf(stdout, "type = %d, idx = %d, addr = 0x%lx.\n", type, idx, (long)addr);
+ fprintf(stdout, "*image = 0x%" PRIx8 " 0x%" PRIx8 " 0x%" PRIx8 "\n",
+ (*((const uint8_t *)image)), (*(((const uint8_t *)image) + 1)),
+ (*(((const uint8_t *)image) + 2)));
+ fprintf(stdout, "expected *image = 0x%02" PRIx32 "%02" PRIx32 "\n", (uint32_t)idx & 0xFF,
+ (((uint32_t)idx & 0xFF00) >> 8));
} /* end if */
assert((*((const char *)image)) == (char)(type & 0xFF));
assert((*(((const char *)image) + 1)) == (char)((idx & 0xFF00) >> 8));
@@ -2769,9 +2769,9 @@ flush_cache(H5F_t *file_ptr, hbool_t destroy_entries, hbool_t dump_stats, hbool_
if (verbose) {
- HDfprintf(stdout, "%s: unexpected il/is/cis/dis = %lld/%lld/%lld/%lld.\n", __func__,
- (long long)(cache_ptr->index_len), (long long)(cache_ptr->index_size),
- (long long)(cache_ptr->clean_index_size), (long long)(cache_ptr->dirty_index_size));
+ fprintf(stdout, "%s: unexpected il/is/cis/dis = %lld/%lld/%lld/%lld.\n", __func__,
+ (long long)(cache_ptr->index_len), (long long)(cache_ptr->index_size),
+ (long long)(cache_ptr->clean_index_size), (long long)(cache_ptr->dirty_index_size));
}
pass = FALSE;
failure_mssg = "non zero index len/sizes after H5C_flush_cache() with invalidate.";
@@ -2912,16 +2912,16 @@ insert_entry(H5F_t *file_ptr, int32_t type, int32_t idx, unsigned int flags)
#if 0 /* This is useful debugging code. Lets keep it around. */
- HDfprintf(stdout, "result = %d\n", (int)result);
- HDfprintf(stdout, "entry_ptr->header.is_protected = %d\n",
+ fprintf(stdout, "result = %d\n", (int)result);
+ fprintf(stdout, "entry_ptr->header.is_protected = %d\n",
(int)(entry_ptr->header.is_protected));
- HDfprintf(stdout,
+ fprintf(stdout,
"entry_ptr->header.type != types[type] = %d\n",
(int)(entry_ptr->header.type != types[type]));
- HDfprintf(stdout,
+ fprintf(stdout,
"entry_ptr->size != entry_ptr->header.size = %d\n",
(int)(entry_ptr->size != entry_ptr->header.size));
- HDfprintf(stdout,
+ fprintf(stdout,
"entry_ptr->addr != entry_ptr->header.addr = %d\n",
(int)(entry_ptr->addr != entry_ptr->header.addr));
#endif
@@ -3160,22 +3160,22 @@ protect_entry(H5F_t *file_ptr, int32_t type, int32_t idx)
* again.
* - JRM
*/
- HDfprintf(stdout, "( cache_entry_ptr != (void *)entry_ptr ) = %d\n",
+ fprintf(stdout, "( cache_entry_ptr != (void *)entry_ptr ) = %d\n",
(int)( cache_entry_ptr != (void *)entry_ptr ));
- HDfprintf(stdout, "cache_entry_ptr = 0x%lx, entry_ptr = 0x%lx\n",
+ fprintf(stdout, "cache_entry_ptr = 0x%lx, entry_ptr = 0x%lx\n",
(long)cache_entry_ptr, (long)entry_ptr);
- HDfprintf(stdout, "entry_ptr->header.is_protected = %d\n",
+ fprintf(stdout, "entry_ptr->header.is_protected = %d\n",
(int)(entry_ptr->header.is_protected));
- HDfprintf(stdout,
+ fprintf(stdout,
"( entry_ptr->header.type != types[type] ) = %d\n",
(int)( entry_ptr->header.type != types[type] ));
- HDfprintf(stdout,
+ fprintf(stdout,
"entry_ptr->size = %d, entry_ptr->header.size = %d\n",
(int)(entry_ptr->size), (int)(entry_ptr->header.size));
- HDfprintf(stdout,
+ fprintf(stdout,
"entry_ptr->addr = %d, entry_ptr->header.addr = %d\n",
(int)(entry_ptr->addr), (int)(entry_ptr->header.addr));
- HDfprintf(stdout,
+ fprintf(stdout,
"entry_ptr->verify_ct = %d, entry_ptr->max_verify_ct = %d\n",
entry_ptr->verify_ct, entry_ptr->max_verify_ct);
H5Eprint2(H5E_DEFAULT, stdout);
@@ -3517,7 +3517,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
int32_t local_max_index;
if (verbose)
- HDfprintf(stdout, "%s(): entering.\n", __func__);
+ fprintf(stdout, "%s(): entering.\n", __func__);
if (pass) {
cache_ptr = file_ptr->shared->cache;
@@ -3536,14 +3536,14 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
int32_t tmp_idx;
if (verbose)
- HDfprintf(stdout, "%d:%d: ", type, idx);
+ fprintf(stdout, "%d:%d: ", type, idx);
tmp_idx = idx + lag;
if (pass && do_inserts && (tmp_idx >= 0) && (tmp_idx <= local_max_index) &&
((tmp_idx % 2) == 0) && !entry_in_cache(cache_ptr, type, tmp_idx)) {
if (verbose)
- HDfprintf(stdout, "1(i, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "1(i, %d, %d) ", type, tmp_idx);
insert_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3554,7 +3554,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && (tmp_idx % 3) == 0) {
if (verbose)
- HDfprintf(stdout, "2(p, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "2(p, %d, %d) ", type, tmp_idx);
protect_entry(file_ptr, type, tmp_idx);
@@ -3565,7 +3565,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && (tmp_idx % 3) == 0) {
if (verbose)
- HDfprintf(stdout, "3(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "3(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3576,7 +3576,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && do_moves && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && (tmp_idx % 3) == 0) {
if (verbose)
- HDfprintf(stdout, "4(r, %d, %d, %d) ", type, tmp_idx, (int)move_to_main_addr);
+ fprintf(stdout, "4(r, %d, %d, %d) ", type, tmp_idx, (int)move_to_main_addr);
move_entry(cache_ptr, type, tmp_idx, move_to_main_addr);
@@ -3587,7 +3587,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && (tmp_idx % 5) == 0) {
if (verbose)
- HDfprintf(stdout, "5(p, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "5(p, %d, %d) ", type, tmp_idx);
protect_entry(file_ptr, type, tmp_idx);
@@ -3598,7 +3598,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && (tmp_idx % 5) == 0) {
if (verbose)
- HDfprintf(stdout, "6(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "6(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3610,7 +3610,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 9) == 0) {
if (verbose)
- HDfprintf(stdout, "7(p-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "7(p-ro, %d, %d) ", type, tmp_idx);
protect_entry_ro(file_ptr, type, tmp_idx);
@@ -3622,7 +3622,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 11) == 0) {
if (verbose)
- HDfprintf(stdout, "8(p-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "8(p-ro, %d, %d) ", type, tmp_idx);
protect_entry_ro(file_ptr, type, tmp_idx);
@@ -3634,7 +3634,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 13) == 0) {
if (verbose)
- HDfprintf(stdout, "9(p-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "9(p-ro, %d, %d) ", type, tmp_idx);
protect_entry_ro(file_ptr, type, tmp_idx);
@@ -3646,7 +3646,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 9) == 0) {
if (verbose)
- HDfprintf(stdout, "10(u-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "10(u-ro, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3658,7 +3658,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 11) == 0) {
if (verbose)
- HDfprintf(stdout, "11(u-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "11(u-ro, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3670,7 +3670,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 13) == 0) {
if (verbose)
- HDfprintf(stdout, "12(u-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "12(u-ro, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3681,7 +3681,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (idx >= 0) && (idx <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "13(p, %d, %d) ", type, idx);
+ fprintf(stdout, "13(p, %d, %d) ", type, idx);
protect_entry(file_ptr, type, idx);
@@ -3692,7 +3692,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && (tmp_idx % 7) == 0) {
if (verbose)
- HDfprintf(stdout, "14(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "14(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3703,7 +3703,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if (pass && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && (tmp_idx % 7) == 0) {
if (verbose)
- HDfprintf(stdout, "15(p, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "15(p, %d, %d) ", type, tmp_idx);
protect_entry(file_ptr, type, tmp_idx);
@@ -3716,7 +3716,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
switch (tmp_idx % 4) {
case 0: /* we just did an insert */
if (verbose)
- HDfprintf(stdout, "16(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "16(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3727,7 +3727,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
case 1:
if ((entries[type])[tmp_idx].is_dirty) {
if (verbose)
- HDfprintf(stdout, "17(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "17(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
@@ -3736,7 +3736,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
} /* end if */
else {
if (verbose)
- HDfprintf(stdout, "18(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "18(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx,
(dirty_unprotects ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET));
@@ -3748,7 +3748,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
case 2: /* we just did an insert */
if (verbose)
- HDfprintf(stdout, "19(u-del, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "19(u-del, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__DELETED_FLAG);
@@ -3759,7 +3759,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
case 3:
if ((entries[type])[tmp_idx].is_dirty) {
if (verbose)
- HDfprintf(stdout, "20(u-del, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "20(u-del, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__DELETED_FLAG);
@@ -3768,7 +3768,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
} /* end if */
else {
if (verbose)
- HDfprintf(stdout, "21(u-del, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "21(u-del, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx,
(dirty_destroys ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET) |
@@ -3789,7 +3789,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
tmp_idx = idx - lag;
if (pass && (tmp_idx >= 0) && (tmp_idx <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "22(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "22(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx,
(dirty_unprotects ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET));
@@ -3800,7 +3800,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
} /* end elseif */
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
idx++;
} /* end while */
@@ -3840,7 +3840,7 @@ hl_row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
int32_t local_max_index;
if (verbose)
- HDfprintf(stdout, "%s(): entering.\n", __func__);
+ fprintf(stdout, "%s(): entering.\n", __func__);
if (pass) {
@@ -3867,7 +3867,7 @@ hl_row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
(((idx + lag) % 2) == 0) && (!entry_in_cache(cache_ptr, type, (idx + lag)))) {
if (verbose)
- HDfprintf(stdout, "(i, %d, %d) ", type, (idx + lag));
+ fprintf(stdout, "(i, %d, %d) ", type, (idx + lag));
insert_entry(file_ptr, type, (idx + lag), H5C__NO_FLAGS_SET);
}
@@ -3878,12 +3878,12 @@ hl_row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
if ((pass) && (i >= 0) && (i <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, i);
+ fprintf(stdout, "(p, %d, %d) ", type, i);
protect_entry(file_ptr, type, i);
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, i);
+ fprintf(stdout, "(u, %d, %d) ", type, i);
unprotect_entry(file_ptr, type, i, H5C__NO_FLAGS_SET);
}
@@ -3891,7 +3891,7 @@ hl_row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
}
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
idx++;
}
@@ -3932,7 +3932,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
int32_t local_max_index;
if (verbose)
- HDfprintf(stdout, "%s(): Entering.\n", __func__);
+ fprintf(stdout, "%s(): Entering.\n", __func__);
if (pass) {
@@ -3960,7 +3960,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
((tmp_idx % 2) == 1) && (!entry_in_cache(cache_ptr, type, tmp_idx))) {
if (verbose)
- HDfprintf(stdout, "(i, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(i, %d, %d) ", type, tmp_idx);
insert_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
}
@@ -3969,7 +3969,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && ((tmp_idx % 3) == 0)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(p, %d, %d) ", type, tmp_idx);
protect_entry(file_ptr, type, tmp_idx);
}
@@ -3978,7 +3978,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && ((tmp_idx % 3) == 0)) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
}
@@ -3988,7 +3988,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
((tmp_idx % 3) == 0)) {
if (verbose)
- HDfprintf(stdout, "(r, %d, %d, %d) ", type, tmp_idx, (int)move_to_main_addr);
+ fprintf(stdout, "(r, %d, %d, %d) ", type, tmp_idx, (int)move_to_main_addr);
move_entry(cache_ptr, type, tmp_idx, move_to_main_addr);
}
@@ -3997,7 +3997,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && ((tmp_idx % 5) == 0)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(p, %d, %d) ", type, tmp_idx);
protect_entry(file_ptr, type, (idx - lag + 3));
}
@@ -4006,7 +4006,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && ((tmp_idx % 5) == 0)) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
}
@@ -4016,7 +4016,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 9 == 0)) {
if (verbose)
- HDfprintf(stdout, "(p-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(p-ro, %d, %d) ", type, tmp_idx);
protect_entry_ro(file_ptr, type, tmp_idx);
}
@@ -4025,7 +4025,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 11 == 0)) {
if (verbose)
- HDfprintf(stdout, "(p-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(p-ro, %d, %d) ", type, tmp_idx);
protect_entry_ro(file_ptr, type, tmp_idx);
}
@@ -4034,7 +4034,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 13 == 0)) {
if (verbose)
- HDfprintf(stdout, "(p-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(p-ro, %d, %d) ", type, tmp_idx);
protect_entry_ro(file_ptr, type, tmp_idx);
}
@@ -4043,7 +4043,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 9 == 0)) {
if (verbose)
- HDfprintf(stdout, "(u-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(u-ro, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
}
@@ -4052,7 +4052,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 11 == 0)) {
if (verbose)
- HDfprintf(stdout, "(u-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(u-ro, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
}
@@ -4061,7 +4061,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx < local_max_index) && (tmp_idx % 13 == 0)) {
if (verbose)
- HDfprintf(stdout, "(u-ro, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(u-ro, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
}
@@ -4070,7 +4070,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (idx >= 0) && (idx <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, idx);
+ fprintf(stdout, "(p, %d, %d) ", type, idx);
protect_entry(file_ptr, type, idx);
}
@@ -4079,7 +4079,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && ((tmp_idx % 7) == 0)) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(u, %d, %d) ", type, tmp_idx);
unprotect_entry(file_ptr, type, tmp_idx, H5C__NO_FLAGS_SET);
}
@@ -4088,7 +4088,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (tmp_idx >= 0) && (tmp_idx <= local_max_index) && ((tmp_idx % 7) == 0)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, tmp_idx);
+ fprintf(stdout, "(p, %d, %d) ", type, tmp_idx);
protect_entry(file_ptr, type, tmp_idx);
}
@@ -4143,7 +4143,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && ((idx + lag) >= 0) && ((idx + lag) <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, (idx + lag));
+ fprintf(stdout, "(u, %d, %d) ", type, (idx + lag));
unprotect_entry(file_ptr, type, idx + lag,
(dirty_unprotects ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET));
@@ -4151,7 +4151,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
}
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
idx--;
}
@@ -4192,7 +4192,7 @@ hl_row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
int32_t local_max_index;
if (verbose)
- HDfprintf(stdout, "%s(): entering.\n", __func__);
+ fprintf(stdout, "%s(): entering.\n", __func__);
if (pass) {
@@ -4219,7 +4219,7 @@ hl_row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
(((idx + lag) % 2) == 0) && (!entry_in_cache(cache_ptr, type, (idx + lag)))) {
if (verbose)
- HDfprintf(stdout, "(i, %d, %d) ", type, (idx + lag));
+ fprintf(stdout, "(i, %d, %d) ", type, (idx + lag));
insert_entry(file_ptr, type, (idx + lag), H5C__NO_FLAGS_SET);
}
@@ -4230,12 +4230,12 @@ hl_row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
if ((pass) && (i >= 0) && (i <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, i);
+ fprintf(stdout, "(p, %d, %d) ", type, i);
protect_entry(file_ptr, type, i);
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, i);
+ fprintf(stdout, "(u, %d, %d) ", type, i);
unprotect_entry(file_ptr, type, i, H5C__NO_FLAGS_SET);
}
@@ -4243,7 +4243,7 @@ hl_row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
}
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
idx--;
}
@@ -4283,7 +4283,7 @@ col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
int32_t local_max_index[NUMBER_OF_ENTRY_TYPES];
if (verbose)
- HDfprintf(stdout, "%s: entering.\n", __func__);
+ fprintf(stdout, "%s: entering.\n", __func__);
if (pass) {
int i;
@@ -4311,7 +4311,7 @@ col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
(((idx + lag) % 3) == 0) && (!entry_in_cache(cache_ptr, type, (idx + lag)))) {
if (verbose)
- HDfprintf(stdout, "(i, %d, %d) ", type, (idx + lag));
+ fprintf(stdout, "(i, %d, %d) ", type, (idx + lag));
insert_entry(file_ptr, type, (idx + lag), H5C__NO_FLAGS_SET);
}
@@ -4319,7 +4319,7 @@ col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (idx >= 0) && (idx <= local_max_index[type])) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, idx);
+ fprintf(stdout, "(p, %d, %d) ", type, idx);
protect_entry(file_ptr, type, idx);
}
@@ -4327,14 +4327,14 @@ col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && ((idx - lag) >= 0) && ((idx - lag) <= local_max_index[type])) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, (idx - lag));
+ fprintf(stdout, "(u, %d, %d) ", type, (idx - lag));
unprotect_entry(file_ptr, type, idx - lag,
(dirty_unprotects ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET));
}
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
type++;
}
@@ -4377,7 +4377,7 @@ hl_col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
int32_t local_max_index;
if (verbose)
- HDfprintf(stdout, "%s: entering.\n", __func__);
+ fprintf(stdout, "%s: entering.\n", __func__);
if (pass) {
@@ -4411,7 +4411,7 @@ hl_col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
(!entry_in_cache(cache_ptr, type, i))) {
if (verbose)
- HDfprintf(stdout, "(i, %d, %d) ", type, i);
+ fprintf(stdout, "(i, %d, %d) ", type, i);
insert_entry(file_ptr, type, i, H5C__NO_FLAGS_SET);
}
@@ -4419,7 +4419,7 @@ hl_col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
if ((pass) && (i >= 0) && (i <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, i);
+ fprintf(stdout, "(p, %d, %d) ", type, i);
protect_entry(file_ptr, type, i);
}
@@ -4427,14 +4427,14 @@ hl_col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
if ((pass) && (i >= 0) && (i <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, i);
+ fprintf(stdout, "(u, %d, %d) ", type, i);
unprotect_entry(file_ptr, type, i,
(dirty_unprotects ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET));
}
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
type++;
}
@@ -4479,7 +4479,7 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
int32_t local_max_index[NUMBER_OF_ENTRY_TYPES] = {0};
if (verbose)
- HDfprintf(stdout, "%s: entering.\n", __func__);
+ fprintf(stdout, "%s: entering.\n", __func__);
if (pass) {
int i;
@@ -4502,7 +4502,7 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
idx = local_max_index[NUMBER_OF_ENTRY_TYPES - 1] + lag;
if (verbose) /* 1 */
- HDfprintf(stdout, "%s: point %d.\n", __func__, mile_stone++);
+ fprintf(stdout, "%s: point %d.\n", __func__, mile_stone++);
while ((pass) && ((idx + lag) >= 0)) {
type = NUMBER_OF_ENTRY_TYPES - 1;
@@ -4512,7 +4512,7 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
(((idx - lag) % 3) == 0) && (!entry_in_cache(cache_ptr, type, (idx - lag)))) {
if (verbose)
- HDfprintf(stdout, "(i, %d, %d) ", type, (idx - lag));
+ fprintf(stdout, "(i, %d, %d) ", type, (idx - lag));
insert_entry(file_ptr, type, (idx - lag), H5C__NO_FLAGS_SET);
}
@@ -4520,7 +4520,7 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && (idx >= 0) && (idx <= local_max_index[type])) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, idx);
+ fprintf(stdout, "(p, %d, %d) ", type, idx);
protect_entry(file_ptr, type, idx);
}
@@ -4528,14 +4528,14 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
if ((pass) && ((idx + lag) >= 0) && ((idx + lag) <= local_max_index[type])) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, (idx + lag));
+ fprintf(stdout, "(u, %d, %d) ", type, (idx + lag));
unprotect_entry(file_ptr, type, idx + lag,
(dirty_unprotects ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET));
}
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
type--;
}
@@ -4544,7 +4544,7 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
}
if (verbose) /* 2 */
- HDfprintf(stdout, "%s: point %d.\n", __func__, mile_stone++);
+ fprintf(stdout, "%s: point %d.\n", __func__, mile_stone++);
if ((pass) && (display_stats)) {
@@ -4552,7 +4552,7 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
}
if (verbose)
- HDfprintf(stdout, "%s: exiting.\n", __func__);
+ fprintf(stdout, "%s: exiting.\n", __func__);
} /* col_major_scan_backward() */
@@ -4584,7 +4584,7 @@ hl_col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
int32_t local_max_index = -1;
if (verbose)
- HDfprintf(stdout, "%s: entering.\n", __func__);
+ fprintf(stdout, "%s: entering.\n", __func__);
if (pass) {
@@ -4618,7 +4618,7 @@ hl_col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
(!entry_in_cache(cache_ptr, type, i))) {
if (verbose)
- HDfprintf(stdout, "(i, %d, %d) ", type, i);
+ fprintf(stdout, "(i, %d, %d) ", type, i);
insert_entry(file_ptr, type, i, H5C__NO_FLAGS_SET);
}
@@ -4626,7 +4626,7 @@ hl_col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
if ((pass) && (i >= 0) && (i <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(p, %d, %d) ", type, i);
+ fprintf(stdout, "(p, %d, %d) ", type, i);
protect_entry(file_ptr, type, i);
}
@@ -4634,14 +4634,14 @@ hl_col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
if ((pass) && (i >= 0) && (i <= local_max_index)) {
if (verbose)
- HDfprintf(stdout, "(u, %d, %d) ", type, i);
+ fprintf(stdout, "(u, %d, %d) ", type, i);
unprotect_entry(file_ptr, type, i,
(dirty_unprotects ? H5C__DIRTIED_FLAG : H5C__NO_FLAGS_SET));
}
if (verbose)
- HDfprintf(stdout, "\n");
+ fprintf(stdout, "\n");
type++;
}
@@ -5009,8 +5009,8 @@ check_and_validate_cache_hit_rate(hid_t file_id, double *hit_rate_ptr, hbool_t d
/* dump data to stdout if requested */
if ((pass) && (dump_data)) {
- HDfprintf(stdout, "cache_hits: %ld, cache_accesses: %ld, hit_rate: %lf\n", (long)cache_hits,
- (long)cache_accesses, hit_rate);
+ fprintf(stdout, "cache_hits: %ld, cache_accesses: %ld, hit_rate: %lf\n", (long)cache_hits,
+ (long)cache_accesses, hit_rate);
}
if ((pass) && (cache_accesses > min_accesses) && (hit_rate < min_hit_rate)) {
@@ -5126,8 +5126,8 @@ check_and_validate_cache_size(hid_t file_id, size_t *max_size_ptr, size_t *min_c
/* dump data to stdout if requested */
if ((pass) && (dump_data)) {
- HDfprintf(stdout, "max_sz: %ld, min_clean_sz: %ld, cur_sz: %ld, cur_ent: %ld\n", (long)max_size,
- (long)min_clean_size, (long)cur_size, (long)cur_num_entries);
+ fprintf(stdout, "max_sz: %ld, min_clean_sz: %ld, cur_sz: %ld, cur_ent: %ld\n", (long)max_size,
+ (long)min_clean_size, (long)cur_size, (long)cur_num_entries);
}
} /* check_and_validate_cache_size() */
@@ -5321,22 +5321,22 @@ dump_LRU(H5F_t * file_ptr)
entry_ptr = cache_ptr->LRU_head_ptr;
- HDfprintf(stdout,
+ fprintf(stdout,
"\n\nIndex len/size/clean size/dirty size = %u/%lld/%lld/%lld\n",
cache_ptr->index_len, (long long)(cache_ptr->index_size),
(long long)(cache_ptr->clean_index_size),
(long long)(cache_ptr->dirty_index_size));
- HDfprintf(stdout, "\nLRU len/size = %d/%lld.\n\n",
+ fprintf(stdout, "\nLRU len/size = %d/%lld.\n\n",
cache_ptr->LRU_list_len, (long long)(cache_ptr->LRU_list_size));
if ( entry_ptr != NULL )
{
- HDfprintf(stdout, "%s%s%s", hdr_0, hdr_1, hdr_2);
+ fprintf(stdout, "%s%s%s", hdr_0, hdr_1, hdr_2);
}
while ( entry_ptr != NULL )
{
- HDfprintf(stdout,
+ fprintf(stdout,
" %3d %d %10lld 0x%010llx %s(%d)\n",
i,
(int)(entry_ptr->is_dirty),
@@ -5350,7 +5350,7 @@ dump_LRU(H5F_t * file_ptr)
if ( cache_ptr->LRU_list_len > 0 )
{
- HDfprintf(stdout, "%s\n", hdr_2);
+ fprintf(stdout, "%s\n", hdr_2);
}
return;
diff --git a/test/cache_common.h b/test/cache_common.h
index b49601b..f1bbf92 100644
--- a/test/cache_common.h
+++ b/test/cache_common.h
@@ -404,17 +404,17 @@ typedef struct test_entry_t {
#define H5C_TEST__PRE_HT_SEARCH_SC(cache_ptr, Addr) \
if (H5C__PRE_HT_SEARCH_SC_CMP(cache_ptr, Addr)) { \
- HDfprintf(stdout, "Pre HT search SC failed.\n"); \
+ fprintf(stdout, "Pre HT search SC failed.\n"); \
}
#define H5C_TEST__POST_SUC_HT_SEARCH_SC(cache_ptr, entry_ptr, k) \
if (H5C__POST_SUC_HT_SEARCH_SC_CMP(cache_ptr, entry_ptr, k)) { \
- HDfprintf(stdout, "Post successful HT search SC failed.\n"); \
+ fprintf(stdout, "Post successful HT search SC failed.\n"); \
}
#define H5C_TEST__POST_HT_SHIFT_TO_FRONT_SC(cache_ptr, entry_ptr, k) \
if (H5C__POST_HT_SHIFT_TO_FRONT_SC_CMP(cache_ptr, entry_ptr, k)) { \
- HDfprintf(stdout, "Post HT shift to front failed.\n"); \
+ fprintf(stdout, "Post HT shift to front failed.\n"); \
}
#define H5C_TEST__SEARCH_INDEX(cache_ptr, Addr, entry_ptr) \
diff --git a/test/cache_image.c b/test/cache_image.c
index fc76ed6..5624080 100644
--- a/test/cache_image.c
+++ b/test/cache_image.c
@@ -110,7 +110,7 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
hsize_t chunk_size[2];
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
assert(0 <= min_dset);
assert(min_dset <= max_dset);
@@ -191,7 +191,7 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* create the mem space to be used to read and write chunks */
if (pass) {
@@ -208,7 +208,7 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* select in memory hyperslab */
if (pass) {
@@ -227,7 +227,7 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* initialize all datasets on a round robin basis */
i = 0;
@@ -274,7 +274,7 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* read data from datasets and validate it */
i = 0;
@@ -323,11 +323,11 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
if (verbose) {
- HDfprintf(stdout, "data_chunk[%0d][%0d] = %0d, expect %0d.\n", k, l,
- data_chunk[k][l],
- ((DSET_SIZE * DSET_SIZE * m) + (DSET_SIZE * (i + k)) + j + l));
- HDfprintf(stdout, "m = %d, i = %d, j = %d, k = %d, l = %d\n", m, i, j, k,
- l);
+ fprintf(stdout, "data_chunk[%0d][%0d] = %0d, expect %0d.\n", k, l,
+ data_chunk[k][l],
+ ((DSET_SIZE * DSET_SIZE * m) + (DSET_SIZE * (i + k)) + j + l));
+ fprintf(stdout, "m = %d, i = %d, j = %d, k = %d, l = %d\n", m, i, j, k,
+ l);
}
}
}
@@ -340,7 +340,7 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
if (verbose) {
- HDfprintf(stdout, "Chunk (%0d, %0d) in /dset%03d is invalid.\n", i, j, m);
+ fprintf(stdout, "Chunk (%0d, %0d) in /dset%03d is invalid.\n", i, j, m);
}
}
}
@@ -352,7 +352,7 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* close the file spaces */
i = min_dset;
@@ -421,20 +421,20 @@ delete_datasets(hid_t file_id, int min_dset, int max_dset)
int i;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
assert(0 <= min_dset);
assert(min_dset <= max_dset);
assert(max_dset < MAX_NUM_DSETS);
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* first, verify the contents of the target dataset(s) */
verify_datasets(file_id, min_dset, max_dset);
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* now delete the target datasets */
if (pass) {
@@ -455,7 +455,7 @@ delete_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
} /* delete_datasets() */
@@ -536,12 +536,12 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
else if (verbose) {
- HDfprintf(stdout, "%s: HDF file name = \"%s\".\n", fcn_name, hdf_file_name);
+ fprintf(stdout, "%s: HDF file name = \"%s\".\n", fcn_name, hdf_file_name);
}
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* create a file access property list. */
if (pass) {
@@ -556,7 +556,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* call H5Pset_libver_bounds() on the fapl_id */
if (pass) {
@@ -569,7 +569,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* get metadata cache image config -- verify that it is the default */
if (pass) {
@@ -593,7 +593,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* set metadata cache image fapl entry if indicated */
if ((pass) && (set_mdci_fapl)) {
@@ -613,7 +613,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* setup the persistent free space manager if indicated */
if ((pass) && (config_fsm)) {
@@ -635,7 +635,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* set evict on close if indicated */
if ((pass) && (set_eoc)) {
@@ -648,7 +648,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* open the file */
if (pass) {
@@ -691,14 +691,14 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
failure_mssg = "Can't get file_ptr.";
if (verbose) {
- HDfprintf(stdout, "%s: Can't get file_ptr.\n", fcn_name);
+ fprintf(stdout, "%s: Can't get file_ptr.\n", fcn_name);
}
}
}
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* get a pointer to the files internal data structure and then
* to the cache structure
@@ -717,7 +717,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* verify expected metadata cache status */
@@ -736,7 +736,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
if (pass) {
@@ -779,7 +779,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
if ((pass) && (set_mdci_fapl)) {
@@ -793,7 +793,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
if (pass) {
@@ -833,7 +833,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
if (pass) {
@@ -843,7 +843,7 @@ open_hdf5_file(hbool_t create_file, hbool_t mdci_sbem_expected, hbool_t read_onl
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d -- exiting.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d -- exiting.\n", fcn_name, cp++);
} /* open_hdf5_file() */
@@ -891,7 +891,7 @@ attempt_swmr_open_hdf5_file(const hbool_t create_file, const hbool_t set_mdci_fa
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* call H5Pset_libver_bounds() on the fapl_id */
if (pass) {
@@ -904,7 +904,7 @@ attempt_swmr_open_hdf5_file(const hbool_t create_file, const hbool_t set_mdci_fa
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* set metadata cache image fapl entry if indicated */
if ((pass) && (set_mdci_fapl)) {
@@ -924,7 +924,7 @@ attempt_swmr_open_hdf5_file(const hbool_t create_file, const hbool_t set_mdci_fa
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* open the file */
if (pass) {
@@ -954,7 +954,7 @@ attempt_swmr_open_hdf5_file(const hbool_t create_file, const hbool_t set_mdci_fa
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
} /* attempt_swmr_open_hdf5_file() */
@@ -1002,7 +1002,7 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
hsize_t offset[2];
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
assert(0 <= min_dset);
assert(min_dset <= max_dset);
@@ -1045,7 +1045,7 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* create the mem space to be used to read and write chunks */
if (pass) {
@@ -1062,7 +1062,7 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* select in memory hyperslab */
if (pass) {
@@ -1081,7 +1081,7 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* read data from datasets and validate it */
i = 0;
@@ -1130,11 +1130,11 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
if (verbose) {
- HDfprintf(stdout, "data_chunk[%0d][%0d] = %0d, expect %0d.\n", k, l,
- data_chunk[k][l],
- ((DSET_SIZE * DSET_SIZE * m) + (DSET_SIZE * (i + k)) + j + l));
- HDfprintf(stdout, "m = %d, i = %d, j = %d, k = %d, l = %d\n", m, i, j, k,
- l);
+ fprintf(stdout, "data_chunk[%0d][%0d] = %0d, expect %0d.\n", k, l,
+ data_chunk[k][l],
+ ((DSET_SIZE * DSET_SIZE * m) + (DSET_SIZE * (i + k)) + j + l));
+ fprintf(stdout, "m = %d, i = %d, j = %d, k = %d, l = %d\n", m, i, j, k,
+ l);
}
}
}
@@ -1147,7 +1147,7 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
if (verbose) {
- HDfprintf(stdout, "Chunk (%0d, %0d) in /dset%03d is invalid.\n", i, j, m);
+ fprintf(stdout, "Chunk (%0d, %0d) in /dset%03d is invalid.\n", i, j, m);
}
}
}
@@ -1159,7 +1159,7 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
+ fprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
/* close the file spaces */
i = min_dset;
@@ -1289,7 +1289,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -1302,7 +1302,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -1328,7 +1328,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some datasets in the file. */
@@ -1338,7 +1338,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -1352,7 +1352,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file.
*
@@ -1378,7 +1378,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open and close a dataset.
*
@@ -1399,7 +1399,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -1413,7 +1413,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open the file.
*
@@ -1437,7 +1437,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Close the file. */
@@ -1451,7 +1451,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Delete the file */
@@ -1472,7 +1472,7 @@ check_cache_image_ctl_flow_1(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -1566,7 +1566,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -1579,7 +1579,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -1605,7 +1605,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Close the file. */
@@ -1619,7 +1619,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Open the file.
*
@@ -1645,7 +1645,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Close the file. */
@@ -1659,7 +1659,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open the file.
*
@@ -1683,7 +1683,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -1697,7 +1697,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Delete the file */
@@ -1718,7 +1718,7 @@ check_cache_image_ctl_flow_2(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -1830,7 +1830,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress) /* 0 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -1843,7 +1843,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file WITHOUT the cache image FAPL entry.
*
@@ -1867,7 +1867,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Close the file. */
@@ -1881,7 +1881,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Open the file WITH the cache image FAPL entry.
*
@@ -1907,7 +1907,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Create some datasets. */
@@ -1917,7 +1917,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Close the file. */
@@ -1931,7 +1931,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Open the file READ ONLY.
*
@@ -1958,7 +1958,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Verify the contents of the datasets. */
@@ -1968,7 +1968,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Close the file. */
@@ -1982,7 +1982,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Open the file READ/WRITE.
*
@@ -2009,7 +2009,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Verify the contents of the datasets. */
@@ -2019,7 +2019,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Close the file. */
@@ -2033,7 +2033,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 12 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Open the file
*
@@ -2057,7 +2057,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 13 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Close the file. */
@@ -2071,7 +2071,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (show_progress) /* 14 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Delete the file. */
@@ -2092,7 +2092,7 @@ check_cache_image_ctl_flow_3(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -2196,7 +2196,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress) /* 0 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -2209,7 +2209,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file WITHOUT the cache image FAPL entry.
*
@@ -2233,7 +2233,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Close the file. */
@@ -2247,7 +2247,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Open the file WITH the cache image FAPL entry.
*
@@ -2273,7 +2273,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Close the file. */
@@ -2287,7 +2287,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open the file READ ONLY.
*
@@ -2314,7 +2314,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -2328,7 +2328,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open the file READ/WRITE.
*
@@ -2355,7 +2355,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Close the file. */
@@ -2369,7 +2369,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Open the file
*
@@ -2393,7 +2393,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Close the file. */
@@ -2407,7 +2407,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (show_progress) /* 11 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Delete the file. */
@@ -2428,7 +2428,7 @@ check_cache_image_ctl_flow_4(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -2525,7 +2525,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress) /* 0 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -2538,7 +2538,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -2564,7 +2564,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some datasets. */
@@ -2574,7 +2574,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -2588,7 +2588,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file WITH the cache image FAPL entry.
*
@@ -2621,7 +2621,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Verify the contents of the datasets. */
@@ -2631,7 +2631,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -2645,7 +2645,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open the file.
*
@@ -2672,7 +2672,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 8 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Verify the contents of the datasets. */
@@ -2682,7 +2682,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 9 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Close the file. */
@@ -2696,7 +2696,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (show_progress) /* 10 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Delete the file. */
@@ -2717,7 +2717,7 @@ check_cache_image_ctl_flow_5(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -2806,7 +2806,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress) /* 0 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -2819,7 +2819,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (show_progress) /* 1 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -2845,7 +2845,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (show_progress) /* 2 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Close the file. */
@@ -2859,7 +2859,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (show_progress) /* 3 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file WITH the cache image FAPL entry.
*
@@ -2892,7 +2892,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (show_progress) /* 4 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Close the file. */
@@ -2906,7 +2906,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (show_progress) /* 5 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open the file.
*
@@ -2933,7 +2933,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (show_progress) /* 6 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -2947,7 +2947,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (show_progress) /* 7 */
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Delete the file. */
@@ -2968,7 +2968,7 @@ check_cache_image_ctl_flow_6(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -3092,7 +3092,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -3105,7 +3105,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -3130,7 +3130,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some datasets in the file. */
@@ -3151,7 +3151,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -3165,7 +3165,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file.
*
@@ -3191,7 +3191,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open and close a dataset.
*
@@ -3216,7 +3216,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -3230,7 +3230,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open the file.
*
@@ -3254,7 +3254,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Open and close a dataset.
*
@@ -3279,7 +3279,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Close the file. */
@@ -3293,7 +3293,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Open the file with the cache image FAPL entry.
*
@@ -3317,7 +3317,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Close the file. Since there has been no access to
* any entries that would be included in the cache image,
@@ -3334,7 +3334,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Open the file.
*
@@ -3358,7 +3358,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Open a dataset.
*
@@ -3382,7 +3382,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Close the file. */
@@ -3396,7 +3396,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 15) Delete the file */
@@ -3417,7 +3417,7 @@ cache_image_smoke_check_1(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -3503,7 +3503,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -3516,7 +3516,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -3541,7 +3541,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some datasets in the file. */
@@ -3562,7 +3562,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -3576,7 +3576,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file.
*
@@ -3606,7 +3606,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
*/
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Close the file. */
@@ -3620,7 +3620,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Open the file.
*
@@ -3644,7 +3644,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open and close a dataset.
*
@@ -3658,7 +3658,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Close the file. */
@@ -3672,7 +3672,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Delete the file */
@@ -3693,7 +3693,7 @@ cache_image_smoke_check_2(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -3801,7 +3801,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -3814,7 +3814,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -3839,7 +3839,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some datasets in the file. */
@@ -3860,7 +3860,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -3874,7 +3874,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file read only.
*
@@ -3898,7 +3898,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open and close a dataset.
*
@@ -3923,7 +3923,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -3937,7 +3937,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open the file.
*
@@ -3961,7 +3961,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Open and close a dataset.
*
@@ -3986,7 +3986,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Close the file. */
@@ -4021,7 +4021,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Open and close a dataset.
*
@@ -4046,7 +4046,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Close the file. */
@@ -4060,7 +4060,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Delete the file */
@@ -4081,7 +4081,7 @@ cache_image_smoke_check_3(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -4180,7 +4180,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -4193,7 +4193,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -4218,7 +4218,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create a dataset in the file. */
@@ -4239,7 +4239,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -4253,7 +4253,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
while ((pass) && (max_dset < MAX_NUM_DSETS)) {
@@ -4279,7 +4279,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L1 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp, max_dset, pass);
+ fprintf(stdout, "%s:L1 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp, max_dset, pass);
/* 5) Create a dataset in the file. */
@@ -4300,7 +4300,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s:L2 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 1, max_dset, pass);
+ fprintf(stdout, "%s:L2 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 1, max_dset, pass);
/* 6) Close the file. */
@@ -4314,7 +4314,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L3 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 2, max_dset, pass);
+ fprintf(stdout, "%s:L3 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 2, max_dset, pass);
} /* end while */
cp += 3;
@@ -4340,7 +4340,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Open and close all datasets.
*
@@ -4365,7 +4365,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Close the file. */
@@ -4400,7 +4400,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Open and close all datasets.
*
@@ -4425,7 +4425,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Close the file. */
@@ -4439,7 +4439,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Delete the file */
@@ -4460,7 +4460,7 @@ cache_image_smoke_check_4(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
} /* cache_image_smoke_check_4() */
@@ -4576,7 +4576,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -4593,7 +4593,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -4618,7 +4618,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create a process specific group. */
if (pass) {
@@ -4635,7 +4635,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Construct a "zoo" in the above group, and validate it. */
if (pass)
@@ -4653,7 +4653,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Close the file. */
@@ -4676,7 +4676,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
while ((pass) && (max_group < MAX_NUM_GROUPS)) {
@@ -4702,7 +4702,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L1 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp, max_group, pass);
+ fprintf(stdout, "%s:L1 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp, max_group, pass);
/* 6) Validate the "zoo" created in the previous file open. */
if (pass)
@@ -4720,8 +4720,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s:L2 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 1, max_group,
- pass);
+ fprintf(stdout, "%s:L2 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 1, max_group, pass);
/* 7) Create a process specific group for this file open */
if (pass) {
@@ -4739,16 +4738,14 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L3 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 2, max_group,
- pass);
+ fprintf(stdout, "%s:L3 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 2, max_group, pass);
/* 8) Construct a "zoo" in the above group, and validate it. */
if (pass)
create_zoo(file_id, process_group_name, max_group);
if (show_progress)
- HDfprintf(stdout, "%s:L4 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 3, max_group,
- pass);
+ fprintf(stdout, "%s:L4 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 3, max_group, pass);
/* 9) Close the file. */
@@ -4771,8 +4768,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L5 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 4, max_group,
- pass);
+ fprintf(stdout, "%s:L5 cp = %d, max_group = %d, pass = %d.\n", fcn_name, cp + 4, max_group, pass);
} /* end while */
cp += 5;
@@ -4796,7 +4792,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Validate all the zoos. */
i = min_group;
@@ -4815,7 +4811,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Close the file. */
if (pass) {
@@ -4847,7 +4843,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Validate all the zoos. */
i = min_group;
@@ -4869,7 +4865,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 15) Close the file. */
@@ -4904,7 +4900,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 17) Validate all the zoos.
*
@@ -4929,7 +4925,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 18) Close the file. */
@@ -4943,7 +4939,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 19) Delete the file */
@@ -4964,7 +4960,7 @@ cache_image_smoke_check_5(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -5076,7 +5072,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -5089,7 +5085,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with the cache image FAPL entry.
*
@@ -5114,7 +5110,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create a dataset in the file. */
@@ -5135,7 +5131,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -5149,7 +5145,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
while ((pass) && (max_dset < MAX_NUM_DSETS)) {
@@ -5175,7 +5171,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L1 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp, max_dset, pass);
+ fprintf(stdout, "%s:L1 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp, max_dset, pass);
/* 5) Create a dataset in the file. */
@@ -5196,7 +5192,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s:L2 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 1, max_dset, pass);
+ fprintf(stdout, "%s:L2 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 1, max_dset, pass);
/* 6) Verify and delete the old dataset. */
if (pass) {
@@ -5205,7 +5201,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L3 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 2, max_dset, pass);
+ fprintf(stdout, "%s:L3 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 2, max_dset, pass);
/* 7) Close the file. */
@@ -5219,7 +5215,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s:L4 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 3, max_dset, pass);
+ fprintf(stdout, "%s:L4 cp = %d, max_dset = %d, pass = %d.\n", fcn_name, cp + 3, max_dset, pass);
} /* end while */
cp += 4;
@@ -5245,7 +5241,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Verify the last dataset created. */
@@ -5266,7 +5262,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Close the file. */
@@ -5301,7 +5297,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Verify and delete the last dataset.
*
@@ -5336,7 +5332,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Get the size of the file. Verify that it is less
* than 20 KB. Without deletions and persistent free
@@ -5361,7 +5357,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 15) Delete the file */
if (pass) {
@@ -5381,7 +5377,7 @@ cache_image_smoke_check_6(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -5468,7 +5464,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -5481,7 +5477,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file. */
@@ -5501,7 +5497,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some datasets in the file. */
@@ -5522,7 +5518,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -5536,7 +5532,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file read only with a cache image FAPL entry requested. */
@@ -5556,7 +5552,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open and close a dataset.
*
@@ -5582,7 +5578,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -5596,7 +5592,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open the file read only. */
@@ -5616,7 +5612,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Open and close a dataset.
*
@@ -5642,7 +5638,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Close the file. */
@@ -5656,7 +5652,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Open the file read / write. */
@@ -5676,7 +5672,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Open and close a dataset.
*
@@ -5702,7 +5698,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Close the file. */
@@ -5716,7 +5712,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Delete the file */
@@ -5737,7 +5733,7 @@ cache_image_api_error_check_1(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -5836,7 +5832,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -5849,7 +5845,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with a cache image requested. */
@@ -5869,7 +5865,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some datasets in the file. */
@@ -5890,7 +5886,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -5904,7 +5900,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file read only with a cache image FAPL entry requested. */
@@ -5924,7 +5920,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open and close a dataset.
*
@@ -5950,7 +5946,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Close the file. */
@@ -5964,7 +5960,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Open the file read only. */
@@ -5984,7 +5980,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Open and close a dataset.
*
@@ -6010,7 +6006,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Close the file. */
@@ -6024,7 +6020,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Open the file read / write. */
@@ -6044,7 +6040,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Open and close a dataset.
*
@@ -6070,7 +6066,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Close the file. */
@@ -6084,7 +6080,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Open the file read / write. */
@@ -6104,7 +6100,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Open and close a dataset.
*
@@ -6130,7 +6126,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 15) Close the file. */
@@ -6144,7 +6140,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Delete the file */
@@ -6165,7 +6161,7 @@ cache_image_api_error_check_2(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -6237,7 +6233,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -6250,7 +6246,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with a cache image requested. */
@@ -6270,7 +6266,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Try to start SWMR write -- should fail. */
@@ -6288,7 +6284,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Discard the file if necessary */
@@ -6308,7 +6304,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Attempt to create a HDF5 file with SWMR write
* access and cache image requested -- should fail.
@@ -6319,7 +6315,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
/* hdf_file_name */ filename);
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Discard the file if necessary */
@@ -6332,7 +6328,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Create a HDF5 file with a cache image requested. */
@@ -6352,7 +6348,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Create some datasets in the file. */
@@ -6373,7 +6369,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Close the file. */
@@ -6387,7 +6383,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Attempt to open the file with SWMR write access -- should fail. */
@@ -6396,7 +6392,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
/* hdf_file_name */ filename);
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Discard the file if necessary. */
@@ -6410,7 +6406,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
PASSED();
@@ -6420,7 +6416,7 @@ cache_image_api_error_check_3(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -6520,7 +6516,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -6533,7 +6529,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a FAPL requesting a cache image, but WITHOUT
* specifying the latest file format.
@@ -6550,7 +6546,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -6568,7 +6564,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create a HDF5 file using the above FAPL. */
@@ -6594,7 +6590,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* get a pointer to the files internal data structure and then
* to the cache structure
@@ -6613,7 +6609,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Create some datasets in the file. */
@@ -6636,7 +6632,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Close the file. */
@@ -6650,7 +6646,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Open the file read only. */
@@ -6670,7 +6666,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Verify that the datasets exist and contain the
* expected data
@@ -6693,7 +6689,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Close the file. */
@@ -6707,7 +6703,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Open the file R/W using the FAPL defined in 1) above.
*
@@ -6736,7 +6732,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* get a pointer to the files internal data structure and then
* to the cache structure
@@ -6755,7 +6751,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -6767,7 +6763,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Close the file. */
@@ -6781,7 +6777,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Open the file R/W using the FAPL defined in 1) above.
* Verify that the file does not contain a cache image.
@@ -6809,7 +6805,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* get a pointer to the files internal data structure and then
* to the cache structure
@@ -6828,7 +6824,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -6840,7 +6836,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Verify that the data sets contain the expected data
*
@@ -6864,7 +6860,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Create several more data sets. */
@@ -6874,7 +6870,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Close the file. */
@@ -6888,7 +6884,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Open the file read write.
*
@@ -6911,7 +6907,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 15) Verify the data sets exist and contain the expected data.
*
@@ -6935,7 +6931,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
#endif /* H5C_COLLECT_CACHE_STATS */
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 16) Close the file. */
@@ -6949,7 +6945,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 17) Delete the file */
@@ -6963,7 +6959,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* tidy up */
if (fapl_id != -1)
@@ -6977,7 +6973,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -7091,7 +7087,7 @@ get_free_sections_test(hbool_t single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -7104,7 +7100,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file with a cache image requested
* and persistent free space managers enabled.
@@ -7126,7 +7122,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some data sets, and then delete some of
* of those near the beginning of the file.
@@ -7138,7 +7134,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -7146,7 +7142,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -7154,7 +7150,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -7168,7 +7164,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file read only. */
@@ -7188,7 +7184,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Verify that a cache image exists, and has not been loaded. */
@@ -7202,7 +7198,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Verify that one or more self referential FSMs
* have been stored at the end of the file just
@@ -7224,7 +7220,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Call H5Fget_free_sections(). */
@@ -7238,7 +7234,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Verify that the cache image has been loaded and
* that the self referential FSMs have been floated.
@@ -7253,7 +7249,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Verify that the remaining data sets contain the expected data. */
@@ -7263,7 +7259,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Close the file. */
@@ -7277,7 +7273,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Open the file R/W. */
@@ -7297,7 +7293,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Verify that a cache image exists, and has not been loaded. */
@@ -7311,7 +7307,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Verify that one or more self referential FSMs
* have been stored at the end of the file just
@@ -7329,7 +7325,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Call H5Fget_free_sections(). */
@@ -7343,7 +7339,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 15) Verify that the cache image has been loaded and
* that the self referential FSMs have been floated.
@@ -7358,7 +7354,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 16) Verify that the remaining data sets contain the expected data. */
@@ -7368,7 +7364,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 17) Delete the remaining data sets. */
@@ -7378,7 +7374,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 18) Close the file. */
@@ -7392,7 +7388,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 19) Verify that file space has been reclaimed. */
@@ -7411,7 +7407,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 20) Discard the file. */
@@ -7425,7 +7421,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
PASSED();
@@ -7435,7 +7431,7 @@ get_free_sections_test(hbool_t single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
@@ -7540,7 +7536,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
pass = TRUE;
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* setup the file name */
if (pass) {
@@ -7553,7 +7549,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 1) Create a HDF5 file without a cache image requested
* and persistent free space managers enabled.
@@ -7574,7 +7570,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 2) Create some data sets and verify them. */
@@ -7584,7 +7580,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -7592,7 +7588,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 3) Close the file. */
@@ -7606,7 +7602,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 4) Open the file R/W, and with cache image requested. */
@@ -7626,7 +7622,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 5) Verify the datasets created in 2) above. This will
* force their (clean) metadata into the metadata cache,
@@ -7639,7 +7635,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 6) Create some more datasets and verify them */
@@ -7649,7 +7645,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -7660,12 +7656,12 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
assert(cache_ptr);
- HDfprintf(stdout, "index size / index dirty size = %lld / %lld\n", (long long)(cache_ptr->index_size),
- (long long)(cache_ptr->dirty_index_size));
+ fprintf(stdout, "index size / index dirty size = %lld / %lld\n", (long long)(cache_ptr->index_size),
+ (long long)(cache_ptr->dirty_index_size));
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 7) Close the file. */
@@ -7679,7 +7675,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 8) Open the file R/O and with evict on close enabled. */
@@ -7699,7 +7695,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s*: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s*: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 9) Verify all datasets twice */
@@ -7709,7 +7705,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -7717,7 +7713,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 10) Close the file. */
@@ -7731,7 +7727,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 11) Open the file R/w and with evict on close enabled. */
@@ -7751,7 +7747,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s*: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s*: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 12) Verify all datasets twice */
@@ -7761,7 +7757,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
@@ -7769,7 +7765,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 13) Close the file. */
@@ -7783,7 +7779,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
/* 14) Discard the file. */
@@ -7797,7 +7793,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (show_progress)
- HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
+ fprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass);
if (pass) {
PASSED();
@@ -7807,7 +7803,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
}
if (!pass)
- HDfprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
+ fprintf(stdout, "%s: failure_mssg = \"%s\".\n", __func__, failure_mssg);
return !pass;
#endif /* H5_HAVE_PARALLEL */
@@ -7845,10 +7841,10 @@ main(void)
express_test = GetTestExpress();
- HDprintf("=========================================\n");
- HDprintf("Cache image tests\n");
- HDprintf(" express_test = %d\n", express_test);
- HDprintf("=========================================\n");
+ printf("=========================================\n");
+ printf("Cache image tests\n");
+ printf(" express_test = %d\n", express_test);
+ printf("=========================================\n");
/* Check for VFD which stores data in multiple files */
single_file_vfd = !h5_driver_uses_multiple_files(env_h5_drvr, H5_EXCLUDE_NON_MULTIPART_DRIVERS);
diff --git a/test/cache_logging.c b/test/cache_logging.c
index 42427c7..67cf13d 100644
--- a/test/cache_logging.c
+++ b/test/cache_logging.c
@@ -165,16 +165,16 @@ main(void)
/* Reset library */
h5_reset();
- HDprintf("Testing basic metadata cache logging functionality.\n");
+ printf("Testing basic metadata cache logging functionality.\n");
nerrors += test_logging_api();
if (nerrors) {
- HDprintf("***** %d Metadata cache logging TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d Metadata cache logging TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
HDexit(EXIT_FAILURE);
}
- HDprintf("All Metadata Cache Logging tests passed.\n");
+ printf("All Metadata Cache Logging tests passed.\n");
HDexit(EXIT_SUCCESS);
}
diff --git a/test/cache_tagging.c b/test/cache_tagging.c
index e1656a2..b1110bc 100644
--- a/test/cache_tagging.c
+++ b/test/cache_tagging.c
@@ -4532,7 +4532,7 @@ check_invalid_tag_application(void)
PASSED();
#else
SKIPPED();
- HDprintf(" test skipped because sanity checking on tag value is disabled.\n");
+ printf(" test skipped because sanity checking on tag value is disabled.\n");
#endif /* H5C_DO_TAGGING_SANITY_CHECKS */
return 0;
@@ -4601,13 +4601,13 @@ main(void)
if (test_type == TEST_DEFAULT) {
if (!nerrs)
- HDprintf("Testing standard tag application cases w/ default fcpl:\n");
+ printf("Testing standard tag application cases w/ default fcpl:\n");
fcpl = fcpl_default;
}
else if (test_type == TEST_SHMESG) {
if (!nerrs)
- HDprintf("Testing standard tag application cases w/ shared messages:\n");
+ printf("Testing standard tag application cases w/ shared messages:\n");
fcpl = fcpl_shmesg_all;
}
else {
@@ -4638,7 +4638,7 @@ main(void)
} /* end for */
if (!nerrs)
- HDprintf("Testing other specific tag application cases:\n");
+ printf("Testing other specific tag application cases:\n");
if (!nerrs)
nerrs += check_group_creation_tags();
if (!nerrs)
diff --git a/test/chunk_info.c b/test/chunk_info.c
index 1018132..def35e9 100644
--- a/test/chunk_info.c
+++ b/test/chunk_info.c
@@ -355,9 +355,9 @@ verify_selected_chunks(hid_t dset, hid_t plist, const hsize_t *start, const hsiz
/* Verify that read chunk is the same as the corresponding written one */
if (HDmemcmp(expected_buf[chk_index], read_buf, CHUNK_NX * CHUNK_NY) != 0) {
- HDfprintf(stderr,
- "Read chunk differs from written chunk at offset (%" PRIuHSIZE ",%" PRIuHSIZE ")\n",
- offset[0], offset[1]);
+ fprintf(stderr,
+ "Read chunk differs from written chunk at offset (%" PRIuHSIZE ",%" PRIuHSIZE ")\n",
+ offset[0], offset[1]);
return FAIL;
}
}
@@ -577,15 +577,15 @@ test_get_chunk_info_highest_v18(hid_t fapl)
/* Check for various zlib errors */
if (Z_BUF_ERROR == ret) {
- HDfprintf(stderr, "overflow");
+ fprintf(stderr, "overflow");
TEST_ERROR;
}
else if (Z_MEM_ERROR == ret) {
- HDfprintf(stderr, "deflate memory error");
+ fprintf(stderr, "deflate memory error");
TEST_ERROR;
}
else if (Z_OK != ret) {
- HDfprintf(stderr, "other deflate error");
+ fprintf(stderr, "other deflate error");
TEST_ERROR;
}
#else
@@ -1932,7 +1932,7 @@ test_get_chunk_info_v110(hid_t fapl)
H5F_libver_t low, high; /* File format bounds */
TESTING("getting chunk information in file with versions 1.10 and later");
- HDprintf("\n"); /* to list sub-tests */
+ printf("\n"); /* to list sub-tests */
/* Set high bound to the current latest version */
high = H5F_LIBVER_LATEST;
@@ -2108,9 +2108,9 @@ test_flt_msk_with_skip_compress(hid_t fapl)
for (ii = 0; ii < CHUNK_NX; ii++)
for (jj = 0; jj < CHUNK_NY; jj++)
if (direct_buf[ii][jj] != check_chunk[ii][jj]) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", ii, jj);
- HDprintf(" direct_buf=%d, check_chunk=%d\n", direct_buf[ii][jj], check_chunk[ii][jj]);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", ii, jj);
+ printf(" direct_buf=%d, check_chunk=%d\n", direct_buf[ii][jj], check_chunk[ii][jj]);
TEST_ERROR;
}
@@ -2131,10 +2131,10 @@ test_flt_msk_with_skip_compress(hid_t fapl)
for (ii = 0; ii < CHUNK_NX; ii++)
for (jj = 0; jj < CHUNK_NY; jj++)
if (direct_buf[ii][jj] != read_direct_buf[ii][jj]) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", ii, jj);
- HDprintf(" direct_buf=%d, read_direct_buf=%d\n", direct_buf[ii][jj],
- read_direct_buf[ii][jj]);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", ii, jj);
+ printf(" direct_buf=%d, read_direct_buf=%d\n", direct_buf[ii][jj],
+ read_direct_buf[ii][jj]);
TEST_ERROR;
}
@@ -2230,7 +2230,7 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All chunk query tests passed.\n");
+ printf("All chunk query tests passed.\n");
h5_cleanup(FILENAME, fapl);
@@ -2238,7 +2238,7 @@ main(void)
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d QUERY CHUNK INFO TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d QUERY CHUNK INFO TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
return EXIT_FAILURE;
}
diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c
index 1155110..8d1f877 100644
--- a/test/cmpd_dset.c
+++ b/test/cmpd_dset.c
@@ -209,17 +209,17 @@ test_compound(char *filename, hid_t fapl)
if ((PRESERVE = H5Pcreate(H5P_DATASET_XFER)) < 0)
goto error;
if ((ret_code = H5Pget_preserve(PRESERVE)) != 0) {
- HDprintf("Preserve status of dataset transfer property list should be"
- " 0 (FALSE), got %d\n",
- ret_code);
+ printf("Preserve status of dataset transfer property list should be"
+ " 0 (FALSE), got %d\n",
+ ret_code);
goto error;
}
if (H5Pset_preserve(PRESERVE, 1) < 0)
goto error;
if ((ret_code = H5Pget_preserve(PRESERVE)) != 1) {
- HDprintf("Preserve status of dataset transfer property list should be"
- " 1 (TRUE), got %d\n",
- ret_code);
+ printf("Preserve status of dataset transfer property list should be"
+ " 1 (TRUE), got %d\n",
+ ret_code);
goto error;
}
@@ -520,11 +520,11 @@ test_compound(char *filename, hid_t fapl)
s1[i].c[1] != 8 * i + 3 || s1[i].c[2] != 8 * i + 4 || s1[i].c[3] != 8 * i + 5 ||
s1[i].d != 8 * i + 6 || s1[i].e != 8 * i + 7) {
H5_FAILED();
- HDprintf(" i==%u, row=%u, col=%u\n", i, i / NY, i % NY);
- HDprintf(" got: {%7d,%7d,[%7d,%7d,%7d,%7d],%7d,%7d}\n", s1[i].a, s1[i].b, s1[i].c[0],
- s1[i].c[1], s1[i].c[2], s1[i].c[3], s1[i].d, s1[i].e);
- HDprintf(" ans: {%7d,%7d,[%7d,%7d,%7d,%7d],%7d,%7d}\n", 8 * i + 0, 8 * i + 1, 8 * i + 2,
- 8 * i + 3, 8 * i + 4, 8 * i + 5, 8 * i + 6, 8 * i + 7);
+ printf(" i==%u, row=%u, col=%u\n", i, i / NY, i % NY);
+ printf(" got: {%7d,%7d,[%7d,%7d,%7d,%7d],%7d,%7d}\n", s1[i].a, s1[i].b, s1[i].c[0], s1[i].c[1],
+ s1[i].c[2], s1[i].c[3], s1[i].d, s1[i].e);
+ printf(" ans: {%7d,%7d,[%7d,%7d,%7d,%7d],%7d,%7d}\n", 8 * i + 0, 8 * i + 1, 8 * i + 2,
+ 8 * i + 3, 8 * i + 4, 8 * i + 5, 8 * i + 6, 8 * i + 7);
goto error;
}
}
@@ -1220,8 +1220,8 @@ compare_data(void *src_data, void *dst_data, hbool_t src_subset)
!H5_DBL_ABS_EQUAL(s_ptr->n, d_ptr->n)) {
H5_FAILED();
- HDprintf(" i=%d\n", i);
- HDprintf(
+ printf(" i=%d\n", i);
+ printf(
" src={a=%d, b=%d, c=[%d,%d,%d,%d,%d,%d,%d,%d], d=%d, e=%d, f=%f, g=%f, "
"h=[%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f], i=%f, j=%f, k=%f, l=%f, m=%f, n=%f}\n",
s_ptr->a, s_ptr->b, s_ptr->c[0], s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->c[4],
@@ -1231,7 +1231,7 @@ compare_data(void *src_data, void *dst_data, hbool_t src_subset)
(double)s_ptr->h[8], (double)s_ptr->h[9], (double)s_ptr->h[10], (double)s_ptr->h[11],
(double)s_ptr->h[12], (double)s_ptr->h[13], (double)s_ptr->h[14], (double)s_ptr->h[15],
(double)s_ptr->i, (double)s_ptr->j, s_ptr->k, s_ptr->l, s_ptr->m, s_ptr->n);
- HDprintf(
+ printf(
" dst={a=%d, b=%d, c=[%d,%d,%d,%d,%d,%d,%d,%d], d=%d, e=%d, f=%f, g=%f, "
"h=[%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f,%f], i=%f, j=%f, k=%f, l=%f, m=%f, n=%f}\n",
d_ptr->a, d_ptr->b, d_ptr->c[0], d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->c[4],
@@ -1665,10 +1665,10 @@ error:
int _i; \
H5_FAILED(); \
AT(); \
- HDprintf(" Insertion order ="); \
+ printf(" Insertion order ="); \
for (_i = 0; _i < PACK_NMEMBS; _i++) \
- HDprintf(" %d", order[_i]); \
- HDprintf("\n Inner compound order = %d, location = %d\n", sub_cmpd_order, order[sub_cmpd_order]); \
+ printf(" %d", order[_i]); \
+ printf("\n Inner compound order = %d, location = %d\n", sub_cmpd_order, order[sub_cmpd_order]); \
HDfflush(stdout); \
goto error; \
}
@@ -2216,7 +2216,7 @@ main(int argc, char *argv[])
/* Turn off optimized compound converter? */
if (argc > 1) {
if (argc > 2 || HDstrcmp("--noopt", argv[1]) != 0) {
- HDfprintf(stderr, "usage: %s [--noopt]\n", argv[0]);
+ fprintf(stderr, "usage: %s [--noopt]\n", argv[0]);
HDexit(EXIT_FAILURE);
}
H5Tunregister(H5T_PERS_DONTCARE, NULL, (hid_t)-1, (hid_t)-1,
@@ -2249,7 +2249,7 @@ main(int argc, char *argv[])
nerrors += (h5_verify_cached_stabs(FILENAME, fapl_id) < 0 ? 1 : 0);
if (nerrors) {
- HDprintf("***** %u FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %u FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
diff --git a/test/cmpd_dtransform.c b/test/cmpd_dtransform.c
index 6e38ec9..c62eea6 100644
--- a/test/cmpd_dtransform.c
+++ b/test/cmpd_dtransform.c
@@ -92,7 +92,7 @@ main(void)
if ((dxpl_id = H5Pcreate(H5P_DATASET_XFER)) < 0)
FAIL_STACK_ERROR;
if (H5Pset_data_transform(dxpl_id, expr) < 0) {
- HDprintf("**** ERROR: H5Pset_data_transform (expression: %s) ****\n", expr);
+ printf("**** ERROR: H5Pset_data_transform (expression: %s) ****\n", expr);
FAIL_STACK_ERROR;
}
diff --git a/test/cross_read.c b/test/cross_read.c
index 8e9bff0..e52bea1 100644
--- a/test/cross_read.c
+++ b/test/cross_read.c
@@ -104,8 +104,8 @@ check_data_i(const char *dsetname, hid_t fid)
if (data_out[i][j] != data_in[i][j])
if (!nerrors++) {
H5_FAILED();
- HDprintf("element [%d][%d] is %lld but should have been %lld\n", (int)i, (int)j,
- data_out[i][j], data_in[i][j]);
+ printf("element [%d][%d] is %lld but should have been %lld\n", (int)i, (int)j,
+ data_out[i][j], data_in[i][j]);
} /* end if */
/* Close/release resources. */
@@ -114,7 +114,7 @@ check_data_i(const char *dsetname, hid_t fid)
/* Failure */
if (nerrors) {
- HDprintf("total of %d errors out of %d elements\n", nerrors, (int)(NX * NY));
+ printf("total of %d errors out of %d elements\n", nerrors, (int)(NX * NY));
return 1;
} /* end if */
@@ -178,8 +178,8 @@ check_data_f(const char *dsetname, hid_t fid)
if (!H5_DBL_REL_EQUAL(data_out[i][j], data_in[i][j], 0.001))
if (!nerrors++) {
H5_FAILED();
- HDprintf("element [%d][%d] is %g but should have been %g\n", (int)i, (int)j,
- data_out[i][j], data_in[i][j]);
+ printf("element [%d][%d] is %g but should have been %g\n", (int)i, (int)j, data_out[i][j],
+ data_in[i][j]);
} /* end if */
/* Close/release resources. */
@@ -188,7 +188,7 @@ check_data_f(const char *dsetname, hid_t fid)
/* Failure */
if (nerrors) {
- HDprintf("total of %d errors out of %d elements\n", nerrors, (int)(NX * NY));
+ printf("total of %d errors out of %d elements\n", nerrors, (int)(NX * NY));
return 1;
} /* end if */
@@ -382,10 +382,10 @@ main(void)
nerrors += check_file(filename);
if (nerrors) {
- HDprintf("***** %d FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
return EXIT_FAILURE;
} /* end if */
- HDprintf("All data type tests passed.\n");
+ printf("All data type tests passed.\n");
return EXIT_SUCCESS;
} /* end main() */
diff --git a/test/direct_chunk.c b/test/direct_chunk.c
index 58e76a3..84ba71e 100644
--- a/test/direct_chunk.c
+++ b/test/direct_chunk.c
@@ -212,15 +212,15 @@ test_direct_chunk_write(hid_t file)
/* Check for various zlib errors */
if (Z_BUF_ERROR == ret) {
- HDfprintf(stderr, "overflow");
+ fprintf(stderr, "overflow");
goto error;
}
else if (Z_MEM_ERROR == ret) {
- HDfprintf(stderr, "deflate memory error");
+ fprintf(stderr, "deflate memory error");
goto error;
}
else if (Z_OK != ret) {
- HDfprintf(stderr, "other deflate error");
+ fprintf(stderr, "other deflate error");
goto error;
}
@@ -269,9 +269,9 @@ test_direct_chunk_write(hid_t file)
for (i = 0; i < CHUNK_NX; i++) {
for (j = 0; j < CHUNK_NY; j++) {
if (direct_buf[i][j] != check_chunk[i][j]) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" direct_buf=%d, check_chunk=%d\n", direct_buf[i][j], check_chunk[i][j]);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" direct_buf=%d, check_chunk=%d\n", direct_buf[i][j], check_chunk[i][j]);
goto error;
}
}
@@ -291,15 +291,15 @@ test_direct_chunk_write(hid_t file)
/* Check for various zlib errors */
if (Z_BUF_ERROR == ret) {
- HDfprintf(stderr, "overflow");
+ fprintf(stderr, "overflow");
goto error;
}
else if (Z_MEM_ERROR == ret) {
- HDfprintf(stderr, "deflate memory error");
+ fprintf(stderr, "deflate memory error");
goto error;
}
else if (Z_OK != ret) {
- HDfprintf(stderr, "other deflate error");
+ fprintf(stderr, "other deflate error");
goto error;
}
@@ -335,9 +335,9 @@ test_direct_chunk_write(hid_t file)
for (i = 0; i < CHUNK_NX; i++) {
for (j = 0; j < CHUNK_NY; j++) {
if (direct_buf[i][j] != check_chunk[i][j]) {
- HDprintf(" 2. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" direct_buf=%d, check_chunk=%d\n", direct_buf[i][j], check_chunk[i][j]);
+ printf(" 2. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" direct_buf=%d, check_chunk=%d\n", direct_buf[i][j], check_chunk[i][j]);
goto error;
}
}
@@ -605,9 +605,9 @@ test_skip_compress_write1(hid_t file)
for (i = 0; i < CHUNK_NX; i++) {
for (j = 0; j < CHUNK_NY; j++) {
if (direct_buf[i][j] != check_chunk[i][j]) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" direct_buf=%d, check_chunk=%d\n", direct_buf[i][j], check_chunk[i][j]);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" direct_buf=%d, check_chunk=%d\n", direct_buf[i][j], check_chunk[i][j]);
goto error;
}
}
@@ -630,9 +630,9 @@ test_skip_compress_write1(hid_t file)
for (i = 0; i < CHUNK_NX; i++) {
for (j = 0; j < CHUNK_NY; j++) {
if (direct_buf[i][j] != read_direct_buf[i][j]) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" direct_buf=%d, read_direct_buf=%d\n", direct_buf[i][j], read_direct_buf[i][j]);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" direct_buf=%d, read_direct_buf=%d\n", direct_buf[i][j], read_direct_buf[i][j]);
goto error;
}
}
@@ -880,10 +880,10 @@ test_skip_compress_write2(hid_t file)
for (i = 0; i < CHUNK_NX; i++) {
for (j = 0; j < CHUNK_NY; j++) {
if (origin_direct_buf[i][j] != check_chunk[i][j]) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" origin_direct_buf=%d, check_chunk=%d\n", origin_direct_buf[i][j],
- check_chunk[i][j]);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" origin_direct_buf=%d, check_chunk=%d\n", origin_direct_buf[i][j],
+ check_chunk[i][j]);
goto error;
}
}
@@ -906,9 +906,9 @@ test_skip_compress_write2(hid_t file)
for (i = 0; i < CHUNK_NX; i++) {
for (j = 0; j < CHUNK_NY; j++) {
if (direct_buf[i][j] != read_direct_buf[i][j]) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" direct_buf=%d, read_direct_buf=%d\n", direct_buf[i][j], read_direct_buf[i][j]);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" direct_buf=%d, read_direct_buf=%d\n", direct_buf[i][j], read_direct_buf[i][j]);
goto error;
}
}
@@ -1088,16 +1088,16 @@ test_data_conv(hid_t file)
(direct_buf[i][j]).c[3] != (read_chunk[i][j]).c[3] ||
(direct_buf[i][j]).d != (read_chunk[i][j]).d ||
(direct_buf[i][j]).e != (read_chunk[i][j]).e) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", (direct_buf[i][j]).a,
- (direct_buf[i][j]).b, (direct_buf[i][j]).c[0], (direct_buf[i][j]).c[1],
- (direct_buf[i][j]).c[2], (direct_buf[i][j]).c[3], (direct_buf[i][j]).d,
- (direct_buf[i][j]).e);
- HDprintf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", (read_chunk[i][j]).a,
- (read_chunk[i][j]).b, (read_chunk[i][j]).c[0], (read_chunk[i][j]).c[1],
- (read_chunk[i][j]).c[2], (read_chunk[i][j]).c[3], (read_chunk[i][j]).d,
- (read_chunk[i][j]).e);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", (direct_buf[i][j]).a,
+ (direct_buf[i][j]).b, (direct_buf[i][j]).c[0], (direct_buf[i][j]).c[1],
+ (direct_buf[i][j]).c[2], (direct_buf[i][j]).c[3], (direct_buf[i][j]).d,
+ (direct_buf[i][j]).e);
+ printf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", (read_chunk[i][j]).a,
+ (read_chunk[i][j]).b, (read_chunk[i][j]).c[0], (read_chunk[i][j]).c[1],
+ (read_chunk[i][j]).c[2], (read_chunk[i][j]).c[3], (read_chunk[i][j]).d,
+ (read_chunk[i][j]).e);
goto error;
}
@@ -1131,15 +1131,15 @@ test_data_conv(hid_t file)
(direct_buf[i][j]).c[2] != (check_chunk[i][j]).c[2] ||
(direct_buf[i][j]).c[3] != (check_chunk[i][j]).c[3] ||
(direct_buf[i][j]).e != (check_chunk[i][j]).e) {
- HDprintf(" 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", (direct_buf[i][j]).a,
- (direct_buf[i][j]).b, (direct_buf[i][j]).c[0], (direct_buf[i][j]).c[1],
- (direct_buf[i][j]).c[2], (direct_buf[i][j]).c[3], (direct_buf[i][j]).d,
- (direct_buf[i][j]).e);
- HDprintf(" dst={a=%d, c=[%d,%d,%d,%d], e=%d\n", (check_chunk[i][j]).a,
- (check_chunk[i][j]).c[0], (check_chunk[i][j]).c[1], (check_chunk[i][j]).c[2],
- (check_chunk[i][j]).c[3], (check_chunk[i][j]).e);
+ printf(" 1. Read different values than written.");
+ printf(" At index %d,%d\n", i, j);
+ printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", (direct_buf[i][j]).a,
+ (direct_buf[i][j]).b, (direct_buf[i][j]).c[0], (direct_buf[i][j]).c[1],
+ (direct_buf[i][j]).c[2], (direct_buf[i][j]).c[3], (direct_buf[i][j]).d,
+ (direct_buf[i][j]).e);
+ printf(" dst={a=%d, c=[%d,%d,%d,%d], e=%d\n", (check_chunk[i][j]).a,
+ (check_chunk[i][j]).c[0], (check_chunk[i][j]).c[1], (check_chunk[i][j]).c[2],
+ (check_chunk[i][j]).c[3], (check_chunk[i][j]).e);
goto error;
}
@@ -1550,19 +1550,19 @@ test_direct_chunk_read_no_cache(hid_t file)
/* Check for various zlib errors */
if (Z_BUF_ERROR == ret) {
- HDfprintf(stderr, "overflow\n");
+ fprintf(stderr, "overflow\n");
goto error;
}
else if (Z_MEM_ERROR == ret) {
- HDfprintf(stderr, "deflate memory error\n");
+ fprintf(stderr, "deflate memory error\n");
goto error;
}
else if (Z_DATA_ERROR == ret) {
- HDfprintf(stderr, "corrupted data\n");
+ fprintf(stderr, "corrupted data\n");
goto error;
}
else if (Z_OK != ret) {
- HDfprintf(stderr, "other deflate error\n");
+ fprintf(stderr, "other deflate error\n");
goto error;
}
@@ -1570,9 +1570,9 @@ test_direct_chunk_read_no_cache(hid_t file)
for (k = 0; k < CHUNK_NX; k++) {
for (l = 0; l < CHUNK_NY; l++) {
if (direct_buf[k][l] != check_chunk[k][l]) {
- HDprintf("\n 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", k, l);
- HDprintf(" direct_buf=%d, check_chunk=%d\n", direct_buf[k][l], check_chunk[k][l]);
+ printf("\n 1. Read different values than written.");
+ printf(" At index %d,%d\n", k, l);
+ printf(" direct_buf=%d, check_chunk=%d\n", direct_buf[k][l], check_chunk[k][l]);
goto error;
}
}
@@ -1741,19 +1741,19 @@ test_direct_chunk_read_cache(hid_t file, hbool_t flush)
/* Check for various zlib errors */
if (Z_BUF_ERROR == ret) {
- HDfprintf(stderr, "overflow\n");
+ fprintf(stderr, "overflow\n");
goto error;
}
else if (Z_MEM_ERROR == ret) {
- HDfprintf(stderr, "deflate memory error\n");
+ fprintf(stderr, "deflate memory error\n");
goto error;
}
else if (Z_DATA_ERROR == ret) {
- HDfprintf(stderr, "corrupted data\n");
+ fprintf(stderr, "corrupted data\n");
goto error;
}
else if (Z_OK != ret) {
- HDfprintf(stderr, "other deflate error\n");
+ fprintf(stderr, "other deflate error\n");
goto error;
}
@@ -1761,9 +1761,9 @@ test_direct_chunk_read_cache(hid_t file, hbool_t flush)
for (k = 0; k < CHUNK_NX; k++) {
for (l = 0; l < CHUNK_NY; l++) {
if (direct_buf[k][l] != check_chunk[k][l]) {
- HDprintf("\n 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", k, l);
- HDprintf(" direct_buf=%d, check_chunk=%d\n", direct_buf[k][l], check_chunk[k][l]);
+ printf("\n 1. Read different values than written.");
+ printf(" At index %d,%d\n", k, l);
+ printf(" direct_buf=%d, check_chunk=%d\n", direct_buf[k][l], check_chunk[k][l]);
goto error;
}
}
@@ -1923,9 +1923,9 @@ test_read_unfiltered_dset(hid_t file)
for (k = 0; k < CHUNK_NX; k++) {
for (l = 0; l < CHUNK_NY; l++) {
if (direct_buf[k][l] != check_chunk[k][l]) {
- HDprintf("\n 1. Read different values than written.");
- HDprintf(" At index %d,%d\n", k, l);
- HDprintf(" direct_buf=%d, check_chunk=%d\n", direct_buf[k][l], check_chunk[k][l]);
+ printf("\n 1. Read different values than written.");
+ printf(" At index %d,%d\n", k, l);
+ printf(" direct_buf=%d, check_chunk=%d\n", direct_buf[k][l], check_chunk[k][l]);
goto error;
}
}
@@ -2299,40 +2299,40 @@ main(void)
continue;
/* Print configuration */
- HDprintf("Configuration: ");
+ printf("Configuration: ");
if (config == 0)
- HDprintf("<empty>");
+ printf("<empty>");
if (config & CONFIG_LATEST) {
if (need_comma)
- HDprintf(", ");
- HDprintf("latest format");
+ printf(", ");
+ printf("latest format");
need_comma = TRUE;
} /* end if */
if (config & CONFIG_REOPEN_FILE) {
if (need_comma)
- HDprintf(", ");
- HDprintf("reopen file");
+ printf(", ");
+ printf("reopen file");
need_comma = TRUE;
} /* end if */
else if (config & CONFIG_REOPEN_DSET) {
if (need_comma)
- HDprintf(", ");
- HDprintf("reopen dataset");
+ printf(", ");
+ printf("reopen dataset");
need_comma = TRUE;
} /* end if */
if (config & CONFIG_DIRECT_WRITE) {
if (need_comma)
- HDprintf(", ");
- HDprintf("direct write");
+ printf(", ");
+ printf("direct write");
need_comma = TRUE;
} /* end if */
if (config & CONFIG_DIRECT_READ) {
if (need_comma)
- HDprintf(", ");
- HDprintf("direct read");
+ printf(", ");
+ printf("direct read");
need_comma = TRUE;
} /* end if */
- HDprintf(":\n");
+ printf(":\n");
HDfflush(stdout);
nerrors += test_single_chunk(config);
diff --git a/test/dsets.c b/test/dsets.c
index d44a7ad..d0dfdf6 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -611,8 +611,8 @@ test_simple_io(const char *env_h5_drvr, hid_t fapl)
for (j = 0; j < DSET_DIM2; j++) {
if (points[i][j] != check[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
}
}
@@ -638,8 +638,8 @@ test_simple_io(const char *env_h5_drvr, hid_t fapl)
for (j = 0; j < DSET_DIM2; j++) {
if (points[i][j] != rdata[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
}
}
@@ -775,8 +775,8 @@ test_userblock_offset(const char *env_h5_drvr, hid_t fapl, hbool_t new_format)
for (j = 0; j < DSET_DIM2; j++) {
if (points[i][j] != rdata[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
}
}
@@ -913,10 +913,10 @@ test_compact_io(hid_t fapl)
for (j = 0; j < 8; j++)
if (rbuf[i][j] != wbuf[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" wbuf[%d][%d]=%d\n", i, j, wbuf[i][j]);
- HDprintf(" rbuf[%d][%d]=%d\n", i, j, rbuf[i][j]);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
+ printf(" wbuf[%d][%d]=%d\n", i, j, wbuf[i][j]);
+ printf(" rbuf[%d][%d]=%d\n", i, j, rbuf[i][j]);
goto error;
} /* end */
@@ -979,10 +979,10 @@ test_compact_io(hid_t fapl)
for (j = 0; j < 8; j++)
if (rbuf[i][j] != wbuf[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" wbuf[%d][%d]=%d\n", i, j, wbuf[i][j]);
- HDprintf(" rbuf[%d][%d]=%d\n", i, j, rbuf[i][j]);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
+ printf(" wbuf[%d][%d]=%d\n", i, j, wbuf[i][j]);
+ printf(" rbuf[%d][%d]=%d\n", i, j, rbuf[i][j]);
goto error;
} /* end */
@@ -1132,8 +1132,8 @@ test_max_compact(hid_t fapl)
for (u = 0; u < compact_size; u++)
if (rbuf[u] != wbuf[u]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %u\n", (unsigned)u);
+ printf(" Read different values than written.\n");
+ printf(" At index %u\n", (unsigned)u);
goto error;
} /* end if */
@@ -1940,7 +1940,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
/* Check if all the filters are available */
if (H5Pall_filters_avail(dcpl) != TRUE) {
H5_FAILED();
- HDprintf(" Line %d: Incorrect filter availability\n", __LINE__);
+ printf(" Line %d: Incorrect filter availability\n", __LINE__);
goto error;
} /* end if */
@@ -1963,8 +1963,8 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
for (j = 0; j < (size_t)size[1]; j++) {
if (0 != check[i][j]) {
H5_FAILED();
- HDprintf(" Read a non-zero value.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read a non-zero value.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -2037,10 +2037,10 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
for (j = 0; j < size[1]; j++) {
if (points[i][j] != check[i][j]) {
H5_FAILED();
- HDfprintf(stderr, " Read different values than written.\n");
- HDfprintf(stderr, " At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
- HDfprintf(stderr, " At original: %d\n", (int)points[i][j]);
- HDfprintf(stderr, " At returned: %d\n", (int)check[i][j]);
+ fprintf(stderr, " Read different values than written.\n");
+ fprintf(stderr, " At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ fprintf(stderr, " At original: %d\n", (int)points[i][j]);
+ fprintf(stderr, " At returned: %d\n", (int)check[i][j]);
goto error;
}
}
@@ -2105,8 +2105,8 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
for (j = 0; j < size[1]; j++) {
if (points[i][j] != check[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -2169,8 +2169,8 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
for (j = 0; j < size[1]; j++)
if (points[i][j] != check[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
} /* end if */
} /* end else */
@@ -2236,13 +2236,13 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
if (points[(size_t)hs_offset[0] + i][(size_t)hs_offset[1] + j] !=
check[(size_t)hs_offset[0] + i][(size_t)hs_offset[1] + j]) {
H5_FAILED();
- HDfprintf(stderr, " Read different values than written.\n");
- HDfprintf(stderr, " At index %lu,%lu\n", (unsigned long)((size_t)hs_offset[0] + i),
- (unsigned long)((size_t)hs_offset[1] + j));
- HDfprintf(stderr, " At original: %d\n",
- (int)points[(size_t)hs_offset[0] + i][(size_t)hs_offset[1] + j]);
- HDfprintf(stderr, " At returned: %d\n",
- (int)check[(size_t)hs_offset[0] + i][(size_t)hs_offset[1] + j]);
+ fprintf(stderr, " Read different values than written.\n");
+ fprintf(stderr, " At index %lu,%lu\n", (unsigned long)((size_t)hs_offset[0] + i),
+ (unsigned long)((size_t)hs_offset[1] + j));
+ fprintf(stderr, " At original: %d\n",
+ (int)points[(size_t)hs_offset[0] + i][(size_t)hs_offset[1] + j]);
+ fprintf(stderr, " At returned: %d\n",
+ (int)check[(size_t)hs_offset[0] + i][(size_t)hs_offset[1] + j]);
goto error;
}
}
@@ -2857,7 +2857,7 @@ test_missing_filter(hid_t file)
/* Verify deflate filter is registered currently */
if (H5Zfilter_avail(H5Z_FILTER_DEFLATE) != TRUE) {
H5_FAILED();
- HDprintf(" Line %d: Deflate filter not available\n", __LINE__);
+ printf(" Line %d: Deflate filter not available\n", __LINE__);
goto error;
} /* end if */
@@ -2870,31 +2870,31 @@ test_missing_filter(hid_t file)
/* (Use private routine, to avoid range checking on filter ID) */
if (H5Z__unregister(H5Z_FILTER_DEFLATE) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't unregister deflate filter\n", __LINE__);
+ printf(" Line %d: Can't unregister deflate filter\n", __LINE__);
goto error;
} /* end if */
#endif /* H5_HAVE_FILTER_DEFLATE */
/* Verify deflate filter is not registered currently */
if (H5Zfilter_avail(H5Z_FILTER_DEFLATE) != FALSE) {
H5_FAILED();
- HDprintf(" Line %d: Deflate filter available\n", __LINE__);
+ printf(" Line %d: Deflate filter available\n", __LINE__);
goto error;
} /* end if */
/* Create dcpl with deflate filter */
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dcpl\n", __LINE__);
+ printf(" Line %d: Can't create dcpl\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_chunk(dcpl, 2, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set chunk sizes\n", __LINE__);
+ printf(" Line %d: Can't set chunk sizes\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_deflate(dcpl, 9) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set deflate filter\n", __LINE__);
+ printf(" Line %d: Can't set deflate filter\n", __LINE__);
goto error;
} /* end if */
@@ -2902,19 +2902,19 @@ test_missing_filter(hid_t file)
ret = H5Pall_filters_avail(dcpl);
if (ret < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't check filter availability\n", __LINE__);
+ printf(" Line %d: Can't check filter availability\n", __LINE__);
goto error;
} /* end if */
if (ret != FALSE) {
H5_FAILED();
- HDprintf(" Line %d: Filter shouldn't be available\n", __LINE__);
+ printf(" Line %d: Filter shouldn't be available\n", __LINE__);
goto error;
} /* end if */
/* Create the data space */
if ((sid = H5Screate_simple(2, dims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataspace\n", __LINE__);
+ printf(" Line %d: Can't open dataspace\n", __LINE__);
goto error;
} /* end if */
@@ -2922,29 +2922,29 @@ test_missing_filter(hid_t file)
if ((dsid = H5Dcreate2(file, DSET_MISSING_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dataset\n", __LINE__);
+ printf(" Line %d: Can't create dataset\n", __LINE__);
goto error;
} /* end if */
/* Write data */
if (H5Dwrite(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, points_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error writing dataset data\n", __LINE__);
+ printf(" Line %d: Error writing dataset data\n", __LINE__);
goto error;
} /* end if */
/* Flush the file (to clear the cache) */
if (H5Fflush(file, H5F_SCOPE_GLOBAL) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error flushing file\n", __LINE__);
+ printf(" Line %d: Error flushing file\n", __LINE__);
goto error;
} /* end if */
/* Query the dataset's size on disk */
if (0 == (dset_size = H5Dget_storage_size(dsid))) {
H5_FAILED();
- HDprintf(" Line %d: Error querying dataset size, dset_size=%lu\n", __LINE__,
- (unsigned long)dset_size);
+ printf(" Line %d: Error querying dataset size, dset_size=%lu\n", __LINE__,
+ (unsigned long)dset_size);
goto error;
} /* end if */
@@ -2952,14 +2952,14 @@ test_missing_filter(hid_t file)
/* (i.e. the deflation filter we asked for was silently ignored) */
if ((H5Tget_size(H5T_NATIVE_INT) * DSET_DIM1 * DSET_DIM2) != dset_size) {
H5_FAILED();
- HDprintf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
+ printf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
goto error;
} /* end if */
/* Read data */
if (H5Dread(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, check_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error reading dataset data\n", __LINE__);
+ printf(" Line %d: Error reading dataset data\n", __LINE__);
goto error;
} /* end if */
@@ -2969,10 +2969,10 @@ test_missing_filter(hid_t file)
for (j = 0; j < (size_t)dims[1]; j++) {
if (points[i][j] != check[i][j]) {
H5_FAILED();
- HDprintf(" Line %d: Read different values than written.\n", __LINE__);
- HDprintf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
- HDprintf(" At original: %d\n", points[i][j]);
- HDprintf(" At returned: %d\n", check[i][j]);
+ printf(" Line %d: Read different values than written.\n", __LINE__);
+ printf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
+ printf(" At original: %d\n", points[i][j]);
+ printf(" At returned: %d\n", check[i][j]);
goto error;
} /* end if */
} /* end for */
@@ -2981,21 +2981,21 @@ test_missing_filter(hid_t file)
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Close dataspace */
if (H5Sclose(sid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataspace\n", __LINE__);
+ printf(" Line %d: Can't close dataspace\n", __LINE__);
goto error;
} /* end if */
/* Close dataset creation property list */
if (H5Pclose(dcpl) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dcpl\n", __LINE__);
+ printf(" Line %d: Can't close dcpl\n", __LINE__);
goto error;
} /* end if */
@@ -3004,14 +3004,14 @@ test_missing_filter(hid_t file)
/* Open existing file */
if ((fid = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open existing deflated file\n", __LINE__);
+ printf(" Line %d: Can't open existing deflated file\n", __LINE__);
goto error;
} /* end if */
/* Open dataset */
if ((dsid = H5Dopen2(fid, "Dataset1", H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataset\n", __LINE__);
+ printf(" Line %d: Can't open dataset\n", __LINE__);
goto error;
} /* end if */
@@ -3023,21 +3023,21 @@ test_missing_filter(hid_t file)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Should not be able to read dataset data\n", __LINE__);
+ printf(" Line %d: Should not be able to read dataset data\n", __LINE__);
goto error;
} /* end if */
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Close existing file */
if (H5Fclose(fid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close file\n", __LINE__);
+ printf(" Line %d: Can't close file\n", __LINE__);
goto error;
} /* end if */
@@ -3045,21 +3045,21 @@ test_missing_filter(hid_t file)
/* Verify deflate filter is not registered currently */
if (H5Zfilter_avail(H5Z_FILTER_DEFLATE) != FALSE) {
H5_FAILED();
- HDprintf(" Line %d: Deflate filter available\n", __LINE__);
+ printf(" Line %d: Deflate filter available\n", __LINE__);
goto error;
} /* end if */
#ifdef H5_HAVE_FILTER_DEFLATE
/* Register deflate filter (use internal function to avoid range checks) */
if (H5Z_register(H5Z_DEFLATE) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't unregister deflate filter\n", __LINE__);
+ printf(" Line %d: Can't unregister deflate filter\n", __LINE__);
goto error;
} /* end if */
/* Verify deflate filter is registered currently */
if (H5Zfilter_avail(H5Z_FILTER_DEFLATE) != TRUE) {
H5_FAILED();
- HDprintf(" Line %d: Deflate filter not available\n", __LINE__);
+ printf(" Line %d: Deflate filter not available\n", __LINE__);
goto error;
} /* end if */
#endif /* H5_HAVE_FILTER_DEFLATE */
@@ -3152,8 +3152,8 @@ test_onebyte_shuffle(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (new_data[i][j] != orig_data[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -3275,8 +3275,8 @@ test_nbit_int(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (((unsigned)new_data[i][j] & mask) != ((unsigned)orig_data[i][j] & mask)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -3394,8 +3394,8 @@ test_nbit_float(hid_t file)
continue; /* skip if value is NaN */
if (!H5_FLT_ABS_EQUAL(new_data[i][j], orig_data[i][j])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -3516,8 +3516,8 @@ test_nbit_double(hid_t file)
continue; /* skip if value is NaN */
if (!H5_DBL_ABS_EQUAL(new_data[i][j], orig_data[i][j])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -3649,9 +3649,9 @@ test_nbit_array(hid_t file)
for (n = 0; n < (size_t)adims[1]; n++) {
if (new_data[i][j][m][n] != orig_data[i][j][m][n]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu,%lu,%lu\n", (unsigned long)i, (unsigned long)j,
- (unsigned long)m, (unsigned long)n);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu,%lu,%lu\n", (unsigned long)i, (unsigned long)j,
+ (unsigned long)m, (unsigned long)n);
goto error;
}
}
@@ -3860,8 +3860,8 @@ test_nbit_compound(hid_t file)
((unsigned)new_data[i][j].s & s_mask) != ((unsigned)orig_data[i][j].s & s_mask) ||
(!HDisnan(orig_data[i][j].f) && !H5_FLT_ABS_EQUAL(new_data[i][j].f, orig_data[i][j].f))) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -4198,8 +4198,8 @@ out:
(!HDisnan(new_data[i][j].a.f) && !H5_FLT_ABS_EQUAL(new_data[i][j].a.f, new_data[i][j].a.f)) ||
new_data[i][j].v != orig_data[i][j].v || b_failed || d_failed) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -4395,24 +4395,24 @@ test_nbit_compound_3(hid_t file)
HDstrcmp(new_data[i].vl_str, orig_data[i].vl_str) != 0 ||
new_data[i].v.len != orig_data[i].v.len || new_data[i].r != orig_data[i].r) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu\n", (unsigned long)i);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu\n", (unsigned long)i);
goto error;
}
for (k = 0; k < i + 1; k++)
if (((unsigned int *)orig_data[i].v.p)[k] != ((unsigned int *)new_data[i].v.p)[k]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu\n", (unsigned long)i);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu\n", (unsigned long)i);
goto error;
}
for (j = 0; j < 5; j++)
if (orig_data[i].o[j] != new_data[i].o[j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu\n", (unsigned long)i);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu\n", (unsigned long)i);
goto error;
}
}
@@ -4493,41 +4493,41 @@ test_nbit_int_size(hid_t file)
/* Define dataset datatype (integer), and set precision, offset */
if ((datatype = H5Tcopy(H5T_NATIVE_INT)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Tcopy failed\n", __LINE__);
+ printf(" line %d: H5Tcopy failed\n", __LINE__);
goto error;
}
precision = 16; /* precision includes sign bit */
if (H5Tset_precision(datatype, precision) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_precision failed\n", __LINE__);
+ printf(" line %d: H5Pset_precision failed\n", __LINE__);
goto error;
}
offset = 8;
if (H5Tset_offset(datatype, offset) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Tset_offset failed\n", __LINE__);
+ printf(" line %d: H5Tset_offset failed\n", __LINE__);
goto error;
}
/* Copy to memory datatype */
if ((mem_datatype = H5Tcopy(datatype)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Tcopy failed\n", __LINE__);
+ printf(" line %d: H5Tcopy failed\n", __LINE__);
goto error;
}
/* Set order of dataset datatype */
if (H5Tset_order(datatype, H5T_ORDER_BE) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_order failed\n", __LINE__);
+ printf(" line %d: H5Pset_order failed\n", __LINE__);
goto error;
}
if (H5Tset_size(datatype, 4) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_size failed\n", __LINE__);
+ printf(" line %d: H5Pset_size failed\n", __LINE__);
goto error;
}
@@ -4545,7 +4545,7 @@ test_nbit_int_size(hid_t file)
dims[1] = DSET_DIM2;
if ((dataspace = H5Screate_simple(2, dims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pcreate failed\n", __LINE__);
+ printf(" line %d: H5Pcreate failed\n", __LINE__);
goto error;
}
@@ -4556,13 +4556,13 @@ test_nbit_int_size(hid_t file)
chunk_size[1] = DSET_DIM2 / 10;
if ((dset_create_props = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pcreate failed\n", __LINE__);
+ printf(" line %d: H5Pcreate failed\n", __LINE__);
goto error;
}
if (H5Pset_chunk(dset_create_props, 2, chunk_size) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_chunk failed\n", __LINE__);
+ printf(" line %d: H5Pset_chunk failed\n", __LINE__);
goto error;
}
@@ -4571,7 +4571,7 @@ test_nbit_int_size(hid_t file)
*/
if (H5Pset_nbit(dset_create_props) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_nbit failed\n", __LINE__);
+ printf(" line %d: H5Pset_nbit failed\n", __LINE__);
goto error;
}
@@ -4581,7 +4581,7 @@ test_nbit_int_size(hid_t file)
if ((dataset = H5Dcreate2(file, DSET_NBIT_INT_SIZE_NAME, datatype, dataspace, H5P_DEFAULT,
dset_create_props, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5dwrite failed\n", __LINE__);
+ printf(" line %d: H5dwrite failed\n", __LINE__);
goto error;
}
@@ -4590,7 +4590,7 @@ test_nbit_int_size(hid_t file)
*/
if (H5Dwrite(dataset, mem_datatype, H5S_ALL, H5S_ALL, H5P_DEFAULT, orig_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: H5Dwrite failed\n", __LINE__);
+ printf(" Line %d: H5Dwrite failed\n", __LINE__);
goto error;
}
@@ -4599,7 +4599,7 @@ test_nbit_int_size(hid_t file)
*/
if ((precision = H5Tget_precision(datatype)) == 0) {
H5_FAILED();
- HDprintf(" Line %d: wrong precision size: %zu\n", __LINE__, precision);
+ printf(" Line %d: wrong precision size: %zu\n", __LINE__, precision);
goto error;
}
@@ -4609,7 +4609,7 @@ test_nbit_int_size(hid_t file)
if ((dset_size = H5Dget_storage_size(dataset)) < DSET_DIM1 * DSET_DIM2 * (precision / 8) ||
dset_size > DSET_DIM1 * DSET_DIM2 * (precision / 8) + 1 * KB) {
H5_FAILED();
- HDfprintf(stdout, " Line %d: wrong dataset size: %" PRIuHSIZE "\n", __LINE__, dset_size);
+ fprintf(stdout, " Line %d: wrong dataset size: %" PRIuHSIZE "\n", __LINE__, dset_size);
goto error;
}
@@ -4694,7 +4694,7 @@ test_nbit_flt_size(hid_t file)
*-------------------------------------------------------------------*/
if ((datatype = H5Tcopy(H5T_IEEE_F32LE)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Tcopy failed\n", __LINE__);
+ printf(" line %d: H5Tcopy failed\n", __LINE__);
goto error;
} /* end if */
@@ -4708,38 +4708,38 @@ test_nbit_flt_size(hid_t file)
if (H5Tset_fields(datatype, spos, epos, esize, mpos, msize) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Tset_fields failed\n", __LINE__);
+ printf(" line %d: H5Tset_fields failed\n", __LINE__);
goto error;
} /* end if */
if (H5Tset_offset(datatype, offset) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Tset_offset failed\n", __LINE__);
+ printf(" line %d: H5Tset_offset failed\n", __LINE__);
goto error;
} /* end if */
if (H5Tset_precision(datatype, precision) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Tset_precision failed\n", __LINE__);
+ printf(" line %d: H5Tset_precision failed\n", __LINE__);
goto error;
} /* end if */
if (H5Tset_size(datatype, 4) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_size failed\n", __LINE__);
+ printf(" line %d: H5Pset_size failed\n", __LINE__);
goto error;
} /* end if */
/* Set order of dataset datatype */
if (H5Tset_order(datatype, H5T_ORDER_BE) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_order failed\n", __LINE__);
+ printf(" line %d: H5Pset_order failed\n", __LINE__);
goto error;
} /* end if */
if (H5Tset_ebias(datatype, 31) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_size failed\n", __LINE__);
+ printf(" line %d: H5Pset_size failed\n", __LINE__);
goto error;
} /* end if */
@@ -4755,7 +4755,7 @@ test_nbit_flt_size(hid_t file)
dims[1] = DSET_DIM2;
if ((dataspace = H5Screate_simple(2, dims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pcreate failed\n", __LINE__);
+ printf(" line %d: H5Pcreate failed\n", __LINE__);
goto error;
} /* end if */
@@ -4766,13 +4766,13 @@ test_nbit_flt_size(hid_t file)
chunk_size[1] = DSET_DIM2 / 10;
if ((dset_create_props = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pcreate failed\n", __LINE__);
+ printf(" line %d: H5Pcreate failed\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_chunk(dset_create_props, 2, chunk_size) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_chunk failed\n", __LINE__);
+ printf(" line %d: H5Pset_chunk failed\n", __LINE__);
goto error;
} /* end if */
@@ -4781,7 +4781,7 @@ test_nbit_flt_size(hid_t file)
*/
if (H5Pset_nbit(dset_create_props) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5Pset_nbit failed\n", __LINE__);
+ printf(" line %d: H5Pset_nbit failed\n", __LINE__);
goto error;
} /* end if */
@@ -4791,7 +4791,7 @@ test_nbit_flt_size(hid_t file)
if ((dataset = H5Dcreate2(file, DSET_NBIT_FLT_SIZE_NAME, datatype, dataspace, H5P_DEFAULT,
dset_create_props, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" line %d: H5dwrite failed\n", __LINE__);
+ printf(" line %d: H5dwrite failed\n", __LINE__);
goto error;
} /* end if */
@@ -4800,7 +4800,7 @@ test_nbit_flt_size(hid_t file)
*/
if (H5Dwrite(dataset, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, H5P_DEFAULT, orig_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: H5Dwrite failed\n", __LINE__);
+ printf(" Line %d: H5Dwrite failed\n", __LINE__);
goto error;
} /* end if */
@@ -4809,7 +4809,7 @@ test_nbit_flt_size(hid_t file)
*/
if ((precision = H5Tget_precision(datatype)) == 0) {
H5_FAILED();
- HDprintf(" Line %d: wrong precision size: %zu\n", __LINE__, precision);
+ printf(" Line %d: wrong precision size: %zu\n", __LINE__, precision);
goto error;
} /* end if */
@@ -4819,7 +4819,7 @@ test_nbit_flt_size(hid_t file)
if ((dset_size = H5Dget_storage_size(dataset)) < DSET_DIM1 * DSET_DIM2 * (precision / 8) ||
dset_size > DSET_DIM1 * DSET_DIM2 * (precision / 8) + 1 * KB) {
H5_FAILED();
- HDfprintf(stdout, " Line %d: wrong dataset size: %" PRIuHSIZE "\n", __LINE__, dset_size);
+ fprintf(stdout, " Line %d: wrong dataset size: %" PRIuHSIZE "\n", __LINE__, dset_size);
goto error;
} /* end if */
@@ -4936,8 +4936,8 @@ test_scaleoffset_int(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (new_data[i][j] != orig_data[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -5080,8 +5080,8 @@ test_scaleoffset_int_2(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (new_data[0][j] != orig_data[0][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)0, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)0, (unsigned long)j);
goto error;
}
}
@@ -5202,8 +5202,8 @@ test_scaleoffset_float(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (HDfabs((double)(new_data[i][j] - orig_data[i][j])) > HDpow(10.0, -3.0)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -5348,8 +5348,8 @@ test_scaleoffset_float_2(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (HDfabs((double)(new_data[0][j] - orig_data[0][j])) > HDpow(10.0, -3.0)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)0, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)0, (unsigned long)j);
goto error;
}
}
@@ -5469,8 +5469,8 @@ test_scaleoffset_double(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (HDfabs(new_data[i][j] - orig_data[i][j]) > HDpow(10.0, -7.0)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)i, (unsigned long)j);
goto error;
}
}
@@ -5615,8 +5615,8 @@ test_scaleoffset_double_2(hid_t file)
for (j = 0; j < (size_t)size[1]; j++) {
if (HDfabs((double)(new_data[0][j] - orig_data[0][j])) > HDpow(10.0, -7.0)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %lu,%lu\n", (unsigned long)0, (unsigned long)j);
+ printf(" Read different values than written.\n");
+ printf(" At index %lu,%lu\n", (unsigned long)0, (unsigned long)j);
goto error;
}
}
@@ -5694,7 +5694,7 @@ test_multiopen(hid_t file)
goto error;
if (cur_size[0] != tmp_size[0]) {
H5_FAILED();
- HDprintf(" Got %d instead of %d!\n", (int)tmp_size[0], (int)cur_size[0]);
+ printf(" Got %d instead of %d!\n", (int)tmp_size[0], (int)cur_size[0]);
goto error;
} /* end if */
@@ -5874,30 +5874,30 @@ test_can_apply(hid_t file)
/* Create dcpl with special filter */
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dcpl\n", __LINE__);
+ printf(" Line %d: Can't create dcpl\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_chunk(dcpl, 2, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set chunk sizes\n", __LINE__);
+ printf(" Line %d: Can't set chunk sizes\n", __LINE__);
goto error;
} /* end if */
if (H5Zregister(H5Z_CAN_APPLY_TEST) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't register 'can apply' filter\n", __LINE__);
+ printf(" Line %d: Can't register 'can apply' filter\n", __LINE__);
goto error;
}
/* The filter is mandate. */
if (H5Pset_filter(dcpl, H5Z_FILTER_CAN_APPLY_TEST, 0, (size_t)0, NULL) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set bogus filter\n", __LINE__);
+ printf(" Line %d: Can't set bogus filter\n", __LINE__);
goto error;
}
/* Create the data space */
if ((sid = H5Screate_simple(2, dims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataspace\n", __LINE__);
+ printf(" Line %d: Can't open dataspace\n", __LINE__);
goto error;
} /* end if */
@@ -5911,7 +5911,7 @@ test_can_apply(hid_t file)
H5E_END_TRY
if (dsid >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
+ printf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
H5Dclose(dsid);
goto error;
} /* end if */
@@ -5924,7 +5924,7 @@ test_can_apply(hid_t file)
H5E_END_TRY
if (dsid >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
+ printf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
H5Dclose(dsid);
goto error;
} /* end if */
@@ -5933,42 +5933,42 @@ test_can_apply(hid_t file)
if ((dsid = H5Dcreate2(file, DSET_CAN_APPLY_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dataset\n", __LINE__);
+ printf(" Line %d: Can't create dataset\n", __LINE__);
goto error;
} /* end if */
/* Write data */
if (H5Dwrite(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, points_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error writing dataset data\n", __LINE__);
+ printf(" Line %d: Error writing dataset data\n", __LINE__);
goto error;
} /* end if */
/* Flush the file (to clear the cache) */
if (H5Fflush(file, H5F_SCOPE_GLOBAL) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error flushing file\n", __LINE__);
+ printf(" Line %d: Error flushing file\n", __LINE__);
goto error;
} /* end if */
/* Query the dataset's size on disk */
if ((dset_size = H5Dget_storage_size(dsid)) == 0) {
H5_FAILED();
- HDprintf(" Line %d: Error querying dataset size\n", __LINE__);
+ printf(" Line %d: Error querying dataset size\n", __LINE__);
goto error;
} /* end if */
/* Verify that the size indicates data is uncompressed */
if ((H5Tget_size(H5T_NATIVE_INT) * dims[0] * dims[1]) != dset_size) {
H5_FAILED();
- HDprintf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
+ printf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
goto error;
} /* end if */
/* Read data */
if (H5Dread(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, check_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error reading dataset data\n", __LINE__);
+ printf(" Line %d: Error reading dataset data\n", __LINE__);
goto error;
} /* end if */
@@ -5978,10 +5978,10 @@ test_can_apply(hid_t file)
for (j = 0; j < (size_t)dims[1]; j++) {
if (points[i][j] != check[i][j]) {
H5_FAILED();
- HDprintf(" Line %d: Read different values than written.\n", __LINE__);
- HDprintf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
- HDprintf(" At original: %d\n", points[i][j]);
- HDprintf(" At returned: %d\n", check[i][j]);
+ printf(" Line %d: Read different values than written.\n", __LINE__);
+ printf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
+ printf(" At original: %d\n", points[i][j]);
+ printf(" At returned: %d\n", check[i][j]);
goto error;
} /* end if */
} /* end for */
@@ -5990,21 +5990,21 @@ test_can_apply(hid_t file)
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Close dataspace */
if (H5Sclose(sid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataspace\n", __LINE__);
+ printf(" Line %d: Can't close dataspace\n", __LINE__);
goto error;
} /* end if */
/* Close dataset creation property list */
if (H5Pclose(dcpl) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dcpl\n", __LINE__);
+ printf(" Line %d: Can't close dcpl\n", __LINE__);
goto error;
} /* end if */
@@ -6058,30 +6058,30 @@ test_can_apply2(hid_t file)
/* Create dcpl with special filter */
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dcpl\n", __LINE__);
+ printf(" Line %d: Can't create dcpl\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_chunk(dcpl, 2, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set chunk sizes\n", __LINE__);
+ printf(" Line %d: Can't set chunk sizes\n", __LINE__);
goto error;
} /* end if */
if (H5Zregister(H5Z_CAN_APPLY_TEST2) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't register 'can apply' filter\n", __LINE__);
+ printf(" Line %d: Can't register 'can apply' filter\n", __LINE__);
goto error;
}
/* The filter is optional. */
if (H5Pset_filter(dcpl, H5Z_FILTER_CAN_APPLY_TEST2, H5Z_FLAG_OPTIONAL, (size_t)0, NULL) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set bogus filter\n", __LINE__);
+ printf(" Line %d: Can't set bogus filter\n", __LINE__);
goto error;
}
/* Create the data space */
if ((sid = H5Screate_simple(2, dims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataspace\n", __LINE__);
+ printf(" Line %d: Can't open dataspace\n", __LINE__);
goto error;
} /* end if */
@@ -6089,42 +6089,42 @@ test_can_apply2(hid_t file)
if ((dsid = H5Dcreate2(file, DSET_CAN_APPLY_NAME2, H5T_NATIVE_DOUBLE, sid, H5P_DEFAULT, dcpl,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dataset\n", __LINE__);
+ printf(" Line %d: Can't create dataset\n", __LINE__);
goto error;
} /* end if */
/* Write data */
if (H5Dwrite(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, points_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error writing dataset data\n", __LINE__);
+ printf(" Line %d: Error writing dataset data\n", __LINE__);
goto error;
} /* end if */
/* Flush the file (to clear the cache) */
if (H5Fflush(file, H5F_SCOPE_GLOBAL) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error flushing file\n", __LINE__);
+ printf(" Line %d: Error flushing file\n", __LINE__);
goto error;
} /* end if */
/* Query the dataset's size on disk */
if ((dset_size = H5Dget_storage_size(dsid)) == 0) {
H5_FAILED();
- HDprintf(" Line %d: Error querying dataset size\n", __LINE__);
+ printf(" Line %d: Error querying dataset size\n", __LINE__);
goto error;
} /* end if */
/* Verify that the size indicates data is uncompressed */
if ((H5Tget_size(H5T_NATIVE_DOUBLE) * dims[0] * dims[1]) != dset_size) {
H5_FAILED();
- HDprintf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
+ printf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
goto error;
} /* end if */
/* Read data */
if (H5Dread(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, check_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error reading dataset data\n", __LINE__);
+ printf(" Line %d: Error reading dataset data\n", __LINE__);
goto error;
} /* end if */
@@ -6134,10 +6134,10 @@ test_can_apply2(hid_t file)
for (j = 0; j < (size_t)dims[1]; j++) {
if (points[i][j] != check[i][j]) {
H5_FAILED();
- HDprintf(" Line %d: Read different values than written.\n", __LINE__);
- HDprintf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
- HDprintf(" At original: %d\n", points[i][j]);
- HDprintf(" At returned: %d\n", check[i][j]);
+ printf(" Line %d: Read different values than written.\n", __LINE__);
+ printf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
+ printf(" At original: %d\n", points[i][j]);
+ printf(" At returned: %d\n", check[i][j]);
goto error;
} /* end if */
} /* end for */
@@ -6146,21 +6146,21 @@ test_can_apply2(hid_t file)
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Close dataspace */
if (H5Sclose(sid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataspace\n", __LINE__);
+ printf(" Line %d: Can't close dataspace\n", __LINE__);
goto error;
} /* end if */
/* Close dataset creation property list */
if (H5Pclose(dcpl) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dcpl\n", __LINE__);
+ printf(" Line %d: Can't close dcpl\n", __LINE__);
goto error;
} /* end if */
@@ -6322,19 +6322,19 @@ test_can_apply_szip(hid_t
/* Create the data space */
if ((sid = H5Screate_simple(2, dims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataspace\n", __LINE__);
+ printf(" Line %d: Can't open dataspace\n", __LINE__);
goto error;
} /* end if */
/* Create dcpl with special filter */
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dcpl\n", __LINE__);
+ printf(" Line %d: Can't create dcpl\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_chunk(dcpl, 2, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set chunk sizes\n", __LINE__);
+ printf(" Line %d: Can't set chunk sizes\n", __LINE__);
goto error;
} /* end if */
@@ -6347,7 +6347,7 @@ test_can_apply_szip(hid_t
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Shouldn't be able to set szip filter\n", __LINE__);
+ printf(" Line %d: Shouldn't be able to set szip filter\n", __LINE__);
goto error;
}
@@ -6360,7 +6360,7 @@ test_can_apply_szip(hid_t
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Shouldn't be able to set szip filter\n", __LINE__);
+ printf(" Line %d: Shouldn't be able to set szip filter\n", __LINE__);
goto error;
}
@@ -6368,7 +6368,7 @@ test_can_apply_szip(hid_t
szip_pixels_per_block = 2;
if (H5Pset_szip(dcpl, szip_options_mask, szip_pixels_per_block) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set szip filter\n", __LINE__);
+ printf(" Line %d: Can't set szip filter\n", __LINE__);
goto error;
}
@@ -6383,47 +6383,47 @@ test_can_apply_szip(hid_t
H5E_END_TRY
if (dsid <= 0) {
H5_FAILED();
- HDprintf(" Line %d: Should have created dataset!\n", __LINE__);
+ printf(" Line %d: Should have created dataset!\n", __LINE__);
goto error;
} /* end if */
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Close dataspace */
if (H5Sclose(sid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataspace\n", __LINE__);
+ printf(" Line %d: Can't close dataspace\n", __LINE__);
goto error;
} /* end if */
/* Close dataset creation property list */
if (H5Pclose(dcpl) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dcpl\n", __LINE__);
+ printf(" Line %d: Can't close dcpl\n", __LINE__);
goto error;
} /* end if */
/* Create another data space */
if ((sid = H5Screate_simple(2, dims2, NULL)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataspace\n", __LINE__);
+ printf(" Line %d: Can't open dataspace\n", __LINE__);
goto error;
} /* end if */
/* Create dcpl with special filter */
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dcpl\n", __LINE__);
+ printf(" Line %d: Can't create dcpl\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_chunk(dcpl, 2, chunk_dims2) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set chunk sizes\n", __LINE__);
+ printf(" Line %d: Can't set chunk sizes\n", __LINE__);
goto error;
} /* end if */
@@ -6431,7 +6431,7 @@ test_can_apply_szip(hid_t
szip_pixels_per_block = 32;
if (H5Pset_szip(dcpl, szip_options_mask, szip_pixels_per_block) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set szip filter\n", __LINE__);
+ printf(" Line %d: Can't set szip filter\n", __LINE__);
goto error;
}
@@ -6445,7 +6445,7 @@ test_can_apply_szip(hid_t
H5E_END_TRY
if (dsid >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
+ printf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
H5Dclose(dsid);
goto error;
} /* end if */
@@ -6453,14 +6453,14 @@ test_can_apply_szip(hid_t
/* Close dataspace */
if (H5Sclose(sid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataspace\n", __LINE__);
+ printf(" Line %d: Can't close dataspace\n", __LINE__);
goto error;
} /* end if */
/* Close dataset creation property list */
if (H5Pclose(dcpl) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dcpl\n", __LINE__);
+ printf(" Line %d: Can't close dcpl\n", __LINE__);
goto error;
} /* end if */
@@ -6534,36 +6534,36 @@ test_set_local(hid_t fapl)
/* Open file */
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open file\n", __LINE__);
+ printf(" Line %d: Can't open file\n", __LINE__);
goto error;
}
/* Create dcpl with special filter */
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dcpl\n", __LINE__);
+ printf(" Line %d: Can't create dcpl\n", __LINE__);
goto error;
} /* end if */
if (H5Pset_chunk(dcpl, 2, chunk_dims) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set chunk sizes\n", __LINE__);
+ printf(" Line %d: Can't set chunk sizes\n", __LINE__);
goto error;
} /* end if */
if (H5Zregister(H5Z_SET_LOCAL_TEST) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't register 'set local' filter\n", __LINE__);
+ printf(" Line %d: Can't register 'set local' filter\n", __LINE__);
goto error;
}
if (H5Pset_filter(dcpl, H5Z_FILTER_SET_LOCAL_TEST, 0, (size_t)BOGUS2_PERM_NPARMS, cd_values) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't set bogus2 filter\n", __LINE__);
+ printf(" Line %d: Can't set bogus2 filter\n", __LINE__);
goto error;
}
/* Create the data space */
if ((sid = H5Screate_simple(2, dims, NULL)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataspace\n", __LINE__);
+ printf(" Line %d: Can't open dataspace\n", __LINE__);
goto error;
} /* end if */
@@ -6571,21 +6571,21 @@ test_set_local(hid_t fapl)
if ((dsid = H5Dcreate2(file, DSET_SET_LOCAL_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT)) <
0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dataset\n", __LINE__);
+ printf(" Line %d: Can't create dataset\n", __LINE__);
goto error;
} /* end if */
/* Write data */
if (H5Dwrite(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, points_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error writing dataset data\n", __LINE__);
+ printf(" Line %d: Error writing dataset data\n", __LINE__);
goto error;
} /* end if */
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
@@ -6594,77 +6594,77 @@ test_set_local(hid_t fapl)
if ((dsid = H5Dcreate2(file, DSET_SET_LOCAL_NAME_2, H5T_NATIVE_DOUBLE, sid, H5P_DEFAULT, dcpl,
H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't create dataset\n", __LINE__);
+ printf(" Line %d: Can't create dataset\n", __LINE__);
goto error;
} /* end if */
/* Write data */
if (H5Dwrite(dsid, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, points_dbl_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error writing dataset data\n", __LINE__);
+ printf(" Line %d: Error writing dataset data\n", __LINE__);
goto error;
} /* end if */
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Close dataspace */
if (H5Sclose(sid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataspace\n", __LINE__);
+ printf(" Line %d: Can't close dataspace\n", __LINE__);
goto error;
} /* end if */
/* Close dataset creation property list */
if (H5Pclose(dcpl) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dcpl\n", __LINE__);
+ printf(" Line %d: Can't close dcpl\n", __LINE__);
goto error;
} /* end if */
/* Close file (flushes & empties cache) */
if (H5Fclose(file) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close file\n", __LINE__);
+ printf(" Line %d: Can't close file\n", __LINE__);
goto error;
} /* end if */
/* Open file */
if ((file = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open file\n", __LINE__);
+ printf(" Line %d: Can't open file\n", __LINE__);
goto error;
}
/* Re-open dataset */
if ((dsid = H5Dopen2(file, DSET_SET_LOCAL_NAME, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataset\n", __LINE__);
+ printf(" Line %d: Can't open dataset\n", __LINE__);
goto error;
} /* end if */
/* Query the dataset's size on disk */
if ((dset_size = H5Dget_storage_size(dsid)) == 0) {
H5_FAILED();
- HDprintf(" Line %d: Error querying dataset size\n", __LINE__);
+ printf(" Line %d: Error querying dataset size\n", __LINE__);
goto error;
} /* end if */
/* Verify that the size indicates data is uncompressed */
if ((H5Tget_size(H5T_NATIVE_INT) * dims[0] * dims[1]) != dset_size) {
H5_FAILED();
- HDprintf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
+ printf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
goto error;
} /* end if */
/* Read data */
if (H5Dread(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, check_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error reading dataset data\n", __LINE__);
+ printf(" Line %d: Error reading dataset data\n", __LINE__);
goto error;
} /* end if */
@@ -6674,10 +6674,10 @@ test_set_local(hid_t fapl)
for (j = 0; j < dims[1]; j++) {
if ((points[i][j] + (int)sizeof(int)) != check[i][j]) {
H5_FAILED();
- HDprintf(" Line %d: Read different values than written.\n", __LINE__);
- HDprintf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
- HDprintf(" At original: %d\n", points[i][j]);
- HDprintf(" At returned: %d\n", check[i][j]);
+ printf(" Line %d: Read different values than written.\n", __LINE__);
+ printf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
+ printf(" At original: %d\n", points[i][j]);
+ printf(" At returned: %d\n", check[i][j]);
goto error;
} /* end if */
} /* end for */
@@ -6686,35 +6686,35 @@ test_set_local(hid_t fapl)
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Re-open second dataset */
if ((dsid = H5Dopen2(file, DSET_SET_LOCAL_NAME_2, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't open dataset\n", __LINE__);
+ printf(" Line %d: Can't open dataset\n", __LINE__);
goto error;
} /* end if */
/* Query the dataset's size on disk */
if ((dset_size = H5Dget_storage_size(dsid)) == 0) {
H5_FAILED();
- HDprintf(" Line %d: Error querying dataset size\n", __LINE__);
+ printf(" Line %d: Error querying dataset size\n", __LINE__);
goto error;
} /* end if */
/* Verify that the size indicates data is uncompressed */
if ((H5Tget_size(H5T_NATIVE_DOUBLE) * dims[0] * dims[1]) != dset_size) {
H5_FAILED();
- HDprintf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
+ printf(" Line %d: Incorrect dataset size: %lu\n", __LINE__, (unsigned long)dset_size);
goto error;
} /* end if */
/* Read data */
if (H5Dread(dsid, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, check_dbl_data) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Error reading dataset data\n", __LINE__);
+ printf(" Line %d: Error reading dataset data\n", __LINE__);
goto error;
} /* end if */
@@ -6726,10 +6726,10 @@ test_set_local(hid_t fapl)
* considered not equal. */
if (!H5_DBL_REL_EQUAL(points_dbl[i][j], check_dbl[i][j], 0.00001)) {
H5_FAILED();
- HDprintf(" Line %d: Read different values than written.\n", __LINE__);
- HDprintf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
- HDprintf(" At original: %f\n", points_dbl[i][j]);
- HDprintf(" At returned: %f\n", check_dbl[i][j]);
+ printf(" Line %d: Read different values than written.\n", __LINE__);
+ printf(" At index %lu,%lu\n", (unsigned long)(i), (unsigned long)(j));
+ printf(" At original: %f\n", points_dbl[i][j]);
+ printf(" At returned: %f\n", check_dbl[i][j]);
goto error;
} /* end if */
} /* end for */
@@ -6738,14 +6738,14 @@ test_set_local(hid_t fapl)
/* Close dataset */
if (H5Dclose(dsid) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close dataset\n", __LINE__);
+ printf(" Line %d: Can't close dataset\n", __LINE__);
goto error;
} /* end if */
/* Close file */
if (H5Fclose(file) < 0) {
H5_FAILED();
- HDprintf(" Line %d: Can't close file\n", __LINE__);
+ printf(" Line %d: Can't close file\n", __LINE__);
goto error;
} /* end if */
@@ -7106,7 +7106,7 @@ test_filter_delete(hid_t file)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Shouldn't have deleted filter!\n", __LINE__);
+ printf(" Line %d: Shouldn't have deleted filter!\n", __LINE__);
goto error;
} /* end if */
@@ -7118,7 +7118,7 @@ test_filter_delete(hid_t file)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Shouldn't have deleted filter!\n", __LINE__);
+ printf(" Line %d: Shouldn't have deleted filter!\n", __LINE__);
goto error;
} /* end if */
@@ -7226,7 +7226,7 @@ auxread_fdata(hid_t fid, const char *name)
if (nelmts) {
buf = (void *)HDmalloc((size_t)(nelmts * msize));
if (buf == NULL) {
- HDprintf("cannot read into memory\n");
+ printf("cannot read into memory\n");
goto error;
}
if (H5Dread(dset_id, mtype_id, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf) < 0)
@@ -7721,14 +7721,14 @@ test_missing_chunk(hid_t file)
for (u = 0; u < MISSING_CHUNK_DIM; u++) {
if ((u % 10) >= 5) {
if (rdata[u] != 911) {
- HDprintf(" Line %d: Incorrect value, rdata[%u]=%d\n", __LINE__, (unsigned)u, rdata[u]);
+ printf(" Line %d: Incorrect value, rdata[%u]=%d\n", __LINE__, (unsigned)u, rdata[u]);
TEST_ERROR;
} /* end if */
} /* end if */
else {
if (rdata[u] != wdata[u]) {
- HDprintf(" Line %d: Incorrect value, wdata[%u]=%d, rdata[%u]=%d\n", __LINE__, (unsigned)u,
- wdata[u], (unsigned)u, rdata[u]);
+ printf(" Line %d: Incorrect value, wdata[%u]=%d, rdata[%u]=%d\n", __LINE__, (unsigned)u,
+ wdata[u], (unsigned)u, rdata[u]);
TEST_ERROR;
} /* end if */
} /* end else */
@@ -7740,16 +7740,16 @@ test_missing_chunk(hid_t file)
if ((i % 10) >= 5 || (j % 10) >= 5) {
if (rdata2[i][j] != 911) {
- HDprintf(" Line %d: Incorrect value, rdata2[%u][%u] = %d\n", __LINE__, (unsigned)i,
- (unsigned)j, rdata2[i][j]);
+ printf(" Line %d: Incorrect value, rdata2[%u][%u] = %d\n", __LINE__, (unsigned)i,
+ (unsigned)j, rdata2[i][j]);
TEST_ERROR;
} /* end if */
} /* end if */
else {
if (rdata2[i][j] != wdata2[i][j]) {
- HDprintf(" Line %d: Incorrect value, wdata2[%u][%u] = %d, rdata2[%u][%u] = %d\n",
- __LINE__, (unsigned)i, (unsigned)j, wdata2[i][j], (unsigned)i, (unsigned)j,
- rdata2[i][j]);
+ printf(" Line %d: Incorrect value, wdata2[%u][%u] = %d, rdata2[%u][%u] = %d\n",
+ __LINE__, (unsigned)i, (unsigned)j, wdata2[i][j], (unsigned)i, (unsigned)j,
+ rdata2[i][j]);
TEST_ERROR;
} /* end if */
} /* end else */
@@ -8029,10 +8029,10 @@ test_random_chunks_real(const char *testname, hbool_t early_alloc, hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < NPOINTS; i++)
if (rbuf[i] != wbuf[i]) {
- HDprintf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i,
- wbuf[i], (unsigned)i, rbuf[i]);
- HDprintf(" coord[%u] = {%lu, %lu}\n", (unsigned)i, (unsigned long)coord[i][0],
- (unsigned long)coord[i][1]);
+ printf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i, wbuf[i],
+ (unsigned)i, rbuf[i]);
+ printf(" coord[%u] = {%lu, %lu}\n", (unsigned)i, (unsigned long)coord[i][0],
+ (unsigned long)coord[i][1]);
TEST_ERROR;
} /* end if */
@@ -8171,8 +8171,8 @@ test_random_chunks_real(const char *testname, hbool_t early_alloc, hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < NPOINTS; i++)
if (rbuf[i] != wbuf[i]) {
- HDprintf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i,
- wbuf[i], (unsigned)i, rbuf[i]);
+ printf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i, wbuf[i],
+ (unsigned)i, rbuf[i]);
TEST_ERROR;
} /* end if */
@@ -8309,8 +8309,8 @@ test_random_chunks_real(const char *testname, hbool_t early_alloc, hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < NPOINTS; i++)
if (rbuf[i] != wbuf[i]) {
- HDprintf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i,
- wbuf[i], (unsigned)i, rbuf[i]);
+ printf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i, wbuf[i],
+ (unsigned)i, rbuf[i]);
TEST_ERROR;
} /* end if */
@@ -9236,17 +9236,16 @@ test_big_chunks_bypass_cache(hid_t fapl)
/* Verify data for the first 1-D dataset */
for (i = 0; i < BYPASS_CHUNK_DIM / 2; i++)
if (rdata1[i] != i) {
- HDprintf(" Read different values than written in the 1st chunk.\n");
- HDprintf(" At line %d and index %d, rdata1 = %d. It should be %d.\n", __LINE__, i, rdata1[i],
- i);
+ printf(" Read different values than written in the 1st chunk.\n");
+ printf(" At line %d and index %d, rdata1 = %d. It should be %d.\n", __LINE__, i, rdata1[i], i);
TEST_ERROR;
} /* end if */
for (j = BYPASS_CHUNK_DIM / 2; j < BYPASS_DIM; j++)
if (rdata1[j] != fvalue) {
- HDprintf(" Read different values than written in the 2nd chunk.\n");
- HDprintf(" At line %d and index %d, rdata1 = %d. It should be %d.\n", __LINE__, i, rdata1[i],
- fvalue);
+ printf(" Read different values than written in the 2nd chunk.\n");
+ printf(" At line %d and index %d, rdata1 = %d. It should be %d.\n", __LINE__, i, rdata1[i],
+ fvalue);
TEST_ERROR;
} /* end if */
@@ -9254,18 +9253,18 @@ test_big_chunks_bypass_cache(hid_t fapl)
for (i = 0; i < BYPASS_CHUNK_DIM / 2; i++)
for (j = 0; j < BYPASS_CHUNK_DIM / 2; j++)
if (t_rdata1[i][j] != j) {
- HDprintf(" Read different values than written in the 1st chunk.\n");
- HDprintf(" At line %d and index (%d, %d), t_rdata1 = %d. It should be %d.\n", __LINE__, i,
- j, t_rdata1[i][j], j);
+ printf(" Read different values than written in the 1st chunk.\n");
+ printf(" At line %d and index (%d, %d), t_rdata1 = %d. It should be %d.\n", __LINE__, i, j,
+ t_rdata1[i][j], j);
TEST_ERROR;
} /* end if */
for (i = BYPASS_CHUNK_DIM / 2; i < BYPASS_DIM; i++)
for (j = BYPASS_CHUNK_DIM / 2; j < BYPASS_DIM; j++)
if (t_rdata1[i][j] != fvalue) {
- HDprintf(" Read different values than written in the 2nd chunk.\n");
- HDprintf(" At line %d and index (%d, %d), t_rdata1 = %d. It should be %d.\n", __LINE__, i,
- j, t_rdata1[i][j], fvalue);
+ printf(" Read different values than written in the 2nd chunk.\n");
+ printf(" At line %d and index (%d, %d), t_rdata1 = %d. It should be %d.\n", __LINE__, i, j,
+ t_rdata1[i][j], fvalue);
TEST_ERROR;
} /* end if */
@@ -9319,9 +9318,8 @@ test_big_chunks_bypass_cache(hid_t fapl)
/* Verify data for the second 1-D dataset */
for (i = 0; i < BYPASS_CHUNK_DIM / 2; i++)
if (rdata2[i] != i) {
- HDprintf(" Read different values than written in the chunk.\n");
- HDprintf(" At line %d and index %d, rdata2 = %d. It should be %d.\n", __LINE__, i, rdata2[i],
- i);
+ printf(" Read different values than written in the chunk.\n");
+ printf(" At line %d and index %d, rdata2 = %d. It should be %d.\n", __LINE__, i, rdata2[i], i);
TEST_ERROR;
} /* end if */
@@ -9329,9 +9327,9 @@ test_big_chunks_bypass_cache(hid_t fapl)
for (i = 0; i < BYPASS_CHUNK_DIM / 2; i++)
for (j = 0; j < BYPASS_CHUNK_DIM / 2; j++)
if (t_rdata2[i][j] != j) {
- HDprintf(" Read different values than written in the chunk.\n");
- HDprintf(" At line %d and index (%d, %d), t_rdata2 = %d. It should be %d.\n", __LINE__, i,
- j, t_rdata2[i][j], j);
+ printf(" Read different values than written in the chunk.\n");
+ printf(" At line %d and index (%d, %d), t_rdata2 = %d. It should be %d.\n", __LINE__, i, j,
+ t_rdata2[i][j], j);
TEST_ERROR;
} /* end if */
@@ -11083,8 +11081,8 @@ test_fixed_array(hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < POINTS; i++)
if (rbuf[i] != wbuf[i]) {
- HDprintf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__,
- (unsigned)i, wbuf[i], (unsigned)i, rbuf[i]);
+ printf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i,
+ wbuf[i], (unsigned)i, rbuf[i]);
TEST_ERROR;
} /* end if */
@@ -11119,8 +11117,8 @@ test_fixed_array(hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < POINTS; i++)
if (rbuf[i] != wbuf[i]) {
- HDprintf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__,
- (unsigned)i, wbuf[i], (unsigned)i, rbuf[i]);
+ printf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i,
+ wbuf[i], (unsigned)i, rbuf[i]);
TEST_ERROR;
} /* end if */
@@ -11153,8 +11151,8 @@ test_fixed_array(hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < POINTS_BIG; i++)
if (rbuf_big[i] != wbuf_big[i]) {
- HDprintf(" Line %d: Incorrect value, wbuf_bif[%u]=%d, rbuf_big[%u]=%d\n", __LINE__,
- (unsigned)i, wbuf_big[i], (unsigned)i, rbuf_big[i]);
+ printf(" Line %d: Incorrect value, wbuf_bif[%u]=%d, rbuf_big[%u]=%d\n", __LINE__,
+ (unsigned)i, wbuf_big[i], (unsigned)i, rbuf_big[i]);
TEST_ERROR;
} /* end if */
@@ -11441,8 +11439,8 @@ test_single_chunk(hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < (DSET_DIM1 * DSET_DIM2); i++)
if (rbuf[i] != wbuf[i]) {
- HDprintf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__,
- (unsigned)i, wbuf[i], (unsigned)i, rbuf[i]);
+ printf(" Line %d: Incorrect value, wbuf[%u]=%d, rbuf[%u]=%d\n", __LINE__, (unsigned)i,
+ wbuf[i], (unsigned)i, rbuf[i]);
TEST_ERROR;
} /* end if */
@@ -11463,8 +11461,8 @@ test_single_chunk(hid_t fapl)
/* Verify that written and read data are the same */
for (i = 0; i < (DSET_TMP_DIM1 * DSET_TMP_DIM2); i++)
if (t_rbuf[i] != t_wbuf[i]) {
- HDprintf(" Line %d: Incorrect value, t_wbuf[%u]=%d, t_rbuf[%u]=%d\n", __LINE__,
- (unsigned)i, t_wbuf[i], (unsigned)i, t_rbuf[i]);
+ printf(" Line %d: Incorrect value, t_wbuf[%u]=%d, t_rbuf[%u]=%d\n", __LINE__,
+ (unsigned)i, t_wbuf[i], (unsigned)i, t_rbuf[i]);
TEST_ERROR;
} /* end if */
@@ -13241,8 +13239,8 @@ typedef struct scatter_info_t {
if (ARR[i][j][k] != EXP[i][j][k]) { \
H5_FAILED(); \
AT(); \
- HDprintf(" " #ARR "[%d][%d][%d] == %d, " #EXP "[%d][%d][%d] == %d\n", i, j, k, \
- ARR[i][j][k], i, j, k, EXP[i][j][k]); \
+ printf(" " #ARR "[%d][%d][%d] == %d, " #EXP "[%d][%d][%d] == %d\n", i, j, k, \
+ ARR[i][j][k], i, j, k, EXP[i][j][k]); \
goto error; \
}
@@ -15834,7 +15832,7 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All dataset tests passed.\n");
+ printf("All dataset tests passed.\n");
#ifdef H5_HAVE_FILTER_SZIP
if (GetTestCleanup())
HDremove(NOENCODER_COPY_FILENAME);
@@ -15865,6 +15863,6 @@ error:
HDfree(check_dbl_data);
nerrors = MAX(1, nerrors);
- HDprintf("***** %d DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
} /* end main() */
diff --git a/test/dt_arith.c b/test/dt_arith.c
index af4078e..9f83fe8 100644
--- a/test/dt_arith.c
+++ b/test/dt_arith.c
@@ -522,7 +522,7 @@ test_hard_query(void)
/* Verify the conversion from int to float is a hard conversion. */
if (H5Tcompiler_conv(H5T_NATIVE_INT, H5T_NATIVE_FLOAT) != TRUE) {
H5_FAILED();
- HDprintf("Can't query conversion function\n");
+ printf("Can't query conversion function\n");
goto error;
}
@@ -532,7 +532,7 @@ test_hard_query(void)
(H5T_conv_t)((void (*)(void))H5T__conv_int_float));
if (H5Tcompiler_conv(H5T_NATIVE_INT, H5T_NATIVE_FLOAT) != FALSE) {
H5_FAILED();
- HDprintf("Can't query conversion function\n");
+ printf("Can't query conversion function\n");
goto error;
}
@@ -542,7 +542,7 @@ test_hard_query(void)
(H5T_conv_t)((void (*)(void))H5T__conv_int_float));
if (H5Tcompiler_conv(H5T_NATIVE_INT, H5T_NATIVE_FLOAT) != TRUE) {
H5_FAILED();
- HDprintf("Can't query conversion function\n");
+ printf("Can't query conversion function\n");
goto error;
}
@@ -637,7 +637,7 @@ test_particular_fp_integer(void)
if ((dxpl_id = H5Pcreate(H5P_DATASET_XFER)) < 0) {
H5_FAILED();
- HDprintf("Can't create data transfer property list\n");
+ printf("Can't create data transfer property list\n");
goto error;
}
@@ -655,14 +655,14 @@ test_particular_fp_integer(void)
flag = 1;
if (H5Pset_type_conv_cb(dxpl_id, expt_handle, &flag) < 0) {
H5_FAILED();
- HDprintf("Can't register conversion callback\n");
+ printf("Can't register conversion callback\n");
goto error;
}
/* Do conversion */
if (H5Tconvert(H5T_NATIVE_DOUBLE, H5T_NATIVE_SCHAR, (size_t)1, buf1, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
@@ -676,20 +676,20 @@ test_particular_fp_integer(void)
if (0 == fails_this_test++)
H5_FAILED();
- HDprintf(" test double to signed char:\n");
- HDprintf(" src = ");
+ printf(" test double to signed char:\n");
+ printf(" src = ");
for (j = 0; j < src_size1; j++)
- HDprintf(" %02x", saved_buf1[ENDIAN(src_size1, j, endian)]);
+ printf(" %02x", saved_buf1[ENDIAN(src_size1, j, endian)]);
HDmemcpy(&x, saved_buf1, src_size1);
- HDprintf(" %29.20e\n", x);
+ printf(" %29.20e\n", x);
- HDprintf(" dst = ");
+ printf(" dst = ");
for (j = 0; j < dst_size1; j++)
- HDprintf(" %02x", buf1[ENDIAN(dst_size1, j, endian)]);
+ printf(" %02x", buf1[ENDIAN(dst_size1, j, endian)]);
HDmemcpy(&y, buf1, dst_size1);
- HDprintf(" %29d\n", y);
+ printf(" %29d\n", y);
}
/* Test conversion from float (the value is INT_MAX) to int. */
@@ -706,7 +706,7 @@ test_particular_fp_integer(void)
/* Do conversion */
if (H5Tconvert(H5T_NATIVE_FLOAT, H5T_NATIVE_INT, (size_t)1, buf2, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
@@ -720,20 +720,20 @@ test_particular_fp_integer(void)
if (0 == fails_this_test++)
H5_FAILED();
- HDprintf(" test float to int:\n");
- HDprintf(" src = ");
+ printf(" test float to int:\n");
+ printf(" src = ");
for (j = 0; j < src_size2; j++)
- HDprintf(" %02x", saved_buf2[ENDIAN(src_size2, j, endian)]);
+ printf(" %02x", saved_buf2[ENDIAN(src_size2, j, endian)]);
HDmemcpy(&x, saved_buf2, src_size2);
- HDprintf(" %29.20e\n", (double)x);
+ printf(" %29.20e\n", (double)x);
- HDprintf(" dst = ");
+ printf(" dst = ");
for (j = 0; j < dst_size2; j++)
- HDprintf(" %02x", buf2[ENDIAN(dst_size2, j, endian)]);
+ printf(" %02x", buf2[ENDIAN(dst_size2, j, endian)]);
HDmemcpy(&y, buf2, dst_size2);
- HDprintf(" %29d\n", y);
+ printf(" %29d\n", y);
}
if (fails_this_test)
@@ -741,7 +741,7 @@ test_particular_fp_integer(void)
if (H5Pclose(dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't close property list\n");
+ printf("Can't close property list\n");
goto error;
}
@@ -818,25 +818,25 @@ test_derived_flt(void)
h5_fixname(FILENAME[0], H5P_DEFAULT, filename, sizeof filename);
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf("Can't create file\n");
+ printf("Can't create file\n");
goto error;
}
if ((dxpl_id = H5Pcreate(H5P_DATASET_XFER)) < 0) {
H5_FAILED();
- HDprintf("Can't create data transfer property list\n");
+ printf("Can't create data transfer property list\n");
goto error;
}
if ((tid1 = H5Tcopy(H5T_IEEE_F64LE)) < 0) {
H5_FAILED();
- HDprintf("Can't copy data type\n");
+ printf("Can't copy data type\n");
goto error;
}
if ((tid2 = H5Tcopy(H5T_IEEE_F32LE)) < 0) {
H5_FAILED();
- HDprintf("Can't copy data type\n");
+ printf("Can't copy data type\n");
goto error;
}
@@ -860,44 +860,44 @@ test_derived_flt(void)
*-----------------------------------------------------------------------*/
if (H5Tset_fields(tid1, (size_t)44, (size_t)34, (size_t)10, (size_t)3, (size_t)31) < 0) {
H5_FAILED();
- HDprintf("Can't set fields\n");
+ printf("Can't set fields\n");
goto error;
}
if (H5Tset_offset(tid1, (size_t)3) < 0) {
H5_FAILED();
- HDprintf("Can't set offset\n");
+ printf("Can't set offset\n");
goto error;
}
if (H5Tset_precision(tid1, (size_t)42) < 0) {
H5_FAILED();
- HDprintf("Can't set precision 1\n");
+ printf("Can't set precision 1\n");
goto error;
}
if (H5Tset_size(tid1, (size_t)7) < 0) {
H5_FAILED();
- HDprintf("Can't set size\n");
+ printf("Can't set size\n");
goto error;
}
if (H5Tset_ebias(tid1, (size_t)511) < 0) {
H5_FAILED();
- HDprintf("Can't set exponent bias\n");
+ printf("Can't set exponent bias\n");
goto error;
}
if (H5Tset_pad(tid1, H5T_PAD_ZERO, H5T_PAD_ZERO) < 0) {
H5_FAILED();
- HDprintf("Can't set padding\n");
+ printf("Can't set padding\n");
goto error;
}
if (H5Tcommit2(file, "new float type 1", tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't set inpad\n");
+ printf("Can't set inpad\n");
goto error;
}
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
@@ -905,33 +905,33 @@ test_derived_flt(void)
FAIL_PUTS_ERROR("Can't open datatype");
if (H5Tget_fields(tid1, &spos, &epos, &esize, &mpos, &msize) < 0) {
H5_FAILED();
- HDprintf("Can't get fields\n");
+ printf("Can't get fields\n");
goto error;
}
if (spos != 44 || epos != 34 || esize != 10 || mpos != 3 || msize != 31) {
H5_FAILED();
- HDprintf("Wrong field values\n");
+ printf("Wrong field values\n");
goto error;
}
if (H5Tget_precision(tid1) != 42) {
H5_FAILED();
- HDprintf("Can't get precision or wrong precision\n");
+ printf("Can't get precision or wrong precision\n");
goto error;
}
if (H5Tget_offset(tid1) != 3) {
H5_FAILED();
- HDprintf("Can't get offset or wrong offset\n");
+ printf("Can't get offset or wrong offset\n");
goto error;
}
if ((size = H5Tget_size(tid1)) != 7) {
H5_FAILED();
- HDprintf("Can't get size or wrong size\n");
+ printf("Can't get size or wrong size\n");
goto error;
}
if (H5Tget_ebias(tid1) != 511) {
H5_FAILED();
- HDprintf("Can't get exponent bias or wrong bias\n");
+ printf("Can't get exponent bias or wrong bias\n");
goto error;
}
@@ -954,13 +954,13 @@ test_derived_flt(void)
* The mantissa is big enough to retain the integer's precision. */
if (H5Tconvert(H5T_NATIVE_INT, tid1, nelmts, buf, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
/* Convert data from the derived floating-point type back to native integer. */
if (H5Tconvert(tid1, H5T_NATIVE_INT, nelmts, buf, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
@@ -976,25 +976,25 @@ test_derived_flt(void)
if (0 == fails_this_test++) {
HDsnprintf(str, sizeof(str),
"\nTesting random sw derived floating-point -> derived floating-point conversions");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
HDfflush(stdout);
H5_FAILED();
}
- HDprintf(" test %u elmt %u: \n", 1, (unsigned)i);
+ printf(" test %u elmt %u: \n", 1, (unsigned)i);
- HDprintf(" src = ");
+ printf(" src = ");
for (j = 0; j < src_size; j++)
- HDprintf(" %02x", saved_buf[i * src_size + ENDIAN(src_size, j, endian)]);
+ printf(" %02x", saved_buf[i * src_size + ENDIAN(src_size, j, endian)]);
HDmemcpy(aligned, saved_buf + i * sizeof(int), sizeof(int));
- HDprintf(" %29d\n", *aligned);
+ printf(" %29d\n", *aligned);
- HDprintf(" dst = ");
+ printf(" dst = ");
for (j = 0; j < src_size; j++)
- HDprintf(" %02x", buf[i * src_size + ENDIAN(src_size, j, endian)]);
+ printf(" %02x", buf[i * src_size + ENDIAN(src_size, j, endian)]);
HDmemcpy(aligned, buf + i * sizeof(int), sizeof(int));
- HDprintf(" %29d\n", *aligned);
+ printf(" %29d\n", *aligned);
if (fails_this_test >= max_fails) {
HDputs(" maximum failures reached, aborting test...");
@@ -1021,43 +1021,43 @@ test_derived_flt(void)
*--------------------------------------------------------------------------*/
if (H5Tset_fields(tid2, (size_t)23, (size_t)16, (size_t)7, (size_t)0, (size_t)16) < 0) {
H5_FAILED();
- HDprintf("Can't set fields\n");
+ printf("Can't set fields\n");
goto error;
}
if (H5Tset_offset(tid2, (size_t)0) < 0) {
H5_FAILED();
- HDprintf("Can't set offset\n");
+ printf("Can't set offset\n");
goto error;
}
if (H5Tset_precision(tid2, (size_t)24) < 0) {
H5_FAILED();
- HDprintf("Can't set precision 2\n");
+ printf("Can't set precision 2\n");
goto error;
}
if (H5Tset_size(tid2, (size_t)3) < 0) {
H5_FAILED();
- HDprintf("Can't set size\n");
+ printf("Can't set size\n");
goto error;
}
if (H5Tset_ebias(tid2, (size_t)63) < 0) {
H5_FAILED();
- HDprintf("Can't set size\n");
+ printf("Can't set size\n");
goto error;
}
if (H5Tset_pad(tid2, H5T_PAD_ZERO, H5T_PAD_ZERO) < 0) {
H5_FAILED();
- HDprintf("Can't set padding\n");
+ printf("Can't set padding\n");
goto error;
}
if (H5Tcommit2(file, "new float type 2", tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't set inpad\n");
+ printf("Can't set inpad\n");
goto error;
}
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
@@ -1065,33 +1065,33 @@ test_derived_flt(void)
FAIL_PUTS_ERROR("Can't open datatype");
if (H5Tget_fields(tid2, &spos, &epos, &esize, &mpos, &msize) < 0) {
H5_FAILED();
- HDprintf("Can't get fields\n");
+ printf("Can't get fields\n");
goto error;
}
if (spos != 23 || epos != 16 || esize != 7 || mpos != 0 || msize != 16) {
H5_FAILED();
- HDprintf("Wrong field values\n");
+ printf("Wrong field values\n");
goto error;
}
if (H5Tget_precision(tid2) != 24) {
H5_FAILED();
- HDprintf("Can't get precision or wrong precision\n");
+ printf("Can't get precision or wrong precision\n");
goto error;
}
if (H5Tget_offset(tid2) != 0) {
H5_FAILED();
- HDprintf("Can't get offset or wrong offset\n");
+ printf("Can't get offset or wrong offset\n");
goto error;
}
if ((size = H5Tget_size(tid2)) != 3) {
H5_FAILED();
- HDprintf("Can't get size or wrong size\n");
+ printf("Can't get size or wrong size\n");
goto error;
}
if (H5Tget_ebias(tid2) != 63) {
H5_FAILED();
- HDprintf("Can't get exponent bias or wrong bias\n");
+ printf("Can't get exponent bias or wrong bias\n");
goto error;
}
@@ -1115,13 +1115,13 @@ test_derived_flt(void)
* the precision and exponent power. */
if (H5Tconvert(tid2, tid1, nelmts, buf, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
/* Convert data from the 1st back to the 2nd derived floating-point type. */
if (H5Tconvert(tid1, tid2, nelmts, buf, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
@@ -1145,21 +1145,21 @@ test_derived_flt(void)
if (0 == fails_this_test++) {
HDsnprintf(str, sizeof(str),
"\nTesting random sw derived floating-point -> derived floating-point conversions");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
HDfflush(stdout);
H5_FAILED();
}
- HDprintf(" test %u elmt %u: \n", 1, (unsigned)i);
+ printf(" test %u elmt %u: \n", 1, (unsigned)i);
- HDprintf(" src = ");
+ printf(" src = ");
for (j = 0; j < src_size; j++)
- HDprintf(" %02x", saved_buf[i * src_size + ENDIAN(src_size, j, endian)]);
- HDprintf("\n");
+ printf(" %02x", saved_buf[i * src_size + ENDIAN(src_size, j, endian)]);
+ printf("\n");
- HDprintf(" dst = ");
+ printf(" dst = ");
for (j = 0; j < src_size; j++)
- HDprintf(" %02x", buf[i * src_size + ENDIAN(src_size, j, endian)]);
- HDprintf("\n");
+ printf(" %02x", buf[i * src_size + ENDIAN(src_size, j, endian)]);
+ printf("\n");
if (fails_this_test >= max_fails) {
HDputs(" maximum failures reached, aborting test...");
@@ -1174,25 +1174,25 @@ test_derived_flt(void)
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Pclose(dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't close property list\n");
+ printf("Can't close property list\n");
goto error;
}
if (H5Fclose(file) < 0) {
H5_FAILED();
- HDprintf("Can't close file\n");
+ printf("Can't close file\n");
goto error;
} /* end if */
@@ -1265,25 +1265,25 @@ test_derived_integer(void)
h5_fixname(FILENAME[1], H5P_DEFAULT, filename, sizeof filename);
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf("Can't create file\n");
+ printf("Can't create file\n");
goto error;
}
if ((dxpl_id = H5Pcreate(H5P_DATASET_XFER)) < 0) {
H5_FAILED();
- HDprintf("Can't create data transfer property list\n");
+ printf("Can't create data transfer property list\n");
goto error;
}
if ((tid1 = H5Tcopy(H5T_STD_I32LE)) < 0) {
H5_FAILED();
- HDprintf("Can't copy data type\n");
+ printf("Can't copy data type\n");
goto error;
}
if ((tid2 = H5Tcopy(H5T_STD_U64LE)) < 0) {
H5_FAILED();
- HDprintf("Can't copy data type\n");
+ printf("Can't copy data type\n");
goto error;
}
@@ -1301,37 +1301,37 @@ test_derived_integer(void)
*--------------------------------------------------------------------------*/
if (H5Tset_offset(tid1, (size_t)0) < 0) {
H5_FAILED();
- HDprintf("Can't set offset\n");
+ printf("Can't set offset\n");
goto error;
}
if (H5Tset_size(tid1, (size_t)3) < 0) {
H5_FAILED();
- HDprintf("Can't set size\n");
+ printf("Can't set size\n");
goto error;
}
if (H5Tset_precision(tid1, (size_t)24) < 0) {
H5_FAILED();
- HDprintf("Can't set precision\n");
+ printf("Can't set precision\n");
goto error;
}
if (H5Tset_order(tid1, H5T_ORDER_BE) < 0) {
H5_FAILED();
- HDprintf("Can't set order\n");
+ printf("Can't set order\n");
goto error;
}
if (H5Tcommit2(file, "new integer type 1", tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't commit data type\n");
+ printf("Can't commit data type\n");
goto error;
}
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
@@ -1339,22 +1339,22 @@ test_derived_integer(void)
FAIL_PUTS_ERROR("Can't open datatype");
if (H5Tget_precision(tid1) != 24) {
H5_FAILED();
- HDprintf("Can't get precision or wrong precision\n");
+ printf("Can't get precision or wrong precision\n");
goto error;
}
if (H5Tget_offset(tid1) != 0) {
H5_FAILED();
- HDprintf("Can't get offset or wrong offset\n");
+ printf("Can't get offset or wrong offset\n");
goto error;
}
if (H5Tget_size(tid1) != 3) {
H5_FAILED();
- HDprintf("Can't get size or wrong size\n");
+ printf("Can't get size or wrong size\n");
goto error;
}
if (H5Tget_order(tid1) != H5T_ORDER_BE) {
H5_FAILED();
- HDprintf("Can't get order or wrong order\n");
+ printf("Can't get order or wrong order\n");
goto error;
}
@@ -1368,31 +1368,31 @@ test_derived_integer(void)
*--------------------------------------------------------------------------*/
if (H5Tset_precision(tid2, (size_t)48) < 0) {
H5_FAILED();
- HDprintf("Can't set precision\n");
+ printf("Can't set precision\n");
goto error;
}
if (H5Tset_offset(tid2, (size_t)10) < 0) {
H5_FAILED();
- HDprintf("Can't set offset\n");
+ printf("Can't set offset\n");
goto error;
}
if (H5Tset_sign(tid2, H5T_SGN_2) < 0) {
H5_FAILED();
- HDprintf("Can't set offset\n");
+ printf("Can't set offset\n");
goto error;
}
if (H5Tcommit2(file, "new integer type 2", tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't commit data type\n");
+ printf("Can't commit data type\n");
goto error;
}
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
@@ -1400,22 +1400,22 @@ test_derived_integer(void)
FAIL_PUTS_ERROR("Can't open datatype");
if (H5Tget_precision(tid2) != 48) {
H5_FAILED();
- HDprintf("Can't get precision or wrong precision\n");
+ printf("Can't get precision or wrong precision\n");
goto error;
}
if (H5Tget_offset(tid2) != 10) {
H5_FAILED();
- HDprintf("Can't get offset or wrong offset\n");
+ printf("Can't get offset or wrong offset\n");
goto error;
}
if (H5Tget_size(tid2) != 8) {
H5_FAILED();
- HDprintf("Can't get size or wrong size\n");
+ printf("Can't get size or wrong size\n");
goto error;
}
if (H5Tget_sign(tid2) != H5T_SGN_2) {
H5_FAILED();
- HDprintf("Can't get sign or wrong sign\n");
+ printf("Can't get sign or wrong sign\n");
goto error;
}
@@ -1439,13 +1439,13 @@ test_derived_integer(void)
* the 1st type's precision. */
if (H5Tconvert(tid1, tid2, nelmts, buf, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
/* Convert data from the 2nd back to the 1st derived integer type. */
if (H5Tconvert(tid2, tid1, nelmts, buf, NULL, dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't convert data\n");
+ printf("Can't convert data\n");
goto error;
}
@@ -1461,21 +1461,21 @@ test_derived_integer(void)
if (0 == fails_this_test++) {
HDsnprintf(str, sizeof(str),
"\nTesting random sw derived integer -> derived integer conversions");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
HDfflush(stdout);
H5_FAILED();
}
- HDprintf(" test %u elmt %u: \n", 1, (unsigned)i);
+ printf(" test %u elmt %u: \n", 1, (unsigned)i);
- HDprintf(" src = ");
+ printf(" src = ");
for (j = 0; j < src_size; j++)
- HDprintf(" %02x", saved_buf[i * src_size + ENDIAN(src_size, j, endian)]);
- HDprintf("\n");
+ printf(" %02x", saved_buf[i * src_size + ENDIAN(src_size, j, endian)]);
+ printf("\n");
- HDprintf(" dst = ");
+ printf(" dst = ");
for (j = 0; j < src_size; j++)
- HDprintf(" %02x", buf[i * src_size + ENDIAN(src_size, j, endian)]);
- HDprintf("\n");
+ printf(" %02x", buf[i * src_size + ENDIAN(src_size, j, endian)]);
+ printf("\n");
if (fails_this_test >= max_fails) {
HDputs(" maximum failures reached, aborting test...");
@@ -1485,25 +1485,25 @@ test_derived_integer(void)
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Pclose(dxpl_id) < 0) {
H5_FAILED();
- HDprintf("Can't close property list\n");
+ printf("Can't close property list\n");
goto error;
}
if (H5Fclose(file) < 0) {
H5_FAILED();
- HDprintf("Can't close file\n");
+ printf("Can't close file\n");
goto error;
} /* end if */
@@ -1692,14 +1692,14 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
/* Sanity checks */
if (OTHER == src_type || OTHER == dst_type) {
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, src_type_name, dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
H5_FAILED();
HDputs(" Unknown data type.");
goto error;
}
else {
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, src_type_name, dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
HDfflush(stdout);
fails_this_test = 0;
}
@@ -2404,52 +2404,52 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
/* Print errors */
if (0 == fails_this_test++)
H5_FAILED();
- HDprintf(" elmt %u\n", (unsigned)j);
+ printf(" elmt %u\n", (unsigned)j);
- HDprintf(" src = ");
+ printf(" src = ");
for (k = 0; k < src_size; k++)
- HDprintf(" %02x", saved[j * src_size + ENDIAN(src_size, k, endian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
+ printf(" %02x", saved[j * src_size + ENDIAN(src_size, k, endian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
switch (src_type) {
case INT_SCHAR:
HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
- HDprintf(" %29d\n", (int)*((signed char *)aligned));
+ printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
- HDprintf(" %29u\n", (unsigned)*((unsigned char *)aligned));
+ printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
- HDprintf(" %29hd\n", *((short *)aligned));
+ printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
- HDprintf(" %29hu\n", *((unsigned short *)aligned));
+ printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
- HDprintf(" %29d\n", *((int *)aligned));
+ printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
- HDprintf(" %29u\n", *((unsigned *)aligned));
+ printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
- HDprintf(" %29ld\n", *((long *)aligned));
+ printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
- HDprintf(" %29lu\n", *((unsigned long *)aligned));
+ printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
- HDfprintf(stdout, " %29lld\n", *((long long *)aligned));
+ fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
- HDfprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
+ fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
case FLT_DOUBLE:
@@ -2460,50 +2460,50 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
break;
}
- HDprintf(" dst = ");
+ printf(" dst = ");
for (k = 0; k < dst_size; k++)
- HDprintf(" %02x", buf[j * dst_size + ENDIAN(dst_size, k, endian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
+ printf(" %02x", buf[j * dst_size + ENDIAN(dst_size, k, endian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
switch (dst_type) {
case INT_SCHAR:
HDmemcpy(aligned, buf + j * sizeof(signed char), sizeof(signed char));
- HDprintf(" %29d\n", (int)*((signed char *)aligned));
+ printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
HDmemcpy(aligned, buf + j * sizeof(unsigned char), sizeof(unsigned char));
- HDprintf(" %29u\n", (unsigned)*((unsigned char *)aligned));
+ printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
HDmemcpy(aligned, buf + j * sizeof(short), sizeof(short));
- HDprintf(" %29hd\n", *((short *)aligned));
+ printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
HDmemcpy(aligned, buf + j * sizeof(unsigned short), sizeof(unsigned short));
- HDprintf(" %29hu\n", *((unsigned short *)aligned));
+ printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
HDmemcpy(aligned, buf + j * sizeof(int), sizeof(int));
- HDprintf(" %29d\n", *((int *)aligned));
+ printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
HDmemcpy(aligned, buf + j * sizeof(unsigned), sizeof(unsigned));
- HDprintf(" %29u\n", *((unsigned *)aligned));
+ printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
HDmemcpy(aligned, buf + j * sizeof(long), sizeof(long));
- HDprintf(" %29ld\n", *((long *)aligned));
+ printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
HDmemcpy(aligned, buf + j * sizeof(unsigned long), sizeof(unsigned long));
- HDprintf(" %29lu\n", *((unsigned long *)aligned));
+ printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
HDmemcpy(aligned, buf + j * sizeof(long long), sizeof(long long));
- HDfprintf(stdout, " %29lld\n", *((long long *)aligned));
+ fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
HDmemcpy(aligned, buf + j * sizeof(long long), sizeof(unsigned long long));
- HDfprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
+ fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
case FLT_DOUBLE:
@@ -2514,40 +2514,40 @@ test_conv_int_1(const char *name, hid_t src, hid_t dst)
break;
}
- HDprintf(" ans = ");
+ printf(" ans = ");
for (k = 0; k < dst_size; k++)
- HDprintf(" %02x", hw[ENDIAN(dst_size, k, endian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
+ printf(" %02x", hw[ENDIAN(dst_size, k, endian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
switch (dst_type) {
case INT_SCHAR:
- HDprintf(" %29d\n", (int)*((signed char *)((void *)hw)));
+ printf(" %29d\n", (int)*((signed char *)((void *)hw)));
break;
case INT_UCHAR:
- HDprintf(" %29u\n", (unsigned)*((unsigned char *)((void *)hw)));
+ printf(" %29u\n", (unsigned)*((unsigned char *)((void *)hw)));
break;
case INT_SHORT:
- HDprintf(" %29hd\n", *((short *)((void *)hw)));
+ printf(" %29hd\n", *((short *)((void *)hw)));
break;
case INT_USHORT:
- HDprintf(" %29hu\n", *((unsigned short *)((void *)hw)));
+ printf(" %29hu\n", *((unsigned short *)((void *)hw)));
break;
case INT_INT:
- HDprintf(" %29d\n", *((int *)((void *)hw)));
+ printf(" %29d\n", *((int *)((void *)hw)));
break;
case INT_UINT:
- HDprintf(" %29u\n", *((unsigned *)((void *)hw)));
+ printf(" %29u\n", *((unsigned *)((void *)hw)));
break;
case INT_LONG:
- HDprintf(" %29ld\n", *((long *)((void *)hw)));
+ printf(" %29ld\n", *((long *)((void *)hw)));
break;
case INT_ULONG:
- HDprintf(" %29lu\n", *((unsigned long *)((void *)hw)));
+ printf(" %29lu\n", *((unsigned long *)((void *)hw)));
break;
case INT_LLONG:
- HDfprintf(stdout, " %29lld\n", *((long long *)((void *)hw)));
+ fprintf(stdout, " %29lld\n", *((long long *)((void *)hw)));
break;
case INT_ULLONG:
- HDfprintf(stdout, " %29llu\n", *((unsigned long long *)((void *)hw)));
+ fprintf(stdout, " %29llu\n", *((unsigned long long *)((void *)hw)));
break;
case FLT_FLOAT:
case FLT_DOUBLE:
@@ -2621,7 +2621,7 @@ test_conv_int_2(void)
hid_t src_type, dst_type;
char *buf;
- HDprintf("%-70s", "Testing overlap calculations");
+ printf("%-70s", "Testing overlap calculations");
HDfflush(stdout);
buf = (char *)HDcalloc(TMP_BUF_DIM1, TMP_BUF_DIM2);
@@ -2911,7 +2911,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
HDsnprintf(str, sizeof(str), "Testing %s denormalized %s -> %s conversions", name, src_type_name,
dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
H5_FAILED();
HDputs(" Unknown data type.");
goto error;
@@ -2930,7 +2930,7 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
HDsnprintf(str, sizeof(str), "Testing %s denormalized %s -> %s conversions", name, src_type_name,
dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
HDfflush(stdout);
fails_this_test = 0;
}
@@ -3220,63 +3220,63 @@ test_conv_flt_1(const char *name, int run_test, hid_t src, hid_t dst)
H5_WARNING();
}
}
- HDprintf(" elmt %u\n", (unsigned)j);
+ printf(" elmt %u\n", (unsigned)j);
- HDprintf(" src =");
+ printf(" src =");
for (k = 0; k < src_size; k++)
- HDprintf(" %02x", saved[j * src_size + ENDIAN(src_size, k, sendian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
+ printf(" %02x", saved[j * src_size + ENDIAN(src_size, k, sendian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
if (FLT_FLOAT == src_type) {
float x = 0.0;
HDmemcpy(&x, &saved[j * src_size], sizeof(float));
- HDprintf(" %29.20e\n", (double)x);
+ printf(" %29.20e\n", (double)x);
}
else if (FLT_DOUBLE == src_type) {
double x = 0.0;
HDmemcpy(&x, &saved[j * src_size], sizeof(double));
- HDprintf(" %29.20e\n", x);
+ printf(" %29.20e\n", x);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else {
long double x = 0.0L;
HDmemcpy(&x, &saved[j * src_size], sizeof(long double));
- HDfprintf(stdout, " %29.20Le\n", x);
+ fprintf(stdout, " %29.20Le\n", x);
#endif
}
- HDprintf(" dst =");
+ printf(" dst =");
for (k = 0; k < dst_size; k++)
- HDprintf(" %02x", buf[j * dst_size + ENDIAN(dst_size, k, dendian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
+ printf(" %02x", buf[j * dst_size + ENDIAN(dst_size, k, dendian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
if (FLT_FLOAT == dst_type) {
float x = 0.0;
HDmemcpy(&x, &buf[j * dst_size], sizeof(float));
- HDprintf(" %29.20e\n", (double)x);
+ printf(" %29.20e\n", (double)x);
}
else if (FLT_DOUBLE == dst_type) {
double x = 0.0;
HDmemcpy(&x, &buf[j * dst_size], sizeof(double));
- HDprintf(" %29.20e\n", x);
+ printf(" %29.20e\n", x);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
}
else {
long double x = 0.0L;
HDmemcpy(&x, &buf[j * dst_size], sizeof(long double));
- HDfprintf(stdout, " %29.20Le\n", x);
+ fprintf(stdout, " %29.20Le\n", x);
#endif
}
- HDprintf(" ans =");
+ printf(" ans =");
for (k = 0; k < dst_size; k++)
- HDprintf(" %02x", hw[ENDIAN(dst_size, k, dendian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
+ printf(" %02x", hw[ENDIAN(dst_size, k, dendian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
if (FLT_FLOAT == dst_type)
- HDprintf(" %29.20e\n", (double)hw_f);
+ printf(" %29.20e\n", (double)hw_f);
else if (FLT_DOUBLE == dst_type)
- HDprintf(" %29.20e\n", hw_d);
+ printf(" %29.20e\n", hw_d);
#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
else
- HDfprintf(stdout, " %29.20Le\n", hw_ld);
+ fprintf(stdout, " %29.20Le\n", hw_ld);
#endif
/* If the source is normalized values, print out error message; if it is
@@ -3539,7 +3539,7 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
/* Sanity checks */
if (OTHER == src_type || OTHER == dst_type) {
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, src_type_name, dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
H5_FAILED();
HDputs(" Unknown data type.");
goto error;
@@ -3550,7 +3550,7 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
INT_LLONG == src_type || INT_ULLONG == src_type) &&
(FLT_FLOAT != dst_type && FLT_DOUBLE != dst_type && FLT_LDOUBLE != dst_type)) {
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, src_type_name, dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
H5_FAILED();
HDputs(" 1. Not an integer-float conversion.");
goto error;
@@ -3561,7 +3561,7 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
INT_INT != dst_type && INT_UINT != dst_type && INT_LONG != dst_type && INT_ULONG != dst_type &&
INT_LLONG != dst_type && INT_ULLONG != dst_type)) {
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, src_type_name, dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
H5_FAILED();
HDputs(" 2. Not a float-integer conversion.");
goto error;
@@ -3571,7 +3571,7 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
INT_INT == src_type || INT_UINT == src_type || INT_LONG == src_type || INT_ULONG == src_type ||
INT_LLONG == src_type || INT_ULLONG == src_type) {
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, src_type_name, dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
HDfflush(stdout);
fails_this_test = 0;
}
@@ -3585,7 +3585,7 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
else
HDsnprintf(str, sizeof(str), "Testing %s special %s -> %s conversions", name, src_type_name,
dst_type_name);
- HDprintf("%-70s", str);
+ printf("%-70s", str);
HDfflush(stdout);
fails_this_test = 0;
}
@@ -4321,64 +4321,64 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
H5_WARNING();
}
}
- HDprintf(" elmt %u: \n", (unsigned)j);
+ printf(" elmt %u: \n", (unsigned)j);
- HDprintf(" src = ");
+ printf(" src = ");
for (k = 0; k < src_size; k++)
- HDprintf(" %02x", saved[j * src_size + ENDIAN(src_size, k, sendian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
+ printf(" %02x", saved[j * src_size + ENDIAN(src_size, k, sendian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)dst_size - (ssize_t)src_size)), "");
switch (src_type) {
case INT_SCHAR:
HDmemcpy(aligned, saved + j * sizeof(signed char), sizeof(signed char));
- HDprintf(" %29d\n", (int)*((signed char *)aligned));
+ printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
HDmemcpy(aligned, saved + j * sizeof(unsigned char), sizeof(unsigned char));
- HDprintf(" %29u\n", (unsigned)*((unsigned char *)aligned));
+ printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
HDmemcpy(aligned, saved + j * sizeof(short), sizeof(short));
- HDprintf(" %29hd\n", *((short *)aligned));
+ printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
HDmemcpy(aligned, saved + j * sizeof(unsigned short), sizeof(unsigned short));
- HDprintf(" %29hu\n", *((unsigned short *)aligned));
+ printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
HDmemcpy(aligned, saved + j * sizeof(int), sizeof(int));
- HDprintf(" %29d\n", *((int *)aligned));
+ printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
HDmemcpy(aligned, saved + j * sizeof(unsigned), sizeof(unsigned));
- HDprintf(" %29u\n", *((unsigned *)aligned));
+ printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
HDmemcpy(aligned, saved + j * sizeof(long), sizeof(long));
- HDprintf(" %29ld\n", *((long *)aligned));
+ printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
HDmemcpy(aligned, saved + j * sizeof(unsigned long), sizeof(unsigned long));
- HDprintf(" %29lu\n", *((unsigned long *)aligned));
+ printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
HDmemcpy(aligned, saved + j * sizeof(long long), sizeof(long long));
- HDfprintf(stdout, " %29lld\n", *((long long *)aligned));
+ fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
HDmemcpy(aligned, saved + j * sizeof(unsigned long long), sizeof(unsigned long long));
- HDfprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
+ fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
HDmemcpy(aligned, saved + j * sizeof(float), sizeof(float));
- HDprintf(" %29f\n", (double)*((float *)aligned));
+ printf(" %29f\n", (double)*((float *)aligned));
break;
case FLT_DOUBLE:
HDmemcpy(aligned, saved + j * sizeof(double), sizeof(double));
- HDprintf(" %29f\n", *((double *)aligned));
+ printf(" %29f\n", *((double *)aligned));
break;
case FLT_LDOUBLE:
HDmemcpy(aligned, saved + j * sizeof(long double), sizeof(long double));
- HDprintf(" %29Lf\n", *((long double *)aligned));
+ printf(" %29Lf\n", *((long double *)aligned));
break;
case OTHER:
default:
@@ -4386,62 +4386,62 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
break;
}
- HDprintf(" dst = ");
+ printf(" dst = ");
for (k = 0; k < dst_size; k++)
- HDprintf(" %02x", buf[j * dst_size + ENDIAN(dst_size, k, dendian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
+ printf(" %02x", buf[j * dst_size + ENDIAN(dst_size, k, dendian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
switch (dst_type) {
case INT_SCHAR:
HDmemcpy(aligned, buf + j * sizeof(signed char), sizeof(signed char));
- HDprintf(" %29d\n", (int)*((signed char *)aligned));
+ printf(" %29d\n", (int)*((signed char *)aligned));
break;
case INT_UCHAR:
HDmemcpy(aligned, buf + j * sizeof(unsigned char), sizeof(unsigned char));
- HDprintf(" %29u\n", (unsigned)*((unsigned char *)aligned));
+ printf(" %29u\n", (unsigned)*((unsigned char *)aligned));
break;
case INT_SHORT:
HDmemcpy(aligned, buf + j * sizeof(short), sizeof(short));
- HDprintf(" %29hd\n", *((short *)aligned));
+ printf(" %29hd\n", *((short *)aligned));
break;
case INT_USHORT:
HDmemcpy(aligned, buf + j * sizeof(unsigned short), sizeof(unsigned short));
- HDprintf(" %29hu\n", *((unsigned short *)aligned));
+ printf(" %29hu\n", *((unsigned short *)aligned));
break;
case INT_INT:
HDmemcpy(aligned, buf + j * sizeof(int), sizeof(int));
- HDprintf(" %29d\n", *((int *)aligned));
+ printf(" %29d\n", *((int *)aligned));
break;
case INT_UINT:
HDmemcpy(aligned, buf + j * sizeof(unsigned), sizeof(unsigned));
- HDprintf(" %29u\n", *((unsigned *)aligned));
+ printf(" %29u\n", *((unsigned *)aligned));
break;
case INT_LONG:
HDmemcpy(aligned, buf + j * sizeof(long), sizeof(long));
- HDprintf(" %29ld\n", *((long *)aligned));
+ printf(" %29ld\n", *((long *)aligned));
break;
case INT_ULONG:
HDmemcpy(aligned, buf + j * sizeof(unsigned long), sizeof(unsigned long));
- HDprintf(" %29lu\n", *((unsigned long *)aligned));
+ printf(" %29lu\n", *((unsigned long *)aligned));
break;
case INT_LLONG:
HDmemcpy(aligned, buf + j * sizeof(long long), sizeof(long long));
- HDfprintf(stdout, " %29lld\n", *((long long *)aligned));
+ fprintf(stdout, " %29lld\n", *((long long *)aligned));
break;
case INT_ULLONG:
HDmemcpy(aligned, buf + j * sizeof(unsigned long long), sizeof(unsigned long long));
- HDfprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
+ fprintf(stdout, " %29llu\n", *((unsigned long long *)aligned));
break;
case FLT_FLOAT:
HDmemcpy(aligned, buf + j * sizeof(float), sizeof(float));
- HDprintf(" %29f\n", (double)*((float *)aligned));
+ printf(" %29f\n", (double)*((float *)aligned));
break;
case FLT_DOUBLE:
HDmemcpy(aligned, buf + j * sizeof(double), sizeof(double));
- HDprintf(" %29f\n", *((double *)aligned));
+ printf(" %29f\n", *((double *)aligned));
break;
case FLT_LDOUBLE:
HDmemcpy(aligned, buf + j * sizeof(long double), sizeof(long double));
- HDprintf(" %29Lf\n", *((long double *)aligned));
+ printf(" %29Lf\n", *((long double *)aligned));
break;
case OTHER:
default:
@@ -4449,49 +4449,49 @@ test_conv_int_fp(const char *name, int run_test, hid_t src, hid_t dst)
break;
}
- HDprintf(" and = ");
+ printf(" and = ");
for (k = 0; k < dst_size; k++)
- HDprintf(" %02x", hw[ENDIAN(dst_size, k, dendian)]);
- HDprintf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
+ printf(" %02x", hw[ENDIAN(dst_size, k, dendian)]);
+ printf("%*s", (int)(3 * MAX(0, (ssize_t)src_size - (ssize_t)dst_size)), "");
switch (dst_type) {
case INT_SCHAR:
- HDprintf(" %29d\n", (int)*((signed char *)((void *)hw)));
+ printf(" %29d\n", (int)*((signed char *)((void *)hw)));
break;
case INT_UCHAR:
- HDprintf(" %29u\n", (unsigned)*((unsigned char *)((void *)hw)));
+ printf(" %29u\n", (unsigned)*((unsigned char *)((void *)hw)));
break;
case INT_SHORT:
- HDprintf(" %29hd\n", *((short *)((void *)hw)));
+ printf(" %29hd\n", *((short *)((void *)hw)));
break;
case INT_USHORT:
- HDprintf(" %29hu\n", *((unsigned short *)((void *)hw)));
+ printf(" %29hu\n", *((unsigned short *)((void *)hw)));
break;
case INT_INT:
- HDprintf(" %29d\n", *((int *)((void *)hw)));
+ printf(" %29d\n", *((int *)((void *)hw)));
break;
case INT_UINT:
- HDprintf(" %29u\n", *((unsigned int *)((void *)hw)));
+ printf(" %29u\n", *((unsigned int *)((void *)hw)));
break;
case INT_LONG:
- HDprintf(" %29ld\n", *((long *)((void *)hw)));
+ printf(" %29ld\n", *((long *)((void *)hw)));
break;
case INT_ULONG:
- HDprintf(" %29lu\n", *((unsigned long *)((void *)hw)));
+ printf(" %29lu\n", *((unsigned long *)((void *)hw)));
break;
case INT_LLONG:
- HDfprintf(stdout, " %29lld\n", *((long long *)((void *)hw)));
+ fprintf(stdout, " %29lld\n", *((long long *)((void *)hw)));
break;
case INT_ULLONG:
- HDfprintf(stdout, " %29llu\n", *((unsigned long long *)((void *)hw)));
+ fprintf(stdout, " %29llu\n", *((unsigned long long *)((void *)hw)));
break;
case FLT_FLOAT:
- HDprintf(" %29f\n", (double)*((float *)((void *)hw)));
+ printf(" %29f\n", (double)*((float *)((void *)hw)));
break;
case FLT_DOUBLE:
- HDprintf(" %29f\n", *((double *)((void *)hw)));
+ printf(" %29f\n", *((double *)((void *)hw)));
break;
case FLT_LDOUBLE:
- HDprintf(" %29Lf\n", *((long double *)((void *)hw)));
+ printf(" %29Lf\n", *((long double *)((void *)hw)));
break;
case OTHER:
default:
@@ -4853,7 +4853,7 @@ run_fp_tests(const char *name)
HDsnprintf(str, sizeof(str), "Testing %s denormalized %s -> %s conversions", name, "long double",
"float");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to the conversion problem on IBM ppc64le cpu.");
}
@@ -4877,7 +4877,7 @@ run_fp_tests(const char *name)
HDsnprintf(str, sizeof(str), "Testing %s special %s -> %s conversions", name, "long double",
"float or double");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to the conversion problem on IBM ppc64le cpu.");
}
@@ -4956,7 +4956,7 @@ run_int_fp_conv(const char *name)
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, "(unsigned) long",
"long double");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to the special algorithm of hardware conversion.");
}
@@ -4970,7 +4970,7 @@ run_int_fp_conv(const char *name)
char str[256]; /*hello string */
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, "long long", "long double");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to compiler error in handling conversion.");
}
@@ -4983,7 +4983,7 @@ run_int_fp_conv(const char *name)
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, "unsigned long long",
"long double");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to compiler not handling conversion.");
}
@@ -5075,7 +5075,7 @@ run_fp_int_conv(const char *name)
HDsnprintf(str, sizeof(str), "Testing %s special %s -> %s conversions", name, "long double",
"signed and unsigned char, short, int, long");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to the conversion problem on IBM ppc64le cpu.");
#endif
@@ -5098,7 +5098,7 @@ run_fp_int_conv(const char *name)
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, "long double",
"(unsigned) long");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to the special algorithm of hardware conversion.");
}
@@ -5113,7 +5113,7 @@ run_fp_int_conv(const char *name)
char str[256]; /*string */
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, "long double", "long long");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to hardware conversion error.");
}
@@ -5126,7 +5126,7 @@ run_fp_int_conv(const char *name)
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions", name, "long double",
"unsigned long long");
- HDprintf("%-70s", str);
+ printf("%-70s", str);
SKIPPED();
HDputs(" Test skipped due to hardware conversion error.");
}
@@ -5163,7 +5163,7 @@ main(void)
reset_hdf5();
if (ALIGNMENT)
- HDprintf("Testing non-aligned conversions (ALIGNMENT=%d)....\n", ALIGNMENT);
+ printf("Testing non-aligned conversions (ALIGNMENT=%d)....\n", ALIGNMENT);
/* Do the tests */
@@ -5229,9 +5229,9 @@ main(void)
h5_restore_err();
if (nerrors) {
- HDprintf("***** %lu FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %lu FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
- HDprintf("All data type tests passed.\n");
+ printf("All data type tests passed.\n");
return 0;
}
diff --git a/test/dtransform.c b/test/dtransform.c
index 9bbac8f..d435b1f 100644
--- a/test/dtransform.c
+++ b/test/dtransform.c
@@ -80,7 +80,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22,
(((VAR1)[i][j] <= (TYPE)((VAR2)[i][j])) && \
(((VAR1)[i][j] + (TOL)) > (TYPE)((VAR2)[i][j]))))) { \
H5_FAILED(); \
- HDfprintf(stderr, " ERROR: Conversion failed to match computed data\n"); \
+ fprintf(stderr, " ERROR: Conversion failed to match computed data\n"); \
goto error; \
} \
} \
@@ -96,7 +96,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22,
if (!(((VAR1)[i][j] <= ((TYPE)(VAR2)[i][j] + (TOL))) && \
((VAR1)[i][j] >= ((TYPE)(VAR2)[i][j] - (TOL))))) { \
H5_FAILED(); \
- HDfprintf(stderr, " ERROR: Conversion failed to match computed data\n"); \
+ fprintf(stderr, " ERROR: Conversion failed to match computed data\n"); \
goto error; \
} \
} \
@@ -111,7 +111,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22,
for (j = 0; j < COLS; j++) { \
if ((VAR1)[i][j] != (VAR2)[i][j]) { \
H5_FAILED(); \
- HDfprintf(stderr, " ERROR: data failed to match computed data\n"); \
+ fprintf(stderr, " ERROR: data failed to match computed data\n"); \
goto error; \
} \
} \
@@ -307,7 +307,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22,
} \
else { \
H5_FAILED(); \
- HDfprintf(stderr, " ERROR: Data transform allowed invalid TRANSFORM transform to be set\n"); \
+ fprintf(stderr, " ERROR: Data transform allowed invalid TRANSFORM transform to be set\n"); \
goto error; \
} \
} while (0)
diff --git a/test/dtypes.c b/test/dtypes.c
index f6f99da..4de3117 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -70,8 +70,8 @@
FAIL_STACK_ERROR; \
if ((NMEMBS) != H5I_nmembers(H5I_DATATYPE)) { \
H5_FAILED(); \
- HDprintf(" #dtype ids expected: %lld; found: %lld\n", (long long)(NMEMBS), \
- (long long)H5I_nmembers(H5I_DATATYPE)); \
+ printf(" #dtype ids expected: %lld; found: %lld\n", (long long)(NMEMBS), \
+ (long long)H5I_nmembers(H5I_DATATYPE)); \
goto error; \
} \
} while (0)
@@ -829,11 +829,11 @@ test_compound_2(void)
s_ptr->c[1] != d_ptr->c[1] || s_ptr->c[2] != d_ptr->c[2] || s_ptr->c[3] != d_ptr->c[3] ||
s_ptr->d != d_ptr->d || s_ptr->e != d_ptr->e) {
H5_FAILED();
- HDprintf(" i=%d\n", i);
- HDprintf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0],
- s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e);
- HDprintf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", d_ptr->a, d_ptr->b, d_ptr->c[0],
- d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->d, d_ptr->e);
+ printf(" i=%d\n", i);
+ printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0],
+ s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e);
+ printf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", d_ptr->a, d_ptr->b, d_ptr->c[0],
+ d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->d, d_ptr->e);
goto error;
}
}
@@ -953,11 +953,11 @@ test_compound_3(void)
if (s_ptr->a != d_ptr->a || s_ptr->c[0] != d_ptr->c[0] || s_ptr->c[1] != d_ptr->c[1] ||
s_ptr->c[2] != d_ptr->c[2] || s_ptr->c[3] != d_ptr->c[3] || s_ptr->e != d_ptr->e) {
H5_FAILED();
- HDprintf(" i=%d\n", i);
- HDprintf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0],
- s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e);
- HDprintf(" dst={a=%d, c=[%d,%d,%d,%d], e=%d\n", d_ptr->a, d_ptr->c[0], d_ptr->c[1],
- d_ptr->c[2], d_ptr->c[3], d_ptr->e);
+ printf(" i=%d\n", i);
+ printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0],
+ s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e);
+ printf(" dst={a=%d, c=[%d,%d,%d,%d], e=%d\n", d_ptr->a, d_ptr->c[0], d_ptr->c[1], d_ptr->c[2],
+ d_ptr->c[3], d_ptr->e);
goto error;
}
}
@@ -1083,11 +1083,11 @@ test_compound_4(void)
s_ptr->c[1] != d_ptr->c[1] || s_ptr->c[2] != d_ptr->c[2] || s_ptr->c[3] != d_ptr->c[3] ||
s_ptr->d != d_ptr->d || s_ptr->e != d_ptr->e) {
H5_FAILED();
- HDprintf(" i=%d\n", i);
- HDprintf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0],
- s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e);
- HDprintf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", d_ptr->a, d_ptr->b, d_ptr->c[0],
- d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->d, d_ptr->e);
+ printf(" i=%d\n", i);
+ printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0],
+ s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e);
+ printf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", d_ptr->a, d_ptr->b, d_ptr->c[0],
+ d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->d, d_ptr->e);
goto error;
}
}
@@ -1299,9 +1299,9 @@ test_compound_6(void)
d_ptr = ((struct dt *)((void *)buf)) + i;
if (s_ptr->b != d_ptr->b || s_ptr->d != d_ptr->d) {
H5_FAILED();
- HDprintf(" i=%d\n", i);
- HDprintf(" src={b=%d, d=%d\n", (int)s_ptr->b, (int)s_ptr->d);
- HDprintf(" dst={b=%ld, d=%ld\n", d_ptr->b, d_ptr->d);
+ printf(" i=%d\n", i);
+ printf(" src={b=%d, d=%d\n", (int)s_ptr->b, (int)s_ptr->d);
+ printf(" dst={b=%ld, d=%ld\n", d_ptr->b, d_ptr->d);
goto error;
}
}
@@ -1367,43 +1367,43 @@ test_compound_7(void)
if ((tid1 = H5Tcreate(H5T_COMPOUND, sizeof(struct s1))) < 0) {
H5_FAILED();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "a", HOFFSET(struct s1, a), H5T_NATIVE_INT) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'a'\n");
+ printf("Can't insert field 'a'\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "b", HOFFSET(struct s1, b), H5T_NATIVE_FLOAT) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'b'\n");
+ printf("Can't insert field 'b'\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "c", HOFFSET(struct s1, c), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'c'\n");
+ printf("Can't insert field 'c'\n");
goto error;
} /* end if */
if (H5Tget_size(tid1) != sizeof(struct s1)) {
H5_FAILED();
- HDprintf("Incorrect size for struct 1\n");
+ printf("Incorrect size for struct 1\n");
goto error;
} /* end if */
if ((tid2 = H5Tcopy(tid1)) < 0) {
H5_FAILED();
- HDprintf("Can't copy datatype\n");
+ printf("Can't copy datatype\n");
goto error;
} /* end if */
if (H5Tget_size(tid2) == sizeof(struct s2)) {
H5_FAILED();
- HDprintf("Incorrect size for struct 2\n");
+ printf("Incorrect size for struct 2\n");
goto error;
} /* end if */
@@ -1415,7 +1415,7 @@ test_compound_7(void)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf("Inserted field 'd'?\n");
+ printf("Inserted field 'd'?\n");
goto error;
} /* end if */
@@ -1427,33 +1427,33 @@ test_compound_7(void)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf("Shrunk compound type?\n");
+ printf("Shrunk compound type?\n");
goto error;
} /* end if */
/* Increase compound type size and try inserting field again */
if (H5Tset_size(tid2, sizeof(struct s2)) < 0) {
H5_FAILED();
- HDprintf("Can't increase size for compound type\n");
+ printf("Can't increase size for compound type\n");
goto error;
} /* end if */
if (H5Tinsert(tid2, "d", HOFFSET(struct s2, d), H5T_NATIVE_DOUBLE) < 0) {
H5_FAILED();
- HDprintf("Can't expand compound datatype\n");
+ printf("Can't expand compound datatype\n");
goto error;
} /* end if */
if (H5Tget_size(tid2) != sizeof(struct s2)) {
H5_FAILED();
- HDprintf("Incorrect size for struct 2\n");
+ printf("Incorrect size for struct 2\n");
goto error;
} /* end if */
/* Release resources */
if (H5Tclose(tid1) < 0 || H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatypes\n");
+ printf("Can't close datatypes\n");
goto error;
} /* end if */
@@ -1514,21 +1514,21 @@ test_compound_8(void)
if ((tid1 = H5Tcreate(H5T_COMPOUND, sizeof(struct s1))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "a", HOFFSET(struct s1, a), H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'a'\n");
+ printf("Can't insert field 'a'\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "b", HOFFSET(struct s1, b), H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'b'\n");
+ printf("Can't insert field 'b'\n");
goto error;
} /* end if */
@@ -1536,7 +1536,7 @@ test_compound_8(void)
if ((tid1_copy = H5Tcopy(tid1)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't copy type #1\n");
+ printf("Can't copy type #1\n");
goto error;
} /* end if */
@@ -1544,14 +1544,14 @@ test_compound_8(void)
if (H5Tpack(tid1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't pack the compound datatype\n");
+ printf("Can't pack the compound datatype\n");
goto error;
} /* end if */
if (H5Tlock(tid1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't lock the compound datatype\n");
+ printf("Can't lock the compound datatype\n");
goto error;
} /* end if */
@@ -1559,7 +1559,7 @@ test_compound_8(void)
if (H5Tpack(tid1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't pack the compound datatype for second time\n");
+ printf("Can't pack the compound datatype for second time\n");
goto error;
} /* end if */
@@ -1567,14 +1567,14 @@ test_compound_8(void)
if ((tsize = H5Tget_size(tid1)) == 0) {
H5_FAILED();
AT();
- HDprintf("Can't get size of the compound datatype\n");
+ printf("Can't get size of the compound datatype\n");
goto error;
} /* end if */
if (tsize != (sizeof(char) + sizeof(int))) {
H5_FAILED();
AT();
- HDprintf("The size of the packed compound datatype is incorrect\n");
+ printf("The size of the packed compound datatype is incorrect\n");
goto error;
} /* end if */
@@ -1585,14 +1585,14 @@ test_compound_8(void)
if ((tid2 = H5Tcreate(H5T_COMPOUND, sizeof(struct s2))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(tid2, "c", HOFFSET(struct s2, c), H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c'\n");
+ printf("Can't insert field 'c'\n");
goto error;
} /* end if */
@@ -1600,7 +1600,7 @@ test_compound_8(void)
if (H5Tinsert(tid2, "d", HOFFSET(struct s2, d), tid1_copy) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'd'\n");
+ printf("Can't insert field 'd'\n");
goto error;
} /* end if */
@@ -1608,7 +1608,7 @@ test_compound_8(void)
if ((tid3 = H5Tcopy(tid2)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't copy type #2\n");
+ printf("Can't copy type #2\n");
goto error;
} /* end if */
@@ -1616,7 +1616,7 @@ test_compound_8(void)
if ((tid2_copy = H5Tcopy(tid2)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't copy type #2\n");
+ printf("Can't copy type #2\n");
goto error;
} /* end if */
@@ -1624,14 +1624,14 @@ test_compound_8(void)
if (H5Tpack(tid2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't pack the compound datatype\n");
+ printf("Can't pack the compound datatype\n");
goto error;
} /* end if */
if (H5Tlock(tid2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't lock the compound datatype\n");
+ printf("Can't lock the compound datatype\n");
goto error;
} /* end if */
@@ -1639,7 +1639,7 @@ test_compound_8(void)
if (H5Tpack(tid2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't pack the compound datatype for second time\n");
+ printf("Can't pack the compound datatype for second time\n");
goto error;
} /* end if */
@@ -1647,7 +1647,7 @@ test_compound_8(void)
if (H5Tlock(tid3) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't lock the compound datatype\n");
+ printf("Can't lock the compound datatype\n");
goto error;
} /* end if */
@@ -1660,7 +1660,7 @@ test_compound_8(void)
if (ret >= 0) {
H5_FAILED();
AT();
- HDprintf("Packing locked datatype worked?\n");
+ printf("Packing locked datatype worked?\n");
goto error;
} /* end if */
@@ -1668,14 +1668,14 @@ test_compound_8(void)
if ((tsize = H5Tget_size(tid2)) == 0) {
H5_FAILED();
AT();
- HDprintf("Can't get size of the compound datatype\n");
+ printf("Can't get size of the compound datatype\n");
goto error;
} /* end if */
if (tsize != (sizeof(char) + sizeof(char) + sizeof(int))) {
H5_FAILED();
AT();
- HDprintf("The size of the packed compound datatype is incorrect: tsize = %zu\n", tsize);
+ printf("The size of the packed compound datatype is incorrect: tsize = %zu\n", tsize);
goto error;
} /* end if */
@@ -1686,7 +1686,7 @@ test_compound_8(void)
if ((arr_tid = H5Tarray_create2(tid2_copy, 1, dims)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create an array datatype\n");
+ printf("Can't create an array datatype\n");
goto error;
} /* end if */
@@ -1694,7 +1694,7 @@ test_compound_8(void)
if (H5Tpack(arr_tid) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't pack the array datatype\n");
+ printf("Can't pack the array datatype\n");
goto error;
} /* end if */
@@ -1702,35 +1702,35 @@ test_compound_8(void)
if ((tsize = H5Tget_size(arr_tid)) == 0) {
H5_FAILED();
AT();
- HDprintf("Can't get size of the array datatype\n");
+ printf("Can't get size of the array datatype\n");
goto error;
} /* end if */
if (tsize != ARRAY_DIM * (sizeof(char) + sizeof(char) + sizeof(int))) {
H5_FAILED();
AT();
- HDprintf("The size of the packed array datatype is incorrect\n");
+ printf("The size of the packed array datatype is incorrect\n");
goto error;
} /* end if */
if (H5Tclose(tid1_copy) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't close the compound datatype\n");
+ printf("Can't close the compound datatype\n");
goto error;
} /* end if */
if (H5Tclose(tid2_copy) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't close the compound datatype\n");
+ printf("Can't close the compound datatype\n");
goto error;
} /* end if */
if (H5Tclose(arr_tid) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't close the array datatype\n");
+ printf("Can't close the array datatype\n");
goto error;
} /* end if */
@@ -1787,7 +1787,7 @@ test_compound_9(void)
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create file!\n");
+ printf("Can't create file!\n");
goto error;
} /* end if */
@@ -1795,14 +1795,14 @@ test_compound_9(void)
if ((cmpd_tid = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd_struct_w))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_tid, "i1", HOFFSET(struct cmpd_struct_w, i1), H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i1'\n");
+ printf("Can't insert field 'i1'\n");
goto error;
} /* end if */
@@ -1810,35 +1810,35 @@ test_compound_9(void)
if (H5Tset_size(str_id, H5T_VARIABLE) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't set size for VL string\n");
+ printf("Can't set size for VL string\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_tid, "vl_string", HOFFSET(cmpd_struct_w, str), str_id) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i1'\n");
+ printf("Can't insert field 'i1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_tid, "i2", HOFFSET(struct cmpd_struct_w, i2), H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i2'\n");
+ printf("Can't insert field 'i2'\n");
goto error;
} /* end if */
if (H5Tcommit2(file, "compound", cmpd_tid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't commit datatype\n");
+ printf("Can't commit datatype\n");
goto error;
} /* end if */
if (H5Tclose(cmpd_tid) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
} /* end if */
@@ -1848,7 +1848,7 @@ test_compound_9(void)
if ((dup_tid = H5Tcopy(cmpd_tid)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't copy datatype\n");
+ printf("Can't copy datatype\n");
goto error;
} /* end if */
@@ -1856,7 +1856,7 @@ test_compound_9(void)
if ((space_id = H5Screate_simple(1, dim1, NULL)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create space\n");
+ printf("Can't create space\n");
goto error;
} /* end if */
@@ -1864,35 +1864,35 @@ test_compound_9(void)
0) {
H5_FAILED();
AT();
- HDprintf("Can't create dataset\n");
+ printf("Can't create dataset\n");
goto error;
} /* end if */
if (H5Dwrite(dset_id, dup_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't write data\n");
+ printf("Can't write data\n");
goto error;
} /* end if */
if (H5Dread(dset_id, dup_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
if (rdata.i1 != wdata.i1 || rdata.i2 != wdata.i2 || HDstrcmp(rdata.str, wdata.str) != 0) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
if (H5Treclaim(dup_tid, space_id, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim read data\n");
+ printf("Can't reclaim read data\n");
goto error;
} /* end if */
rdata.str = NULL;
@@ -1913,35 +1913,35 @@ test_compound_9(void)
if ((file = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("cannot open file\n");
+ printf("cannot open file\n");
goto error;
} /* end if */
if ((dset_id = H5Dopen2(file, "Dataset", H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("cannot open dataset\n");
+ printf("cannot open dataset\n");
goto error;
} /* end if */
if ((space_id = H5Dget_space(dset_id)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't get space\n");
+ printf("Can't get space\n");
goto error;
} /* end if */
if ((cmpd_tid = H5Dget_type(dset_id)) < 0) {
H5_FAILED();
AT();
- HDprintf("cannot open dataset\n");
+ printf("cannot open dataset\n");
goto error;
} /* end if */
if ((dup_tid = H5Tcopy(cmpd_tid)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't copy datatype\n");
+ printf("Can't copy datatype\n");
goto error;
} /* end if */
@@ -1952,21 +1952,21 @@ test_compound_9(void)
if (H5Dread(dset_id, dup_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
if (rdata.i1 != wdata.i1 || rdata.i2 != wdata.i2 || HDstrcmp(rdata.str, wdata.str) != 0) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
if (H5Treclaim(dup_tid, space_id, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
rdata.str = NULL;
@@ -2048,7 +2048,7 @@ test_compound_10(void)
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create file!\n");
+ printf("Can't create file!\n");
goto error;
} /* end if */
@@ -2056,14 +2056,14 @@ test_compound_10(void)
if ((cmpd_tid = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_tid, "i1", HOFFSET(struct cmpd_struct, i1), H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i1'\n");
+ printf("Can't insert field 'i1'\n");
goto error;
} /* end if */
@@ -2071,14 +2071,14 @@ test_compound_10(void)
if (H5Tset_size(cstr_id, H5T_VARIABLE) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't set size for C string\n");
+ printf("Can't set size for C string\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_tid, "c_string", HOFFSET(cmpd_struct, str), cstr_id) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'str'\n");
+ printf("Can't insert field 'str'\n");
goto error;
} /* end if */
@@ -2086,21 +2086,21 @@ test_compound_10(void)
if ((vlstr_id = H5Tvlen_create(H5T_NATIVE_CHAR)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create VL string\n");
+ printf("Can't create VL string\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_tid, "vl_string", HOFFSET(cmpd_struct, text), vlstr_id) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'text'\n");
+ printf("Can't insert field 'text'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_tid, "i2", HOFFSET(struct cmpd_struct, i2), H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i2'\n");
+ printf("Can't insert field 'i2'\n");
goto error;
} /* end if */
@@ -2108,7 +2108,7 @@ test_compound_10(void)
if ((arr_tid = H5Tarray_create2(cmpd_tid, 1, arr_dim)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create array type\n");
+ printf("Can't create array type\n");
goto error;
} /* end if */
@@ -2116,7 +2116,7 @@ test_compound_10(void)
if ((space_id = H5Screate_simple(1, dim1, NULL)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create space\n");
+ printf("Can't create space\n");
goto error;
} /* end if */
@@ -2124,21 +2124,21 @@ test_compound_10(void)
0) {
H5_FAILED();
AT();
- HDprintf("Can't create dataset\n");
+ printf("Can't create dataset\n");
goto error;
} /* end if */
if (H5Dwrite(dset_id, arr_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't write data\n");
+ printf("Can't write data\n");
goto error;
} /* end if */
if (H5Dread(dset_id, arr_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
@@ -2147,14 +2147,14 @@ test_compound_10(void)
HDstrcmp(rdata[i].str, wdata[i].str) != 0) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
if (rdata[i].text.len != wdata[i].text.len) {
H5_FAILED();
AT();
- HDprintf("incorrect VL length\n");
+ printf("incorrect VL length\n");
goto error;
} /* end if */
@@ -2163,20 +2163,20 @@ test_compound_10(void)
if (HDstrcmp((char *)t1, (char *)t2) != 0) {
H5_FAILED();
AT();
- HDprintf("incorrect VL read data\n");
+ printf("incorrect VL read data\n");
goto error;
}
} /* end for */
if (H5Treclaim(arr_tid, space_id, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim read data\n");
+ printf("Can't reclaim read data\n");
goto error;
} /* end if */
if (H5Treclaim(arr_tid, space_id, H5P_DEFAULT, &wdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim read data\n");
+ printf("Can't reclaim read data\n");
goto error;
} /* end if */
@@ -2312,7 +2312,7 @@ test_compound_11(void)
if ((space_id = H5Screate_simple(1, dim, NULL)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create space\n");
+ printf("Can't create space\n");
goto error;
} /* end if */
@@ -2331,30 +2331,30 @@ test_compound_11(void)
/* Verify converted buffer is correct */
for (u = 0; u < NTESTELEM; u++) {
if (!H5_DBL_ABS_EQUAL(((big_t *)buf_orig)[u].d1, ((little_t *)buf)[u].d1)) {
- HDprintf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].d1, (unsigned)u, ((little_t *)buf)[u].d1);
+ printf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].d1, (unsigned)u, ((little_t *)buf)[u].d1);
TEST_ERROR;
} /* end if */
if (((big_t *)buf_orig)[u].i1 != ((little_t *)buf)[u].i1) {
- HDprintf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].i1, (unsigned)u, ((little_t *)buf)[u].i1);
+ printf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].i1, (unsigned)u, ((little_t *)buf)[u].i1);
TEST_ERROR;
} /* end if */
if (((big_t *)buf_orig)[u].s1 == NULL || ((little_t *)buf)[u].s1 == NULL) {
- HDprintf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
+ printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
TEST_ERROR;
} /* end if */
else if (HDstrcmp(((big_t *)buf_orig)[u].s1, ((little_t *)buf)[u].s1) != 0) {
- HDprintf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
+ printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
TEST_ERROR;
} /* end if */
} /* end for */
if (H5Treclaim(little_tid2, space_id, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim data\n");
+ printf("Can't reclaim data\n");
goto error;
} /* end if */
@@ -2382,30 +2382,30 @@ test_compound_11(void)
/* Verify converted buffer is correct */
for (u = 0; u < NTESTELEM; u++) {
if (!H5_DBL_ABS_EQUAL(((big_t *)buf_orig)[u].d1, ((little_t *)buf)[u].d1)) {
- HDprintf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].d1, (unsigned)u, ((little_t *)buf)[u].d1);
+ printf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].d1, (unsigned)u, ((little_t *)buf)[u].d1);
TEST_ERROR;
} /* end if */
if (((big_t *)buf_orig)[u].i1 != ((little_t *)buf)[u].i1) {
- HDprintf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].i1, (unsigned)u, ((little_t *)buf)[u].i1);
+ printf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].i1, (unsigned)u, ((little_t *)buf)[u].i1);
TEST_ERROR;
} /* end if */
if (((big_t *)buf_orig)[u].s1 == NULL || ((little_t *)buf)[u].s1 == NULL) {
- HDprintf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
+ printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
TEST_ERROR;
} /* end if */
else if (HDstrcmp(((big_t *)buf_orig)[u].s1, ((little_t *)buf)[u].s1) != 0) {
- HDprintf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
+ printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
TEST_ERROR;
} /* end if */
} /* end for */
if (H5Treclaim(little_tid, space_id, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim data\n");
+ printf("Can't reclaim data\n");
goto error;
} /* end if */
@@ -2423,30 +2423,30 @@ test_compound_11(void)
/* Verify converted buffer is correct */
for (u = 0; u < NTESTELEM; u++) {
if (!H5_DBL_ABS_EQUAL(((big_t *)buf_orig)[u].d1, ((little_t *)buf)[u].d1)) {
- HDprintf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].d1, (unsigned)u, ((little_t *)buf)[u].d1);
+ printf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].d1, (unsigned)u, ((little_t *)buf)[u].d1);
TEST_ERROR;
} /* end if */
if (((big_t *)buf_orig)[u].i1 != ((little_t *)buf)[u].i1) {
- HDprintf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].i1, (unsigned)u, ((little_t *)buf)[u].i1);
+ printf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].i1, (unsigned)u, ((little_t *)buf)[u].i1);
TEST_ERROR;
} /* end if */
if (((big_t *)buf_orig)[u].s1 == NULL || ((little_t *)buf)[u].s1 == NULL) {
- HDprintf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
+ printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
TEST_ERROR;
} /* end if */
else if (HDstrcmp(((big_t *)buf_orig)[u].s1, ((little_t *)buf)[u].s1) != 0) {
- HDprintf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
- ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
+ printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n", __LINE__, (unsigned)u,
+ ((big_t *)buf_orig)[u].s1, (unsigned)u, ((little_t *)buf)[u].s1);
TEST_ERROR;
} /* end if */
} /* end for */
if (H5Treclaim(little_tid, space_id, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim data\n");
+ printf("Can't reclaim data\n");
goto error;
} /* end if */
@@ -2782,7 +2782,7 @@ test_compound_14(void)
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create file!\n");
+ printf("Can't create file!\n");
goto error;
} /* end if */
@@ -2790,21 +2790,21 @@ test_compound_14(void)
if ((cmpd_m1_tid = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd_struct_1_w))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m1_tid, "c1", HOFFSET(struct cmpd_struct_1_w, c1), H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c1'\n");
+ printf("Can't insert field 'c1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m1_tid, "c2", HOFFSET(struct cmpd_struct_1_w, c2), H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c2'\n");
+ printf("Can't insert field 'c2'\n");
goto error;
} /* end if */
@@ -2812,14 +2812,14 @@ test_compound_14(void)
if (H5Tset_size(str_id, H5T_VARIABLE) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't set size for VL string\n");
+ printf("Can't set size for VL string\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m1_tid, "vl_string", HOFFSET(cmpd_struct_1_w, str), str_id) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'vl_string'\n");
+ printf("Can't insert field 'vl_string'\n");
goto error;
} /* end if */
@@ -2827,28 +2827,28 @@ test_compound_14(void)
if ((cmpd_f1_tid = H5Tcreate(H5T_COMPOUND, 8 + 1 + sizeof(hvl_t))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f1_tid, "c1", (size_t)0, H5T_STD_I64BE) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c1'\n");
+ printf("Can't insert field 'c1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f1_tid, "c2", (size_t)8, H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c2'\n");
+ printf("Can't insert field 'c2'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f1_tid, "vl_string", (size_t)(8 + 1), str_id) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'vl_string'\n");
+ printf("Can't insert field 'vl_string'\n");
goto error;
} /* end if */
@@ -2856,56 +2856,56 @@ test_compound_14(void)
if ((cmpd_m2_tid = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd_struct_2_w))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m2_tid, "c1", HOFFSET(struct cmpd_struct_2_w, c1), H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c1'\n");
+ printf("Can't insert field 'c1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m2_tid, "c2", HOFFSET(struct cmpd_struct_2_w, c2), H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c2'\n");
+ printf("Can't insert field 'c2'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m2_tid, "vl_string", HOFFSET(cmpd_struct_2_w, str), str_id) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'vl_string'\n");
+ printf("Can't insert field 'vl_string'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m2_tid, "l1", HOFFSET(struct cmpd_struct_2_w, l1), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l1'\n");
+ printf("Can't insert field 'l1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m2_tid, "l2", HOFFSET(struct cmpd_struct_2_w, l2), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l2'\n");
+ printf("Can't insert field 'l2'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m2_tid, "l3", HOFFSET(struct cmpd_struct_2_w, l3), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l3'\n");
+ printf("Can't insert field 'l3'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m2_tid, "l4", HOFFSET(struct cmpd_struct_2_w, l4), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l4'\n");
+ printf("Can't insert field 'l4'\n");
goto error;
} /* end if */
@@ -2913,56 +2913,56 @@ test_compound_14(void)
if ((cmpd_f2_tid = H5Tcreate(H5T_COMPOUND, 8 + 1 + sizeof(hvl_t) + 4 * sizeof(long))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f2_tid, "c1", (size_t)0, H5T_STD_I64BE) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c1'\n");
+ printf("Can't insert field 'c1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f2_tid, "c2", (size_t)8, H5T_NATIVE_CHAR) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'c2'\n");
+ printf("Can't insert field 'c2'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f2_tid, "vl_string", (size_t)(8 + 1), str_id) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'vl_string'\n");
+ printf("Can't insert field 'vl_string'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f2_tid, "l1", 8 + 1 + sizeof(hvl_t), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l1'\n");
+ printf("Can't insert field 'l1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f2_tid, "l2", 8 + 1 + sizeof(hvl_t) + sizeof(long), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l2'\n");
+ printf("Can't insert field 'l2'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f2_tid, "l3", 8 + 1 + sizeof(hvl_t) + 2 * sizeof(long), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l3'\n");
+ printf("Can't insert field 'l3'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f2_tid, "l4", 8 + 1 + sizeof(hvl_t) + 3 * sizeof(long), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'l4'\n");
+ printf("Can't insert field 'l4'\n");
goto error;
} /* end if */
@@ -2970,7 +2970,7 @@ test_compound_14(void)
if ((space_id = H5Screate_simple(1, dim1, NULL)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create space\n");
+ printf("Can't create space\n");
goto error;
} /* end if */
@@ -2978,7 +2978,7 @@ test_compound_14(void)
H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create dataset\n");
+ printf("Can't create dataset\n");
goto error;
} /* end if */
@@ -2986,42 +2986,42 @@ test_compound_14(void)
H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create dataset\n");
+ printf("Can't create dataset\n");
goto error;
} /* end if */
if (H5Dwrite(dset1_id, cmpd_m1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't write data\n");
+ printf("Can't write data\n");
goto error;
} /* end if */
if (H5Dwrite(dset2_id, cmpd_m2_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't write data\n");
+ printf("Can't write data\n");
goto error;
} /* end if */
if (H5Dread(dset1_id, cmpd_m1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
if (H5Dread(dset2_id, cmpd_m2_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
if (rdata1.c1 != wdata1.c1 || rdata1.c2 != wdata1.c2 || HDstrcmp(rdata1.str, wdata1.str) != 0) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
@@ -3030,21 +3030,21 @@ test_compound_14(void)
rdata2.l4 != wdata2.l4) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
if (H5Treclaim(cmpd_m1_tid, space_id, H5P_DEFAULT, &rdata1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim read data\n");
+ printf("Can't reclaim read data\n");
goto error;
} /* end if */
rdata1.str = NULL;
if (H5Treclaim(cmpd_m2_tid, space_id, H5P_DEFAULT, &rdata2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim read data\n");
+ printf("Can't reclaim read data\n");
goto error;
} /* end if */
rdata2.str = NULL;
@@ -3066,28 +3066,28 @@ test_compound_14(void)
if ((file = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("cannot open file\n");
+ printf("cannot open file\n");
goto error;
} /* end if */
if ((dset1_id = H5Dopen2(file, "Dataset1", H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("cannot open dataset\n");
+ printf("cannot open dataset\n");
goto error;
} /* end if */
if ((dset2_id = H5Dopen2(file, "Dataset2", H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("cannot open dataset\n");
+ printf("cannot open dataset\n");
goto error;
} /* end if */
if ((space_id = H5Dget_space(dset2_id)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't get space\n");
+ printf("Can't get space\n");
goto error;
} /* end if */
@@ -3105,21 +3105,21 @@ test_compound_14(void)
if (H5Dread(dset1_id, cmpd_m1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
if (H5Dread(dset2_id, cmpd_m2_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
if (rdata1.c1 != wdata1.c1 || rdata1.c2 != wdata1.c2 || HDstrcmp(rdata1.str, wdata1.str) != 0) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
@@ -3128,21 +3128,21 @@ test_compound_14(void)
rdata2.l4 != wdata2.l4) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
if (H5Treclaim(cmpd_m1_tid, space_id, H5P_DEFAULT, &rdata1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim read data\n");
+ printf("Can't reclaim read data\n");
goto error;
} /* end if */
rdata1.str = NULL;
if (H5Treclaim(cmpd_m2_tid, space_id, H5P_DEFAULT, &rdata2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't reclaim read data\n");
+ printf("Can't reclaim read data\n");
goto error;
} /* end if */
rdata2.str = NULL;
@@ -3208,7 +3208,7 @@ test_compound_15(void)
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create file!\n");
+ printf("Can't create file!\n");
goto error;
} /* end if */
@@ -3216,21 +3216,21 @@ test_compound_15(void)
if ((cmpd_f_tid = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f_tid, "i1", HOFFSET(struct cmpd_struct, i1), H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i1'\n");
+ printf("Can't insert field 'i1'\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_f_tid, "i2", HOFFSET(struct cmpd_struct, i2), H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i2'\n");
+ printf("Can't insert field 'i2'\n");
goto error;
} /* end if */
@@ -3238,14 +3238,14 @@ test_compound_15(void)
if ((cmpd_m_tid = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(cmpd_m_tid, "i1", (size_t)0, H5T_NATIVE_INT) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't insert field 'i1'\n");
+ printf("Can't insert field 'i1'\n");
goto error;
} /* end if */
@@ -3254,7 +3254,7 @@ test_compound_15(void)
if ((space_id = H5Screate_simple(1, dim1, NULL)) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't create space\n");
+ printf("Can't create space\n");
goto error;
} /* end if */
@@ -3262,14 +3262,14 @@ test_compound_15(void)
0) {
H5_FAILED();
AT();
- HDprintf("Can't create dataset\n");
+ printf("Can't create dataset\n");
goto error;
} /* end if */
if (H5Dwrite(dset_id, cmpd_f_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata1) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't write data\n");
+ printf("Can't write data\n");
goto error;
} /* end if */
@@ -3278,7 +3278,7 @@ test_compound_15(void)
if (H5Dwrite(dset_id, cmpd_m_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata2) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't write data\n");
+ printf("Can't write data\n");
goto error;
} /* end if */
@@ -3286,7 +3286,7 @@ test_compound_15(void)
if (H5Dread(dset_id, cmpd_f_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
@@ -3294,7 +3294,7 @@ test_compound_15(void)
if (rdata.i1 != wdata2[0] || rdata.i2 != wdata1.i2) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
@@ -3307,7 +3307,7 @@ test_compound_15(void)
if (H5Dread(dset_id, cmpd_m_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) {
H5_FAILED();
AT();
- HDprintf("Can't read data\n");
+ printf("Can't read data\n");
goto error;
} /* end if */
@@ -3315,7 +3315,7 @@ test_compound_15(void)
if (rdata.i1 != wdata2[0] || rdata.i2 != wdata2[1]) {
H5_FAILED();
AT();
- HDprintf("incorrect read data\n");
+ printf("incorrect read data\n");
goto error;
} /* end if */
@@ -3542,7 +3542,7 @@ test_compound_16(void)
if ((obj_count = H5Fget_obj_count(file, H5F_OBJ_DATATYPE)) != 1) {
H5_FAILED();
AT();
- HDprintf(" H5Fget_obj_count returned: %zd; expected: 1\n", obj_count);
+ printf(" H5Fget_obj_count returned: %zd; expected: 1\n", obj_count);
goto error;
}
@@ -3552,7 +3552,7 @@ test_compound_16(void)
if (open_dtypes[1]) {
H5_FAILED();
AT();
- HDprintf(" H5Fget_obj_ids returned as second id: %lld; expected: 0\n", (long long)open_dtypes[1]);
+ printf(" H5Fget_obj_ids returned as second id: %lld; expected: 0\n", (long long)open_dtypes[1]);
goto error;
}
@@ -3635,7 +3635,7 @@ test_compound_17(void)
if (2 != H5Tget_size(tmp_dt)) {
H5_FAILED();
AT();
- HDprintf(" Size after packing: %u; expected: 2\n", (unsigned)H5Tget_size(tmp_dt));
+ printf(" Size after packing: %u; expected: 2\n", (unsigned)H5Tget_size(tmp_dt));
goto error;
}
if (H5Tclose(tmp_dt) < 0)
@@ -3649,7 +3649,7 @@ test_compound_17(void)
if (4 != H5Tget_size(tmp_dt)) {
H5_FAILED();
AT();
- HDprintf(" Size after packing: %u; expected: 4\n", (unsigned)H5Tget_size(tmp_dt));
+ printf(" Size after packing: %u; expected: 4\n", (unsigned)H5Tget_size(tmp_dt));
goto error;
}
if (H5Tclose(tmp_dt) < 0)
@@ -3698,7 +3698,7 @@ test_compound_17(void)
if (2 != H5Tget_size(tmp_dt)) {
H5_FAILED();
AT();
- HDprintf(" Size after packing: %u; expected: 2\n", (unsigned)H5Tget_size(tmp_dt));
+ printf(" Size after packing: %u; expected: 2\n", (unsigned)H5Tget_size(tmp_dt));
goto error;
}
if (H5Tclose(tmp_dt) < 0)
@@ -3712,7 +3712,7 @@ test_compound_17(void)
if (4 != H5Tget_size(tmp_dt)) {
H5_FAILED();
AT();
- HDprintf(" Size after packing: %u; expected: 4\n", (unsigned)H5Tget_size(tmp_dt));
+ printf(" Size after packing: %u; expected: 4\n", (unsigned)H5Tget_size(tmp_dt));
goto error;
}
if (H5Tclose(tmp_dt) < 0)
@@ -3923,112 +3923,112 @@ test_query(void)
/* Create a compound datatype */
if ((tid1 = H5Tcreate(H5T_COMPOUND, sizeof(struct s1))) < 0) {
H5_FAILED();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "a", HOFFSET(struct s1, a), H5T_NATIVE_INT) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'a'\n");
+ printf("Can't insert field 'a'\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "b", HOFFSET(struct s1, b), H5T_NATIVE_FLOAT) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'b'\n");
+ printf("Can't insert field 'b'\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "c", HOFFSET(struct s1, c), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'c'\n");
+ printf("Can't insert field 'c'\n");
goto error;
} /* end if */
if (H5Tinsert(tid1, "d", HOFFSET(struct s1, d), H5T_NATIVE_DOUBLE) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'd'\n");
+ printf("Can't insert field 'd'\n");
goto error;
} /* end if */
/* Create a enumerate datatype */
if ((tid2 = H5Tcreate(H5T_ENUM, sizeof(short))) < 0) {
H5_FAILED();
- HDprintf("Can't create enumerate type\n");
+ printf("Can't create enumerate type\n");
goto error;
} /* end if */
enum_val = 10;
if (H5Tenum_insert(tid2, "RED", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
} /* end if */
enum_val = 11;
if (H5Tenum_insert(tid2, "GREEN", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
} /* end if */
enum_val = 12;
if (H5Tenum_insert(tid2, "BLUE", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
} /* end if */
enum_val = 13;
if (H5Tenum_insert(tid2, "ORANGE", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
} /* end if */
enum_val = 14;
if (H5Tenum_insert(tid2, "YELLOW", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
} /* end if */
/* Query member number and member index by name, for compound type. */
if (H5Tget_nmembers(tid1) != 4) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
} /* end if */
if (H5Tget_member_index(tid1, "c") != 2) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
} /* end if */
/* Query member number and member index by member name, for enumeration type. */
if (H5Tget_nmembers(tid2) != 5) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
} /* end if */
if (H5Tget_member_index(tid2, "ORANGE") != 3) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
} /* end if */
/* Commit compound datatype and close it */
if (H5Tcommit2(file, compnd_type, tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't commit compound datatype\n");
+ printf("Can't commit compound datatype\n");
goto error;
} /* end if */
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
} /* end if */
/* Commit enumeration datatype and close it */
if (H5Tcommit2(file, enum_type, tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't commit compound datatype\n");
+ printf("Can't commit compound datatype\n");
goto error;
} /* end if */
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
} /* end if */
@@ -4041,48 +4041,48 @@ test_query(void)
/* Query member number and member index by name, for compound type */
if (H5Tget_nmembers(tid1) != 4) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
} /* end if */
if (H5Tget_member_index(tid1, "c") != 2) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
} /* end if */
/* Query member number and member index by member name, for enumeration type */
if (H5Tget_nmembers(tid2) != 5) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
} /* end if */
if (H5Tget_member_index(tid2, "ORANGE") != 3) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
} /* end if */
/* Query member value by member name, for enumeration type */
if (H5Tenum_valueof(tid2, "ORANGE", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't get value for enumerate member\n");
+ printf("Can't get value for enumerate member\n");
goto error;
} /* end if */
if (enum_val != 13) {
H5_FAILED();
- HDprintf("Incorrect value for enum member\n");
+ printf("Incorrect value for enum member\n");
goto error;
} /* end if */
/* Query member value by member index, for enumeration type */
if (H5Tget_member_value(tid2, 2, &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't get value for enum member\n");
+ printf("Can't get value for enum member\n");
goto error;
} /* end if */
if (enum_val != 12) {
H5_FAILED();
- HDprintf("Incorrect value for enum member\n");
+ printf("Incorrect value for enum member\n");
goto error;
} /* end if */
@@ -4090,30 +4090,30 @@ test_query(void)
enum_val = 14;
if (H5Tenum_nameof(tid2, &enum_val, enum_name, (size_t)16) < 0) {
H5_FAILED();
- HDprintf("Can't get name for enum member\n");
+ printf("Can't get name for enum member\n");
goto error;
} /* end if */
if (HDstrcmp("YELLOW", enum_name) != 0) {
H5_FAILED();
- HDprintf("Incorrect name for enum member\n");
+ printf("Incorrect name for enum member\n");
goto error;
} /* end if */
/* Close datatype and file */
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
} /* end if */
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
} /* end if */
if (H5Fclose(file) < 0) {
H5_FAILED();
- HDprintf("Can't close file\n");
+ printf("Can't close file\n");
goto error;
} /* end if */
@@ -5070,7 +5070,7 @@ test_conv_str_2(void)
/* Do the conversions */
HDsnprintf(s, sizeof(s), "Testing random string conversion speed");
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
if (H5Tconvert(c_type, f_type, nelmts, buf, NULL, H5P_DEFAULT) < 0)
goto error;
@@ -5284,14 +5284,14 @@ test_conv_enum_1(void)
/* Conversions */
HDsnprintf(s, sizeof(s), "Testing random enum conversion O(N)");
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
if (H5Tconvert(t1, t2, nelmts, buf, NULL, H5P_DEFAULT) < 0)
goto error;
PASSED();
HDsnprintf(s, sizeof(s), "Testing random enum conversion O(N log N)");
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
if (H5Tconvert(t2, t1, nelmts, buf, NULL, H5P_DEFAULT) < 0)
goto error;
@@ -5372,7 +5372,7 @@ test_conv_enum_2(void)
if (data[i] != i % 8) {
if (!nerrors++) {
H5_FAILED();
- HDprintf("element %d is %d but should have been %d\n", i, data[i], i % 8);
+ printf("element %d is %d but should have been %d\n", i, data[i], i % 8);
}
}
}
@@ -5385,7 +5385,7 @@ test_conv_enum_2(void)
/* Failure */
if (nerrors) {
- HDprintf("total of %d conversion errors out of %d elements for enums\n", nerrors, NTESTELEM);
+ printf("total of %d conversion errors out of %d elements for enums\n", nerrors, NTESTELEM);
return 1;
}
@@ -5426,7 +5426,7 @@ test_conv_bitfield(void)
goto error;
if (buf[0] != 0xAA || buf[1] != 0xAA || buf[2] != 0 || buf[3] != 0) {
H5_FAILED();
- HDprintf(" s=0xaaaa, d=0x%02x%02x%02x%02x (test 1)\n", buf[3], buf[2], buf[1], buf[0]);
+ printf(" s=0xaaaa, d=0x%02x%02x%02x%02x (test 1)\n", buf[3], buf[2], buf[1], buf[0]);
goto error;
}
@@ -5447,7 +5447,7 @@ test_conv_bitfield(void)
goto error;
if (buf[0] != 0 || buf[1] != 0xA8 || buf[2] != 0x2A || buf[3] != 0) {
H5_FAILED();
- HDprintf(" s=0x2AA8 d=0x%02x%02x%02x%02x (test 2)\n", buf[3], buf[2], buf[1], buf[0]);
+ printf(" s=0x2AA8 d=0x%02x%02x%02x%02x (test 2)\n", buf[3], buf[2], buf[1], buf[0]);
goto error;
}
@@ -5463,7 +5463,7 @@ test_conv_bitfield(void)
goto error;
if (buf[0] != 0xff || buf[1] != 0xAB || buf[2] != 0xEA || buf[3] != 0xff) {
H5_FAILED();
- HDprintf(" s=0x2AA8 d=0x%02x%02x%02x%02x (test 3)\n", buf[3], buf[2], buf[1], buf[0]);
+ printf(" s=0x2AA8 d=0x%02x%02x%02x%02x (test 3)\n", buf[3], buf[2], buf[1], buf[0]);
goto error;
}
@@ -5547,7 +5547,7 @@ test_bitfield_funcs(void)
H5E_END_TRY
if (size > 0) {
H5_FAILED();
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
goto error;
} /* end if */
@@ -5558,7 +5558,7 @@ test_bitfield_funcs(void)
H5E_END_TRY
if (inpad > -1) {
H5_FAILED();
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
goto error;
} /* end if */
@@ -5569,7 +5569,7 @@ test_bitfield_funcs(void)
H5E_END_TRY
if (cset > -1) {
H5_FAILED();
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
goto error;
} /* end if */
@@ -5580,7 +5580,7 @@ test_bitfield_funcs(void)
H5E_END_TRY
if (strpad > -1) {
H5_FAILED();
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
goto error;
} /* end if */
@@ -5591,7 +5591,7 @@ test_bitfield_funcs(void)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
goto error;
} /* end if */
@@ -5602,7 +5602,7 @@ test_bitfield_funcs(void)
H5E_END_TRY
if (tag) {
H5_FAILED();
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
goto error;
} /* end if */
@@ -5613,7 +5613,7 @@ test_bitfield_funcs(void)
H5E_END_TRY
if (super >= 0) {
H5_FAILED();
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
goto error;
} /* end if */
@@ -5741,7 +5741,7 @@ opaque_check(int tag_it)
H5E_END_TRY
if (status >= 0) {
H5_FAILED();
- HDprintf(" opaque conversion should have failed but succeeded\n");
+ printf(" opaque conversion should have failed but succeeded\n");
goto error;
}
@@ -5754,7 +5754,7 @@ opaque_check(int tag_it)
goto error;
if (saved + 1 != num_opaque_conversions_g) {
H5_FAILED();
- HDprintf(" unexpected number of opaque conversions\n");
+ printf(" unexpected number of opaque conversions\n");
goto error;
}
@@ -5871,7 +5871,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (ret >= 0) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5881,7 +5881,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (ret >= 0) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5891,7 +5891,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (size > 0) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5901,7 +5901,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (inpad > -1) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5911,7 +5911,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (cset > -1) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5921,7 +5921,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (strpad > -1) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5931,7 +5931,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (ret >= 0) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5941,7 +5941,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (sign > -1) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -5951,7 +5951,7 @@ opaque_funcs(void)
}
H5E_END_TRY
if (super >= 0) {
- HDprintf("Operation not allowed for this type.\n");
+ printf("Operation not allowed for this type.\n");
TEST_ERROR;
} /* end if */
@@ -6019,76 +6019,76 @@ test_encode(void)
/* Create a compound datatype */
if ((tid1 = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd))) < 0) {
H5_FAILED();
- HDprintf("Can't create datatype!\n");
+ printf("Can't create datatype!\n");
goto error;
}
if (H5Tinsert(tid1, "a", HOFFSET(struct cmpd, a), H5T_NATIVE_INT) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'a'\n");
+ printf("Can't insert field 'a'\n");
goto error;
}
if (H5Tinsert(tid1, "b", HOFFSET(struct cmpd, b), H5T_NATIVE_FLOAT) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'b'\n");
+ printf("Can't insert field 'b'\n");
goto error;
}
if (H5Tinsert(tid1, "c", HOFFSET(struct cmpd, c), H5T_NATIVE_LONG) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'c'\n");
+ printf("Can't insert field 'c'\n");
goto error;
}
if (H5Tinsert(tid1, "d", HOFFSET(struct cmpd, d), H5T_NATIVE_DOUBLE) < 0) {
H5_FAILED();
- HDprintf("Can't insert field 'd'\n");
+ printf("Can't insert field 'd'\n");
goto error;
}
/* Create a enumerate datatype */
if ((tid2 = H5Tcreate(H5T_ENUM, sizeof(short))) < 0) {
H5_FAILED();
- HDprintf("Can't create enumerate type\n");
+ printf("Can't create enumerate type\n");
goto error;
}
enum_val = 0;
if (H5Tenum_insert(tid2, "RED", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
}
enum_val = 1;
if (H5Tenum_insert(tid2, "GREEN", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
}
enum_val = 2;
if (H5Tenum_insert(tid2, "BLUE", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
}
enum_val = 3;
if (H5Tenum_insert(tid2, "ORANGE", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
}
enum_val = 4;
if (H5Tenum_insert(tid2, "YELLOW", &enum_val) < 0) {
H5_FAILED();
- HDprintf("Can't insert field into enumeration type\n");
+ printf("Can't insert field into enumeration type\n");
goto error;
}
/* Create a variable-length string type */
if ((tid3 = H5Tcopy(H5T_C_S1)) < 0) {
H5_FAILED();
- HDprintf("Can't copy a string type\n");
+ printf("Can't copy a string type\n");
goto error;
}
if (H5Tset_size(tid3, H5T_VARIABLE) < 0) {
H5_FAILED();
- HDprintf("Can't the string type to be variable-length\n");
+ printf("Can't the string type to be variable-length\n");
goto error;
}
@@ -6099,7 +6099,7 @@ test_encode(void)
/* Encode compound type in a buffer */
if (H5Tencode(tid1, NULL, &cmpd_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode compound type\n");
+ printf("Can't encode compound type\n");
goto error;
}
@@ -6114,13 +6114,13 @@ test_encode(void)
H5E_END_TRY
if (ret_id != FAIL) {
H5_FAILED();
- HDprintf("Decoded an empty buffer!\n");
+ printf("Decoded an empty buffer!\n");
goto error;
}
if (H5Tencode(tid1, cmpd_buf, &cmpd_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode compound type\n");
+ printf("Can't encode compound type\n");
goto error;
}
@@ -6131,26 +6131,26 @@ test_encode(void)
/* Verify that the datatype was copied exactly */
if (H5Tequal(decoded_tid1, tid1) <= 0) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
/* Query member number and member index by name, for compound type. */
if (H5Tget_nmembers(decoded_tid1) != 4) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
}
if (H5Tget_member_index(decoded_tid1, "c") != 2) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
}
/* Encode enumerate type in a buffer */
if (H5Tencode(tid2, NULL, &enum_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode enumerate type\n");
+ printf("Can't encode enumerate type\n");
goto error;
}
@@ -6159,40 +6159,40 @@ test_encode(void)
if (H5Tencode(tid2, enum_buf, &enum_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode enumerate type\n");
+ printf("Can't encode enumerate type\n");
goto error;
}
/* Decode from the enumerate buffer and return an object handle */
if ((decoded_tid2 = H5Tdecode(enum_buf)) < 0) {
H5_FAILED();
- HDprintf("Can't decode enumerate type\n");
+ printf("Can't decode enumerate type\n");
goto error;
}
/* Verify that the datatype was copied exactly */
if (H5Tequal(decoded_tid2, tid2) <= 0) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
/* Query member number and member index by name, for enumeration type. */
if (H5Tget_nmembers(decoded_tid2) != 5) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
}
if (H5Tget_member_index(decoded_tid2, "ORANGE") != 3) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
}
/* Encode VL string type in a buffer */
if (H5Tencode(tid3, NULL, &vlstr_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode VL string type\n");
+ printf("Can't encode VL string type\n");
goto error;
}
@@ -6201,26 +6201,26 @@ test_encode(void)
if (H5Tencode(tid3, vlstr_buf, &vlstr_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode VL string type\n");
+ printf("Can't encode VL string type\n");
goto error;
}
/* Decode from the VL string buffer and return an object handle */
if ((decoded_tid3 = H5Tdecode(vlstr_buf)) < 0) {
H5_FAILED();
- HDprintf("Can't decode VL string type\n");
+ printf("Can't decode VL string type\n");
goto error;
}
/* Verify that the datatype was copied exactly */
if (H5Tequal(decoded_tid3, tid3) <= 0) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
if (!H5Tis_variable_str(decoded_tid3)) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
@@ -6231,17 +6231,17 @@ test_encode(void)
/* Commit compound datatype and close it */
if (H5Tcommit2(file, compnd_type, tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't commit compound datatype\n");
+ printf("Can't commit compound datatype\n");
goto error;
}
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Tclose(decoded_tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
HDfree(cmpd_buf);
@@ -6250,17 +6250,17 @@ test_encode(void)
/* Commit enumeration datatype and close it */
if (H5Tcommit2(file, enum_type, tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't commit compound datatype\n");
+ printf("Can't commit compound datatype\n");
goto error;
}
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Tclose(decoded_tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
HDfree(enum_buf);
@@ -6269,17 +6269,17 @@ test_encode(void)
/* Commit enumeration datatype and close it */
if (H5Tcommit2(file, vlstr_type, tid3, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Can't commit vl string datatype\n");
+ printf("Can't commit vl string datatype\n");
goto error;
}
if (H5Tclose(tid3) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Tclose(decoded_tid3) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
HDfree(vlstr_buf);
@@ -6300,7 +6300,7 @@ test_encode(void)
/* Encode compound type in a buffer */
if (H5Tencode(tid1, NULL, &cmpd_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode compound type\n");
+ printf("Can't encode compound type\n");
goto error;
}
@@ -6309,7 +6309,7 @@ test_encode(void)
if (H5Tencode(tid1, cmpd_buf, &cmpd_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode compound type\n");
+ printf("Can't encode compound type\n");
goto error;
}
@@ -6320,26 +6320,26 @@ test_encode(void)
/* Verify that the datatype was copied exactly */
if (H5Tequal(decoded_tid1, tid1) <= 0) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
/* Query member number and member index by name, for compound type. */
if (H5Tget_nmembers(decoded_tid1) != 4) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
}
if (H5Tget_member_index(decoded_tid1, "c") != 2) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
}
/* Encode enumerate type in a buffer */
if (H5Tencode(tid2, NULL, &enum_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode enumerate type\n");
+ printf("Can't encode enumerate type\n");
goto error;
}
@@ -6348,40 +6348,40 @@ test_encode(void)
if (H5Tencode(tid2, enum_buf, &enum_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode enumerate type\n");
+ printf("Can't encode enumerate type\n");
goto error;
}
/* Decode from the enumerate buffer and return an object handle */
if ((decoded_tid2 = H5Tdecode(enum_buf)) < 0) {
H5_FAILED();
- HDprintf("Can't decode enumerate type\n");
+ printf("Can't decode enumerate type\n");
goto error;
}
/* Verify that the datatype was copied exactly */
if (H5Tequal(decoded_tid2, tid2) <= 0) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
/* Query member number and member index by name, for enumeration type. */
if (H5Tget_nmembers(decoded_tid2) != 5) {
H5_FAILED();
- HDprintf("Can't get member number\n");
+ printf("Can't get member number\n");
goto error;
}
if (H5Tget_member_index(decoded_tid2, "ORANGE") != 3) {
H5_FAILED();
- HDprintf("Can't get correct index number\n");
+ printf("Can't get correct index number\n");
goto error;
}
/* Encode VL string type in a buffer */
if (H5Tencode(tid3, NULL, &vlstr_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode VL string type\n");
+ printf("Can't encode VL string type\n");
goto error;
}
@@ -6390,14 +6390,14 @@ test_encode(void)
if (H5Tencode(tid3, vlstr_buf, &vlstr_buf_size) < 0) {
H5_FAILED();
- HDprintf("Can't encode VL string type\n");
+ printf("Can't encode VL string type\n");
goto error;
}
/* Decode from the VL string buffer and return an object handle */
if ((decoded_tid3 = H5Tdecode(vlstr_buf)) < 0) {
H5_FAILED();
- HDprintf("Can't decode VL string type\n");
+ printf("Can't decode VL string type\n");
goto error;
}
HDfree(vlstr_buf);
@@ -6405,12 +6405,12 @@ test_encode(void)
/* Verify that the datatype was copied exactly */
if (H5Tequal(decoded_tid3, tid3) <= 0) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
if (!H5Tis_variable_str(decoded_tid3)) {
H5_FAILED();
- HDprintf("Datatype wasn't encoded & decoded identically\n");
+ printf("Datatype wasn't encoded & decoded identically\n");
goto error;
}
@@ -6422,19 +6422,19 @@ test_encode(void)
/* Make sure the reference counts for the decoded datatypes are one. */
if (H5Iget_ref(decoded_tid1) != 1) {
H5_FAILED();
- HDprintf("Decoded datatype has incorrect reference count\n");
+ printf("Decoded datatype has incorrect reference count\n");
goto error;
}
if (H5Iget_ref(decoded_tid2) != 1) {
H5_FAILED();
- HDprintf("Decoded datatype has incorrect reference count\n");
+ printf("Decoded datatype has incorrect reference count\n");
goto error;
}
if (H5Iget_ref(decoded_tid3) != 1) {
H5_FAILED();
- HDprintf("Decoded datatype has incorrect reference count\n");
+ printf("Decoded datatype has incorrect reference count\n");
goto error;
}
@@ -6442,19 +6442,19 @@ test_encode(void)
* decremented and the datatypes are closed. */
if (H5Idec_ref(decoded_tid1) != 0) {
H5_FAILED();
- HDprintf("Decoded datatype can't close\n");
+ printf("Decoded datatype can't close\n");
goto error;
}
if (H5Idec_ref(decoded_tid2) != 0) {
H5_FAILED();
- HDprintf("Decoded datatype can't close\n");
+ printf("Decoded datatype can't close\n");
goto error;
}
if (H5Idec_ref(decoded_tid3) != 0) {
H5_FAILED();
- HDprintf("Decoded datatype can't close\n");
+ printf("Decoded datatype can't close\n");
goto error;
}
@@ -6466,7 +6466,7 @@ test_encode(void)
H5E_END_TRY
if (ret != FAIL) {
H5_FAILED();
- HDprintf("Decoded datatype should have been closed\n");
+ printf("Decoded datatype should have been closed\n");
goto error;
}
@@ -6477,7 +6477,7 @@ test_encode(void)
H5E_END_TRY
if (ret != FAIL) {
H5_FAILED();
- HDprintf("Decoded datatype should have been closed\n");
+ printf("Decoded datatype should have been closed\n");
goto error;
}
@@ -6488,7 +6488,7 @@ test_encode(void)
H5E_END_TRY
if (ret != FAIL) {
H5_FAILED();
- HDprintf("Decoded datatype should have been closed\n");
+ printf("Decoded datatype should have been closed\n");
goto error;
}
@@ -6499,23 +6499,23 @@ test_encode(void)
/* Close datatype and file */
if (H5Tclose(tid1) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Tclose(tid2) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Tclose(tid3) < 0) {
H5_FAILED();
- HDprintf("Can't close datatype\n");
+ printf("Can't close datatype\n");
goto error;
}
if (H5Fclose(file) < 0) {
H5_FAILED();
- HDprintf("Can't close file\n");
+ printf("Can't close file\n");
goto error;
}
@@ -8889,12 +8889,12 @@ main(void)
fapl = h5_fileaccess();
if (h5_using_parallel_driver(fapl, &driver_is_parallel) < 0) {
- HDprintf("Can't check if driver is parallel-enabled\n");
+ printf("Can't check if driver is parallel-enabled\n");
HDexit(EXIT_FAILURE);
}
if (ALIGNMENT)
- HDprintf("Testing non-aligned conversions (ALIGNMENT=%d)....\n", ALIGNMENT);
+ printf("Testing non-aligned conversions (ALIGNMENT=%d)....\n", ALIGNMENT);
/* Do the tests */
nerrors += test_classes();
@@ -8962,11 +8962,11 @@ main(void)
nerrors += test_versionbounds();
if (nerrors) {
- HDprintf("***** %lu FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %lu FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
- HDprintf("All datatype tests passed.\n");
+ printf("All datatype tests passed.\n");
return 0;
}
diff --git a/test/earray.c b/test/earray.c
index 0ce1b32..c3c86da 100644
--- a/test/earray.c
+++ b/test/earray.c
@@ -331,64 +331,62 @@ check_stats(const H5EA_t *ea, const earray_state_t *state)
/* Compare information */
if (earray_stats.stored.max_idx_set != state->max_idx_set) {
- HDfprintf(stdout,
- "earray_stats.stored.max_idx_set = %" PRIuHSIZE ", state->max_idx_set = %" PRIuHSIZE "\n",
- earray_stats.stored.max_idx_set, state->max_idx_set);
+ fprintf(stdout,
+ "earray_stats.stored.max_idx_set = %" PRIuHSIZE ", state->max_idx_set = %" PRIuHSIZE "\n",
+ earray_stats.stored.max_idx_set, state->max_idx_set);
TEST_ERROR;
} /* end if */
if (earray_stats.stored.nelmts != state->nelmts) {
- HDfprintf(stdout, "earray_stats.stored.nelmts = %" PRIuHSIZE ", state->nelmts = %" PRIuHSIZE "\n",
- earray_stats.stored.nelmts, state->nelmts);
+ fprintf(stdout, "earray_stats.stored.nelmts = %" PRIuHSIZE ", state->nelmts = %" PRIuHSIZE "\n",
+ earray_stats.stored.nelmts, state->nelmts);
TEST_ERROR;
} /* end if */
if (earray_stats.computed.hdr_size != state->hdr_size) {
- HDfprintf(stdout,
- "earray_stats.computed.hdr_size = %" PRIuHSIZE ", state->hdr_size = %" PRIuHSIZE "\n",
- earray_stats.computed.hdr_size, state->hdr_size);
+ fprintf(stdout, "earray_stats.computed.hdr_size = %" PRIuHSIZE ", state->hdr_size = %" PRIuHSIZE "\n",
+ earray_stats.computed.hdr_size, state->hdr_size);
TEST_ERROR;
} /* end if */
if (earray_stats.computed.nindex_blks != state->nindex_blks) {
- HDfprintf(stdout,
- "earray_stats.computed.nindex_blks = %" PRIuHSIZE ", state->nindex_blks = %" PRIuHSIZE "\n",
- earray_stats.computed.nindex_blks, state->nindex_blks);
+ fprintf(stdout,
+ "earray_stats.computed.nindex_blks = %" PRIuHSIZE ", state->nindex_blks = %" PRIuHSIZE "\n",
+ earray_stats.computed.nindex_blks, state->nindex_blks);
TEST_ERROR;
} /* end if */
if (earray_stats.computed.index_blk_size != state->index_blk_size) {
- HDfprintf(stdout,
- "earray_stats.computed.index_blk_size = %" PRIuHSIZE ", state->index_blk_size = %" PRIuHSIZE
- "\n",
- earray_stats.computed.index_blk_size, state->index_blk_size);
+ fprintf(stdout,
+ "earray_stats.computed.index_blk_size = %" PRIuHSIZE ", state->index_blk_size = %" PRIuHSIZE
+ "\n",
+ earray_stats.computed.index_blk_size, state->index_blk_size);
TEST_ERROR;
} /* end if */
if (earray_stats.stored.ndata_blks != state->ndata_blks) {
- HDfprintf(stdout,
- "earray_stats.stored.ndata_blks = %" PRIuHSIZE ", state->ndata_blks = %" PRIuHSIZE "\n",
- earray_stats.stored.ndata_blks, state->ndata_blks);
+ fprintf(stdout,
+ "earray_stats.stored.ndata_blks = %" PRIuHSIZE ", state->ndata_blks = %" PRIuHSIZE "\n",
+ earray_stats.stored.ndata_blks, state->ndata_blks);
TEST_ERROR;
} /* end if */
/* Don't compare this currently, it's very hard to compute */
#ifdef NOT_YET
if (earray_stats.stored.data_blk_size != state->data_blk_size) {
- HDfprintf(stdout,
- "earray_stats.stored.data_blk_size = %" PRIuHSIZE ", state->data_blk_size = %" PRIuHSIZE
- "\n",
- earray_stats.stored.data_blk_size, state->data_blk_size);
+ fprintf(stdout,
+ "earray_stats.stored.data_blk_size = %" PRIuHSIZE ", state->data_blk_size = %" PRIuHSIZE "\n",
+ earray_stats.stored.data_blk_size, state->data_blk_size);
TEST_ERROR;
} /* end if */
#endif /* NOT_YET */
if (earray_stats.stored.nsuper_blks != state->nsuper_blks) {
- HDfprintf(stdout,
- "earray_stats.stored.nsuper_blks = %" PRIuHSIZE ", state->nsuper_blks = %" PRIuHSIZE "\n",
- earray_stats.stored.nsuper_blks, state->nsuper_blks);
+ fprintf(stdout,
+ "earray_stats.stored.nsuper_blks = %" PRIuHSIZE ", state->nsuper_blks = %" PRIuHSIZE "\n",
+ earray_stats.stored.nsuper_blks, state->nsuper_blks);
TEST_ERROR;
} /* end if */
/* Don't compare this currently, it's very hard to compute */
#ifdef NOT_YET
if (earray_stats.stored.super_blk_size != state->super_blk_size) {
- HDfprintf(stdout,
- "earray_stats.stored.super_blk_size = %" PRIuHSIZE ", state->super_blk_size = %" PRIuHSIZE
- "\n",
- earray_stats.stored.super_blk_size, state->super_blk_size);
+ fprintf(stdout,
+ "earray_stats.stored.super_blk_size = %" PRIuHSIZE ", state->super_blk_size = %" PRIuHSIZE
+ "\n",
+ earray_stats.stored.super_blk_size, state->super_blk_size);
TEST_ERROR;
} /* end if */
#endif /* NOT_YET */
@@ -2419,7 +2417,7 @@ main(void)
fapl = h5_fileaccess();
ExpressMode = GetTestExpress();
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests may be skipped\n");
+ printf("***Express test mode on. Some tests may be skipped\n");
/* Set the filename to use for this test (dependent on fapl) */
h5_fixname(FILENAME[0], fapl, filename_g, sizeof(filename_g));
diff --git a/test/enc_dec_plist.c b/test/enc_dec_plist.c
index 55c80fb..6ace51c 100644
--- a/test/enc_dec_plist.c
+++ b/test/enc_dec_plist.c
@@ -192,7 +192,7 @@ main(void)
HDputs(msg);
if (VERBOSE_MED)
- HDprintf("Encode/Decode DCPLs\n");
+ printf("Encode/Decode DCPLs\n");
/******* ENCODE/DECODE DCPLS *****/
TESTING("Default DCPL Encoding/Decoding");
@@ -242,7 +242,7 @@ main(void)
/******* ENCODE/DECODE DCPLS *****/
TESTING("DCPL Encoding/Decoding for virtual layout");
if (high < H5F_LIBVER_V110)
- HDprintf(" SKIPPED: virtual layout not supported yet\n");
+ printf(" SKIPPED: virtual layout not supported yet\n");
else {
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0)
@@ -679,6 +679,6 @@ main(void)
return 0;
error:
- HDprintf("***** Plist Encode/Decode tests FAILED! *****\n");
+ printf("***** Plist Encode/Decode tests FAILED! *****\n");
return 1;
}
diff --git a/test/enc_dec_plist_cross_platform.c b/test/enc_dec_plist_cross_platform.c
index 8aac862..7092dc4 100644
--- a/test/enc_dec_plist_cross_platform.c
+++ b/test/enc_dec_plist_cross_platform.c
@@ -27,7 +27,7 @@ int
main(void)
{
if (VERBOSE_MED)
- HDprintf("Encode/Decode property list endianness\n");
+ printf("Encode/Decode property list endianness\n");
/******* ENCODE/DECODE DCPLS *****/
TESTING("Default DCPL Encoding/Decoding");
@@ -224,6 +224,6 @@ test_plists(const char *filename_prefix)
return 1;
error:
- HDprintf("***** Plist Encode/Decode tests FAILED! *****\n");
+ printf("***** Plist Encode/Decode tests FAILED! *****\n");
return -1;
}
diff --git a/test/enum.c b/test/enum.c
index 0798e6c..4b8d7c7 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -185,8 +185,8 @@ test_conv(hid_t file)
for (i = 0; i < ds_size; i++)
if (data1[i] != data2[i]) {
H5_FAILED();
- HDprintf(" 1. data1[%zu]=%d, data2[%zu]=%d (should be same)\n", i, (int)data1[i], i,
- (int)data2[i]);
+ printf(" 1. data1[%zu]=%d, data2[%zu]=%d (should be same)\n", i, (int)data1[i], i,
+ (int)data2[i]);
goto error;
}
@@ -197,8 +197,8 @@ test_conv(hid_t file)
for (i = 0; i < ds_size; i++)
if ((int)data1[i] != (int)data_short[i]) {
H5_FAILED();
- HDprintf(" 2. data1[%zu]=%d, data_short[%zu]=%d (should be same)\n", i, (int)data1[i], i,
- (int)data_short[i]);
+ printf(" 2. data1[%zu]=%d, data_short[%zu]=%d (should be same)\n", i, (int)data1[i], i,
+ (int)data_short[i]);
goto error;
}
@@ -209,8 +209,8 @@ test_conv(hid_t file)
for (i = 0; i < ds_size; i++)
if ((int)data1[i] != (int)data_double[i]) {
H5_FAILED();
- HDprintf(" 3. data1[%zu]=%d, data_double[%zu]=%d (should be same)\n", i, (int)data1[i], i,
- (int)data_double[i]);
+ printf(" 3. data1[%zu]=%d, data_double[%zu]=%d (should be same)\n", i, (int)data1[i], i,
+ (int)data_double[i]);
goto error;
}
@@ -235,8 +235,8 @@ test_conv(hid_t file)
for (i = 0; i < ds_size; i++)
if ((int)data1[i] != data_int[i]) {
H5_FAILED();
- HDprintf(" 4. data1[%zu]=%d, data_int[%zu]=%d (should be same)\n", i, (int)data1[i], i,
- data_int[i]);
+ printf(" 4. data1[%zu]=%d, data_int[%zu]=%d (should be same)\n", i, (int)data1[i], i,
+ data_int[i]);
goto error;
}
@@ -261,8 +261,8 @@ test_conv(hid_t file)
for (i = 0; i < ds_size; i++)
if ((int)data1[i] != (int)data_double[i]) {
H5_FAILED();
- HDprintf(" 5. data1[%zu]=%d, data_double[%zu]=%d (should be same)\n", i, (int)data1[i], i,
- (int)data_double[i]);
+ printf(" 5. data1[%zu]=%d, data_double[%zu]=%d (should be same)\n", i, (int)data1[i], i,
+ (int)data_double[i]);
goto error;
}
@@ -360,8 +360,7 @@ test_tr1(hid_t file)
for (size_t i = 0; i < ds_size; i++)
if (data1[i] != data2[i]) {
H5_FAILED();
- HDprintf(" data1[%zu]=%d, data2[%zu]=%d (should be same)\n", i, (int)data1[i], i,
- (int)data2[i]);
+ printf(" data1[%zu]=%d, data2[%zu]=%d (should be same)\n", i, (int)data1[i], i, (int)data2[i]);
goto error;
}
@@ -461,8 +460,7 @@ test_tr2(hid_t file)
for (i = 0; i < ds_size; i++)
if (data1[i] != data2[i]) {
H5_FAILED();
- HDprintf(" data1[%zu]=%d, data2[%zu]=%d (should be same)\n", i, (int)data1[i], i,
- (int)data2[i]);
+ printf(" data1[%zu]=%d, data2[%zu]=%d (should be same)\n", i, (int)data1[i], i, (int)data2[i]);
goto error;
}
@@ -567,7 +565,7 @@ test_value_dsnt_exist(void)
H5E_END_TRY;
if (ret >= 0) {
H5_FAILED();
- HDprintf("Bad value: %d -- ", BAD_VALUES[i]);
+ printf("Bad value: %d -- ", BAD_VALUES[i]);
PUTS_ERROR("H5Tenum_nameof should not pass with a non-existing value");
}
}
@@ -581,7 +579,7 @@ test_value_dsnt_exist(void)
H5E_END_TRY;
if (ret >= 0) {
H5_FAILED();
- HDprintf("Bad name: %s -- ", BAD_NAMES[i]);
+ printf("Bad name: %s -- ", BAD_NAMES[i]);
PUTS_ERROR("H5Tenum_valueof should not pass with a non-existing name");
}
}
diff --git a/test/err_compat.c b/test/err_compat.c
index b550b84..4285b05 100644
--- a/test/err_compat.c
+++ b/test/err_compat.c
@@ -22,7 +22,7 @@
int
main(void)
{
- HDprintf("Test skipped because backward compatibility with v1.6 is NOT configured in\n");
+ printf("Test skipped because backward compatibility with v1.6 is NOT configured in\n");
return 0;
}
#else /* H5_NO_DEPRECATED_SYMBOLS */
@@ -60,7 +60,7 @@ static herr_t
user_print1(FILE *stream)
{
/* Customized way to print errors */
- HDfprintf(stderr, "\n********* Print error stack in customized way *********\n");
+ fprintf(stderr, "\n********* Print error stack in customized way *********\n");
if (H5Ewalk1(H5E_WALK_UPWARD, (H5E_walk1_t)custom_print_cb1, stream) < 0)
TEST_ERROR;
@@ -88,7 +88,7 @@ static herr_t
user_print2(hid_t err_stack, FILE *stream)
{
/* Customized way to print errors */
- HDfprintf(stderr, "\n********* Print error stack in customized way *********\n");
+ fprintf(stderr, "\n********* Print error stack in customized way *********\n");
if (H5Ewalk2(err_stack, H5E_WALK_UPWARD, (H5E_walk2_t)custom_print_cb2, stream) < 0)
TEST_ERROR;
@@ -125,11 +125,11 @@ custom_print_cb1(int n, H5E_error1_t *err_desc, void *client_data)
if (NULL == (maj = H5Eget_major(err_desc->maj_num)))
TEST_ERROR;
- HDfprintf(stream, "%*serror #%03d: %s in %s(): line %u\n", indent, "", n, err_desc->file_name,
- err_desc->func_name, err_desc->line);
+ fprintf(stream, "%*serror #%03d: %s in %s(): line %u\n", indent, "", n, err_desc->file_name,
+ err_desc->func_name, err_desc->line);
- HDfprintf(stream, "%*smajor: %s\n", indent * 2, "", maj);
- HDfprintf(stream, "%*sminor: %s\n", indent * 2, "", min);
+ fprintf(stream, "%*smajor: %s\n", indent * 2, "", maj);
+ fprintf(stream, "%*sminor: %s\n", indent * 2, "", min);
H5free_memory(maj);
H5free_memory(min);
@@ -172,11 +172,11 @@ custom_print_cb2(int n, H5E_error2_t *err_desc, void *client_data)
if (NULL == (maj = H5Eget_major(err_desc->maj_num)))
TEST_ERROR;
- HDfprintf(stream, "%*serror #%03d: %s in %s(): line %u\n", indent, "", n, err_desc->file_name,
- err_desc->func_name, err_desc->line);
+ fprintf(stream, "%*serror #%03d: %s in %s(): line %u\n", indent, "", n, err_desc->file_name,
+ err_desc->func_name, err_desc->line);
- HDfprintf(stream, "%*smajor: %s\n", indent * 2, "", maj);
- HDfprintf(stream, "%*sminor: %s\n", indent * 2, "", min);
+ fprintf(stream, "%*smajor: %s\n", indent * 2, "", maj);
+ fprintf(stream, "%*sminor: %s\n", indent * 2, "", min);
H5free_memory(maj);
H5free_memory(min);
@@ -218,7 +218,7 @@ test_error_compat(void)
TESTING("error API H5Eset/get_auto");
/* Add a newline and flush so the output file looks nicer */
- HDprintf("\n");
+ printf("\n");
HDfflush(stdout);
/* Create the dataspace */
@@ -351,7 +351,7 @@ test_h5epush1(hid_t file)
TESTING("error API based on data I/O");
/* Add a newline and flush so the output file looks nicer */
- HDprintf("\n");
+ printf("\n");
HDfflush(stdout);
/* Create the dataspace */
@@ -430,12 +430,12 @@ static herr_t
dump_error(void)
{
/* Print errors in library default way */
- HDfprintf(stderr, "********* Print error stack in HDF5 default way *********\n");
+ fprintf(stderr, "********* Print error stack in HDF5 default way *********\n");
if (H5Eprint1(stderr) < 0)
TEST_ERROR;
/* Customized way to print errors */
- HDfprintf(stderr, "\n********* Print error stack in customized way *********\n");
+ fprintf(stderr, "\n********* Print error stack in customized way *********\n");
if (H5Ewalk1(H5E_WALK_UPWARD, custom_print_cb1, stderr) < 0)
TEST_ERROR;
@@ -464,8 +464,8 @@ main(void)
const char *FUNC_main = "main";
int i;
- HDfprintf(stderr, " This program tests the Error API compatible with HDF5 v1.6. There are supposed to "
- "be some error messages\n");
+ fprintf(stderr, " This program tests the Error API compatible with HDF5 v1.6. There are supposed to "
+ "be some error messages\n");
fapl_id = h5_fileaccess();
/* Set up data arrays */
@@ -523,7 +523,7 @@ main(void)
HDfree(icheck2);
HDfree(icheck2_data);
- HDprintf("All error API tests passed.\n");
+ printf("All error API tests passed.\n");
return EXIT_SUCCESS;
error:
@@ -539,7 +539,7 @@ error:
}
H5E_END_TRY
- HDprintf("***** ERROR TEST FAILED! *****\n");
+ printf("***** ERROR TEST FAILED! *****\n");
return EXIT_FAILURE;
}
#endif /* H5_NO_DEPRECATED_SYMBOLS */
diff --git a/test/error_test.c b/test/error_test.c
index 97802a3..5578af4 100644
--- a/test/error_test.c
+++ b/test/error_test.c
@@ -23,7 +23,7 @@
int
main(void)
{
- HDfprintf(stderr, "Test skipped because backward compatibility with v1.6 is configured in\n");
+ fprintf(stderr, "Test skipped because backward compatibility with v1.6 is configured in\n");
return 0;
}
#else /* H5_USE_16_API */
@@ -100,7 +100,7 @@ test_error(hid_t file)
H5E_auto2_t old_func;
void *old_data = NULL;
- HDfprintf(stderr, "\nTesting error API based on data I/O\n");
+ fprintf(stderr, "\nTesting error API based on data I/O\n");
/* Create the data space */
dims[0] = DIM0;
@@ -390,12 +390,12 @@ static herr_t
dump_error(hid_t estack)
{
/* Print errors in library default way */
- HDfprintf(stderr, "********* Print error stack in HDF5 default way *********\n");
+ fprintf(stderr, "********* Print error stack in HDF5 default way *********\n");
if (H5Eprint2(estack, stderr) < 0)
TEST_ERROR;
/* Customized way to print errors */
- HDfprintf(stderr, "\n********* Print error stack in customized way *********\n");
+ fprintf(stderr, "\n********* Print error stack in customized way *********\n");
if (H5Ewalk2(estack, H5E_WALK_UPWARD, custom_print_cb, stderr) < 0)
TEST_ERROR;
@@ -434,11 +434,11 @@ custom_print_cb(unsigned n, const H5E_error2_t *err_desc, void *client_data)
if (H5Eget_msg(err_desc->min_num, NULL, min, MSG_SIZE) < 0)
TEST_ERROR;
- HDfprintf(stream, "%*serror #%03d: %s in %s(): line %u\n", indent, "", n, err_desc->file_name,
- err_desc->func_name, err_desc->line);
- HDfprintf(stream, "%*sclass: %s\n", indent * 2, "", cls);
- HDfprintf(stream, "%*smajor: %s\n", indent * 2, "", maj);
- HDfprintf(stream, "%*sminor: %s\n", indent * 2, "", min);
+ fprintf(stream, "%*serror #%03d: %s in %s(): line %u\n", indent, "", n, err_desc->file_name,
+ err_desc->func_name, err_desc->line);
+ fprintf(stream, "%*sclass: %s\n", indent * 2, "", cls);
+ fprintf(stream, "%*smajor: %s\n", indent * 2, "", maj);
+ fprintf(stream, "%*sminor: %s\n", indent * 2, "", min);
return 0;
@@ -744,7 +744,7 @@ test_filter_error(const char *fname, hid_t fapl)
hid_t dataset = -1;
int buf[20];
- HDfprintf(stderr, "\nTesting error message during data reading when filter isn't registered\n");
+ fprintf(stderr, "\nTesting error message during data reading when filter isn't registered\n");
/* Open the file */
if ((file = H5Fopen(pathname, H5F_ACC_RDONLY, fapl)) < 0)
@@ -793,7 +793,7 @@ main(void)
if (env_h5_drvr == NULL)
env_h5_drvr = "nomatch";
- HDfprintf(stderr, " This program tests the Error API. There're supposed to be some error messages\n");
+ fprintf(stderr, " This program tests the Error API. There're supposed to be some error messages\n");
/* Initialize errors */
if (init_error() < 0)
@@ -900,7 +900,7 @@ main(void)
HDfree(icheck2);
HDfree(icheck2_data);
- HDfprintf(stderr, "\nAll error API tests passed.\n");
+ fprintf(stderr, "\nAll error API tests passed.\n");
return 0;
error:
@@ -909,7 +909,7 @@ error:
HDfree(icheck2);
HDfree(icheck2_data);
- HDfprintf(stderr, "\n***** ERROR TEST FAILED (real problem)! *****\n");
+ fprintf(stderr, "\n***** ERROR TEST FAILED (real problem)! *****\n");
return 1;
}
#endif /* H5_USE_16_API */
diff --git a/test/evict_on_close.c b/test/evict_on_close.c
index 07efc98..af87c37 100644
--- a/test/evict_on_close.c
+++ b/test/evict_on_close.c
@@ -601,10 +601,10 @@ check_group_layout(hid_t fid, const char *group_name)
before = file_ptr->shared->cache->index_len;
#ifdef EOC_MANUAL_INSPECTION
- HDprintf("\nCACHE BEFORE GROUP OPEN:\n");
+ printf("\nCACHE BEFORE GROUP OPEN:\n");
if (H5AC_dump_cache(file_ptr) < 0)
TEST_ERROR;
- HDprintf("NUMBER OF CACHE ENTRIES: %u\n", before);
+ printf("NUMBER OF CACHE ENTRIES: %u\n", before);
#endif
/* Open the main group and get its tag */
@@ -641,11 +641,11 @@ check_group_layout(hid_t fid, const char *group_name)
during = file_ptr->shared->cache->index_len;
#ifdef EOC_MANUAL_INSPECTION
- HDprintf("\nCACHE AFTER OPENING GROUPS (WHILE OPEN):\n");
+ printf("\nCACHE AFTER OPENING GROUPS (WHILE OPEN):\n");
if (H5AC_dump_cache(file_ptr) < 0)
TEST_ERROR;
- HDprintf("MAIN GROUP TAG: %#X\n", tag1);
- HDprintf("NUMBER OF CACHE ENTRIES: %u\n", during);
+ printf("MAIN GROUP TAG: %#X\n", tag1);
+ printf("NUMBER OF CACHE ENTRIES: %u\n", during);
#endif
/* Close the main group */
@@ -656,10 +656,10 @@ check_group_layout(hid_t fid, const char *group_name)
after = file_ptr->shared->cache->index_len;
#ifdef EOC_MANUAL_INSPECTION
- HDprintf("\nCACHE AFTER CLOSING GROUPS:\n");
+ printf("\nCACHE AFTER CLOSING GROUPS:\n");
if (H5AC_dump_cache(file_ptr) < 0)
TEST_ERROR;
- HDprintf("NUMBER OF CACHE ENTRIES: %u\n", after);
+ printf("NUMBER OF CACHE ENTRIES: %u\n", after);
#endif
/* Ensure that the cache does not contain entries with the tag */
@@ -719,10 +719,10 @@ check_dset_scheme(hid_t fid, const char *dset_name)
before = file_ptr->shared->cache->index_len;
#ifdef EOC_MANUAL_INSPECTION
- HDprintf("\nCACHE BEFORE DATASET OPEN:\n");
+ printf("\nCACHE BEFORE DATASET OPEN:\n");
if (H5AC_dump_cache(file_ptr) < 0)
TEST_ERROR;
- HDprintf("NUMBER OF CACHE ENTRIES: %u\n", before);
+ printf("NUMBER OF CACHE ENTRIES: %u\n", before);
#endif
/* Open dataset and get the metadata tag */
@@ -742,11 +742,11 @@ check_dset_scheme(hid_t fid, const char *dset_name)
during = file_ptr->shared->cache->index_len;
#ifdef EOC_MANUAL_INSPECTION
- HDprintf("\nCACHE AFTER DATA READ (WHILE OPEN):\n");
+ printf("\nCACHE AFTER DATA READ (WHILE OPEN):\n");
if (H5AC_dump_cache(file_ptr) < 0)
TEST_ERROR;
- HDprintf("TAG: %#X\n", tag);
- HDprintf("NUMBER OF CACHE ENTRIES: %u\n", during);
+ printf("TAG: %#X\n", tag);
+ printf("NUMBER OF CACHE ENTRIES: %u\n", during);
#endif
/* Close the dataset */
@@ -757,10 +757,10 @@ check_dset_scheme(hid_t fid, const char *dset_name)
after = file_ptr->shared->cache->index_len;
#ifdef EOC_MANUAL_INSPECTION
- HDprintf("\nCACHE AFTER DATASET CLOSE:\n");
+ printf("\nCACHE AFTER DATASET CLOSE:\n");
if (H5AC_dump_cache(file_ptr) < 0)
TEST_ERROR;
- HDprintf("NUMBER OF CACHE ENTRIES: %u\n", after);
+ printf("NUMBER OF CACHE ENTRIES: %u\n", after);
#endif
/* Ensure that the cache does not contain entries with the tag */
@@ -887,7 +887,7 @@ main(void)
hid_t fid = -1; /* file ID */
unsigned nerrors = 0; /* number of test errors */
- HDprintf("Testing evict-on-close cache behavior\n");
+ printf("Testing evict-on-close cache behavior\n");
/* Initialize */
h5_reset();
@@ -955,13 +955,13 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All evict-on-close tests passed.\n");
+ printf("All evict-on-close tests passed.\n");
HDexit(EXIT_SUCCESS);
error:
- HDprintf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
h5_delete_all_test_files(FILENAMES, fapl_id);
H5E_BEGIN_TRY
@@ -1035,7 +1035,7 @@ main(void)
{
unsigned nerrors = 0; /* number of test errors */
- HDprintf("Testing evict-on-close cache behavior\n");
+ printf("Testing evict-on-close cache behavior\n");
/* Initialize */
h5_reset();
@@ -1046,14 +1046,14 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All evict-on-close tests passed.\n");
- HDprintf("Note that EoC is not supported under parallel so most tests are skipped.\n");
+ printf("All evict-on-close tests passed.\n");
+ printf("Note that EoC is not supported under parallel so most tests are skipped.\n");
HDexit(EXIT_SUCCESS);
error:
- HDprintf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %u evict-on-close test%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
HDexit(EXIT_FAILURE);
diff --git a/test/extend.c b/test/extend.c
index f4ce116..5735266 100644
--- a/test/extend.c
+++ b/test/extend.c
@@ -115,10 +115,10 @@ write_data(const char *msg, hid_t file, const char *name, hid_t cparms, hid_t me
for (k = 0; k < N2X; k++)
for (m = 0; m < N2Y; m++)
if (buf2[k][m] != buf1[(i % 2) * N2X + k][(j % 2) * N2Y + m]) {
- HDprintf(" i=%d, j=%d, k=%d, m=%d\n", i, j, k, m);
- HDprintf(" buf2[%d][%d]=%d\n", k, m, buf2[k][m]);
- HDprintf(" buf1[%d][%d]=%d\n", (i % 2) * N2X + k, (j % 2) * N2Y + m,
- buf1[(i % 2) * N2X + k][(j % 2) * N2Y + m]);
+ printf(" i=%d, j=%d, k=%d, m=%d\n", i, j, k, m);
+ printf(" buf2[%d][%d]=%d\n", k, m, buf2[k][m]);
+ printf(" buf1[%d][%d]=%d\n", (i % 2) * N2X + k, (j % 2) * N2Y + m,
+ buf1[(i % 2) * N2X + k][(j % 2) * N2Y + m]);
TEST_ERROR;
} /* end if */
} /* end for */
@@ -218,10 +218,10 @@ write_data_deprec(const char *msg, hid_t file, const char *name, hid_t cparms, h
for (k = 0; k < N2X; k++)
for (m = 0; m < N2Y; m++)
if (buf2[k][m] != buf1[(i % 2) * N2X + k][(j % 2) * N2Y + m]) {
- HDprintf(" i=%d, j=%d, k=%d, m=%d\n", i, j, k, m);
- HDprintf(" buf2[%d][%d]=%d\n", k, m, buf2[k][m]);
- HDprintf(" buf1[%d][%d]=%d\n", (i % 2) * N2X + k, (j % 2) * N2Y + m,
- buf1[(i % 2) * N2X + k][(j % 2) * N2Y + m]);
+ printf(" i=%d, j=%d, k=%d, m=%d\n", i, j, k, m);
+ printf(" buf2[%d][%d]=%d\n", k, m, buf2[k][m]);
+ printf(" buf1[%d][%d]=%d\n", (i % 2) * N2X + k, (j % 2) * N2Y + m,
+ buf1[(i % 2) * N2X + k][(j % 2) * N2Y + m]);
TEST_ERROR;
} /* end if */
} /* end for */
@@ -338,11 +338,11 @@ main(void)
nerrors += (h5_verify_cached_stabs(FILENAME, fapl) < 0 ? 1 : 0);
if (nerrors) {
- HDprintf("***** %d FAILURE%s! *****\n", nerrors, (1 == nerrors) ? "" : "S");
+ printf("***** %d FAILURE%s! *****\n", nerrors, (1 == nerrors) ? "" : "S");
HDexit(EXIT_FAILURE);
} /* end if */
- HDprintf("All extend tests passed.\n");
+ printf("All extend tests passed.\n");
h5_cleanup(FILENAME, fapl);
HDfree(buf1);
@@ -359,6 +359,6 @@ error:
HDfree(buf2);
HDfree(buf2_data);
- HDprintf("*** One or more extend tests failed ***\n");
+ printf("*** One or more extend tests failed ***\n");
HDexit(EXIT_FAILURE);
} /* end main() */
diff --git a/test/external.c b/test/external.c
index bca7da1..04686fe 100644
--- a/test/external.c
+++ b/test/external.c
@@ -149,7 +149,7 @@ test_non_extendible(hid_t file)
if (1 != n) {
H5_FAILED();
HDputs(" Returned external count is wrong.");
- HDprintf(" got: %d\n ans: 1\n", n);
+ printf(" got: %d\n ans: 1\n", n);
goto error;
}
@@ -159,13 +159,13 @@ test_non_extendible(hid_t file)
if (file_offset != 0) {
H5_FAILED();
HDputs(" Wrong file offset.");
- HDprintf(" got: %lu\n ans: 0\n", (unsigned long)file_offset);
+ printf(" got: %lu\n ans: 0\n", (unsigned long)file_offset);
goto error;
}
if (file_size != (max_size[0] * sizeof(int))) {
H5_FAILED();
HDputs(" Wrong file size.");
- HDprintf(" got: %" PRIuHSIZE "\n ans: %" PRIuHSIZE "\n", file_size, max_size[0] * sizeof(int));
+ printf(" got: %" PRIuHSIZE "\n ans: %" PRIuHSIZE "\n", file_size, max_size[0] * sizeof(int));
goto error;
}
@@ -418,7 +418,7 @@ test_unlimited(hid_t file)
if (1 != n) {
H5_FAILED();
HDputs(" Returned external count is wrong.");
- HDprintf(" got: %d\n ans: 1\n", n);
+ printf(" got: %d\n ans: 1\n", n);
goto error;
} /* end if */
@@ -427,13 +427,13 @@ test_unlimited(hid_t file)
if (file_offset != 0) {
H5_FAILED();
HDputs(" Wrong file offset.");
- HDprintf(" got: %lu\n ans: 0\n", (unsigned long)file_offset);
+ printf(" got: %lu\n ans: 0\n", (unsigned long)file_offset);
goto error;
}
if (H5F_UNLIMITED != file_size) {
H5_FAILED();
HDputs(" Wrong file size.");
- HDprintf(" got: %lu\n ans: INF\n", (unsigned long)file_size);
+ printf(" got: %lu\n ans: INF\n", (unsigned long)file_size);
goto error;
}
@@ -482,12 +482,12 @@ add_external_files(hid_t dcpl_id, unsigned int n_external_files, off_t offset, h
}
for (i = 0; i < n_external_files; i++) {
if (HDsnprintf(exname, AEF_EXNAME_MAX_LEN, "ext%d.data", i + 1) > AEF_EXNAME_MAX_LEN) {
- HDfprintf(stderr, "External file %d overflows name buffer\n", i + 1);
+ fprintf(stderr, "External file %d overflows name buffer\n", i + 1);
HDfflush(stderr);
return -1;
}
if (H5Pset_external(dcpl_id, exname, offset, max_ext_size) < 0) {
- HDfprintf(stderr, "Problem adding external file %s\n", exname);
+ fprintf(stderr, "Problem adding external file %s\n", exname);
HDfflush(stderr);
return -1;
}
@@ -1527,6 +1527,6 @@ error:
}
H5E_END_TRY
nerrors = MAX(1, nerrors);
- HDprintf("%d TEST%s FAILED.\n", nerrors, 1 == nerrors ? "" : "s");
+ printf("%d TEST%s FAILED.\n", nerrors, 1 == nerrors ? "" : "s");
return EXIT_FAILURE;
} /* end main() */
diff --git a/test/external_env.c b/test/external_env.c
index b39358f..cef98bc 100644
--- a/test/external_env.c
+++ b/test/external_env.c
@@ -214,6 +214,6 @@ error:
}
H5E_END_TRY
nerrors = MAX(1, nerrors);
- HDprintf("%d TEST%s FAILED.\n", nerrors, 1 == nerrors ? "" : "s");
+ printf("%d TEST%s FAILED.\n", nerrors, 1 == nerrors ? "" : "s");
return EXIT_FAILURE;
} /* end main() */
diff --git a/test/farray.c b/test/farray.c
index 6a19e34..39cd014 100644
--- a/test/farray.c
+++ b/test/farray.c
@@ -177,20 +177,20 @@ check_stats(const H5FA_t *fa, const farray_state_t *state)
/* Compare information */
if (farray_stats.hdr_size != state->hdr_size) {
- HDfprintf(stdout, "farray_stats.hdr_size = %" PRIuHSIZE ", state->hdr_size = %" PRIuHSIZE "\n",
- farray_stats.hdr_size, state->hdr_size);
+ fprintf(stdout, "farray_stats.hdr_size = %" PRIuHSIZE ", state->hdr_size = %" PRIuHSIZE "\n",
+ farray_stats.hdr_size, state->hdr_size);
TEST_ERROR;
}
if (farray_stats.dblk_size != state->dblk_size) {
- HDfprintf(stdout, "farray_stats.dblk_size = %" PRIuHSIZE ", state->dblk_size = %" PRIuHSIZE "\n",
- farray_stats.dblk_size, state->dblk_size);
+ fprintf(stdout, "farray_stats.dblk_size = %" PRIuHSIZE ", state->dblk_size = %" PRIuHSIZE "\n",
+ farray_stats.dblk_size, state->dblk_size);
TEST_ERROR;
}
if (farray_stats.nelmts != state->nelmts) {
- HDfprintf(stdout, "farray_stats.nelmts = %" PRIuHSIZE ", state->nelmts = %" PRIuHSIZE "\n",
- farray_stats.nelmts, state->nelmts);
+ fprintf(stdout, "farray_stats.nelmts = %" PRIuHSIZE ", state->nelmts = %" PRIuHSIZE "\n",
+ farray_stats.nelmts, state->nelmts);
TEST_ERROR;
}
@@ -1642,7 +1642,7 @@ main(void)
fapl = h5_fileaccess();
ExpressMode = GetTestExpress();
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests may be skipped\n");
+ printf("***Express test mode on. Some tests may be skipped\n");
/* Set the filename to use for this test (dependent on fapl) */
h5_fixname(FILENAME[0], fapl, filename_g, sizeof(filename_g));
diff --git a/test/fheap.c b/test/fheap.c
index e9ce0a2..6aa3919 100644
--- a/test/fheap.c
+++ b/test/fheap.c
@@ -271,45 +271,45 @@ check_stats(const H5HF_t *fh, const fheap_heap_state_t *state)
if (H5HF_stat_info(fh, &heap_stats) < 0)
FAIL_STACK_ERROR;
if (heap_stats.man_nobjs != state->man_nobjs) {
- HDfprintf(stdout, "heap_stats.man_nobjs = %" PRIuHSIZE ", state->man_nobjs = %zu\n",
- heap_stats.man_nobjs, state->man_nobjs);
+ fprintf(stdout, "heap_stats.man_nobjs = %" PRIuHSIZE ", state->man_nobjs = %zu\n",
+ heap_stats.man_nobjs, state->man_nobjs);
TEST_ERROR;
} /* end if */
if (heap_stats.man_size != state->man_size) {
- HDfprintf(stdout, "heap_stats.man_size = %" PRIuHSIZE ", state->man_size = %" PRIuHSIZE "\n",
- heap_stats.man_size, state->man_size);
+ fprintf(stdout, "heap_stats.man_size = %" PRIuHSIZE ", state->man_size = %" PRIuHSIZE "\n",
+ heap_stats.man_size, state->man_size);
TEST_ERROR;
} /* end if */
if (heap_stats.man_alloc_size != state->man_alloc_size) {
- HDfprintf(stdout,
- "heap_stats.man_alloc_size = %" PRIuHSIZE ", state->man_alloc_size = %" PRIuHSIZE "\n",
- heap_stats.man_alloc_size, state->man_alloc_size);
+ fprintf(stdout,
+ "heap_stats.man_alloc_size = %" PRIuHSIZE ", state->man_alloc_size = %" PRIuHSIZE "\n",
+ heap_stats.man_alloc_size, state->man_alloc_size);
TEST_ERROR;
} /* end if */
if (heap_stats.man_free_space != state->man_free_space) {
- HDfprintf(stdout,
- "heap_stats.man_free_space = %" PRIuHSIZE ", state->man_free_space = %" PRIuHSIZE "\n",
- heap_stats.man_free_space, state->man_free_space);
+ fprintf(stdout,
+ "heap_stats.man_free_space = %" PRIuHSIZE ", state->man_free_space = %" PRIuHSIZE "\n",
+ heap_stats.man_free_space, state->man_free_space);
TEST_ERROR;
} /* end if */
if (heap_stats.huge_nobjs != state->huge_nobjs) {
- HDfprintf(stdout, "heap_stats.huge_nobjs = %" PRIuHSIZE ", state->huge_nobjs = %zu\n",
- heap_stats.huge_nobjs, state->huge_nobjs);
+ fprintf(stdout, "heap_stats.huge_nobjs = %" PRIuHSIZE ", state->huge_nobjs = %zu\n",
+ heap_stats.huge_nobjs, state->huge_nobjs);
TEST_ERROR;
} /* end if */
if (heap_stats.huge_size != state->huge_size) {
- HDfprintf(stdout, "heap_stats.huge_size = %" PRIuHSIZE ", state->huge_size = %" PRIuHSIZE "\n",
- heap_stats.huge_size, state->huge_size);
+ fprintf(stdout, "heap_stats.huge_size = %" PRIuHSIZE ", state->huge_size = %" PRIuHSIZE "\n",
+ heap_stats.huge_size, state->huge_size);
TEST_ERROR;
} /* end if */
if (heap_stats.tiny_nobjs != state->tiny_nobjs) {
- HDfprintf(stdout, "heap_stats.tiny_nobjs = %" PRIuHSIZE ", state->tiny_nobjs = %zu\n",
- heap_stats.tiny_nobjs, state->tiny_nobjs);
+ fprintf(stdout, "heap_stats.tiny_nobjs = %" PRIuHSIZE ", state->tiny_nobjs = %zu\n",
+ heap_stats.tiny_nobjs, state->tiny_nobjs);
TEST_ERROR;
} /* end if */
if (heap_stats.tiny_size != state->tiny_size) {
- HDfprintf(stdout, "heap_stats.tiny_size = %" PRIuHSIZE ", state->tiny_size = %" PRIuHSIZE "\n",
- heap_stats.tiny_size, state->tiny_size);
+ fprintf(stdout, "heap_stats.tiny_size = %" PRIuHSIZE ", state->tiny_size = %" PRIuHSIZE "\n",
+ heap_stats.tiny_size, state->tiny_size);
TEST_ERROR;
} /* end if */
@@ -6438,7 +6438,7 @@ test_man_remove_bogus(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa
seed = (unsigned long)HDtime(NULL);
#if 0
/* seed = (unsigned long)1155438845; */
-HDfprintf(stderr, "Random # seed was: %lu\n", seed);
+fprintf(stderr, "Random # seed was: %lu\n", seed);
#endif
HDsrandom((unsigned)seed);
@@ -6510,7 +6510,7 @@ HDfprintf(stderr, "Random # seed was: %lu\n", seed);
return (0);
error:
- HDfprintf(stderr, "Random # seed was: %lu\n", seed);
+ fprintf(stderr, "Random # seed was: %lu\n", seed);
H5E_BEGIN_TRY
{
if (fh)
@@ -15508,7 +15508,7 @@ test_random(hsize_t size_limit, hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
seed = (unsigned long)HDtime(NULL);
#if 0
/* seed = (unsigned long)1156158635; */
-HDfprintf(stderr, "Random # seed was: %lu\n", seed);
+fprintf(stderr, "Random # seed was: %lu\n", seed);
#endif
HDsrandom((unsigned)seed);
@@ -15608,7 +15608,7 @@ HDfprintf(stderr, "Random # seed was: %lu\n", seed);
return (0);
error:
- HDfprintf(stderr, "Random # seed was: %lu\n", seed);
+ fprintf(stderr, "Random # seed was: %lu\n", seed);
H5E_BEGIN_TRY
{
H5MM_xfree(keep_ids.ids);
@@ -15714,7 +15714,7 @@ test_random_pow2(hsize_t size_limit, hid_t fapl, H5HF_create_t *cparam, fheap_te
seed = (unsigned long)HDtime(NULL);
#if 0
/* seed = (unsigned long)1155181717; */
-HDfprintf(stderr, "Random # seed was: %lu\n", seed);
+fprintf(stderr, "Random # seed was: %lu\n", seed);
#endif
HDsrandom((unsigned)seed);
@@ -15826,7 +15826,7 @@ HDfprintf(stderr, "Random # seed was: %lu\n", seed);
return (0);
error:
- HDfprintf(stderr, "Random # seed was: %lu\n", seed);
+ fprintf(stderr, "Random # seed was: %lu\n", seed);
H5E_BEGIN_TRY
{
H5MM_xfree(keep_ids.ids);
@@ -16362,7 +16362,7 @@ main(void)
* in the future for parallel build.
*/
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests may be skipped\n");
+ printf("***Express test mode on. Some tests may be skipped\n");
else if (ExpressMode == 0) {
#ifdef H5_HAVE_PARALLEL
num_pb_fs = NUM_PB_FS - 2;
@@ -16580,7 +16580,7 @@ main(void)
* level of complexity gradually. -QAK
*/
if (ExpressMode > 1)
- HDprintf(
+ printf(
"***Express test mode on. test_man_start_5th_recursive_indirect is skipped\n");
else
nerrors += test_man_start_5th_recursive_indirect(fapl, &small_cparam, &tparam);
@@ -16628,7 +16628,7 @@ main(void)
nerrors += test_man_remove_first_two_rows(fapl, &small_cparam, &tparam);
nerrors += test_man_remove_first_four_rows(fapl, &small_cparam, &tparam);
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests skipped\n");
+ printf("***Express test mode on. Some tests skipped\n");
else {
nerrors += test_man_remove_all_root_direct(fapl, &small_cparam, &tparam);
nerrors += test_man_remove_2nd_indirect(fapl, &small_cparam, &tparam);
@@ -16678,7 +16678,7 @@ main(void)
test_man_fill_1st_row_3rd_direct_fill_2nd_direct_less_one_wrap_start_block_add_skipped(
fapl, &small_cparam, &tparam);
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests skipped\n");
+ printf("***Express test mode on. Some tests skipped\n");
else {
nerrors +=
test_man_fill_3rd_direct_fill_direct_skip_start_block_add_skipped(
@@ -16808,7 +16808,7 @@ main(void)
/* Random object insertion & deletion */
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests skipped\n");
+ printf("***Express test mode on. Some tests skipped\n");
else {
/* Random tests using "small" heap creation parameters */
HDputs("Using 'small' heap creation parameters");
diff --git a/test/file_image.c b/test/file_image.c
index 60cd186..a43f176 100644
--- a/test/file_image.c
+++ b/test/file_image.c
@@ -1349,7 +1349,7 @@ main(void)
h5_reset();
- HDprintf("Testing File Image Functionality.\n");
+ printf("Testing File Image Functionality.\n");
errors += test_properties();
errors += test_callbacks();
@@ -1412,10 +1412,10 @@ main(void)
h5_restore_err();
if (errors) {
- HDprintf("***** %d File Image TEST%s FAILED! *****\n", errors, errors > 1 ? "S" : "");
+ printf("***** %d File Image TEST%s FAILED! *****\n", errors, errors > 1 ? "S" : "");
return 1;
}
- HDprintf("All File Image tests passed.\n");
+ printf("All File Image tests passed.\n");
return 0;
}
diff --git a/test/fillval.c b/test/fillval.c
index d701521..03815e4 100644
--- a/test/fillval.c
+++ b/test/fillval.c
@@ -610,8 +610,8 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
goto error;
if (rd_s != fill_s) {
H5_FAILED();
- HDprintf(" %d: Got a different fill value than what was set.", __LINE__);
- HDprintf(" Got %d, set %d\n", rd_s, fill_s);
+ printf(" %d: Got a different fill value than what was set.", __LINE__);
+ printf(" Got %d, set %d\n", rd_s, fill_s);
goto error;
}
#endif
@@ -630,8 +630,8 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
goto error;
if (rd_l != fill_l) {
H5_FAILED();
- HDprintf(" %d: Got a different fill value than what was set.", __LINE__);
- HDprintf(" Got %ld, set %ld\n", rd_l, fill_l);
+ printf(" %d: Got a different fill value than what was set.", __LINE__);
+ printf(" Got %ld, set %ld\n", rd_l, fill_l);
goto error;
}
#endif
@@ -650,8 +650,8 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
goto error;
if (rd_l != fill_l) {
H5_FAILED();
- HDprintf(" %d: Got a different fill value than what was set.", __LINE__);
- HDprintf(" Got %ld, set %ld\n", rd_l, fill_l);
+ printf(" %d: Got a different fill value than what was set.", __LINE__);
+ printf(" Got %ld, set %ld\n", rd_l, fill_l);
goto error;
}
#endif
@@ -662,12 +662,12 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
if (alloc_time != H5D_ALLOC_TIME_LATE) {
H5_FAILED();
HDputs(" Got non-H5D_ALLOC_TIME_LATE space allocation time.");
- HDprintf(" Got %d\n", alloc_time);
+ printf(" Got %d\n", alloc_time);
}
if (fill_time != H5D_FILL_TIME_ALLOC) {
H5_FAILED();
HDputs(" Got non-H5D_FILL_TIME_ALLOC fill value write time.");
- HDprintf(" Got %d\n", fill_time);
+ printf(" Got %d\n", fill_time);
}
if (H5Dclose(dset3) < 0)
goto error;
@@ -682,7 +682,7 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
if (layout == H5D_CONTIGUOUS && allocation != H5D_SPACE_STATUS_NOT_ALLOCATED) {
H5_FAILED();
HDputs(" Got allocated space instead of unallocated.");
- HDprintf(" Got %d\n", allocation);
+ printf(" Got %d\n", allocation);
goto error;
}
if ((dcpl = H5Dget_create_plist(dset4)) < 0)
@@ -694,12 +694,12 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
if (alloc_time != H5D_ALLOC_TIME_LATE) {
H5_FAILED();
HDputs(" Got non-H5D_ALLOC_TIME_LATE space allocation time.");
- HDprintf(" Got %d\n", alloc_time);
+ printf(" Got %d\n", alloc_time);
}
if (fill_time != H5D_FILL_TIME_NEVER) {
H5_FAILED();
HDputs(" Got non-H5D_FILL_TIME_NEVER fill value write time.");
- HDprintf(" Got %d\n", fill_time);
+ printf(" Got %d\n", fill_time);
}
if (H5Dclose(dset4) < 0)
goto error;
@@ -717,8 +717,8 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
rd_c.z != '\0') {
H5_FAILED();
HDputs(" Got wrong fill value");
- HDprintf(" Got rd_c.a=%f, rd_c.y=%f and rd_c.x=%d, rd_c.z=%c\n", (double)rd_c.a, rd_c.y,
- rd_c.x, rd_c.z);
+ printf(" Got rd_c.a=%f, rd_c.y=%f and rd_c.x=%d, rd_c.z=%c\n", (double)rd_c.a, rd_c.y, rd_c.x,
+ rd_c.z);
}
if (H5Dclose(dset9) < 0)
goto error;
@@ -737,8 +737,8 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
goto error;
if (layout == H5D_CONTIGUOUS && allocation != H5D_SPACE_STATUS_ALLOCATED) {
H5_FAILED();
- HDprintf(" %d: Got unallocated space instead of allocated.\n", __LINE__);
- HDprintf(" Got %d\n", allocation);
+ printf(" %d: Got unallocated space instead of allocated.\n", __LINE__);
+ printf(" Got %d\n", allocation);
goto error;
}
if (H5Pget_alloc_time(dcpl, &alloc_time) < 0)
@@ -746,14 +746,14 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
if (alloc_time != H5D_ALLOC_TIME_EARLY) {
H5_FAILED();
HDputs(" Got non-H5D_ALLOC_TIME_EARLY space allocation time.");
- HDprintf(" Got %d\n", alloc_time);
+ printf(" Got %d\n", alloc_time);
}
if (H5Pget_fill_time(dcpl, &fill_time) < 0)
goto error;
if (fill_time != H5D_FILL_TIME_NEVER) {
H5_FAILED();
HDputs(" Got non-H5D_FILL_TIME_NEVER fill value write time.");
- HDprintf(" Got %d\n", fill_time);
+ printf(" Got %d\n", fill_time);
}
if (H5Dclose(dset5) < 0)
goto error;
@@ -769,16 +769,16 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
goto error;
if (layout == H5D_CONTIGUOUS && allocation != H5D_SPACE_STATUS_ALLOCATED) {
H5_FAILED();
- HDprintf(" %d: Got unallocated space instead of allocated.\n", __LINE__);
- HDprintf(" Got %d\n", allocation);
+ printf(" %d: Got unallocated space instead of allocated.\n", __LINE__);
+ printf(" Got %d\n", allocation);
goto error;
}
if (H5Pget_fill_value(dcpl, H5T_NATIVE_LONG, &rd_l) < 0)
goto error;
if (rd_l != fill_l) {
H5_FAILED();
- HDprintf(" %d: Got a different fill value than what was set.", __LINE__);
- HDprintf(" Got %ld, set %ld\n", rd_l, fill_l);
+ printf(" %d: Got a different fill value than what was set.", __LINE__);
+ printf(" Got %ld, set %ld\n", rd_l, fill_l);
goto error;
}
if (H5Pget_alloc_time(dcpl, &alloc_time) < 0)
@@ -786,14 +786,14 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
if (alloc_time != H5D_ALLOC_TIME_EARLY) {
H5_FAILED();
HDputs(" Got non-H5D_ALLOC_TIME_EARLY space allocation time.");
- HDprintf(" Got %d\n", alloc_time);
+ printf(" Got %d\n", alloc_time);
}
if (H5Pget_fill_time(dcpl, &fill_time) < 0)
goto error;
if (fill_time != H5D_FILL_TIME_ALLOC) {
H5_FAILED();
HDputs(" Got non-H5D_FILL_TIME_ALLOC fill value write time.");
- HDprintf(" Got %d\n", fill_time);
+ printf(" Got %d\n", fill_time);
}
if (H5Dclose(dset6) < 0)
goto error;
@@ -811,8 +811,8 @@ test_create(hid_t fapl, const char *base_name, H5D_layout_t layout)
rd_c.z != '\0') {
H5_FAILED();
HDputs(" Got wrong fill value");
- HDprintf(" Got rd_c.a=%f, rd_c.y=%f and rd_c.x=%d, rd_c.z=%c\n", (double)rd_c.a, rd_c.y, rd_c.x,
- rd_c.z);
+ printf(" Got rd_c.a=%f, rd_c.y=%f and rd_c.x=%d, rd_c.z=%c\n", (double)rd_c.a, rd_c.y, rd_c.x,
+ rd_c.z);
}
if (H5Dclose(dset8) < 0)
goto error;
@@ -920,13 +920,13 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
goto error;
if (fill_time != H5D_FILL_TIME_NEVER && val_rd != fillval) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
- HDfprintf(stdout,
- " Elmt={%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE
- "}, read: %u, "
- "Fill value: %u\n",
- hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4], val_rd,
- fillval);
+ fprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
+ fprintf(stdout,
+ " Elmt={%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE
+ "}, read: %u, "
+ "Fill value: %u\n",
+ hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4], val_rd,
+ fillval);
goto error;
}
/* case for compound datatype */
@@ -938,14 +938,13 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
(!H5_FLT_ABS_EQUAL(rd_c.a, fill_c.a) || rd_c.x != fill_c.x ||
!H5_DBL_ABS_EQUAL(rd_c.y, fill_c.y) || rd_c.z != fill_c.z)) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
- HDfprintf(stdout,
- " Elmt={%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE
- "}, read: %f, %d, %f, %c"
- "Fill value: %f, %d, %f, %c\n",
- hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4],
- (double)rd_c.a, rd_c.x, rd_c.y, rd_c.z, (double)fill_c.a, fill_c.x, fill_c.y,
- fill_c.z);
+ fprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
+ fprintf(stdout,
+ " Elmt={%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE ",%" PRIuHSIZE
+ "}, read: %f, %d, %f, %c"
+ "Fill value: %f, %d, %f, %c\n",
+ hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4], (double)rd_c.a,
+ rd_c.x, rd_c.y, rd_c.z, (double)fill_c.a, fill_c.x, fill_c.y, fill_c.z);
goto error;
}
}
@@ -981,13 +980,13 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
for (u = 0; u < nelmts; u++) {
if (buf[u] != fillval) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
- HDfprintf(stdout,
- " Elmt={%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
- ", %" PRIuHSIZE "}, read: %u, "
- "Fill value: %u\n",
- hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4], buf[u],
- fillval);
+ fprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
+ fprintf(stdout,
+ " Elmt={%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
+ ", %" PRIuHSIZE "}, read: %u, "
+ "Fill value: %u\n",
+ hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4], buf[u],
+ fillval);
goto error;
} /* end if */
} /* end for */
@@ -1008,14 +1007,14 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
if (!H5_FLT_ABS_EQUAL(buf_c[u].a, fill_c.a) || buf_c[u].x != fill_c.x ||
!H5_DBL_ABS_EQUAL(buf_c[u].y, fill_c.y) || buf_c[u].z != fill_c.z) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
- HDfprintf(stdout,
- " Elmt={%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
- ", %" PRIuHSIZE "}, read: %f, %d, %f, %c"
- "Fill value: %f, %d, %f, %c\n",
- hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4],
- (double)buf_c[u].a, buf_c[u].x, buf_c[u].y, buf_c[u].z, (double)fill_c.a,
- fill_c.x, fill_c.y, fill_c.z);
+ fprintf(stdout, "%u: Value read was not a fill value.\n", (unsigned)__LINE__);
+ fprintf(stdout,
+ " Elmt={%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
+ ", %" PRIuHSIZE "}, read: %f, %d, %f, %c"
+ "Fill value: %f, %d, %f, %c\n",
+ hs_offset[0], hs_offset[1], hs_offset[2], hs_offset[3], hs_offset[4],
+ (double)buf_c[u].a, buf_c[u].x, buf_c[u].y, buf_c[u].z, (double)fill_c.a,
+ fill_c.x, fill_c.y, fill_c.z);
goto error;
} /* end if */
} /* end for */
@@ -1051,8 +1050,8 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
goto error;
if (layout == H5D_CONTIGUOUS && allocation != H5D_SPACE_STATUS_ALLOCATED) {
H5_FAILED();
- HDprintf(" %d: Got unallocated space instead of allocated.\n", __LINE__);
- HDprintf(" Got %d\n", allocation);
+ printf(" %d: Got unallocated space instead of allocated.\n", __LINE__);
+ printf(" Got %d\n", allocation);
goto error;
}
HDfree(buf);
@@ -1078,11 +1077,11 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
should_be = odd ? fillval : 9999;
if (val_rd != should_be) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
- HDprintf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %u, "
- "should be: %u\n",
- (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
- (long)hs_offset[4], val_rd, should_be);
+ fprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
+ printf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %u, "
+ "should be: %u\n",
+ (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
+ (long)hs_offset[4], val_rd, should_be);
goto error;
}
}
@@ -1090,11 +1089,11 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
should_be = 9999;
if (val_rd != should_be) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
- HDprintf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %u, "
- "should be: %u\n",
- (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
- (long)hs_offset[4], val_rd, should_be);
+ fprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
+ printf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %u, "
+ "should be: %u\n",
+ (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
+ (long)hs_offset[4], val_rd, should_be);
goto error;
}
}
@@ -1122,12 +1121,12 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
if (!H5_FLT_ABS_EQUAL(rd_c.a, should_be_c.a) || rd_c.x != should_be_c.x ||
!H5_DBL_ABS_EQUAL(rd_c.y, should_be_c.y) || rd_c.z != should_be_c.z) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
- HDprintf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %f,%d,%f,%c "
- "should be: %f,%d,%f,%c\n",
- (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
- (long)hs_offset[4], (double)rd_c.a, rd_c.x, rd_c.y, rd_c.z,
- (double)should_be_c.a, should_be_c.x, should_be_c.y, should_be_c.z);
+ fprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
+ printf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %f,%d,%f,%c "
+ "should be: %f,%d,%f,%c\n",
+ (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
+ (long)hs_offset[4], (double)rd_c.a, rd_c.x, rd_c.y, rd_c.z, (double)should_be_c.a,
+ should_be_c.x, should_be_c.y, should_be_c.z);
goto error;
}
} /* end for fill_time == H5D_FILL_TIME_ALLOC */
@@ -1139,12 +1138,12 @@ test_rdwr_cases(hid_t file, hid_t dcpl, const char *dname, void *_fillval, H5D_f
if (!H5_FLT_ABS_EQUAL(rd_c.a, should_be_c.a) || rd_c.x != should_be_c.x ||
!H5_DBL_ABS_EQUAL(rd_c.y, should_be_c.y) || rd_c.z != should_be_c.z) {
H5_FAILED();
- HDfprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
- HDprintf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %f,%d,%f,%c "
- "should be: %f,%d,%f,%c\n",
- (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
- (long)hs_offset[4], (double)rd_c.a, rd_c.x, rd_c.y, rd_c.z,
- (double)should_be_c.a, should_be_c.x, should_be_c.y, should_be_c.z);
+ fprintf(stdout, "%u: Value read was not correct.\n", (unsigned)__LINE__);
+ printf(" Elmt={%ld,%ld,%ld,%ld,%ld}, read: %f,%d,%f,%c "
+ "should be: %f,%d,%f,%c\n",
+ (long)hs_offset[0], (long)hs_offset[1], (long)hs_offset[2], (long)hs_offset[3],
+ (long)hs_offset[4], (double)rd_c.a, rd_c.x, rd_c.y, rd_c.z, (double)should_be_c.a,
+ should_be_c.x, should_be_c.y, should_be_c.z);
goto error;
}
} /* end for fill_time == H5D_FILL_TIME_NEVER */
@@ -1430,12 +1429,12 @@ test_extend_verify_integer(unsigned lineno, const hsize_t *offset, const void *_
/* Verify value */
if (*test_val != *compare_val) {
- HDfprintf(stdout, "%u: Value read was not expected.\n", lineno);
- HDfprintf(stdout,
- " Elmt = {%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
- "}, read: %d, "
- "expected: %d\n",
- offset[0], offset[1], offset[2], offset[3], offset[4], *test_val, *compare_val);
+ fprintf(stdout, "%u: Value read was not expected.\n", lineno);
+ fprintf(stdout,
+ " Elmt = {%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
+ "}, read: %d, "
+ "expected: %d\n",
+ offset[0], offset[1], offset[2], offset[3], offset[4], *test_val, *compare_val);
goto error;
} /* end if */
@@ -1522,13 +1521,13 @@ test_extend_verify_cmpd_vl(unsigned lineno, const hsize_t *offset, const void *_
/* Verify value */
if ((test_val->x != compare_val->x) || HDstrcmp(test_val->a, compare_val->a) != 0 ||
HDstrcmp(test_val->b, compare_val->b) != 0 || (test_val->y != compare_val->y)) {
- HDfprintf(stdout, "%u: Value read was not expected.\n", lineno);
- HDfprintf(stdout,
- " Elmt = {%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
- "}, read: {%d, '%s', '%s', %d} "
- "expected: {%d, '%s', '%s', %d}\n",
- offset[0], offset[1], offset[2], offset[3], offset[4], test_val->x, test_val->a,
- test_val->b, test_val->y, compare_val->x, compare_val->a, compare_val->b, compare_val->y);
+ fprintf(stdout, "%u: Value read was not expected.\n", lineno);
+ fprintf(stdout,
+ " Elmt = {%" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE ", %" PRIuHSIZE
+ "}, read: {%d, '%s', '%s', %d} "
+ "expected: {%d, '%s', '%s', %d}\n",
+ offset[0], offset[1], offset[2], offset[3], offset[4], test_val->x, test_val->a, test_val->b,
+ test_val->y, compare_val->x, compare_val->a, compare_val->b, compare_val->y);
goto error;
} /* end if */
@@ -2222,9 +2221,9 @@ test_compatible(void)
TESTING("contiguous dataset compatibility with v. 1.4");
if ((file = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) {
- HDprintf(" Could not open file %s. Try set $srcdir to point at the "
- "source directory of test\n",
- testfile);
+ printf(" Could not open file %s. Try set $srcdir to point at the "
+ "source directory of test\n",
+ testfile);
goto error;
}
@@ -2236,8 +2235,8 @@ test_compatible(void)
goto error;
if (status != H5D_FILL_VALUE_UNDEFINED) {
H5_FAILED();
- HDprintf(" %d: Got a different fill value than what was set.", __LINE__);
- HDprintf(" Got status=%ld, suppose to be H5D_FILL_VALUE_UNDEFINED\n", (long)status);
+ printf(" %d: Got a different fill value than what was set.", __LINE__);
+ printf(" Got status=%ld, suppose to be H5D_FILL_VALUE_UNDEFINED\n", (long)status);
goto error;
}
if ((fspace = H5Dget_space(dset1)) < 0)
@@ -2247,7 +2246,7 @@ test_compatible(void)
if (dims[0] != 8 || dims[1] != 8) {
H5_FAILED();
HDputs(" Got a different dimension size than what was set.");
- HDprintf(" Got dims[0]=%ld, dims[1]=%ld, set 8x8\n", (long)dims[0], (long)dims[1]);
+ printf(" Got dims[0]=%ld, dims[1]=%ld, set 8x8\n", (long)dims[0], (long)dims[1]);
goto error;
}
if ((mspace = H5Screate_simple(2, one, NULL)) < 0)
@@ -2259,7 +2258,7 @@ test_compatible(void)
if (val_rd != 0) {
H5_FAILED();
HDputs(" Got a different value than what was set.");
- HDprintf(" Got %ld, set 0\n", (long)val_rd);
+ printf(" Got %ld, set 0\n", (long)val_rd);
goto error;
}
if (H5Pclose(dcpl1) < 0)
@@ -2279,16 +2278,16 @@ test_compatible(void)
goto error;
if (status != H5D_FILL_VALUE_USER_DEFINED) {
H5_FAILED();
- HDprintf(" %d: Got a different fill value than what was set.", __LINE__);
- HDprintf(" Got status=%ld, suppose to be H5D_FILL_VALUE_USER_DEFINED\n", (long)status);
+ printf(" %d: Got a different fill value than what was set.", __LINE__);
+ printf(" Got status=%ld, suppose to be H5D_FILL_VALUE_USER_DEFINED\n", (long)status);
goto error;
}
if (H5Pget_fill_value(dcpl2, H5T_NATIVE_INT, &rd_fill) < 0)
goto error;
if (rd_fill != fill_val) {
H5_FAILED();
- HDprintf(" %d: Got a different fill value than what was set.", __LINE__);
- HDprintf(" Got %ld, set %ld\n", (long)rd_fill, (long)fill_val);
+ printf(" %d: Got a different fill value than what was set.", __LINE__);
+ printf(" Got %ld, set %ld\n", (long)rd_fill, (long)fill_val);
goto error;
}
fspace = -1;
@@ -2300,7 +2299,7 @@ test_compatible(void)
if (dims[0] != 8 || dims[1] != 8) {
H5_FAILED();
HDputs(" Got a different dimension size than what was set.");
- HDprintf(" Got dims[0]=%ld, dims[1]=%ld, set 8x8\n", (long)dims[0], (long)dims[1]);
+ printf(" Got dims[0]=%ld, dims[1]=%ld, set 8x8\n", (long)dims[0], (long)dims[1]);
goto error;
}
if ((mspace = H5Screate_simple(2, one, NULL)) < 0)
@@ -2312,7 +2311,7 @@ test_compatible(void)
if (val_rd != fill_val) {
H5_FAILED();
HDputs(" Got a different value than what was set.");
- HDprintf(" Got %ld, set %ld\n", (long)val_rd, (long)fill_val);
+ printf(" Got %ld, set %ld\n", (long)val_rd, (long)fill_val);
goto error;
}
if (H5Pclose(dcpl2) < 0)
@@ -2430,20 +2429,20 @@ test_partalloc_cases(hid_t file, hid_t dcpl, const char *dname, H5D_fill_time_t
if ((r_values[0] != w_values[0]) || (r_values[1] != fillval) || (r_values[2] != fillval) ||
(r_values[3] != fillval)) {
H5_FAILED();
- HDfprintf(stdout, "%u: Allocated chunk value read was not correct.\n", (unsigned)__LINE__);
- HDprintf(" {%ld,%ld,%ld,%ld} should be {%ld,%ld,%ld,%ld}\n", (long)r_values[0],
- (long)r_values[1], (long)r_values[2], (long)r_values[3], (long)w_values[0],
- (long)fillval, (long)fillval, (long)fillval);
+ fprintf(stdout, "%u: Allocated chunk value read was not correct.\n", (unsigned)__LINE__);
+ printf(" {%ld,%ld,%ld,%ld} should be {%ld,%ld,%ld,%ld}\n", (long)r_values[0],
+ (long)r_values[1], (long)r_values[2], (long)r_values[3], (long)w_values[0], (long)fillval,
+ (long)fillval, (long)fillval);
goto error;
}
/* check unallocated chunk */
if ((f_values[0] != fillval) || (f_values[1] != fillval) || (f_values[2] != fillval) ||
(f_values[3] != fillval)) {
H5_FAILED();
- HDfprintf(stdout, "%u: Unallocated chunk value read was not correct.\n", (unsigned)__LINE__);
- HDprintf(" {%ld,%ld,%ld,%ld} should be {%ld,%ld,%ld,%ld}\n", (long)f_values[0],
- (long)f_values[1], (long)f_values[2], (long)f_values[3], (long)fillval, (long)fillval,
- (long)fillval, (long)fillval);
+ fprintf(stdout, "%u: Unallocated chunk value read was not correct.\n", (unsigned)__LINE__);
+ printf(" {%ld,%ld,%ld,%ld} should be {%ld,%ld,%ld,%ld}\n", (long)f_values[0],
+ (long)f_values[1], (long)f_values[2], (long)f_values[3], (long)fillval, (long)fillval,
+ (long)fillval, (long)fillval);
goto error;
}
/* for the "never fill" case expect to get trash values, so skip */
@@ -2509,14 +2508,14 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_alloc_time(dcpl, H5D_ALLOC_TIME_LATE) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, "\nALLOC_TIME_LATE\n");
+ fprintf(stdout, "\nALLOC_TIME_LATE\n");
#endif
/* case for H5D_FILL_TIME_ALLOC as fill write time and fill value to be default */
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_ALLOC) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_ALLOC\n");
+ fprintf(stdout, " FILL_TIME_ALLOC\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset1", H5D_FILL_TIME_ALLOC);
@@ -2524,7 +2523,7 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_NEVER) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_NEVER\n");
+ fprintf(stdout, " FILL_TIME_NEVER\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset2", H5D_FILL_TIME_NEVER);
@@ -2532,7 +2531,7 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_IFSET) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_IFSET\n");
+ fprintf(stdout, " FILL_TIME_IFSET\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset3", H5D_FILL_TIME_IFSET);
@@ -2540,14 +2539,14 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_alloc_time(dcpl, H5D_ALLOC_TIME_INCR) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, "\nALLOC_TIME_INCR\n");
+ fprintf(stdout, "\nALLOC_TIME_INCR\n");
#endif
/* case for H5D_FILL_TIME_ALLOC as fill write time and fill value to be default */
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_ALLOC) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_ALLOC\n");
+ fprintf(stdout, " FILL_TIME_ALLOC\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset4", H5D_FILL_TIME_ALLOC);
@@ -2555,7 +2554,7 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_NEVER) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_NEVER\n");
+ fprintf(stdout, " FILL_TIME_NEVER\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset5", H5D_FILL_TIME_NEVER);
@@ -2563,7 +2562,7 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_IFSET) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_IFSET\n");
+ fprintf(stdout, " FILL_TIME_IFSET\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset6", H5D_FILL_TIME_IFSET);
@@ -2571,14 +2570,14 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_alloc_time(dcpl, H5D_ALLOC_TIME_EARLY) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, "\nALLOC_TIME_EARLY\n");
+ fprintf(stdout, "\nALLOC_TIME_EARLY\n");
#endif
/* case for H5D_FILL_TIME_ALLOC as fill write time and fill value to be default */
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_ALLOC) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_ALLOC\n");
+ fprintf(stdout, " FILL_TIME_ALLOC\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset7", H5D_FILL_TIME_ALLOC);
@@ -2586,7 +2585,7 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_NEVER) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_NEVER\n");
+ fprintf(stdout, " FILL_TIME_NEVER\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset8", H5D_FILL_TIME_NEVER);
@@ -2594,7 +2593,7 @@ test_partalloc(hid_t fapl, const char *base_name)
if (H5Pset_fill_time(dcpl, H5D_FILL_TIME_IFSET) < 0)
goto error;
#ifdef DEBUG
- HDfprintf(stdout, " FILL_TIME_IFSET\n");
+ fprintf(stdout, " FILL_TIME_IFSET\n");
#endif
nerrors += test_partalloc_cases(file, dcpl, "dset9", H5D_FILL_TIME_IFSET);
@@ -2649,7 +2648,7 @@ main(int argc, char *argv[])
else if (!HDstrcmp(argv[argno], "compact"))
test_compact = 1;
else {
- HDfprintf(stderr, "usage: %s [contiguous] [chunked] [compact]\n", argv[0]);
+ fprintf(stderr, "usage: %s [contiguous] [chunked] [compact]\n", argv[0]);
HDexit(EXIT_FAILURE);
}
} /* end for */
diff --git a/test/filter_fail.c b/test/filter_fail.c
index c58731e..23041ed 100644
--- a/test/filter_fail.c
+++ b/test/filter_fail.c
@@ -278,16 +278,16 @@ test_filter_read(char *file_name, hid_t my_fapl)
for (i = 0; i < DIM; i++) {
if (i < DIM - 2 && rbuf[i] != i) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
- HDprintf(" rbuf[%d]=%d\n", i, rbuf[i]);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
+ printf(" rbuf[%d]=%d\n", i, rbuf[i]);
TEST_ERROR;
}
else if (i >= DIM - 2 && rbuf[i] != 0) {
H5_FAILED();
- HDprintf(" No value should be read.\n");
- HDprintf(" At index %d\n", i);
- HDprintf(" rbuf[%d]=%d\n", i, rbuf[i]);
+ printf(" No value should be read.\n");
+ printf(" At index %d\n", i);
+ printf(" rbuf[%d]=%d\n", i, rbuf[i]);
TEST_ERROR;
}
}
@@ -321,16 +321,16 @@ test_filter_read(char *file_name, hid_t my_fapl)
for (i = 0; i < DIM; i += 2) {
if (i < DIM - 2 && rbuf[i] != i) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
- HDprintf(" rbuf[%d]=%d\n", i, rbuf[i]);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
+ printf(" rbuf[%d]=%d\n", i, rbuf[i]);
TEST_ERROR;
}
else if (i >= DIM - 2 && rbuf[i] != 0) {
H5_FAILED();
- HDprintf(" No value should be read.\n");
- HDprintf(" At index %d\n", i);
- HDprintf(" rbuf[%d]=%d\n", i, rbuf[i]);
+ printf(" No value should be read.\n");
+ printf(" At index %d\n", i);
+ printf(" rbuf[%d]=%d\n", i, rbuf[i]);
TEST_ERROR;
}
}
@@ -420,7 +420,7 @@ main(void)
error:
if (nerrors) {
- HDprintf("***** %u FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %u FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
} /* end main() */
diff --git a/test/filter_plugin.c b/test/filter_plugin.c
index c09d196..f1ef4f3 100644
--- a/test/filter_plugin.c
+++ b/test/filter_plugin.c
@@ -984,7 +984,7 @@ test_path_api_calls(void)
/* Remove all existing paths */
for (u = n_paths; u > 0; u--)
if (H5PLremove(u - 1) < 0) {
- HDfprintf(stderr, " at %u: %s\n", u, path);
+ fprintf(stderr, " at %u: %s\n", u, path);
TEST_ERROR;
}
@@ -1019,7 +1019,7 @@ test_path_api_calls(void)
for (u = 0; u < n_starting_paths; u++) {
HDsnprintf(path, sizeof(path), "a_path_%u", u);
if (H5PLappend(path) < 0) {
- HDfprintf(stderr, " at %u: %s\n", u, path);
+ fprintf(stderr, " at %u: %s\n", u, path);
TEST_ERROR;
}
}
@@ -1052,7 +1052,7 @@ test_path_api_calls(void)
/* Get the path length by passing in NULL */
if ((path_len = H5PLget(0, NULL, 0)) <= 0) {
- HDfprintf(stderr, " get path 0 length failed\n");
+ fprintf(stderr, " get path 0 length failed\n");
TEST_ERROR;
}
if (path_len != 8)
@@ -1060,11 +1060,11 @@ test_path_api_calls(void)
/* Get the path */
if ((path_len = H5PLget(0, path, 256)) <= 0) {
- HDfprintf(stderr, " get 0 len: %zd : %s\n", path_len, path);
+ fprintf(stderr, " get 0 len: %zd : %s\n", path_len, path);
TEST_ERROR;
}
if (HDstrcmp(path, "a_path_0") != 0) {
- HDfprintf(stderr, " get 0: %s\n", path);
+ fprintf(stderr, " get 0: %s\n", path);
TEST_ERROR;
}
@@ -1076,7 +1076,7 @@ test_path_api_calls(void)
if ((path_len = H5PLget(1, path, 256)) <= 0)
TEST_ERROR;
if (HDstrcmp(path, "a_path_1") != 0) {
- HDfprintf(stderr, " get 1: %s\n", path);
+ fprintf(stderr, " get 1: %s\n", path);
TEST_ERROR;
}
@@ -1085,7 +1085,7 @@ test_path_api_calls(void)
TEST_ERROR;
HDsnprintf(temp_name, sizeof(temp_name), "a_path_%u", n_starting_paths - 1);
if (HDstrcmp(path, temp_name) != 0) {
- HDfprintf(stderr, " get %u: %s\n", n_starting_paths - 1, path);
+ fprintf(stderr, " get %u: %s\n", n_starting_paths - 1, path);
TEST_ERROR;
}
@@ -1122,7 +1122,7 @@ test_path_api_calls(void)
if ((path_len = H5PLget(8, path, 256)) <= 0)
TEST_ERROR;
if (HDstrcmp(path, "a_path_9") != 0) {
- HDfprintf(stderr, " get 8: %s\n", path);
+ fprintf(stderr, " get 8: %s\n", path);
TEST_ERROR;
}
@@ -1139,7 +1139,7 @@ test_path_api_calls(void)
/* Prepend one path */
HDsnprintf(path, sizeof(path), "a_path_%d", n_starting_paths + 1);
if (H5PLprepend(path) < 0) {
- HDfprintf(stderr, " prepend %u: %s\n", n_starting_paths + 1, path);
+ fprintf(stderr, " prepend %u: %s\n", n_starting_paths + 1, path);
TEST_ERROR;
}
@@ -1153,7 +1153,7 @@ test_path_api_calls(void)
if (H5PLget(8, path, 256) <= 0)
TEST_ERROR;
if (HDstrcmp(path, "a_path_7") != 0) {
- HDfprintf(stderr, " get 8: %s\n", path);
+ fprintf(stderr, " get 8: %s\n", path);
TEST_ERROR;
}
@@ -1162,7 +1162,7 @@ test_path_api_calls(void)
TEST_ERROR;
HDsnprintf(temp_name, sizeof(temp_name), "a_path_%d", n_starting_paths + 1);
if (HDstrcmp(path, temp_name) != 0) {
- HDfprintf(stderr, " get 0: %s\n", path);
+ fprintf(stderr, " get 0: %s\n", path);
TEST_ERROR;
}
@@ -1177,7 +1177,7 @@ test_path_api_calls(void)
/* Replace one path at index 1 */
HDsnprintf(path, sizeof(path), "a_path_%u", n_starting_paths + 4);
if (H5PLreplace(path, 1) < 0) {
- HDfprintf(stderr, " replace 1: %s\n", path);
+ fprintf(stderr, " replace 1: %s\n", path);
TEST_ERROR;
}
@@ -1196,7 +1196,7 @@ test_path_api_calls(void)
TEST_ERROR;
HDsnprintf(temp_name, sizeof(temp_name), "a_path_%u", n_starting_paths + 1);
if (HDstrcmp(path, temp_name) != 0) {
- HDfprintf(stderr, " get 0: %s\n", path);
+ fprintf(stderr, " get 0: %s\n", path);
TEST_ERROR;
}
@@ -1204,7 +1204,7 @@ test_path_api_calls(void)
if (H5PLget(2, path, 256) <= 0)
TEST_ERROR;
if (HDstrcmp(path, "a_path_1") != 0) {
- HDfprintf(stderr, " get 2: %s\n", path);
+ fprintf(stderr, " get 2: %s\n", path);
TEST_ERROR;
}
@@ -1228,7 +1228,7 @@ test_path_api_calls(void)
if (H5PLget(4, path, 256) <= 0)
TEST_ERROR;
if (HDstrcmp(path, "a_path_4") != 0) {
- HDfprintf(stderr, " get 4: %s\n", path);
+ fprintf(stderr, " get 4: %s\n", path);
TEST_ERROR;
}
@@ -1244,7 +1244,7 @@ test_path_api_calls(void)
/* Insert one path at index 3*/
HDsnprintf(path, sizeof(path), "a_path_%d", n_starting_paths + 5);
if (H5PLinsert(path, 3) < 0) {
- HDfprintf(stderr, " insert 3: %s\n", path);
+ fprintf(stderr, " insert 3: %s\n", path);
TEST_ERROR;
}
@@ -1252,7 +1252,7 @@ test_path_api_calls(void)
if (H5PLget(4, path, 256) <= 0)
TEST_ERROR;
if (HDstrcmp(path, "a_path_2") != 0) {
- HDfprintf(stderr, " get 4: %s\n", path);
+ fprintf(stderr, " get 4: %s\n", path);
TEST_ERROR;
}
@@ -1278,7 +1278,7 @@ test_path_api_calls(void)
/* Remove all existing paths */
for (u = n_paths; u > 0; u--)
if (H5PLremove(u - 1) < 0) {
- HDfprintf(stderr, " at %u: %s\n", u, path);
+ fprintf(stderr, " at %u: %s\n", u, path);
TEST_ERROR;
}
@@ -1617,7 +1617,7 @@ main(void)
if (nerrors)
TEST_ERROR;
- HDprintf("All plugin tests passed.\n");
+ printf("All plugin tests passed.\n");
HDexit(EXIT_SUCCESS);
@@ -1637,6 +1637,6 @@ error:
free_2D_array(&orig_dynlib4_g);
nerrors = MAX(1, nerrors);
- HDprintf("***** %d PLUGIN TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d PLUGIN TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
} /* end main() */
diff --git a/test/flush1.c b/test/flush1.c
index f64dfac..ea8cbb9 100644
--- a/test/flush1.c
+++ b/test/flush1.c
@@ -312,7 +312,7 @@ main(void)
SKIPPED();
if (!vfd_supports_swmr)
- HDprintf("NOTE: Some tests were skipped since the current VFD lacks SWMR support\n");
+ printf("NOTE: Some tests were skipped since the current VFD lacks SWMR support\n");
/* Flush console output streams */
HDfflush(stdout);
diff --git a/test/flush2.c b/test/flush2.c
index 48c3247..8c3358e 100644
--- a/test/flush2.c
+++ b/test/flush2.c
@@ -255,12 +255,12 @@ main(void)
vfd_supports_swmr = H5FD__supports_swmr_test(driver);
if (h5_driver_is_default_vfd_compatible(fapl_id, &driver_is_default_vfd_compatible) < 0) {
- HDprintf("Can't check if VFD is compatible with default VFD\n");
+ printf("Can't check if VFD is compatible with default VFD\n");
HDexit(EXIT_FAILURE);
}
if (!driver_is_default_vfd_compatible) {
- HDprintf("Skipping SWMR tests for VFD incompatible with default VFD\n");
+ printf("Skipping SWMR tests for VFD incompatible with default VFD\n");
HDexit(EXIT_SUCCESS);
}
@@ -433,7 +433,7 @@ main(void)
SKIPPED();
if (!vfd_supports_swmr)
- HDprintf("NOTE: Some tests were skipped since the current VFD lacks SWMR support\n");
+ printf("NOTE: Some tests were skipped since the current VFD lacks SWMR support\n");
h5_cleanup(FILENAME, fapl_id);
diff --git a/test/flushrefresh.c b/test/flushrefresh.c
index 1f5ee89..a2a284c 100644
--- a/test/flushrefresh.c
+++ b/test/flushrefresh.c
@@ -71,7 +71,7 @@ static FILE *errorfile;
#define PROCESS_ERROR \
{ \
errorfile = HDfopen(ERRFILE, "w+"); \
- HDfprintf(errorfile, "Error occurred in flushrefresh.\n"); \
+ fprintf(errorfile, "Error occurred in flushrefresh.\n"); \
HDfflush(errorfile); \
HDfclose(errorfile); \
TEST_ERROR; \
@@ -161,8 +161,7 @@ main(int argc, char *argv[])
TEST_ERROR;
} /* end if */
else {
- HDfprintf(stdout,
- "Skipping all flush/refresh tests (only run with SWMR-enabled file drivers).\n");
+ fprintf(stdout, "Skipping all flush/refresh tests (only run with SWMR-enabled file drivers).\n");
/* Test script is expecting some signals, so send them out to end it. */
if (end_verification() < 0)
@@ -183,7 +182,7 @@ main(int argc, char *argv[])
}
else {
/* Illegal number of arguments supplied. Error. */
- HDfprintf(stderr, "Error. %d is an Invalid number of arguments to main().\n", argc);
+ fprintf(stderr, "Error. %d is an Invalid number of arguments to main().\n", argc);
PROCESS_ERROR
} /* end if */
@@ -267,7 +266,7 @@ test_flush(void)
hsize_t dims[2] = {3, 5};
/* Testing Message */
- HDfprintf(stdout, "Testing individual object flush behavior:\n");
+ fprintf(stdout, "Testing individual object flush behavior:\n");
/* Cleanup any old error or signal files */
CLEANUP_FILES;
@@ -739,7 +738,7 @@ test_refresh(void)
int fillval = 2;
/* Testing Message */
- HDfprintf(stdout, "Testing individual object refresh behavior:\n");
+ fprintf(stdout, "Testing individual object refresh behavior:\n");
/* Cleanup any old error or signal files */
CLEANUP_FILES;
@@ -1089,20 +1088,19 @@ flush_verification(const char *obj_pathname, const char *expected)
/* Compare to expected result */
if (HDstrcmp(expected, FLUSHED) == 0) {
if ((oid < 0) || (status < 0)) {
- HDfprintf(stderr, "Error! %s should be on disk, but was NOT!\n", obj_pathname);
+ fprintf(stderr, "Error! %s should be on disk, but was NOT!\n", obj_pathname);
PROCESS_ERROR;
} /* end if */
}
else if (HDstrcmp(expected, NOT_FLUSHED) == 0) {
if ((oid > 0) || (status > 0)) {
- HDfprintf(stderr, "Error! %s not expected to be flushed, but it was found on disk!\n",
- obj_pathname);
+ fprintf(stderr, "Error! %s not expected to be flushed, but it was found on disk!\n",
+ obj_pathname);
PROCESS_ERROR;
} /* end if */
}
else {
- HDfprintf(stderr, "Error! Bad verification parameters. %s is an invalid expected outcome.\n",
- expected);
+ fprintf(stderr, "Error! Bad verification parameters. %s is an invalid expected outcome.\n", expected);
PROCESS_ERROR;
} /* end if */
@@ -1312,7 +1310,7 @@ refresh_verification(const char *obj_pathname)
PROCESS_ERROR;
} /* end if */
else {
- HDfprintf(stdout, "Error. %s is an unrecognized object.\n", obj_pathname);
+ fprintf(stdout, "Error. %s is an unrecognized object.\n", obj_pathname);
PROCESS_ERROR;
} /* end else */
@@ -1343,12 +1341,12 @@ refresh_verification(const char *obj_pathname)
} while (--tries);
if (!ok) {
- HDprintf("FLUSHED: num_attrs=%d, nmesgs=%d, nchunks=%d, total=%d\n", (int)flushed_oinfo.num_attrs,
- (int)flushed_ninfo.hdr.nmesgs, (int)flushed_ninfo.hdr.nchunks,
- (int)flushed_ninfo.hdr.space.total);
- HDprintf("REFRESHED: num_attrs=%d, nmesgs=%d, nchunks=%d, total=%d\n", (int)refreshed_oinfo.num_attrs,
- (int)refreshed_ninfo.hdr.nmesgs, (int)refreshed_ninfo.hdr.nchunks,
- (int)refreshed_ninfo.hdr.space.total);
+ printf("FLUSHED: num_attrs=%d, nmesgs=%d, nchunks=%d, total=%d\n", (int)flushed_oinfo.num_attrs,
+ (int)flushed_ninfo.hdr.nmesgs, (int)flushed_ninfo.hdr.nchunks,
+ (int)flushed_ninfo.hdr.space.total);
+ printf("REFRESHED: num_attrs=%d, nmesgs=%d, nchunks=%d, total=%d\n", (int)refreshed_oinfo.num_attrs,
+ (int)refreshed_ninfo.hdr.nmesgs, (int)refreshed_ninfo.hdr.nchunks,
+ (int)refreshed_ninfo.hdr.space.total);
PROCESS_ERROR;
}
diff --git a/test/freespace.c b/test/freespace.c
index ad53693..4a0856d 100644
--- a/test/freespace.c
+++ b/test/freespace.c
@@ -399,28 +399,27 @@ check_stats(const H5F_t *f, const H5FS_t *frsp, frspace_state_t *state)
FAIL_STACK_ERROR;
if (frspace_stats.tot_space != state->tot_space) {
- HDfprintf(stdout, "frspace_stats.tot_space = %" PRIuHSIZE ", state->tot_space = %" PRIuHSIZE "\n",
- frspace_stats.tot_space, state->tot_space);
+ fprintf(stdout, "frspace_stats.tot_space = %" PRIuHSIZE ", state->tot_space = %" PRIuHSIZE "\n",
+ frspace_stats.tot_space, state->tot_space);
TEST_ERROR;
} /* end if */
if (frspace_stats.tot_sect_count != state->tot_sect_count) {
- HDfprintf(stdout,
- "frspace_stats.tot_sect_count = %" PRIuHSIZE ", state->tot_sect_count = %" PRIuHSIZE "\n",
- frspace_stats.tot_sect_count, state->tot_sect_count);
+ fprintf(stdout,
+ "frspace_stats.tot_sect_count = %" PRIuHSIZE ", state->tot_sect_count = %" PRIuHSIZE "\n",
+ frspace_stats.tot_sect_count, state->tot_sect_count);
TEST_ERROR;
} /* end if */
if (frspace_stats.serial_sect_count != state->serial_sect_count) {
- HDfprintf(stdout,
- "frspace_stats.serial_sect_count = %" PRIuHSIZE ", state->serial_sect_count = %" PRIuHSIZE
- "\n",
- frspace_stats.serial_sect_count, state->serial_sect_count);
+ fprintf(stdout,
+ "frspace_stats.serial_sect_count = %" PRIuHSIZE ", state->serial_sect_count = %" PRIuHSIZE
+ "\n",
+ frspace_stats.serial_sect_count, state->serial_sect_count);
TEST_ERROR;
} /* end if */
if (frspace_stats.ghost_sect_count != state->ghost_sect_count) {
- HDfprintf(stdout,
- "frspace_stats.ghost_sect_count = %" PRIuHSIZE ", state->ghost_sect_count = %" PRIuHSIZE
- "\n",
- frspace_stats.ghost_sect_count, state->ghost_sect_count);
+ fprintf(stdout,
+ "frspace_stats.ghost_sect_count = %" PRIuHSIZE ", state->ghost_sect_count = %" PRIuHSIZE "\n",
+ frspace_stats.ghost_sect_count, state->ghost_sect_count);
TEST_ERROR;
} /* end if */
diff --git a/test/gen_filters.c b/test/gen_filters.c
index 35bfc04..0f0c16e 100644
--- a/test/gen_filters.c
+++ b/test/gen_filters.c
@@ -240,12 +240,12 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All tests passed.\n");
+ printf("All tests passed.\n");
return 0;
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d GEN_FILTERS FAILURES *****\n", nerrors);
+ printf("***** %d GEN_FILTERS FAILURES *****\n", nerrors);
return 1;
}
diff --git a/test/h5test.c b/test/h5test.c
index 7011121..7c16950 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -596,13 +596,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
@@ -928,13 +928,13 @@ h5_show_hostname(void)
if (mpi_initialized && !mpi_finalized) {
MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
- HDprintf("MPI-process %d.", mpi_rank);
+ printf("MPI-process %d.", mpi_rank);
}
else
- HDprintf("thread 0.");
+ printf("thread 0.");
}
#else
- HDprintf("thread %" PRIu64 ".", H5TS_thread_id());
+ printf("thread %" PRIu64 ".", H5TS_thread_id());
#endif
#ifdef H5_HAVE_WIN32_API
@@ -959,11 +959,11 @@ h5_show_hostname(void)
#endif
#ifdef H5_HAVE_GETHOSTNAME
if (HDgethostname(hostname, (size_t)80) < 0)
- HDprintf(" gethostname failed\n");
+ printf(" gethostname failed\n");
else
- HDprintf(" hostname=%s\n", hostname);
+ printf(" hostname=%s\n", hostname);
#else
- HDprintf(" gethostname not supported\n");
+ printf(" gethostname not supported\n");
#endif
#ifdef H5_HAVE_WIN32_API
WSACleanup();
@@ -1050,7 +1050,7 @@ h5_set_info_object(void)
/* actually set the darned thing */
if (MPI_SUCCESS != MPI_Info_set(h5_io_info_g, namep, valp)) {
- HDprintf("MPI_Info_set failed\n");
+ printf("MPI_Info_set failed\n");
ret_value = -1;
}
}
@@ -1079,17 +1079,17 @@ h5_dump_info_object(MPI_Info info)
int flag;
int i, nkeys;
- HDprintf("Dumping MPI Info Object (up to %d bytes per item):\n", MPI_MAX_INFO_VAL);
+ printf("Dumping MPI Info Object (up to %d bytes per item):\n", MPI_MAX_INFO_VAL);
if (info == MPI_INFO_NULL) {
- HDprintf("object is MPI_INFO_NULL\n");
+ printf("object is MPI_INFO_NULL\n");
}
else {
MPI_Info_get_nkeys(info, &nkeys);
- HDprintf("object has %d items\n", nkeys);
+ printf("object has %d items\n", nkeys);
for (i = 0; i < nkeys; i++) {
MPI_Info_get_nthkey(info, i, key);
MPI_Info_get(info, key, MPI_MAX_INFO_VAL, value, &flag);
- HDprintf("%s=%s\n", key, value);
+ printf("%s=%s\n", key, value);
}
}
}
@@ -1600,11 +1600,11 @@ h5_send_message(const char *send, const char *arg1, const char *arg2)
/* Write messages to signal file, if provided */
if (arg2 != NULL) {
assert(arg1);
- HDfprintf(signalfile, "%s\n%s\n", arg1, arg2);
+ fprintf(signalfile, "%s\n%s\n", arg1, arg2);
} /* end if */
else if (arg1 != NULL) {
assert(arg2 == NULL);
- HDfprintf(signalfile, "%s\n", arg1);
+ fprintf(signalfile, "%s\n", arg1);
} /* end if */
else {
assert(arg1 == NULL);
@@ -1664,7 +1664,7 @@ h5_wait_message(const char *waitfor)
it was likely never sent and we should fail rather
than loop infinitely */
if (HDdifftime(t1, t0) > MESSAGE_TIMEOUT) {
- HDfprintf(stdout, "Error communicating between processes. Make sure test script is running.\n");
+ fprintf(stdout, "Error communicating between processes. Make sure test script is running.\n");
TEST_ERROR;
} /* end if */
} /* end while */
@@ -1907,13 +1907,13 @@ h5_compare_file_bytes(char *f1name, char *f2name)
/* Open files for reading */
f1ptr = HDfopen(f1name, "rb");
if (f1ptr == NULL) {
- HDfprintf(stderr, "Unable to fopen() %s\n", f1name);
+ fprintf(stderr, "Unable to fopen() %s\n", f1name);
ret_value = -1;
goto done;
}
f2ptr = HDfopen(f2name, "rb");
if (f2ptr == NULL) {
- HDfprintf(stderr, "Unable to fopen() %s\n", f2name);
+ fprintf(stderr, "Unable to fopen() %s\n", f2name);
ret_value = -1;
goto done;
}
@@ -1926,8 +1926,8 @@ h5_compare_file_bytes(char *f1name, char *f2name)
f2size = HDftell(f2ptr);
if (f1size != f2size) {
- HDfprintf(stderr, "Files differ in size, %" PRIuHSIZE " vs. %" PRIuHSIZE "\n", (hsize_t)f1size,
- (hsize_t)f2size);
+ fprintf(stderr, "Files differ in size, %" PRIuHSIZE " vs. %" PRIuHSIZE "\n", (hsize_t)f1size,
+ (hsize_t)f2size);
ret_value = -1;
goto done;
}
@@ -1945,7 +1945,7 @@ h5_compare_file_bytes(char *f1name, char *f2name)
goto done;
}
if (f1char != f2char) {
- HDfprintf(stderr, "Mismatch @ 0x%" PRIXHSIZE ": 0x%X != 0x%X\n", (hsize_t)ii, f1char, f2char);
+ fprintf(stderr, "Mismatch @ 0x%" PRIXHSIZE ": 0x%X != 0x%X\n", (hsize_t)ii, f1char, f2char);
ret_value = -1;
goto done;
}
diff --git a/test/h5test.h b/test/h5test.h
index b2c2cda..0b4b36a 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -90,7 +90,7 @@ H5TEST_DLLVAR MPI_Info h5_io_info_g; /* MPI INFO object for IO */
*/
#define AT() \
do { \
- HDprintf(" at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
+ printf(" at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
} while (0)
/*
@@ -104,13 +104,13 @@ H5TEST_DLLVAR MPI_Info h5_io_info_g; /* MPI INFO object for IO */
*/
#define TESTING(WHAT) \
do { \
- HDprintf("Testing %-62s", WHAT); \
+ printf("Testing %-62s", WHAT); \
HDfflush(stdout); \
n_tests_run_g++; \
} while (0)
#define TESTING_2(WHAT) \
do { \
- HDprintf(" Testing %-60s", WHAT); \
+ printf(" Testing %-60s", WHAT); \
HDfflush(stdout); \
n_tests_run_g++; \
} while (0)
@@ -174,7 +174,7 @@ H5TEST_DLLVAR MPI_Info h5_io_info_g; /* MPI INFO object for IO */
*/
#define TESTING_MULTIPART(WHAT) \
do { \
- HDprintf("Testing %-62s", WHAT); \
+ printf("Testing %-62s", WHAT); \
HDputs(""); \
HDfflush(stdout); \
} while (0)
diff --git a/test/hdfs.c b/test/hdfs.c
index c1404f7..c5704a1 100644
--- a/test/hdfs.c
+++ b/test/hdfs.c
@@ -102,7 +102,7 @@
*/
#define JSFAILED_AT() \
{ \
- HDprintf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
+ printf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
}
/*----------------------------------------------------------------------------
@@ -193,10 +193,10 @@
{ \
JSFAILED_AT() \
if (reason != NULL) { \
- HDprintf("%s\n", (reason)); \
+ printf("%s\n", (reason)); \
} \
else { \
- HDprintf(" ! Expected %ld\n ! Actual %ld\n", (long)(expected), (long)(actual)); \
+ printf(" ! Expected %ld\n ! Actual %ld\n", (long)(expected), (long)(actual)); \
} \
}
@@ -233,10 +233,10 @@
const char *_reason = reason; \
JSFAILED_AT() \
if (_reason != NULL) { \
- HDprintf("%s\n", _reason); \
+ printf("%s\n", _reason); \
} \
else { \
- HDprintf("!!! Expected:\n%s\n!!!Actual:\n%s\n", (expected), (actual)); \
+ printf("!!! Expected:\n%s\n!!!Actual:\n%s\n", (expected), (actual)); \
} \
}
@@ -855,7 +855,7 @@ test_vfd_open(void)
}
#if HDFS_TEST_DEBUG
- HDfprintf(stderr, "testing: %s\n", T.message);
+ fprintf(stderr, "testing: %s\n", T.message);
#endif /* HDFS_TEST_DEBUG */
H5E_BEGIN_TRY
@@ -865,9 +865,9 @@ test_vfd_open(void)
H5E_END_TRY
if (NULL != fd) {
if (TRUE == T.might_use_other_driver && H5FD_HDFS != fd->driver_id) {
- HDfprintf(stderr, "\n!!!!! WARNING !!!!!\n"
- " Successful open of file on local system "
- "with non-HDFS VFD.\n");
+ fprintf(stderr, "\n!!!!! WARNING !!!!!\n"
+ " Successful open of file on local system "
+ "with non-HDFS VFD.\n");
JSVERIFY(SUCCEED, H5FDclose(fd), "unable to close errant open");
fd = NULL;
}
@@ -880,7 +880,7 @@ test_vfd_open(void)
FAIL_IF(NULL != fd) /* sanity check */
#if HDFS_TEST_DEBUG
- HDfprintf(stderr, "nominal open\n");
+ fprintf(stderr, "nominal open\n");
#endif /* HDFS_TEST_DEBUG */
/* finally, show that a file can be opened
@@ -893,7 +893,7 @@ test_vfd_open(void)
************/
#if HDFS_TEST_DEBUG
- HDfprintf(stderr, "teardown...\n");
+ fprintf(stderr, "teardown...\n");
#endif /* HDFS_TEST_DEBUG */
FAIL_IF(FAIL == H5FDclose(fd))
@@ -1499,7 +1499,7 @@ test_cmp(void)
{
TESTING("HDFS cmp (comparison)");
SKIPPED();
- HDfprintf(stderr, " TODO: Distinct valid fapls to open the same file.\n");
+ fprintf(stderr, " TODO: Distinct valid fapls to open the same file.\n");
return 0;
@@ -1596,7 +1596,7 @@ error:
***********/
#if HDFS_TEST_DEBUG
- HDprintf("\nerror!");
+ printf("\nerror!");
HDfflush(stdout);
#endif /* HDFS_TEST_DEBUG */
@@ -1656,7 +1656,7 @@ main(void)
h5_reset();
- HDprintf("Testing hdfs VFD functionality.\n");
+ printf("Testing hdfs VFD functionality.\n");
nerrors += test_fapl_config_validation();
nerrors += test_hdfs_fapl();
@@ -1669,11 +1669,11 @@ main(void)
nerrors += test_H5F_integration();
if (nerrors > 0) {
- HDprintf("***** %d hdfs TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d hdfs TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
nerrors = 1;
}
else {
- HDprintf("All hdfs tests passed.\n");
+ printf("All hdfs tests passed.\n");
}
return nerrors; /* 0 if no errors, 1 if any errors */
diff --git a/test/hyperslab.c b/test/hyperslab.c
index b17293f..79f37f9 100644
--- a/test/hyperslab.c
+++ b/test/hyperslab.c
@@ -82,19 +82,19 @@ print_array(uint8_t *array, size_t nx, size_t ny, size_t nz)
for (i = 0; i < nx; i++) {
if (nz > 1)
- HDprintf("i=%lu:\n", (unsigned long)i);
+ printf("i=%lu:\n", (unsigned long)i);
else
- HDprintf("%03lu:", (unsigned long)i);
+ printf("%03lu:", (unsigned long)i);
for (j = 0; j < ny; j++) {
if (nz > 1)
- HDprintf("%03lu:", (unsigned long)j);
+ printf("%03lu:", (unsigned long)j);
for (k = 0; k < nz; k++)
- HDprintf(" %3d", *array++);
+ printf(" %3d", *array++);
if (nz > 1)
- HDprintf("\n");
+ printf("\n");
} /* end for */
- HDprintf("\n");
+ printf("\n");
} /* end for */
} /* end print_array() */
@@ -118,7 +118,7 @@ print_ref(size_t nx, size_t ny, size_t nz)
uint8_t *array;
if (NULL != (array = (uint8_t *)HDmalloc(nx * ny * nz))) {
- HDprintf("Reference array:\n");
+ printf("Reference array:\n");
init_full(array, nx, ny, nz);
print_array(array, nx, ny, nz);
HDfree(array);
@@ -175,7 +175,7 @@ test_fill(size_t nx, size_t ny, size_t nz, size_t di, size_t dj, size_t dk, size
HDsnprintf(dim, sizeof(dim), "%lux%lux%lu", (unsigned long)nx, (unsigned long)ny, (unsigned long)nz);
} /* end else */
HDsnprintf(s, sizeof(s), "Testing hyperslab fill %-11s variable hyperslab", dim);
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
/* Allocate array */
@@ -235,15 +235,15 @@ test_fill(size_t nx, size_t ny, size_t nz, size_t di, size_t dj, size_t dk, size
* is going directly to a terminal.
*/
AT();
- HDprintf(" acc != ref_value\n");
- HDprintf(" i=%lu, j=%lu, k=%lu, "
- "dx=%lu, dy=%lu, dz=%lu, "
- "fill=%d\n",
- (unsigned long)i, (unsigned long)j, (unsigned long)k,
- (unsigned long)dx, (unsigned long)dy, (unsigned long)dz,
- fill_value);
+ printf(" acc != ref_value\n");
+ printf(" i=%lu, j=%lu, k=%lu, "
+ "dx=%lu, dy=%lu, dz=%lu, "
+ "fill=%d\n",
+ (unsigned long)i, (unsigned long)j, (unsigned long)k,
+ (unsigned long)dx, (unsigned long)dy, (unsigned long)dz,
+ fill_value);
print_ref(nx, ny, nz);
- HDprintf("\n Result is:\n");
+ printf("\n Result is:\n");
print_array(dst, nx, ny, nz);
} /* end if */
goto error;
@@ -364,7 +364,7 @@ test_copy(int mode, size_t nx, size_t ny, size_t nz, size_t di, size_t dj, size_
} /* end switch */
HDsnprintf(s, sizeof(s), "Testing hyperslab copy %-11s %s", dim, sub);
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
/*
@@ -469,13 +469,13 @@ test_copy(int mode, size_t nx, size_t ny, size_t nz, size_t di, size_t dj, size_
* going directly to a terminal.
*/
AT();
- HDprintf(" acc != ref_value\n");
- HDprintf(" i=%lu, j=%lu, k=%lu, "
- "dx=%lu, dy=%lu, dz=%lu\n",
- (unsigned long)i, (unsigned long)j, (unsigned long)k,
- (unsigned long)dx, (unsigned long)dy, (unsigned long)dz);
+ printf(" acc != ref_value\n");
+ printf(" i=%lu, j=%lu, k=%lu, "
+ "dx=%lu, dy=%lu, dz=%lu\n",
+ (unsigned long)i, (unsigned long)j, (unsigned long)k,
+ (unsigned long)dx, (unsigned long)dy, (unsigned long)dz);
print_ref(nx, ny, nz);
- HDprintf("\n Destination array is:\n");
+ printf("\n Destination array is:\n");
print_array(dst, nx, ny, nz);
} /* end if */
goto error;
@@ -506,14 +506,14 @@ test_copy(int mode, size_t nx, size_t ny, size_t nz, size_t di, size_t dj, size_
* going directly to a terminal.
*/
AT();
- HDprintf(" acc != ref_value + nx*ny*nz - "
- "dx*dy*dz\n");
- HDprintf(" i=%lu, j=%lu, k=%lu, "
- "dx=%lu, dy=%lu, dz=%lu\n",
- (unsigned long)i, (unsigned long)j, (unsigned long)k,
- (unsigned long)dx, (unsigned long)dy, (unsigned long)dz);
+ printf(" acc != ref_value + nx*ny*nz - "
+ "dx*dy*dz\n");
+ printf(" i=%lu, j=%lu, k=%lu, "
+ "dx=%lu, dy=%lu, dz=%lu\n",
+ (unsigned long)i, (unsigned long)j, (unsigned long)k,
+ (unsigned long)dx, (unsigned long)dy, (unsigned long)dz);
print_ref(nx, ny, nz);
- HDprintf("\n Destination array is:\n");
+ printf("\n Destination array is:\n");
print_array(dst, nx, ny, nz);
} /* end if */
goto error;
@@ -573,7 +573,7 @@ test_multifill(size_t nx)
} fill, *src = NULL, *dst = NULL;
hsize_t i, j;
- HDprintf("%-70s", "Testing multi-byte fill value");
+ printf("%-70s", "Testing multi-byte fill value");
HDfflush(stdout);
/* Initialize the source and destination */
@@ -630,14 +630,14 @@ test_multifill(size_t nx)
H5_FAILED();
if (!HDisatty(1)) {
AT();
- HDprintf(" fill={%d,%g,%d}\n ", fill.left, fill.mid, fill.right);
+ printf(" fill={%d,%g,%d}\n ", fill.left, fill.mid, fill.right);
for (j = 0; j < sizeof(fill); j++)
- HDprintf(" %02x", ((uint8_t *)&fill)[j]);
- HDprintf("\n dst[%lu]={%d,%g,%d}\n ", (unsigned long)i, dst[i].left, dst[i].mid,
- dst[i].right);
+ printf(" %02x", ((uint8_t *)&fill)[j]);
+ printf("\n dst[%lu]={%d,%g,%d}\n ", (unsigned long)i, dst[i].left, dst[i].mid,
+ dst[i].right);
for (j = 0; j < sizeof(dst[i]); j++)
- HDprintf(" %02x", ((uint8_t *)(dst + i))[j]);
- HDprintf("\n");
+ printf(" %02x", ((uint8_t *)(dst + i))[j]);
+ printf("\n");
} /* end if */
goto error;
} /* end if */
@@ -685,7 +685,7 @@ test_endian(size_t nx)
hsize_t size[2]; /*size vector */
hsize_t i, j;
- HDprintf("%-70s", "Testing endian conversion by stride");
+ printf("%-70s", "Testing endian conversion by stride");
HDfflush(stdout);
/* Initialize arrays */
@@ -718,10 +718,10 @@ test_endian(size_t nx)
* to a terminal.
*/
AT();
- HDprintf(" i=%lu, j=%lu\n", (unsigned long)i, (unsigned long)j);
- HDprintf(" Source array is:\n");
+ printf(" i=%lu, j=%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Source array is:\n");
print_array(src, nx, (size_t)4, (size_t)1);
- HDprintf("\n Result is:\n");
+ printf("\n Result is:\n");
print_array(dst, nx, (size_t)4, (size_t)1);
} /* end if */
goto error;
@@ -772,7 +772,7 @@ test_transpose(size_t nx, size_t ny)
HDsnprintf(s, sizeof(s), "Testing 2d transpose by stride %4lux%-lud", (unsigned long)nx,
(unsigned long)ny);
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
/* Initialize */
@@ -803,20 +803,20 @@ test_transpose(size_t nx, size_t ny)
H5_FAILED();
if (!HDisatty(1)) {
AT();
- HDprintf(" diff at i=%lu, j=%lu\n", (unsigned long)i, (unsigned long)j);
- HDprintf(" Source is:\n");
+ printf(" diff at i=%lu, j=%lu\n", (unsigned long)i, (unsigned long)j);
+ printf(" Source is:\n");
for (i = 0; i < nx; i++) {
- HDprintf("%3lu:", (unsigned long)i);
+ printf("%3lu:", (unsigned long)i);
for (j = 0; j < ny; j++)
- HDprintf(" %6d", src[i * ny + j]);
- HDprintf("\n");
+ printf(" %6d", src[i * ny + j]);
+ printf("\n");
} /* end for */
- HDprintf("\n Destination is:\n");
+ printf("\n Destination is:\n");
for (i = 0; i < ny; i++) {
- HDprintf("%3lu:", (unsigned long)i);
+ printf("%3lu:", (unsigned long)i);
for (j = 0; j < nx; j++)
- HDprintf(" %6d", dst[i * nx + j]);
- HDprintf("\n");
+ printf(" %6d", dst[i * nx + j]);
+ printf("\n");
} /* end for */
} /* end if */
goto error;
@@ -871,7 +871,7 @@ test_sub_super(size_t nx, size_t ny)
HDsnprintf(s, sizeof(s), "Testing image sampling %4lux%-4lu to %4lux%-4lu ", (unsigned long)(2 * nx),
(unsigned long)(2 * ny), (unsigned long)nx, (unsigned long)ny);
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
/* Initialize */
@@ -902,11 +902,11 @@ test_sub_super(size_t nx, size_t ny)
H5_FAILED();
if (!HDisatty(1)) {
AT();
- HDprintf(" full[%lu][%lu] != half[%lu][%lu]\n", (unsigned long)i * 2,
- (unsigned long)j * 2, (unsigned long)i, (unsigned long)j);
- HDprintf(" full is:\n");
+ printf(" full[%lu][%lu] != half[%lu][%lu]\n", (unsigned long)i * 2,
+ (unsigned long)j * 2, (unsigned long)i, (unsigned long)j);
+ printf(" full is:\n");
print_array(full, 2 * nx, 2 * ny, (size_t)1);
- HDprintf("\n half is:\n");
+ printf("\n half is:\n");
print_array(half, nx, ny, (size_t)1);
} /* end if */
goto error;
@@ -921,7 +921,7 @@ test_sub_super(size_t nx, size_t ny)
*/
HDsnprintf(s, sizeof(s), "Testing image sampling %4lux%-4lu to %4lux%-4lu ", (unsigned long)nx,
(unsigned long)ny, (unsigned long)(2 * nx), (unsigned long)(2 * ny));
- HDprintf("%-70s", s);
+ printf("%-70s", s);
HDfflush(stdout);
/* Setup stride */
@@ -961,9 +961,9 @@ test_sub_super(size_t nx, size_t ny)
H5_FAILED();
if (!HDisatty(1)) {
AT();
- HDprintf(" %s\n Half is:\n", s);
+ printf(" %s\n Half is:\n", s);
print_array(half, nx, ny, (size_t)1);
- HDprintf("\n Twice is:\n");
+ printf("\n Twice is:\n");
print_array(twice, 2 * nx, 2 * ny, (size_t)1);
} /* end if */
goto error;
@@ -1117,8 +1117,8 @@ test_array_offset_n_calc(size_t n, size_t x, size_t y, size_t z)
/* Check computed coordinates */
for (v = 0; v < ARRAY_OFFSET_NDIMS; v++)
if (coords[v] != new_coords[v]) {
- HDfprintf(stderr, "coords[%zu]=%" PRIuHSIZE ", new_coords[%zu]=%" PRIuHSIZE "\n", v,
- coords[v], v, new_coords[v]);
+ fprintf(stderr, "coords[%zu]=%" PRIuHSIZE ", new_coords[%zu]=%" PRIuHSIZE "\n", v, coords[v],
+ v, new_coords[v]);
TEST_ERROR;
} /* end if */
} /* end for */
@@ -1169,18 +1169,18 @@ main(int argc, char *argv[])
else if (!HDstrcmp(argv[i], "medium"))
size_of_test |= TEST_MEDIUM;
else {
- HDprintf("unrecognized argument: %s\n", argv[i]);
+ printf("unrecognized argument: %s\n", argv[i]);
HDexit(EXIT_FAILURE);
} /* end else */
} /* end for */
} /* end else */
- HDprintf("Test sizes: ");
+ printf("Test sizes: ");
if (size_of_test & TEST_SMALL)
- HDprintf(" SMALL");
+ printf(" SMALL");
if (size_of_test & TEST_MEDIUM)
- HDprintf(" MEDIUM");
- HDprintf("\n");
+ printf(" MEDIUM");
+ printf("\n");
/* Set the random # seed */
HDsrandom((unsigned)HDtime(NULL));
@@ -1384,13 +1384,13 @@ main(int argc, char *argv[])
/*--- END OF TESTS ---*/
if (nerrors) {
- HDprintf("***** %d HYPERSLAB TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d HYPERSLAB TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
if (HDisatty(1))
- HDprintf("(Redirect output to a pager or a file to see debug output)\n");
+ printf("(Redirect output to a pager or a file to see debug output)\n");
HDexit(EXIT_FAILURE);
} /* end if */
- HDprintf("All hyperslab tests passed.\n");
+ printf("All hyperslab tests passed.\n");
#ifdef H5_HAVE_THREADSAFE
H5close();
diff --git a/test/istore.c b/test/istore.c
index 98ef839..0b651fa 100644
--- a/test/istore.c
+++ b/test/istore.c
@@ -103,22 +103,22 @@ print_array(uint8_t *array, size_t nx, size_t ny, size_t nz)
for (i = 0; i < nx; i++) {
if (nz > 1) {
- HDfprintf(stderr, "i=%lu:\n", (unsigned long)i);
+ fprintf(stderr, "i=%lu:\n", (unsigned long)i);
}
else {
- HDfprintf(stderr, "%03lu:", (unsigned long)i);
+ fprintf(stderr, "%03lu:", (unsigned long)i);
}
for (j = 0; j < ny; j++) {
if (nz > 1)
- HDfprintf(stderr, "%03lu:", (unsigned long)j);
+ fprintf(stderr, "%03lu:", (unsigned long)j);
for (k = 0; k < nz; k++) {
- HDfprintf(stderr, " %3d", *array++);
+ fprintf(stderr, " %3d", *array++);
}
if (nz > 1)
- HDfprintf(stderr, "\n");
+ fprintf(stderr, "\n");
}
- HDfprintf(stderr, "\n");
+ fprintf(stderr, "\n");
}
}
@@ -287,7 +287,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
/* Build the new empty object */
HDsnprintf(name, sizeof(name), "%s_%s", prefix, dims);
if ((dataset = new_object(f, name, ndims, whole_size, whole_size)) < 0) {
- HDfprintf(stderr, " Cannot create %u-d object `%s'\n", ndims, name);
+ fprintf(stderr, " Cannot create %u-d object `%s'\n", ndims, name);
goto error;
}
@@ -333,7 +333,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
/* Write to disk */
if (H5Dwrite(dataset, TEST_DATATYPE, mspace, fspace, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
- HDfprintf(stderr, " Write failed: ctr=%lu\n", (unsigned long)ctr);
+ fprintf(stderr, " Write failed: ctr=%lu\n", (unsigned long)ctr);
goto error;
}
@@ -341,15 +341,15 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
HDmemset(check, 0xff, (size_t)nelmts);
if (H5Dread(dataset, TEST_DATATYPE, mspace, fspace, H5P_DEFAULT, check) < 0) {
H5_FAILED();
- HDfprintf(stderr, " Read failed: ctr=%lu\n", (unsigned long)ctr);
+ fprintf(stderr, " Read failed: ctr=%lu\n", (unsigned long)ctr);
goto error;
}
if (HDmemcmp(buf, check, (size_t)nelmts) != 0) {
H5_FAILED();
- HDfprintf(stderr, " Read check failed: ctr=%lu\n", (unsigned long)ctr);
- HDfprintf(stderr, " Wrote:\n");
+ fprintf(stderr, " Read check failed: ctr=%lu\n", (unsigned long)ctr);
+ fprintf(stderr, " Wrote:\n");
print_array(buf, (size_t)size[0], (size_t)size[1], (size_t)size[2]);
- HDfprintf(stderr, " Read:\n");
+ fprintf(stderr, " Read:\n");
print_array(check, (size_t)size[0], (size_t)size[1], (size_t)size[2]);
goto error;
}
@@ -371,7 +371,7 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
HDmemset(buf, 0xff, nx * ny * nz);
if (H5Dread(dataset, TEST_DATATYPE, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
- HDfprintf(stderr, " Read failed for whole array.\n");
+ fprintf(stderr, " Read failed for whole array.\n");
goto error;
}
for (i = 0; i < nx; i++) {
@@ -379,16 +379,16 @@ test_extend(hid_t f, const char *prefix, size_t nx, size_t ny, size_t nz)
for (k = 0; k < nz; k++) {
if (whole[i * ny * nz + j * nz + k] != buf[i * ny * nz + j * nz + k]) {
H5_FAILED();
- HDfprintf(stderr, " Check failed at i=%lu", (unsigned long)i);
+ fprintf(stderr, " Check failed at i=%lu", (unsigned long)i);
if (ndims > 1) {
- HDfprintf(stderr, ", j=%lu", (unsigned long)j);
+ fprintf(stderr, ", j=%lu", (unsigned long)j);
}
if (ndims > 2) {
- HDfprintf(stderr, ", k=%lu", (unsigned long)k);
+ fprintf(stderr, ", k=%lu", (unsigned long)k);
}
- HDfprintf(stderr, "\n Check array is:\n");
+ fprintf(stderr, "\n Check array is:\n");
print_array(whole, nx, ny, nz);
- HDfprintf(stderr, " Value read is:\n");
+ fprintf(stderr, " Value read is:\n");
print_array(buf, nx, ny, nz);
goto error;
}
@@ -488,7 +488,7 @@ test_sparse(hid_t f, const char *prefix, size_t nblocks, size_t nx, size_t ny, s
/* Build the new empty object */
HDsnprintf(name, sizeof(name), "%s_%s", prefix, dims);
if ((dataset = new_object(f, name, ndims, whole_size, chunk_dims)) < 0) {
- HDprintf(" Cannot create %u-d object `%s'\n", ndims, name);
+ printf(" Cannot create %u-d object `%s'\n", ndims, name);
goto error;
}
@@ -512,18 +512,18 @@ test_sparse(hid_t f, const char *prefix, size_t nblocks, size_t nx, size_t ny, s
/* write to disk */
if (H5Dwrite(dataset, TEST_DATATYPE, mspace, fspace, H5P_DEFAULT, buf) < 0) {
H5_FAILED();
- HDprintf(" Write failed: ctr=%lu\n", (unsigned long)ctr);
- HDprintf(" offset=(%lu", (unsigned long)(offset[0]));
+ printf(" Write failed: ctr=%lu\n", (unsigned long)ctr);
+ printf(" offset=(%lu", (unsigned long)(offset[0]));
if (ndims > 1)
- HDprintf(",%lu", (unsigned long)(offset[1]));
+ printf(",%lu", (unsigned long)(offset[1]));
if (ndims > 2)
- HDprintf(",%lu", (unsigned long)(offset[2]));
- HDprintf("), size=(%lu", (unsigned long)(size[0]));
+ printf(",%lu", (unsigned long)(offset[2]));
+ printf("), size=(%lu", (unsigned long)(size[0]));
if (ndims > 1)
- HDprintf(",%lu", (unsigned long)(size[1]));
+ printf(",%lu", (unsigned long)(size[1]));
if (ndims > 2)
- HDprintf(",%lu", (unsigned long)(size[2]));
- HDprintf(")\n");
+ printf(",%lu", (unsigned long)(size[2]));
+ printf(")\n");
goto error;
}
@@ -592,18 +592,18 @@ main(int argc, char *argv[])
size_of_test |= TEST_LARGE;
}
else {
- HDprintf("unrecognized argument: %s\n", argv[i]);
+ printf("unrecognized argument: %s\n", argv[i]);
}
}
}
- HDprintf("Test sizes: ");
+ printf("Test sizes: ");
if (size_of_test & TEST_SMALL)
- HDprintf(" SMALL");
+ printf(" SMALL");
if (size_of_test & TEST_MEDIUM)
- HDprintf(" MEDIUM");
+ printf(" MEDIUM");
if (size_of_test & TEST_LARGE)
- HDprintf(" LARGE");
- HDprintf("\n");
+ printf(" LARGE");
+ printf("\n");
/* Set the random # seed */
HDsrandom((unsigned)HDtime(NULL));
@@ -625,7 +625,7 @@ main(int argc, char *argv[])
/* Create the test file */
h5_fixname(FILENAME[0], fapl, filename, sizeof filename);
if ((file = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl)) < 0) {
- HDprintf("Cannot create file %s; test aborted\n", filename);
+ printf("Cannot create file %s; test aborted\n", filename);
HDexit(EXIT_FAILURE);
}
@@ -680,7 +680,7 @@ main(int argc, char *argv[])
*/
status = test_sparse(file, "sparse", (size_t)800, (size_t)50, (size_t)50, (size_t)50, skip_test);
if (skip_test)
- HDprintf(" The current VFD does not support sparse files on this platform.\n");
+ printf(" The current VFD does not support sparse files on this platform.\n");
nerrors += status < 0 ? 1 : 0;
}
@@ -692,11 +692,11 @@ main(int argc, char *argv[])
nerrors += (h5_verify_cached_stabs(FILENAME, fapl) < 0 ? 1 : 0);
if (nerrors) {
- HDprintf("***** %d I-STORE TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d I-STORE TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
- HDprintf("All i-store tests passed.\n");
+ printf("All i-store tests passed.\n");
h5_cleanup(FILENAME, fapl);
diff --git a/test/lheap.c b/test/lheap.c
index e8e7724..9a1744b 100644
--- a/test/lheap.c
+++ b/test/lheap.c
@@ -157,9 +157,9 @@ main(void)
if (HDstrcmp(s, buf) != 0) {
H5_FAILED();
- HDprintf(" i=%d, heap offset=%lu\n", i, (unsigned long)(obj[i]));
- HDprintf(" got: \"%s\"\n", s);
- HDprintf(" ans: \"%s\"\n", buf);
+ printf(" i=%d, heap offset=%lu\n", i, (unsigned long)(obj[i]));
+ printf(" got: \"%s\"\n", s);
+ printf(" ans: \"%s\"\n", buf);
goto error;
}
@@ -194,7 +194,7 @@ main(void)
}
else {
H5_FAILED();
- HDprintf("***cannot open the pre-created non-default sizes test file (%s)\n", testfile);
+ printf("***cannot open the pre-created non-default sizes test file (%s)\n", testfile);
goto error;
} /* end else */
}
diff --git a/test/links.c b/test/links.c
index fcafbf8..59e2c42 100644
--- a/test/links.c
+++ b/test/links.c
@@ -639,7 +639,7 @@ cklinks(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5O_TYPE_DATASET != oinfo2.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
TEST_ERROR;
} /* end if */
@@ -689,7 +689,7 @@ cklinks(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5O_TYPE_DATASET != oinfo2.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5Otoken_cmp(file, &oinfo1.token, &oinfo2.token, &token_cmp) < 0)
@@ -725,12 +725,12 @@ cklinks(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5L_TYPE_SOFT != linfo.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5Lget_val(file, "grp1/dangle", linkval, sizeof linkval, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" %d: Can't retrieve link value\n", __LINE__);
+ printf(" %d: Can't retrieve link value\n", __LINE__);
TEST_ERROR;
} /* end if */
if (HDstrcmp(linkval, "foobar") != 0) {
@@ -756,12 +756,12 @@ cklinks(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5L_TYPE_SOFT != linfo.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5Lget_val(file, "grp1/recursive", linkval, sizeof linkval, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" %d: Can't retrieve link value\n", __LINE__);
+ printf(" %d: Can't retrieve link value\n", __LINE__);
TEST_ERROR;
} /* end if */
if (HDstrcmp(linkval, "/grp1/recursive") != 0) {
@@ -824,7 +824,7 @@ ck_new_links(hid_t fapl, hbool_t new_format)
/* Check hard links */
if (H5O_TYPE_DATASET != oi_hard1.type || H5O_TYPE_DATASET != oi_hard2.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
TEST_ERROR;
}
@@ -2162,7 +2162,7 @@ cklinks_deprec(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5O_TYPE_DATASET != oinfo2.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5_addr_ne(oinfo1.addr, oinfo2.addr)) {
@@ -2207,7 +2207,7 @@ cklinks_deprec(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5O_TYPE_DATASET != oinfo2.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a dataset\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5_addr_ne(oinfo1.addr, oinfo2.addr)) {
@@ -2241,12 +2241,12 @@ cklinks_deprec(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5L_TYPE_SOFT != linfo.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5Lget_val(file, "grp1/dangle", linkval, sizeof linkval, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" %d: Can't retrieve link value\n", __LINE__);
+ printf(" %d: Can't retrieve link value\n", __LINE__);
TEST_ERROR;
} /* end if */
if (HDstrcmp(linkval, "foobar") != 0) {
@@ -2272,12 +2272,12 @@ cklinks_deprec(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR;
if (H5L_TYPE_SOFT != linfo.type) {
H5_FAILED();
- HDprintf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
+ printf(" %d: Unexpected object type should have been a symbolic link\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5Lget_val(file, "grp1/recursive", linkval, sizeof linkval, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf(" %d: Can't retrieve link value\n", __LINE__);
+ printf(" %d: Can't retrieve link value\n", __LINE__);
TEST_ERROR;
} /* end if */
if (HDstrcmp(linkval, "/grp1/recursive") != 0) {
@@ -8064,7 +8064,7 @@ external_link_toomany(hid_t fapl, hbool_t new_format)
H5E_END_TRY
if (gid >= 0) {
H5_FAILED();
- HDprintf("%d: Should have failed for sequence of too many nested links.", __LINE__);
+ printf("%d: Should have failed for sequence of too many nested links.", __LINE__);
goto error;
}
@@ -22678,13 +22678,13 @@ main(void)
for (minimize_dset_oh = 0; minimize_dset_oh <= 1; minimize_dset_oh++) {
if (minimize_dset_oh) {
- HDprintf("\n-Testing with minimized dataset object headers-\n");
+ printf("\n-Testing with minimized dataset object headers-\n");
dcpl_g = H5Pcreate(H5P_DATASET_CREATE);
if (0 > dcpl_g)
TEST_ERROR;
}
else {
- HDprintf("\n-Testing with unminimzed dataset object headers-\n");
+ printf("\n-Testing with unminimzed dataset object headers-\n");
dcpl_g = H5P_DEFAULT;
}
@@ -22694,11 +22694,11 @@ main(void)
/* Check for FAPL to use */
if (new_format) {
my_fapl = fapl2;
- HDprintf("\n--Testing with 'new format'--\n");
+ printf("\n--Testing with 'new format'--\n");
}
else {
my_fapl = fapl;
- HDprintf("\n--Testing with 'old format'--\n");
+ printf("\n--Testing with 'old format'--\n");
}
/* always enter tests without external cache */
@@ -22752,12 +22752,12 @@ main(void)
if (efc) {
if (H5Pset_elink_file_cache_size(my_fapl, 8) < 0)
TEST_ERROR;
- HDprintf("\n---Testing with external file cache---\n");
+ printf("\n---Testing with external file cache---\n");
} /* end if */
else {
if (H5Pset_elink_file_cache_size(my_fapl, 0) < 0)
TEST_ERROR;
- HDprintf("\n---Testing without external file cache---\n");
+ printf("\n---Testing without external file cache---\n");
} /* end else */
nerrors += external_link_root(my_fapl, new_format) < 0 ? 1 : 0;
@@ -22941,10 +22941,10 @@ main(void)
/* Results */
if (nerrors) {
- HDprintf("***** %d LINK TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d LINK TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
- HDprintf("All link tests passed.\n");
+ printf("All link tests passed.\n");
/* clean up symlink created by external link tests */
HDremove(SYMLINK1);
diff --git a/test/links_env.c b/test/links_env.c
index db10269..41daf6a 100644
--- a/test/links_env.c
+++ b/test/links_env.c
@@ -182,11 +182,11 @@ main(void)
/* Results */
if (nerrors) {
- HDprintf("***** %d External Link (HDF5_EXT_PREFIX) test%s FAILED! *****\n", nerrors,
- 1 == nerrors ? "" : "s");
+ printf("***** %d External Link (HDF5_EXT_PREFIX) test%s FAILED! *****\n", nerrors,
+ 1 == nerrors ? "" : "s");
HDexit(EXIT_FAILURE);
}
- HDprintf("All external Link (HDF5_EXT_PREFIX) tests passed.\n");
+ printf("All external Link (HDF5_EXT_PREFIX) tests passed.\n");
/* clean up tmp_links_env directory created by external link tests */
HDrmdir(TMPDIR);
diff --git a/test/mf.c b/test/mf.c
index d73b95c..641e638 100644
--- a/test/mf.c
+++ b/test/mf.c
@@ -167,28 +167,27 @@ check_stats(const H5F_t *f, const H5FS_t *frsp, H5FS_stat_t *state)
FAIL_STACK_ERROR;
if (frspace_stats.tot_space != state->tot_space) {
- HDfprintf(stdout, "frspace_stats.tot_space = %" PRIuHSIZE ", state->tot_space = %" PRIuHSIZE "\n",
- frspace_stats.tot_space, state->tot_space);
+ fprintf(stdout, "frspace_stats.tot_space = %" PRIuHSIZE ", state->tot_space = %" PRIuHSIZE "\n",
+ frspace_stats.tot_space, state->tot_space);
TEST_ERROR;
} /* end if */
if (frspace_stats.tot_sect_count != state->tot_sect_count) {
- HDfprintf(stdout,
- "frspace_stats.tot_sect_count = %" PRIuHSIZE ", state->tot_sect_count = %" PRIuHSIZE "\n",
- frspace_stats.tot_sect_count, state->tot_sect_count);
+ fprintf(stdout,
+ "frspace_stats.tot_sect_count = %" PRIuHSIZE ", state->tot_sect_count = %" PRIuHSIZE "\n",
+ frspace_stats.tot_sect_count, state->tot_sect_count);
TEST_ERROR;
} /* end if */
if (frspace_stats.serial_sect_count != state->serial_sect_count) {
- HDfprintf(stdout,
- "frspace_stats.serial_sect_count = %" PRIuHSIZE ", state->serial_sect_count = %" PRIuHSIZE
- "\n",
- frspace_stats.serial_sect_count, state->serial_sect_count);
+ fprintf(stdout,
+ "frspace_stats.serial_sect_count = %" PRIuHSIZE ", state->serial_sect_count = %" PRIuHSIZE
+ "\n",
+ frspace_stats.serial_sect_count, state->serial_sect_count);
TEST_ERROR;
} /* end if */
if (frspace_stats.ghost_sect_count != state->ghost_sect_count) {
- HDfprintf(stdout,
- "frspace_stats.ghost_sect_count = %" PRIuHSIZE ", state->ghost_sect_count = %" PRIuHSIZE
- "\n",
- frspace_stats.ghost_sect_count, state->ghost_sect_count);
+ fprintf(stdout,
+ "frspace_stats.ghost_sect_count = %" PRIuHSIZE ", state->ghost_sect_count = %" PRIuHSIZE "\n",
+ frspace_stats.ghost_sect_count, state->ghost_sect_count);
TEST_ERROR;
} /* end if */
@@ -6315,7 +6314,7 @@ test_mf_fs_persist_split(void)
* with the split file driver.
*/
SKIPPED();
- HDfprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
+ fprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
return 0; /* <========== note return */
/* File creation property list template */
@@ -6325,7 +6324,7 @@ test_mf_fs_persist_split(void)
* with the split file driver.
*/
SKIPPED();
- HDfprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
+ fprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
return 0; /* <========== note return */
/* File creation property list template */
@@ -6638,14 +6637,14 @@ test_mf_fs_persist_multi(void)
* with the multi file driver.
*/
SKIPPED();
- HDfprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
+ fprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
return 0; /* <========== note return */
/* for now, we don't support persistent free space managers
* with the multi file driver.
*/
SKIPPED();
- HDfprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
+ fprintf(stdout, " Persistent FSMs disabled in multi file driver.\n");
return 0; /* <========== note return */
/* File creation property list template */
diff --git a/test/mirror_vfd.c b/test/mirror_vfd.c
index bd38d8c..92bdaed 100644
--- a/test/mirror_vfd.c
+++ b/test/mirror_vfd.c
@@ -63,7 +63,7 @@ static unsigned int g_verbosity = DEFAULT_VERBOSITY;
#define LOGPRINT(lvl, ...) \
do { \
if ((lvl) <= g_verbosity) { \
- HDfprintf(g_log_stream, __VA_ARGS__); \
+ fprintf(g_log_stream, __VA_ARGS__); \
HDfflush(g_log_stream); \
} \
} while (0)
@@ -274,16 +274,16 @@ error:
} \
if (_x != (len)) { \
size_t _y = 0; \
- HDprintf("First bytes differ at %zu\n", _x); \
- HDprintf("exp "); \
+ printf("First bytes differ at %zu\n", _x); \
+ printf("exp "); \
for (_y = _x; _y < (len); _y++) { \
- HDprintf("%02X", (unsigned char)(exp)[_y]); \
+ printf("%02X", (unsigned char)(exp)[_y]); \
} \
- HDprintf("\nact "); \
+ printf("\nact "); \
for (_y = _x; _y < (len); _y++) { \
- HDprintf("%02X", (unsigned char)(act)[_y]); \
+ printf("%02X", (unsigned char)(act)[_y]); \
} \
- HDprintf("\n"); \
+ printf("\n"); \
} \
} while (0); /* end PRINT_BUFFER_DIFF */
@@ -1963,7 +1963,7 @@ test_on_disk_zoo(const struct mt_opts *opts)
validate_zoo(file_id, grp_name, 0); /* sanity-check */
if (!pass) {
- HDprintf("%s", failure_mssg);
+ printf("%s", failure_mssg);
TEST_ERROR;
}
@@ -2095,7 +2095,7 @@ test_vanishing_datasets(const struct mt_opts *opts)
if (H5Gget_info(file_id, &group_info) < 0)
TEST_ERROR;
if (group_info.nlinks > 0) {
- HDfprintf(stderr, "links in rw file: %" PRIuHSIZE "\n", group_info.nlinks);
+ fprintf(stderr, "links in rw file: %" PRIuHSIZE "\n", group_info.nlinks);
TEST_ERROR;
}
if (H5Fclose(file_id) < 0)
@@ -2105,7 +2105,7 @@ test_vanishing_datasets(const struct mt_opts *opts)
if (H5Gget_info(file_id, &group_info) < 0)
TEST_ERROR;
if (group_info.nlinks > 0) {
- HDfprintf(stderr, "links in wo file: %" PRIuHSIZE "\n", group_info.nlinks);
+ fprintf(stderr, "links in wo file: %" PRIuHSIZE "\n", group_info.nlinks);
TEST_ERROR;
}
if (H5Fclose(file_id) < 0)
@@ -2304,7 +2304,7 @@ parse_args(int argc, char **argv, struct mt_opts *opts)
else if (!HDstrncmp(argv[i], "--port=", 7))
opts->portno = HDatoi(argv[i] + 7);
else {
- HDprintf("Unrecognized option: '%s'\n", argv[i]);
+ printf("Unrecognized option: '%s'\n", argv[i]);
return -1;
}
} /* end for each argument from command line */
@@ -2334,7 +2334,7 @@ confirm_server(struct mt_opts *opts)
live_socket = socket(AF_INET, SOCK_STREAM, 0);
if (live_socket < 0) {
- HDprintf("ERROR socket()\n");
+ printf("ERROR socket()\n");
return -1;
}
@@ -2346,25 +2346,25 @@ confirm_server(struct mt_opts *opts)
while (1) {
if (connect(live_socket, (struct sockaddr *)&target_addr, (socklen_t)sizeof(target_addr)) < 0) {
if (attempt > 10) {
- HDprintf("ERROR connect() (%d)\n%s\n", errno, HDstrerror(errno));
+ printf("ERROR connect() (%d)\n%s\n", errno, HDstrerror(errno));
return -1;
}
/* Close socket during sleep() */
if (HDclose(live_socket) < 0) {
- HDprintf("ERROR close() can't close socket\n");
+ printf("ERROR close() can't close socket\n");
return -1;
}
live_socket = -1;
attempt++;
HDsleep(1);
- HDprintf("attempt #%u: ERROR connect() (%d)\n%s\n", attempt, errno, HDstrerror(errno));
+ printf("attempt #%u: ERROR connect() (%d)\n%s\n", attempt, errno, HDstrerror(errno));
/* Re-open socket for retry */
live_socket = socket(AF_INET, SOCK_STREAM, 0);
if (live_socket < 0) {
- HDprintf("ERROR socket()\n");
+ printf("ERROR socket()\n");
return -1;
}
}
@@ -2374,22 +2374,22 @@ confirm_server(struct mt_opts *opts)
/* Request confirmation from the server */
if (HDwrite(live_socket, "CONFIRM", 8) == -1) {
- HDprintf("ERROR write() (%d)\n%s\n", errno, HDstrerror(errno));
+ printf("ERROR write() (%d)\n%s\n", errno, HDstrerror(errno));
return -1;
}
/* Read & verify response from port connection. */
if (HDread(live_socket, &mybuf, sizeof(mybuf)) == -1) {
- HDprintf("ERROR read() can't receive data\n");
+ printf("ERROR read() can't receive data\n");
return -1;
}
if (HDstrncmp("ALIVE", mybuf, 6)) {
- HDprintf("ERROR read() didn't receive data from server\n");
+ printf("ERROR read() didn't receive data from server\n");
return -1;
}
if (HDclose(live_socket) < 0) {
- HDprintf("ERROR close() can't close socket\n");
+ printf("ERROR close() can't close socket\n");
return -1;
}
@@ -2415,7 +2415,7 @@ main(int argc, char **argv)
g_log_stream = stdout; /* default debug/logging output stream */
- HDprintf("Testing Mirror VFD functionality.\n");
+ printf("Testing Mirror VFD functionality.\n");
/* SETUP */
@@ -2430,12 +2430,12 @@ main(int argc, char **argv)
}
if (parse_args(argc, argv, &opts) < 0) {
- HDprintf("Unable to parse arguments\n");
+ printf("Unable to parse arguments\n");
HDexit(EXIT_FAILURE);
}
if (confirm_server(&opts) < 0) {
- HDprintf("Unable to confirm server is running\n");
+ printf("Unable to confirm server is running\n");
HDexit(EXIT_FAILURE);
}
@@ -2477,11 +2477,11 @@ main(int argc, char **argv)
}
if (nerrors) {
- HDprintf("***** %d Mirror VFD TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d Mirror VFD TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
return EXIT_FAILURE;
}
- HDprintf("All Mirror Virtual File Driver tests passed.\n");
+ printf("All Mirror Virtual File Driver tests passed.\n");
return EXIT_SUCCESS;
} /* end main() */
@@ -2490,8 +2490,8 @@ main(int argc, char **argv)
int
main(void)
{
- HDprintf("Testing Mirror VFD functionality.\n");
- HDprintf("SKIPPED - Mirror VFD not built.\n");
+ printf("Testing Mirror VFD functionality.\n");
+ printf("SKIPPED - Mirror VFD not built.\n");
return EXIT_SUCCESS;
}
diff --git a/test/mount.c b/test/mount.c
index 9cb65c9..42bfd3a 100644
--- a/test/mount.c
+++ b/test/mount.c
@@ -1016,7 +1016,7 @@ test_unlink(hid_t fapl)
H5E_END_TRY
if (status >= 0) {
H5_FAILED();
- HDprintf(" %d: Unmount by name should not have been allowed!\n", __LINE__);
+ printf(" %d: Unmount by name should not have been allowed!\n", __LINE__);
TEST_ERROR;
} /* end if */
H5E_BEGIN_TRY
@@ -1026,7 +1026,7 @@ test_unlink(hid_t fapl)
H5E_END_TRY
if (status >= 0) {
H5_FAILED();
- HDprintf(" %d: Unmount by name should not have been allowed!\n", __LINE__);
+ printf(" %d: Unmount by name should not have been allowed!\n", __LINE__);
TEST_ERROR;
} /* end if */
if (H5Funmount(mnt, ".") < 0)
diff --git a/test/mtime.c b/test/mtime.c
index 5b5fc4e..4d4dc00 100644
--- a/test/mtime.c
+++ b/test/mtime.c
@@ -122,7 +122,7 @@ main(void)
HDstrftime((char *)buf1, sizeof buf1, "%Y-%m-%d %H:%M:%S", tm);
tm = HDlocaltime(&now);
HDstrftime((char *)buf2, sizeof buf2, "%Y-%m-%d %H:%M:%S", tm);
- HDprintf(" got: %s\n ans: %s\n", buf1, buf2);
+ printf(" got: %s\n ans: %s\n", buf1, buf2);
goto error;
}
PASSED();
@@ -152,7 +152,7 @@ main(void)
}
else {
H5_FAILED();
- HDprintf("***cannot open the pre-created old modification test file (%s)\n", testfile);
+ printf("***cannot open the pre-created old modification test file (%s)\n", testfile);
goto error;
} /* end else */
}
@@ -182,7 +182,7 @@ main(void)
}
else {
H5_FAILED();
- HDprintf("***cannot open the pre-created old modification test file (%s)\n", testfile);
+ printf("***cannot open the pre-created old modification test file (%s)\n", testfile);
goto error;
} /* end else */
}
diff --git a/test/ntypes.c b/test/ntypes.c
index aa90828..210dc9c 100644
--- a/test/ntypes.c
+++ b/test/ntypes.c
@@ -152,8 +152,8 @@ test_atomic_dtype(hid_t file)
for (j = 0; j < DIM1; j++)
if (ipoints2->arr[i][j] != icheck2->arr[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
} /* end if */
@@ -563,8 +563,8 @@ test_compound_dtype2(hid_t file)
temp_point->st.c2 != temp_check->st.c2 || temp_point->st.l2 != temp_check->st.l2 ||
temp_point->st.ll2 != temp_check->st.ll2 || temp_point->l != temp_check->l) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
} /* end if */
} /* end for */
@@ -783,8 +783,8 @@ test_compound_dtype(hid_t file)
if (temp_point->c != temp_check->c || temp_point->i != temp_check->i ||
temp_point->l != temp_check->l) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
} /* end if */
@@ -1012,16 +1012,16 @@ test_compound_dtype3(hid_t file)
for (j = 0; j < DIM1; j++, temp_point++, temp_check++) {
if (temp_point->c != temp_check->c || temp_point->l != temp_check->l) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
} /* end if */
for (k = 0; k < 5; k++) {
if (temp_point->a[k] != temp_check->a[k]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d,%d\n", i, j, k);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d,%d\n", i, j, k);
goto error;
} /* end if */
} /* end for */
@@ -1240,16 +1240,16 @@ test_compound_opaque(hid_t file)
for (j = 0; j < DIM1; j++, temp_point++, temp_check++) {
if (temp_point->c != temp_check->c || temp_point->l != temp_check->l) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
} /* end if */
for (k = 0; k < 5; k++) {
if (temp_point->o[k] != temp_check->o[k]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d,%d\n", i, j, k);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d,%d\n", i, j, k);
goto error;
} /* end if */
} /* end for */
@@ -1413,9 +1413,9 @@ test_enum_dtype(hid_t file)
for (j = 0; j < DIM1; j++)
if (spoints2->arr[i][j] != scheck2->arr[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
- HDprintf(" spoints2[i][j]=%hd, scheck2[i][j]=%hd\n", spoints2->arr[i][j], scheck2->arr[i][j]);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
+ printf(" spoints2[i][j]=%hd, scheck2[i][j]=%hd\n", spoints2->arr[i][j], scheck2->arr[i][j]);
goto error;
} /* end if */
@@ -1588,8 +1588,8 @@ test_array_dtype(hid_t file)
if (temp_point->c != temp_check->c || temp_point->i != temp_check->i ||
temp_point->l != temp_check->l) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
} /* end if */
@@ -1744,8 +1744,8 @@ test_array_dtype2(hid_t file)
for (k = 0; k < 5; k++)
if (icheck3->arr[i][j][k] != ipoints3->arr[i][j][k]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" At index %d,%d\n", i, j);
goto error;
} /* end if */
@@ -1820,7 +1820,7 @@ test_vl_dtype(hid_t file)
wdata[i].p = HDmalloc((i + 1) * sizeof(hvl_t));
if (NULL == wdata[i].p) {
H5_FAILED();
- HDprintf(" Cannot allocate memory for VL data! i=%u\n", (unsigned)i);
+ printf(" Cannot allocate memory for VL data! i=%u\n", (unsigned)i);
goto error;
} /* end if */
wdata[i].len = i + 1;
@@ -1828,7 +1828,7 @@ test_vl_dtype(hid_t file)
t1->p = HDmalloc((j + 1) * sizeof(unsigned int));
if (NULL == t1->p) {
H5_FAILED();
- HDprintf(" Cannot allocate memory for VL data! i=%u, j=%u\n", (unsigned)i, (unsigned)j);
+ printf(" Cannot allocate memory for VL data! i=%u, j=%u\n", (unsigned)i, (unsigned)j);
goto error;
} /* end if */
t1->len = j + 1;
@@ -1900,15 +1900,15 @@ test_vl_dtype(hid_t file)
for (i = 0; i < SPACE1_DIM1; i++) {
if (wdata[i].len != rdata[i].len) {
H5_FAILED();
- HDprintf(" VL data length don't match!, wdata[%d].len=%d, rdata[%d].len=%d\n", (int)i,
- (int)wdata[i].len, (int)i, (int)rdata[i].len);
+ printf(" VL data length don't match!, wdata[%d].len=%d, rdata[%d].len=%d\n", (int)i,
+ (int)wdata[i].len, (int)i, (int)rdata[i].len);
goto error;
} /* end if */
for (t1 = (hvl_t *)wdata[i].p, t2 = (hvl_t *)rdata[i].p, j = 0; j < rdata[i].len; j++, t1++, t2++) {
if (t1->len != t2->len) {
H5_FAILED();
- HDprintf(" VL data length don't match!, wdata[%d].len=%d, rdata[%d].len=%d\n", (int)i,
- (int)wdata[i].len, (int)i, (int)rdata[i].len);
+ printf(" VL data length don't match!, wdata[%d].len=%d, rdata[%d].len=%d\n", (int)i,
+ (int)wdata[i].len, (int)i, (int)rdata[i].len);
goto error;
} /* end if */
@@ -1924,8 +1924,8 @@ test_vl_dtype(hid_t file)
for (k = 0; k < t2->len; k++) {
if (((unsigned int *)t1->p)[k] != ((unsigned int *)tmp)[k]) {
H5_FAILED();
- HDprintf(" VL data don't match!, wdata[%u].p=%d, rdata[%u].p=%u\n", (unsigned)i,
- ((unsigned int *)t1->p)[k], (unsigned)i, ((unsigned int *)tmp)[k]);
+ printf(" VL data don't match!, wdata[%u].p=%d, rdata[%u].p=%u\n", (unsigned)i,
+ ((unsigned int *)t1->p)[k], (unsigned)i, ((unsigned int *)tmp)[k]);
goto error;
} /* end if */
} /* end for */
@@ -2075,14 +2075,14 @@ test_vlstr_dtype(hid_t file)
for (i = 0; i < SPACE1_DIM1; i++) {
if (HDstrlen(wdata[i]) != HDstrlen(rdata[i])) {
H5_FAILED();
- HDprintf(" VL data length don't match!, strlen(wdata[%d])=%d, strlen(rdata[%d])=%d\n", (int)i,
- (int)HDstrlen(wdata[i]), (int)i, (int)HDstrlen(rdata[i]));
+ printf(" VL data length don't match!, strlen(wdata[%d])=%d, strlen(rdata[%d])=%d\n", (int)i,
+ (int)HDstrlen(wdata[i]), (int)i, (int)HDstrlen(rdata[i]));
goto error;
} /* end if */
if (HDstrcmp(wdata[i], rdata[i]) != 0) {
H5_FAILED();
- HDprintf(" VL data values don't match!, wdata[%d]=%s, rdata[%d]=%s\n", (int)i, wdata[i],
- (int)i, rdata[i]);
+ printf(" VL data values don't match!, wdata[%d]=%s, rdata[%d]=%s\n", (int)i, wdata[i], (int)i,
+ rdata[i]);
goto error;
} /* end if */
} /* end for */
@@ -2206,14 +2206,14 @@ test_str_dtype(hid_t file)
for (i = 0; i < SPACE1_DIM1; i++) {
if (HDstrlen(wdata[i]) != HDstrlen(rdata[i])) {
H5_FAILED();
- HDprintf(" data length don't match!, strlen(wdata[%d])=%d, strlen(rdata[%d])=%d\n", (int)i,
- (int)HDstrlen(wdata[i]), (int)i, (int)HDstrlen(rdata[i]));
+ printf(" data length don't match!, strlen(wdata[%d])=%d, strlen(rdata[%d])=%d\n", (int)i,
+ (int)HDstrlen(wdata[i]), (int)i, (int)HDstrlen(rdata[i]));
goto error;
} /* end if */
if (HDstrcmp(wdata[i], rdata[i]) != 0) {
H5_FAILED();
- HDprintf(" data values don't match!, wdata[%d]=%s, rdata[%d]=%s\n", (int)i, wdata[i], (int)i,
- rdata[i]);
+ printf(" data values don't match!, wdata[%d]=%s, rdata[%d]=%s\n", (int)i, wdata[i], (int)i,
+ rdata[i]);
goto error;
} /* end if */
} /* end for */
@@ -2697,8 +2697,8 @@ test_opaque_dtype(hid_t file)
for (i = 0; i < sizeof(rbuf); i++)
if (rbuf[i] != wbuf[i]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %u\n", (unsigned)i);
+ printf(" Read different values than written.\n");
+ printf(" At index %u\n", (unsigned)i);
goto error;
} /* end if */
@@ -2817,8 +2817,8 @@ test_bitfield_dtype(hid_t file)
for (i = 0; i < BITFIELD_ENUMB * 4; i++) {
if (*p != wbuf[i]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %zu\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %zu\n", i);
TEST_ERROR;
}
p++;
@@ -2850,8 +2850,8 @@ test_bitfield_dtype(hid_t file)
for (i = 0; i < BITFIELD_ENUMB; i++) {
if (intr[i] != intw[i]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %zu\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %zu\n", i);
TEST_ERROR;
}
}
@@ -3027,13 +3027,13 @@ test_ninteger(void)
/* check */
if (H5Tget_precision(nid1) != H5Tget_precision(nid2)) {
- HDprintf(" Precision differ.\n");
+ printf(" Precision differ.\n");
TEST_ERROR;
} /* end if */
/* compare dataset creation property lists */
if (H5Pequal(dcpl1, dcpl2) <= 0) {
- HDprintf(" Property lists differ.\n");
+ printf(" Property lists differ.\n");
TEST_ERROR;
} /* end if */
@@ -3041,8 +3041,8 @@ test_ninteger(void)
for (i = 0; i < DIM3; i++)
if (buf[i] != chk[i]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
} /* end if */
@@ -3155,7 +3155,7 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All native datatype tests passed.\n");
+ printf("All native datatype tests passed.\n");
h5_cleanup(FILENAME, fapl);
return 0;
@@ -3169,7 +3169,7 @@ error:
H5E_END_TRY
nerrors = MAX(1, nerrors);
- HDprintf("***** %d DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
return 1;
}
diff --git a/test/objcopy.c b/test/objcopy.c
index f1c4636..a14421b 100644
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -17395,7 +17395,7 @@ main(void)
ExpressMode = GetTestExpress();
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests may be skipped\n");
+ printf("***Express test mode on. Some tests may be skipped\n");
/* Copy the file access property list */
if ((fapl2 = H5Pcopy(fapl)) < 0)
@@ -17657,7 +17657,7 @@ main(void)
/* Results */
if (nerrors) {
- HDprintf("***** %d OBJECT COPY TEST%s FAILED! *****\n", nerrors, (1 == nerrors ? "" : "S"));
+ printf("***** %d OBJECT COPY TEST%s FAILED! *****\n", nerrors, (1 == nerrors ? "" : "S"));
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/objcopy_ref.c b/test/objcopy_ref.c
index 826ba9f..23deb2c 100644
--- a/test/objcopy_ref.c
+++ b/test/objcopy_ref.c
@@ -1867,7 +1867,7 @@ main(void)
ExpressMode = GetTestExpress();
if (ExpressMode > 1)
- HDprintf("***Express test mode on. Some tests may be skipped\n");
+ printf("***Express test mode on. Some tests may be skipped\n");
/* Copy the file access property list */
if ((fapl2 = H5Pcopy(fapl)) < 0)
@@ -1971,7 +1971,7 @@ main(void)
/* Results */
if (nerrors) {
- HDprintf("***** %d OBJECT COPY TEST%s FAILED! *****\n", nerrors, (1 == nerrors ? "" : "S"));
+ printf("***** %d OBJECT COPY TEST%s FAILED! *****\n", nerrors, (1 == nerrors ? "" : "S"));
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/onion.c b/test/onion.c
index 20522bd..d87958e 100644
--- a/test/onion.c
+++ b/test/onion.c
@@ -927,7 +927,7 @@ test_header_encode_decode(void)
for (i = 0; i < H5FD_ONION_ENCODED_SIZE_HEADER; i++) {
if (exp[i] != buf[i]) {
- HDprintf("first mismatched byte at %zu: %02x %02x\n", i, exp[i], buf[i]);
+ printf("first mismatched byte at %zu: %02x %02x\n", i, exp[i], buf[i]);
TEST_ERROR;
}
}
@@ -1045,7 +1045,7 @@ test_history_encode_decode_empty(void)
TEST_ERROR;
for (i = 0; i < 20; i++) {
if (exp[i] != buf[i]) {
- HDprintf("first mismatched byte at %zu: %02x %02x\n", i, exp[i], buf[i]);
+ printf("first mismatched byte at %zu: %02x %02x\n", i, exp[i], buf[i]);
TEST_ERROR;
}
}
@@ -1388,26 +1388,26 @@ test_revision_record_encode_decode(void)
for (i = 0; i < exp_size; i++) {
if (exp[i] != buf[i]) {
badness = TRUE;
- HDprintf("Bad encoded record - Index %zu: expected 0x%02X but got 0x%02X\n", i,
- (unsigned int)exp[i], (unsigned int)buf[i]);
+ printf("Bad encoded record - Index %zu: expected 0x%02X but got 0x%02X\n", i,
+ (unsigned int)exp[i], (unsigned int)buf[i]);
}
}
if (badness) {
/* If this fragile test breaks, this information is helpful... */
- HDprintf("INDEX\n");
+ printf("INDEX\n");
for (i = 0; i < exp_size; i++)
- HDprintf("%4zu ", i);
- HDprintf("\n");
+ printf("%4zu ", i);
+ printf("\n");
- HDprintf("EXPECTED\n");
+ printf("EXPECTED\n");
for (i = 0; i < exp_size; i++)
- HDprintf("0x%02X ", (unsigned int)exp[i]);
- HDprintf("\n");
+ printf("0x%02X ", (unsigned int)exp[i]);
+ printf("\n");
- HDprintf("ACTUAL\n");
+ printf("ACTUAL\n");
for (i = 0; i < exp_size; i++)
- HDprintf("0x%02X ", (unsigned int)buf[i]);
- HDprintf("\n");
+ printf("0x%02X ", (unsigned int)buf[i]);
+ printf("\n");
}
if (badness)
TEST_ERROR;
@@ -1545,7 +1545,7 @@ compare_file_bytes_exactly(const char *filepath, hid_t fapl_id, size_t nbytes, c
/* filesize is wrong w/ stdio - it's zero instead of 40 or whatnot */
filesize = (uint64_t)H5FDget_eof(raw_vfile, H5FD_MEM_DRAW);
if ((uint64_t)nbytes != filesize) {
- HDfprintf(stderr, "\nSizes not the same - nbytes: %zu, filesize: %" PRIu64 "\n", nbytes, filesize);
+ fprintf(stderr, "\nSizes not the same - nbytes: %zu, filesize: %" PRIu64 "\n", nbytes, filesize);
TEST_ERROR;
}
@@ -1562,7 +1562,7 @@ compare_file_bytes_exactly(const char *filepath, hid_t fapl_id, size_t nbytes, c
/* Compare raw bytes data */
for (size_t i = 0; i < nbytes; i++) {
if (exp[i] != act_buf[i]) {
- HDprintf("first mismatched byte %zu: expected 0x%02X was 0x%02X\n", i, exp[i], act_buf[i]);
+ printf("first mismatched byte %zu: expected 0x%02X was 0x%02X\n", i, exp[i], act_buf[i]);
TEST_ERROR;
}
}
@@ -2309,7 +2309,7 @@ test_several_revisions_with_logical_gaps(void)
if (NULL == file)
TEST_ERROR;
if (8 != H5FDget_eof(file, H5FD_MEM_DRAW)) {
- HDprintf("\nEOF is not zero, it is: %" PRIuHADDR "\n", H5FDget_eof(file, H5FD_MEM_DRAW));
+ printf("\nEOF is not zero, it is: %" PRIuHADDR "\n", H5FDget_eof(file, H5FD_MEM_DRAW));
TEST_ERROR;
}
if (H5FDclose(file) < 0)
@@ -2330,7 +2330,7 @@ test_several_revisions_with_logical_gaps(void)
if (NULL == file)
TEST_ERROR;
if (0 != H5FDget_eof(file, H5FD_MEM_DRAW)) {
- HDprintf("\nEOF is not zero, it is: %" PRIuHADDR "\n", H5FDget_eof(file, H5FD_MEM_DRAW));
+ printf("\nEOF is not zero, it is: %" PRIuHADDR "\n", H5FDget_eof(file, H5FD_MEM_DRAW));
TEST_ERROR;
}
if (H5FDclose(file) < 0)
@@ -2352,8 +2352,8 @@ test_several_revisions_with_logical_gaps(void)
TEST_ERROR;
size = a_off + a_list_size_s;
if (size != H5FDget_eof(file, H5FD_MEM_DRAW)) {
- HDprintf("\nEOF is not %" PRIuHADDR ", it is: %" PRIuHADDR "\n", size,
- H5FDget_eof(file, H5FD_MEM_DRAW));
+ printf("\nEOF is not %" PRIuHADDR ", it is: %" PRIuHADDR "\n", size,
+ H5FDget_eof(file, H5FD_MEM_DRAW));
TEST_ERROR;
}
if (NULL == (buf = HDmalloc(size * sizeof(unsigned char))))
@@ -2618,7 +2618,7 @@ do_onion_open_and_writes(const char *filename, H5FD_onion_fapl_info_t *onion_inf
size_t z = 0;
HDputs("i exp act");
for (z = 0; z < wi->size; z++)
- HDprintf("%02zx %c %c\n", z, _buf[z], buf_vfy[z]);
+ printf("%02zx %c %c\n", z, _buf[z], buf_vfy[z]);
HDfflush(stdout);
TEST_ERROR;
}
@@ -2746,20 +2746,20 @@ test_page_aligned_history_create(void)
TEST_ERROR;
if (HDmemcmp(a_list_s, buf + a_off, a_list_size_s) != 0) {
size_t k;
- HDprintf("aoff: %" PRIu64 "\n", a_off);
+ printf("aoff: %" PRIu64 "\n", a_off);
HDputs("i exp act");
for (k = 0; k < b_list_size_s; k++) {
- HDprintf("%3zu:: %c : %c\n", k, (k < a_off) ? ' ' : a_list_s[k - a_off], buf[k]);
+ printf("%3zu:: %c : %c\n", k, (k < a_off) ? ' ' : a_list_s[k - a_off], buf[k]);
}
HDfflush(stdout);
TEST_ERROR;
}
if (HDmemcmp(b_list_s, buf, a_off) != 0) {
size_t k;
- HDprintf("aoff: %" PRIu64 "\n", a_off);
+ printf("aoff: %" PRIu64 "\n", a_off);
HDputs("i exp act");
for (k = 0; k < b_list_size_s; k++) {
- HDprintf("%3zu:: %c : %c\n", k, (k < a_off) ? b_list_s[k] : ' ', buf[k]);
+ printf("%3zu:: %c : %c\n", k, (k < a_off) ? b_list_s[k] : ' ', buf[k]);
}
HDfflush(stdout);
TEST_ERROR;
@@ -3066,7 +3066,7 @@ test_integration_create(void)
for (int j = 0; j < 256; j++) {
int expected = i * j - j;
if (rdata->arr[i][j] != expected) {
- HDprintf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i][j]);
+ printf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i][j]);
HDfflush(stdout);
TEST_ERROR;
}
@@ -3104,7 +3104,7 @@ test_integration_create(void)
for (int j = 0; j < 256; j++) {
int expected = i * 6 + j + 1;
if (rdata->arr[i][j] != expected) {
- HDprintf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i][j]);
+ printf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i][j]);
HDfflush(stdout);
TEST_ERROR;
}
@@ -3143,7 +3143,7 @@ test_integration_create(void)
for (int j = 0; j < 256; j++) {
int expected = i * 3 + j + 5;
if (rdata->arr[i][j] != expected) {
- HDprintf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i][j]);
+ printf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i][j]);
HDfflush(stdout);
TEST_ERROR;
}
@@ -3407,7 +3407,7 @@ test_integration_create_simple(void)
for (int i = 0; i < ONE_DIM_SIZE; i += 20) {
int expected = i + 2048;
if (rdata->arr[i] != expected) {
- HDprintf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i]);
+ printf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i]);
TEST_ERROR;
}
}
@@ -4439,7 +4439,7 @@ test_integration_reference(void)
/* Verify the number of selection */
if ((nelmts = H5Sget_select_npoints(space)) != 8) {
- HDprintf("Number of selected elements is supposed to be 8, but got %" PRIuHSIZE "\n", nelmts);
+ printf("Number of selected elements is supposed to be 8, but got %" PRIuHSIZE "\n", nelmts);
TEST_ERROR;
}
@@ -4526,7 +4526,7 @@ test_integration_reference(void)
for (int j = 0; j < 4; j++) {
int expected = i + j;
if (rdata[i][j] != expected) {
- HDprintf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata[i][j]);
+ printf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata[i][j]);
TEST_ERROR;
}
}
@@ -4582,7 +4582,7 @@ test_integration_reference(void)
TEST_ERROR;
if ((nelmts = H5Sget_select_npoints(space2)) != 8) {
- HDprintf("Number of selected elements is supposed to be 8, but got %" PRIuHSIZE "\n", nelmts);
+ printf("Number of selected elements is supposed to be 8, but got %" PRIuHSIZE "\n", nelmts);
TEST_ERROR;
}
@@ -4595,7 +4595,7 @@ test_integration_reference(void)
TEST_ERROR;
if ((nelmts = H5Sget_select_npoints(space2)) != 4) {
- HDprintf("Number of selected elements is supposed to be 4, but got %" PRIuHSIZE "\n", nelmts);
+ printf("Number of selected elements is supposed to be 4, but got %" PRIuHSIZE "\n", nelmts);
TEST_ERROR;
}
@@ -4849,7 +4849,7 @@ test_integration_create_by_name(void)
for (int i = 0; i < ONE_DIM_SIZE; i += 20) {
int expected = i + 2048;
if (rdata->arr[i] != expected) {
- HDprintf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i]);
+ printf("ERROR!!! Expected: %d, Got: %d\n", expected, rdata->arr[i]);
TEST_ERROR;
}
}
@@ -4912,7 +4912,7 @@ main(void)
const char *env_h5_drvr = NULL; /* VFD value from environment */
int nerrors = 0;
- HDprintf("Testing Onion VFD functionality.\n");
+ printf("Testing Onion VFD functionality.\n");
h5_reset();
@@ -4957,11 +4957,11 @@ main(void)
nerrors -= test_integration_create_by_name();
if (nerrors > 0) {
- HDprintf("***** %d Onion TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d Onion TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
return EXIT_FAILURE;
}
- HDprintf("All Onion tests passed.\n");
+ printf("All Onion tests passed.\n");
return EXIT_SUCCESS;
} /* end main() */
diff --git a/test/page_buffer.c b/test/page_buffer.c
index 2f4e607..55a079d 100644
--- a/test/page_buffer.c
+++ b/test/page_buffer.c
@@ -160,7 +160,7 @@ create_file(char *filename, hid_t fcpl, hid_t fapl)
for (j = 0; j < num_elements; j++) {
if (data[j] != j) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
FAIL_STACK_ERROR;
}
}
@@ -270,7 +270,7 @@ open_file(char *filename, hid_t fapl, hsize_t page_size, size_t page_buffer_size
for (j = 0; j < num_elements; j++) {
if (data[j] != j) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
FAIL_STACK_ERROR;
}
}
@@ -673,7 +673,7 @@ test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr)
FAIL_STACK_ERROR;
for (i = 0; i < 400; i++) {
if (data[i] != -1) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
FAIL_STACK_ERROR;
}
}
@@ -687,7 +687,7 @@ test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr)
FAIL_STACK_ERROR;
for (i = 0; i < 1; i++) {
if (data[i] != -1) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
}
}
@@ -702,7 +702,7 @@ test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr)
FAIL_STACK_ERROR;
for (i = 0; i < 100; i++) {
if (data[i] != i + 350) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
}
}
@@ -717,13 +717,13 @@ test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr)
while (i < 800) {
if ((i >= 100 && i < 300) || (i >= 600)) {
if (data[i] != i) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
}
}
else {
if (data[i] != -1) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
}
}
@@ -739,7 +739,7 @@ test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr)
TEST_ERROR;
for (i = 0; i < 800; i++) {
if (data[i] != i) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
}
}
@@ -765,13 +765,13 @@ test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr)
while (i < 1000) {
if (i < 400) {
if (data[i] != i) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
}
}
else {
if (data[i] != 0) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
}
}
@@ -952,7 +952,7 @@ test_lru_processing(hid_t orig_fapl, const char *env_h5_drvr)
FAIL_STACK_ERROR;
for (i = 0; i < 1; i++) {
if (data[i] != -1) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
} /* end if */
} /* end for */
@@ -979,7 +979,7 @@ test_lru_processing(hid_t orig_fapl, const char *env_h5_drvr)
FAIL_STACK_ERROR;
for (i = 0; i < 100; i++) {
if (data[i] != i + 350) {
- HDfprintf(stderr, "Read different values than written\n");
+ fprintf(stderr, "Read different values than written\n");
TEST_ERROR;
} /* end if */
} /* end for */
@@ -1083,7 +1083,7 @@ test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr)
H5F_t *f = NULL;
TESTING("Minimum Metadata threshold Processing");
- HDprintf("\n");
+ printf("\n");
h5_fixname(FILENAME[0], orig_fapl, filename, sizeof(filename));
if ((fapl = H5Pcopy(orig_fapl)) < 0)
@@ -1104,7 +1104,7 @@ test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr)
if (H5Pset_file_space_page_size(fcpl, sizeof(int) * 200) < 0)
FAIL_STACK_ERROR;
- HDprintf("\tMinimum metadata threshold = 100%%\n");
+ printf("\tMinimum metadata threshold = 100%%\n");
/* keep 5 pages at max in the page buffer and 5 meta page minimum */
if (H5Pset_page_buffer_size(fapl, sizeof(int) * 1000, 100, 0) < 0)
@@ -1235,7 +1235,7 @@ test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr)
if (H5Fclose(file_id) < 0)
FAIL_STACK_ERROR;
- HDprintf("\tMinimum raw data threshold = 100%%\n");
+ printf("\tMinimum raw data threshold = 100%%\n");
page_count = 0;
@@ -1365,7 +1365,7 @@ test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr)
if (H5Fclose(file_id) < 0)
FAIL_STACK_ERROR;
- HDprintf("\tMinimum metadata threshold = 40%%, Minimum rawdata threshold = 40%%\n");
+ printf("\tMinimum metadata threshold = 40%%, Minimum rawdata threshold = 40%%\n");
page_count = 0;
/* keep 5 pages at max in the page buffer 2 meta pages, 2 raw pages
* minimum
@@ -1510,7 +1510,7 @@ test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr)
if (H5Fclose(file_id) < 0)
FAIL_STACK_ERROR;
- HDprintf("\tMinimum metadata threshold = 20%%\n");
+ printf("\tMinimum metadata threshold = 20%%\n");
page_count = 0;
/* keep 5 pages at max in the page buffer and 1 meta page minimum */
if (H5Pset_page_buffer_size(fapl, sizeof(int) * 1000, 39, 0) < 0)
@@ -2154,7 +2154,7 @@ main(void)
HDexit(EXIT_SUCCESS);
error:
- HDprintf("***** %d Page Buffering TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d Page Buffering TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
H5E_BEGIN_TRY
{
diff --git a/test/reserved.c b/test/reserved.c
index 7ebe60c..465b66c 100644
--- a/test/reserved.c
+++ b/test/reserved.c
@@ -491,7 +491,7 @@ main(void)
num_errs += rsrv_vlen();
if (num_errs > 0)
- HDprintf("**** %d FAILURE%s! ****\n", num_errs, num_errs == 1 ? "" : "S");
+ printf("**** %d FAILURE%s! ****\n", num_errs, num_errs == 1 ? "" : "S");
else
HDputs("All address space reservation tests passed.");
diff --git a/test/ros3.c b/test/ros3.c
index 7eb4230..12ead60 100644
--- a/test/ros3.c
+++ b/test/ros3.c
@@ -106,7 +106,7 @@
*/
#define JSFAILED_AT() \
{ \
- HDprintf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
+ printf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
}
/*----------------------------------------------------------------------------
@@ -197,10 +197,10 @@ static inline void
jserr_long(long expected, long actual, const char *reason)
{
if (reason != NULL) {
- HDprintf("%s\n", reason);
+ printf("%s\n", reason);
}
else {
- HDprintf(" ! Expected %ld\n ! Actual %ld\n", expected, actual);
+ printf(" ! Expected %ld\n ! Actual %ld\n", expected, actual);
}
}
@@ -242,10 +242,10 @@ static inline void
jserr_str(const char *expected, const char *actual, const char *reason)
{
if (reason != NULL) {
- HDprintf("%s\n", reason);
+ printf("%s\n", reason);
}
else {
- HDprintf("!!! Expected:\n%s\n!!!Actual:\n%s\n", expected, actual);
+ printf("!!! Expected:\n%s\n!!!Actual:\n%s\n", expected, actual);
}
}
@@ -1711,7 +1711,7 @@ error:
/***********
* CLEANUP *
***********/
- HDprintf("\nerror!");
+ printf("\nerror!");
HDfflush(stdout);
if (fapl_id >= 0) {
@@ -1753,7 +1753,7 @@ main(void)
#endif /* H5_HAVE_ROS3_VFD */
- HDprintf("Testing ros3 VFD functionality.\n");
+ printf("Testing ros3 VFD functionality.\n");
#ifdef H5_HAVE_ROS3_VFD
@@ -1763,8 +1763,8 @@ main(void)
bucket_url_env = HDgetenv("HDF5_ROS3_TEST_BUCKET_URL");
if (bucket_url_env == NULL || bucket_url_env[0] == '\0') {
- HDprintf("WARNING: S3 bucket url is not defined in environment "
- "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n");
+ printf("WARNING: S3 bucket url is not defined in environment "
+ "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n");
}
else {
HDstrncpy(s3_test_bucket_url, bucket_url_env, S3_TEST_MAX_URL_SIZE);
@@ -1774,25 +1774,25 @@ main(void)
if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_text_restricted, (size_t)S3_TEST_MAX_URL_SIZE, "%s/%s",
(const char *)s3_test_bucket_url,
(const char *)S3_TEST_RESOURCE_TEXT_RESTRICTED)) {
- HDprintf("* ros3 setup failed (text_restricted) ! *\n");
+ printf("* ros3 setup failed (text_restricted) ! *\n");
return 1;
}
if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_text_public, (size_t)S3_TEST_MAX_URL_SIZE, "%s/%s",
(const char *)s3_test_bucket_url,
(const char *)S3_TEST_RESOURCE_TEXT_PUBLIC)) {
- HDprintf("* ros3 setup failed (text_public) ! *\n");
+ printf("* ros3 setup failed (text_public) ! *\n");
return 1;
}
if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_h5_public, (size_t)S3_TEST_MAX_URL_SIZE, "%s/%s",
(const char *)s3_test_bucket_url,
(const char *)S3_TEST_RESOURCE_H5_PUBLIC)) {
- HDprintf("* ros3 setup failed (h5_public) ! *\n");
+ printf("* ros3 setup failed (h5_public) ! *\n");
return 1;
}
if (S3_TEST_MAX_URL_SIZE < HDsnprintf(url_missing, S3_TEST_MAX_URL_SIZE, "%s/%s",
(const char *)s3_test_bucket_url,
(const char *)S3_TEST_RESOURCE_MISSING)) {
- HDprintf("* ros3 setup failed (missing) ! *\n");
+ printf("* ros3 setup failed (missing) ! *\n");
return 1;
}
@@ -1836,17 +1836,17 @@ main(void)
nerrors += test_H5F_integration();
if (nerrors > 0) {
- HDprintf("***** %d ros3 TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d ros3 TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
nerrors = 1;
}
else {
- HDprintf("All ros3 tests passed.\n");
+ printf("All ros3 tests passed.\n");
}
return nerrors; /* 0 if no errors, 1 if any errors */
#else
- HDprintf("SKIPPED - read-only S3 VFD not built\n");
+ printf("SKIPPED - read-only S3 VFD not built\n");
return EXIT_SUCCESS;
#endif /* H5_HAVE_ROS3_VFD */
diff --git a/test/s3comms.c b/test/s3comms.c
index 7cf3057..7a6b09c 100644
--- a/test/s3comms.c
+++ b/test/s3comms.c
@@ -96,7 +96,7 @@
*/
#define JSFAILED_AT() \
{ \
- HDprintf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
+ printf("*FAILED* at %s:%d in %s()...\n", __FILE__, __LINE__, __func__); \
}
/*----------------------------------------------------------------------------
@@ -185,10 +185,10 @@ static inline void
jserr_long(long expected, long actual, const char *reason)
{
if (reason != NULL) {
- HDprintf("%s\n", reason);
+ printf("%s\n", reason);
}
else {
- HDprintf(" ! Expected %ld\n ! Actual %ld\n", expected, actual);
+ printf(" ! Expected %ld\n ! Actual %ld\n", expected, actual);
}
}
@@ -230,10 +230,10 @@ static inline void
jserr_str(const char *expected, const char *actual, const char *reason)
{
if (reason != NULL) {
- HDprintf("%s\n", reason);
+ printf("%s\n", reason);
}
else {
- HDprintf("!!! Expected:\n%s\n!!!Actual:\n%s\n", expected, actual);
+ printf("!!! Expected:\n%s\n!!!Actual:\n%s\n", expected, actual);
}
}
@@ -1287,7 +1287,7 @@ test_HMAC_SHA256(void)
dest = (char *)HDrealloc(dest, cases[i].dest_size + 1);
assert(dest != NULL);
dest[cases[i].dest_size] = 0;
- HDfprintf(stdout, "ERROR:\n!!! \"%s\"\n != \"%s\"\n", cases[i].exp, dest);
+ fprintf(stdout, "ERROR:\n!!! \"%s\"\n != \"%s\"\n", cases[i].exp, dest);
TEST_ERROR;
}
#else /* VERBOSE not defined */
@@ -1910,7 +1910,7 @@ test_s3r_open(void)
*************************/
#if S3_TEST_RUN_TIMEOUT
- HDprintf("Opening on inactive port may hang for a minute; waiting for timeout\n");
+ printf("Opening on inactive port may hang for a minute; waiting for timeout\n");
handle = H5FD_s3comms_s3r_open(url_raven_badport, NULL, NULL, NULL);
FAIL_IF(handle != NULL);
#endif
@@ -2580,7 +2580,7 @@ main(void)
#endif /* H5_HAVE_ROS3_VFD */
- HDprintf("Testing S3Communications functionality.\n");
+ printf("Testing S3Communications functionality.\n");
#ifdef H5_HAVE_ROS3_VFD
@@ -2603,8 +2603,8 @@ main(void)
bucket_url_env = HDgetenv("HDF5_ROS3_TEST_BUCKET_URL");
if (bucket_url_env == NULL || bucket_url_env[0] == '\0') {
- HDprintf("WARNING: S3 bucket url is not defined in environment "
- "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n");
+ printf("WARNING: S3 bucket url is not defined in environment "
+ "variable 'HDF5_ROS3_TEST_BUCKET_URL'!\n");
}
else {
HDstrncpy(s3_test_bucket_url, bucket_url_env, S3_TEST_MAX_URL_SIZE);
@@ -2630,17 +2630,17 @@ main(void)
nerrors += test_s3r_read() < 0 ? 1 : 0;
if (nerrors) {
- HDprintf("***** %d S3comms TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d S3comms TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
return 1;
}
- HDprintf("All S3comms tests passed.\n");
+ printf("All S3comms tests passed.\n");
return 0;
#else
- HDprintf("SKIPPED - read-only S3 VFD not built\n");
+ printf("SKIPPED - read-only S3 VFD not built\n");
return EXIT_SUCCESS;
#endif /* H5_HAVE_ROS3_VFD */
diff --git a/test/select_io_dset.c b/test/select_io_dset.c
index 0724365..7a766b4 100644
--- a/test/select_io_dset.c
+++ b/test/select_io_dset.c
@@ -196,8 +196,8 @@ test_no_type_conv(hid_t fid, unsigned chunked, unsigned dtrans, unsigned mwbuf)
for (i = 0; i < DSET_SELECT_DIM; i++)
if (rbuf[i] != (dtrans ? trans_wbuf[i] : wbuf[i])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
@@ -211,8 +211,8 @@ test_no_type_conv(hid_t fid, unsigned chunked, unsigned dtrans, unsigned mwbuf)
for (i = 0; i < DSET_SELECT_DIM; i++)
if (rbuf[i] != (2 * trans_wbuf[i])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
}
@@ -337,8 +337,8 @@ test_no_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (rbuf[4 * i + 0] != wbuf[4 * i + 0] || rbuf[4 * i + 1] != wbuf[4 * i + 1] ||
rbuf[4 * i + 2] != wbuf[4 * i + 2] || rbuf[4 * i + 3] != wbuf[4 * i + 3]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
@@ -351,8 +351,8 @@ test_no_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (rbuf[4 * i + 0] != wbuf[4 * i + 3] || rbuf[4 * i + 1] != wbuf[4 * i + 2] ||
rbuf[4 * i + 2] != wbuf[4 * i + 1] || rbuf[4 * i + 3] != wbuf[4 * i + 0]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
@@ -486,8 +486,8 @@ test_larger_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsign
for (i = 0; i < DSET_SELECT_DIM; i++)
if (rbuf[i] != (long long)(dtrans ? trans_wbuf[i] : wbuf[i])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
@@ -501,8 +501,8 @@ test_larger_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsign
for (i = 0; i < DSET_SELECT_DIM; i++)
if (rbuf[i] != (long long)(5 * (10 - trans_wbuf[i]))) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
}
@@ -629,8 +629,8 @@ test_smaller_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsig
for (i = 0; i < DSET_SELECT_DIM; i++)
if (rbuf[i] != (dtrans ? trans_wbuf[i] : wbuf[i])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
@@ -644,8 +644,8 @@ test_smaller_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsig
for (i = 0; i < DSET_SELECT_DIM; i++)
if (rbuf[i] != (2 * (10 + trans_wbuf[i]))) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
}
@@ -812,8 +812,8 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (s1_wbuf[i].a != s1_rbuf[i].a || s1_wbuf[i].b != s1_rbuf[i].b || s1_wbuf[i].c != s1_rbuf[i].c ||
s1_wbuf[i].d != s1_rbuf[i].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
}
@@ -858,8 +858,8 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (s1_rbuf[i].a != s1_wbuf[i].a || s1_rbuf[i].b != ((4 * i) + 1) || s1_rbuf[i].c != s1_wbuf[i].c ||
s1_rbuf[i].d != ((4 * i) + 3)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
}
@@ -893,8 +893,8 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
s1_rbuf[i].c != ((4 * i) + DSET_SELECT_DIM + 2) ||
s1_rbuf[i].d != ((4 * i) + (2 * DSET_SELECT_DIM) + 3)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
}
@@ -944,8 +944,8 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (s2_wbuf[i].a != s2_rbuf[i].a || s2_wbuf[i].b != s2_rbuf[i].b || s2_wbuf[i].c != s2_rbuf[i].c ||
s2_wbuf[i].d != s2_rbuf[i].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
}
}
@@ -1180,8 +1180,8 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
for (j = 0; j < DSET_SELECT_DIM; j++)
if (rbufi[i][j] != (dtrans ? trans_wbufi[i][j] : wbufi[i][j])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
@@ -1196,8 +1196,8 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
for (j = 0; j < DSET_SELECT_DIM; j++)
if (rbufi[i][j] != (2 * trans_wbufi[i][j])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -1244,8 +1244,8 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
for (j = 0; j < DSET_SELECT_DIM; j++) {
if (lrbufi[i][j] != (dtrans ? (2 * trans_lwbufi[i][j]) : lwbufi[i][j])) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -1504,8 +1504,8 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (wbufi[i][j].a != rbufi[i][j].a || wbufi[i][j].b != rbufi[i][j].b ||
wbufi[i][j].c != rbufi[i][j].c || wbufi[i][j].d != rbufi[i][j].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -1564,8 +1564,8 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (wbufi[i][j].a != rbufi[i][j].a || ((4 * (int)j) + 1) != rbufi[i][j].b ||
wbufi[i][j].c != rbufi[i][j].c || ((4 * (int)j) + 3) != rbufi[i][j].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -1574,8 +1574,8 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if ((4 * (int)j) != rbufi[i][j].a || ((4 * (int)j) + 1) != rbufi[i][j].b ||
((4 * (int)j) + 2) != rbufi[i][j].c || ((4 * (int)j) + 3) != rbufi[i][j].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -1630,8 +1630,8 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (wbufi[0][j].a != rbufi[0][j].a || ((4 * (int)j) + 1) != rbufi[0][j].b ||
wbufi[0][j].c != rbufi[0][j].c || ((4 * (int)j) + 3) != rbufi[0][j].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset0 at index %d\n", j);
+ printf(" Read different values than written.\n");
+ printf(" For dset0 at index %d\n", j);
TEST_ERROR;
}
@@ -1641,8 +1641,8 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
rbufi[mm][j].b != ((4 * (int)j) + 1) || rbufi[mm][j].c != ((4 * (int)j) + 2) ||
rbufi[mm][j].d != ((4 * (int)j) + (2 * DSET_SELECT_DIM) + 3)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset1 at index %d\n", j);
+ printf(" Read different values than written.\n");
+ printf(" For dset1 at index %d\n", j);
TEST_ERROR;
}
@@ -1655,8 +1655,8 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (rbufi[i][j].a != (4 * (int)j) || rbufi[i][j].b != ((4 * (int)j) + 1) ||
rbufi[i][j].c != ((4 * (int)j) + 2) || rbufi[i][j].d != ((4 * (int)j) + 3)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -1721,8 +1721,8 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (s2_wbufi[i][j].a != s2_rbufi[i][j].a || s2_wbufi[i][j].b != s2_rbufi[i][j].b ||
s2_wbufi[i][j].c != s2_rbufi[i][j].c || s2_wbufi[i][j].d != s2_rbufi[i][j].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
@@ -1937,8 +1937,8 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
rbufi[i][(int)ss * j + 2] != wbufi[i][(int)ss * j + 2] ||
rbufi[i][(int)ss * j + 3] != wbufi[i][(int)ss * j + 3]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -2012,8 +2012,8 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
lrbufi[i][(int)ss * j + 6] != lwbufi[i][(int)ss * j + 6] ||
lrbufi[i][(int)ss * j + 7] != lwbufi[i][(int)ss * j + 7]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -2074,8 +2074,8 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
if (srbufi[i][(int)ss * j + 0] != swbufi[i][(int)ss * j + 0] ||
srbufi[i][(int)ss * j + 1] != swbufi[i][(int)ss * j + 1]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
@@ -2550,8 +2550,8 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
for (j = 0; j < DSET_SELECT_DIM; j++)
if (rbufi1[i][j] != wbufi1[i][j]) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
@@ -2562,8 +2562,8 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
for (j = 0; j < DSET_SELECT_DIM; j++)
if (l_rbufi2[i][j] != LONG_MAX) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
TEST_ERROR;
}
}
@@ -2571,8 +2571,8 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
for (j = 0; j < DSET_SELECT_DIM; j++)
if (s_rbufi2[i][j] != SHRT_MAX) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
}
}
@@ -2586,8 +2586,8 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
s3_rbufi3[i][j].c != s1_wbufi3[i][j].c ||
s3_rbufi3[i][j].d != s1_wbufi3[i][j].d) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
}
}
else if (s == SETTING_B) {
@@ -2597,8 +2597,8 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
s1_rbufi3[i][j].c != s1_wbufi3[i][j].c ||
s1_rbufi3[i][j].d != (DSET_SELECT_DIM + j)) {
H5_FAILED();
- HDprintf(" Read different values than written.\n");
- HDprintf(" For dset %d at index %d\n", i, j);
+ printf(" Read different values than written.\n");
+ printf(" For dset %d at index %d\n", i, j);
}
}
@@ -2745,7 +2745,7 @@ test_set_get_select_io_mode(hid_t fid)
long wbuf[DSET_SELECT_DIM];
H5D_selection_io_mode_t selection_io_mode;
- HDprintf("\n");
+ printf("\n");
TESTING("H5Pget/set_selection_io_mode()");
if ((dxpl = H5Pcreate(H5P_DATASET_XFER)) < 0)
@@ -3069,7 +3069,7 @@ test_get_no_selection_io_cause(const char *filename, hid_t fapl)
int errs = 0;
- HDprintf("\n");
+ printf("\n");
TESTING("H5Pget_no_selection_io_cause()");
errs += test_no_selection_io_cause_mode(filename, fapl, TEST_DISABLE_BY_API);
@@ -3088,7 +3088,7 @@ test_get_no_selection_io_cause(const char *filename, hid_t fapl)
#endif
if (errs) {
- HDprintf(" FAILED\n");
+ printf(" FAILED\n");
return FAIL;
}
else {
@@ -3265,7 +3265,7 @@ main(void)
goto error;
printf("\n===================================\n");
- HDprintf("All selection I/O dataset tests passed.\n");
+ printf("All selection I/O dataset tests passed.\n");
printf("===================================\n");
h5_cleanup(FILENAME, fapl);
@@ -3274,7 +3274,7 @@ main(void)
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d SELECTION I/O DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d SELECTION I/O DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
} /* end main() */
diff --git a/test/set_extent.c b/test/set_extent.c
index f4758b5..462c5d2 100644
--- a/test/set_extent.c
+++ b/test/set_extent.c
@@ -41,12 +41,12 @@ static const char *FILENAME[] = {"set_extent1", "set_extent2", "set_extent3", "s
#define FILL_VALUE (-1)
#define DO_RANKS_PRINT_CONFIG(TEST) \
{ \
- HDprintf(" Config:\n"); \
- HDprintf(" Test: %s\n", TEST); \
- HDprintf(" Compression: %s\n", (config & CONFIG_COMPRESS ? "yes" : "no")); \
- HDprintf(" Fill value: %s\n", (do_fillvalue ? "yes" : "no")); \
- HDprintf(" Early allocation: %s\n", (config & CONFIG_EARLY_ALLOC ? "yes" : "no")); \
- HDprintf(" Edge chunk filters: %s\n", (config & CONFIG_UNFILT_EDGE ? "disabled" : "enabled")); \
+ printf(" Config:\n"); \
+ printf(" Test: %s\n", TEST); \
+ printf(" Compression: %s\n", (config & CONFIG_COMPRESS ? "yes" : "no")); \
+ printf(" Fill value: %s\n", (do_fillvalue ? "yes" : "no")); \
+ printf(" Early allocation: %s\n", (config & CONFIG_EARLY_ALLOC ? "yes" : "no")); \
+ printf(" Edge chunk filters: %s\n", (config & CONFIG_UNFILT_EDGE ? "disabled" : "enabled")); \
} /* end DO_RANKS_PRINT_CONFIG */
#define RANK1 1
@@ -152,9 +152,9 @@ main(void)
for (chunk_cache = FALSE; chunk_cache <= TRUE; chunk_cache++) {
/* Output message about the type of format */
if (new_format)
- HDprintf("Testing with new file format");
+ printf("Testing with new file format");
else
- HDprintf("Testing with old file format");
+ printf("Testing with old file format");
/* Set the FAPL for the chunk cache settings */
if (chunk_cache) {
@@ -211,7 +211,7 @@ main(void)
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d H5Dset_extent TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d H5Dset_extent TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
return 1;
}
@@ -285,22 +285,22 @@ do_ranks(hid_t fapl, hbool_t new_format)
if (test_rank1(fapl, dcpl, do_fillvalue, disable_edge_filters, FALSE) < 0) {
DO_RANKS_PRINT_CONFIG("Rank 1")
- HDprintf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
+ printf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
goto error;
} /* end if */
if (test_rank2(fapl, dcpl, do_fillvalue, disable_edge_filters, FALSE) < 0) {
DO_RANKS_PRINT_CONFIG("Rank 2")
- HDprintf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
+ printf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
goto error;
} /* end if */
if (test_rank3(fapl, dcpl, do_fillvalue, disable_edge_filters, FALSE) < 0) {
DO_RANKS_PRINT_CONFIG("Rank 3")
- HDprintf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
+ printf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
goto error;
} /* end if */
if (test_rank2(fapl, dcpl, do_fillvalue, disable_edge_filters, TRUE) < 0) {
DO_RANKS_PRINT_CONFIG("Rank 2 with non-default indexed storage B-tree")
- HDprintf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
+ printf(" Fill time: %s\n", (ifset ? "H5D_FILL_TIME_IFSET" : "H5D_FILL_TIME_ALLOC"));
goto error;
} /* end if */
} /* end for */
@@ -340,9 +340,9 @@ do_ranks(hid_t fapl, hbool_t new_format)
/* Standard test */
if (test_random_rank4(fapl, dcpl, do_fillvalue, disable_edge_filters, FALSE, index_type) < 0) {
DO_RANKS_PRINT_CONFIG("Randomized rank 4")
- HDprintf(" Index: %s\n", index_type == RANK4_INDEX_BTREE
- ? "btree"
- : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
+ printf(" Index: %s\n", index_type == RANK4_INDEX_BTREE
+ ? "btree"
+ : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
goto error;
} /* end if */
@@ -351,10 +351,9 @@ do_ranks(hid_t fapl, hbool_t new_format)
if (test_random_rank4_vl(fapl, dcpl, do_fillvalue, disable_edge_filters, FALSE, index_type) <
0) {
DO_RANKS_PRINT_CONFIG("Randomized rank 4 variable length")
- HDprintf(" Index: %s\n",
- index_type == RANK4_INDEX_BTREE
- ? "btree"
- : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
+ printf(" Index: %s\n", index_type == RANK4_INDEX_BTREE
+ ? "btree"
+ : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
goto error;
} /* end if */
}
@@ -363,10 +362,9 @@ do_ranks(hid_t fapl, hbool_t new_format)
if (!(config & CONFIG_EARLY_ALLOC)) {
if (test_random_rank4(fapl, dcpl, do_fillvalue, disable_edge_filters, TRUE, index_type) < 0) {
DO_RANKS_PRINT_CONFIG("Randomized rank 4 with sparse allocation")
- HDprintf(" Index: %s\n",
- index_type == RANK4_INDEX_BTREE
- ? "btree"
- : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
+ printf(" Index: %s\n", index_type == RANK4_INDEX_BTREE
+ ? "btree"
+ : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
goto error;
} /* end if */
@@ -374,10 +372,10 @@ do_ranks(hid_t fapl, hbool_t new_format)
if (test_random_rank4_vl(fapl, dcpl, do_fillvalue, disable_edge_filters, TRUE,
index_type) < 0) {
DO_RANKS_PRINT_CONFIG("Randomized rank 4 variable length with sparse allocation")
- HDprintf(" Index: %s\n",
- index_type == RANK4_INDEX_BTREE
- ? "btree"
- : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
+ printf(" Index: %s\n",
+ index_type == RANK4_INDEX_BTREE
+ ? "btree"
+ : (index_type == RANK4_INDEX_FARRAY ? "farray" : "earray"));
goto error;
} /* end if */
}
@@ -545,10 +543,10 @@ test_rank1(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG)
- HDprintf("\n buf_o: ");
+ printf("\n buf_o: ");
for (i = 0; i < (int)dims_o[0]; i++)
- HDprintf("%d ", buf_o[i]);
- HDprintf("\n");
+ printf("%d ", buf_o[i]);
+ printf("\n");
#endif
if (H5Sclose(sid) < 0)
@@ -584,18 +582,18 @@ test_rank1(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG)
- HDprintf("\n buf_e: ");
+ printf("\n buf_e: ");
for (i = 0; i < (int)dims_r[0]; i++)
- HDprintf("%d ", buf_e[i]);
- HDprintf("\n");
+ printf("%d ", buf_e[i]);
+ printf("\n");
#endif
/* compare the read array with the expanded array */
for (i = 0; i < (int)dims_r[0]; i++)
if (i >= DIM0) {
if (buf_e[i] != comp_value) {
- HDprintf("buf_e[%d] = %d\n", i, buf_e[i]);
- HDprintf("expected = %d\n", comp_value);
+ printf("buf_e[%d] = %d\n", i, buf_e[i]);
+ printf("expected = %d\n", comp_value);
TEST_ERROR;
} /* end if */
} /* end if */
@@ -653,17 +651,17 @@ test_rank1(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG)
- HDprintf("\n dims_r: ");
+ printf("\n dims_r: ");
for (i = 0; i < (int)dims_r[0]; i++)
- HDprintf("%d ", buf_s[i]);
- HDprintf("\n");
+ printf("%d ", buf_s[i]);
+ printf("\n");
#endif
/* compare the read array with the shrunk array */
for (i = 0; i < (int)dims_r[0]; i++)
if (buf_s[i] != buf_o[i]) {
- HDprintf("buf_s[%d] = %d\n", i, buf_s[i]);
- HDprintf("buf_o[%d] = %d\n", i, buf_o[i]);
+ printf("buf_s[%d] = %d\n", i, buf_s[i]);
+ printf("buf_o[%d] = %d\n", i, buf_o[i]);
TEST_ERROR;
} /* end if */
@@ -697,18 +695,18 @@ test_rank1(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG)
- HDprintf("\n dims_r: ");
+ printf("\n dims_r: ");
for (i = 0; i < (int)dims_r[0]; i++)
- HDprintf("%d ", buf_r[i]);
- HDprintf("\n");
+ printf("%d ", buf_r[i]);
+ printf("\n");
#endif
/* compare the read array with the original array */
for (i = 0; i < (int)dims_r[0]; i++)
if (i >= DIMS0) {
if (buf_r[i] != comp_value) {
- HDprintf("buf_r[%d] = %d\n", i, buf_r[i]);
- HDprintf("expected = %d\n", comp_value);
+ printf("buf_r[%d] = %d\n", i, buf_r[i]);
+ printf("expected = %d\n", comp_value);
TEST_ERROR;
} /* end if */
} /* end if */
@@ -901,12 +899,12 @@ test_rank2(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
}
#if defined(H5_SET_EXTENT_DEBUG2)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_o[0]; i++) {
for (j = 0; j < (int)dims_o[1]; j++) {
- HDprintf("%d ", buf_o[i][j]);
+ printf("%d ", buf_o[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -959,12 +957,12 @@ test_rank2(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG2)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
- HDprintf("%d ", buf_e[i][j]);
+ printf("%d ", buf_e[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -973,8 +971,8 @@ test_rank2(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
for (j = 0; j < (int)dims_r[1]; j++) {
if (i >= DIM0 || j >= DIM1) {
if (buf_e[i][j] != comp_value) {
- HDprintf("buf_e[%d][%d] = %d\n", i, j, buf_e[i][j]);
- HDprintf("value = %d\n", comp_value);
+ printf("buf_e[%d][%d] = %d\n", i, j, buf_e[i][j]);
+ printf("value = %d\n", comp_value);
TEST_ERROR;
}
}
@@ -1056,12 +1054,12 @@ test_rank2(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
}
#if defined(H5_SET_EXTENT_DEBUG2)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
- HDprintf("%d ", buf_s[i][j]);
+ printf("%d ", buf_s[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -1069,8 +1067,8 @@ test_rank2(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
if (buf_s[i][j] != buf_o[i][j]) {
- HDprintf("buf_s[%d][%d] = %d\n", i, j, buf_s[i][j]);
- HDprintf("buf_o[%d][%d] = %d\n", i, j, buf_o[i][j]);
+ printf("buf_s[%d][%d] = %d\n", i, j, buf_s[i][j]);
+ printf("buf_o[%d][%d] = %d\n", i, j, buf_o[i][j]);
TEST_ERROR;
}
}
@@ -1123,12 +1121,12 @@ test_rank2(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG2)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
- HDprintf("%d ", buf_r[i][j]);
+ printf("%d ", buf_r[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -1137,8 +1135,8 @@ test_rank2(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
for (j = 0; j < (int)dims_r[1]; j++) {
if (i >= DIMS0 || j >= DIMS1) {
if (buf_r[i][j] != comp_value) {
- HDprintf("buf_r[%d][%d] = %d\n", i, j, buf_r[i][j]);
- HDprintf("value = %d\n", comp_value);
+ printf("buf_r[%d][%d] = %d\n", i, j, buf_r[i][j]);
+ printf("value = %d\n", comp_value);
TEST_ERROR;
}
}
@@ -1388,17 +1386,17 @@ test_rank3(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
}
#if defined(H5_SET_EXTENT_DEBUG3)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_o[0]; i++) {
for (j = 0; j < (int)dims_o[1]; j++) {
for (k = 0; k < (int)dims_o[2]; k++) {
- HDprintf("%d ", buf_o[i][j][k]);
+ printf("%d ", buf_o[i][j][k]);
}
- HDprintf("[%d] ", j);
+ printf("[%d] ", j);
}
- HDprintf("\n");
+ printf("\n");
}
- HDprintf("\n");
+ printf("\n");
#endif
if (H5Sclose(sid) < 0) {
@@ -1441,17 +1439,17 @@ test_rank3(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG3)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
for (k = 0; k < (int)dims_r[2]; k++) {
- HDprintf("%d ", buf_e[i][j][k]);
+ printf("%d ", buf_e[i][j][k]);
}
- HDprintf("[%d] ", j);
+ printf("[%d] ", j);
}
- HDprintf("\n");
+ printf("\n");
}
- HDprintf("\n");
+ printf("\n");
#endif
/* compare the read array with the expanded array */
@@ -1460,8 +1458,8 @@ test_rank3(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
for (k = 0; k < (int)dims_r[2]; k++) {
if (i >= DIM0 || j >= DIM1 || k >= DIM2) {
if (buf_e[i][j][k] != comp_value) {
- HDprintf("buf_e[%d][%d][%d] = %d\n", i, j, k, buf_e[i][j][k]);
- HDprintf("value = %d\n", comp_value);
+ printf("buf_e[%d][%d][%d] = %d\n", i, j, k, buf_e[i][j][k]);
+ printf("value = %d\n", comp_value);
TEST_ERROR;
}
}
@@ -1533,17 +1531,17 @@ test_rank3(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
}
#if defined(H5_SET_EXTENT_DEBUG3)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
for (k = 0; k < (int)dims_r[2]; k++) {
- HDprintf("%d ", buf_s[i][j][k]);
+ printf("%d ", buf_s[i][j][k]);
}
- HDprintf("[%d] ", j);
+ printf("[%d] ", j);
}
- HDprintf("\n");
+ printf("\n");
}
- HDprintf("\n");
+ printf("\n");
#endif
/* compare the read array with the shrunk array */
@@ -1551,8 +1549,8 @@ test_rank3(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
for (j = 0; j < (int)dims_r[1]; j++) {
for (k = 0; k < (int)dims_r[2]; k++) {
if (buf_s[i][j][k] != buf_o[i][j][k]) {
- HDprintf("buf_s[%d][%d][%d] = %d\n", i, j, k, buf_s[i][j][k]);
- HDprintf("buf_o[%d][%d][%d] = %d\n", i, j, k, buf_o[i][j][k]);
+ printf("buf_s[%d][%d][%d] = %d\n", i, j, k, buf_s[i][j][k]);
+ printf("buf_o[%d][%d][%d] = %d\n", i, j, k, buf_o[i][j][k]);
TEST_ERROR;
}
}
@@ -1594,18 +1592,18 @@ test_rank3(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG3)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
for (k = 0; k < (int)dims_r[2]; k++) {
- HDprintf("%d ", buf_r[i][j][k]);
+ printf("%d ", buf_r[i][j][k]);
}
- HDprintf("[%d] ", j);
+ printf("[%d] ", j);
}
- HDprintf("\n");
+ printf("\n");
}
- HDprintf("\n");
+ printf("\n");
#endif
/* compare the read array with the original array */
@@ -1614,8 +1612,8 @@ test_rank3(hid_t fapl, hid_t dcpl, hbool_t do_fill_value, hbool_t disable_edge_f
for (k = 0; k < (int)dims_r[2]; k++) {
if (i >= DIMS0 || j >= DIMS1 || k >= DIMS2) {
if (buf_r[i][j][k] != comp_value) {
- HDprintf("buf_r[%d][%d][%d] = %d\n", i, j, k, buf_r[i][j][k]);
- HDprintf("value = %d\n", comp_value);
+ printf("buf_r[%d][%d][%d] = %d\n", i, j, k, buf_r[i][j][k]);
+ printf("value = %d\n", comp_value);
TEST_ERROR;
}
}
@@ -1824,12 +1822,12 @@ test_external(hid_t fapl)
FAIL_STACK_ERROR;
#if defined(H5_SET_EXTENT_DEBUG)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_o[0]; i++) {
for (j = 0; j < (int)dims_o[1]; j++) {
- HDprintf("%d ", buf_ro[i][j]);
+ printf("%d ", buf_ro[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -1879,12 +1877,12 @@ test_external(hid_t fapl)
FAIL_STACK_ERROR;
#if defined(H5_SET_EXTENT_DEBUG)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
- HDprintf("%d ", buf_e[i][j]);
+ printf("%d ", buf_e[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -1893,8 +1891,8 @@ test_external(hid_t fapl)
for (j = 0; j < (int)dims_r[1]; j++) {
if (i >= DIM0 || j >= DIM1) {
if (buf_e[i][j] != comp_value) {
- HDprintf("buf_e[%d][%d] = %d\n", i, j, buf_e[i][j]);
- HDprintf("value = %d\n", comp_value);
+ printf("buf_e[%d][%d] = %d\n", i, j, buf_e[i][j]);
+ printf("value = %d\n", comp_value);
TEST_ERROR;
}
}
@@ -1947,12 +1945,12 @@ test_external(hid_t fapl)
FAIL_STACK_ERROR;
#if defined(H5_SET_EXTENT_DEBUG)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
- HDprintf("%d ", buf_s[i][j]);
+ printf("%d ", buf_s[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -1960,8 +1958,8 @@ test_external(hid_t fapl)
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
if (buf_s[i][j] != buf_o[i][j]) {
- HDprintf("buf_s[%d][%d] = %d\n", i, j, buf_s[i][j]);
- HDprintf("buf_o[%d][%d] = %d\n", i, j, buf_o[i][j]);
+ printf("buf_s[%d][%d] = %d\n", i, j, buf_s[i][j]);
+ printf("buf_o[%d][%d] = %d\n", i, j, buf_o[i][j]);
TEST_ERROR;
}
}
@@ -2075,12 +2073,12 @@ test_layouts(H5D_layout_t layout, hid_t fapl)
}
#if defined(H5_SET_EXTENT_DEBUG4)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_o[0]; i++) {
for (j = 0; j < (int)dims_o[1]; j++) {
- HDprintf("%d ", buf_o[i][j]);
+ printf("%d ", buf_o[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -2128,12 +2126,12 @@ test_layouts(H5D_layout_t layout, hid_t fapl)
TEST_ERROR;
#if defined(H5_SET_EXTENT_DEBUG4)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
- HDprintf("%d ", buf_r[i][j]);
+ printf("%d ", buf_r[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -2183,12 +2181,12 @@ test_layouts(H5D_layout_t layout, hid_t fapl)
}
#if defined(H5_SET_EXTENT_DEBUG4)
- HDprintf("\n");
+ printf("\n");
for (i = 0; i < (int)dims_r[0]; i++) {
for (j = 0; j < (int)dims_r[1]; j++) {
- HDprintf("%d ", buf_r[i][j]);
+ printf("%d ", buf_r[i][j]);
}
- HDprintf("\n");
+ printf("\n");
}
#endif
@@ -2747,12 +2745,12 @@ test_random_rank4_dump(unsigned ndim_sets, hsize_t dim_log[][4], hsize_t cdims[4
{
unsigned i;
- HDprintf(" Chunk dimensions: ( %u, %u, %u, %u )\n", (unsigned)cdims[0], (unsigned)cdims[1],
- (unsigned)cdims[2], (unsigned)cdims[3]);
- HDprintf(" Log of dataset dimensions (oldest first):\n");
+ printf(" Chunk dimensions: ( %u, %u, %u, %u )\n", (unsigned)cdims[0], (unsigned)cdims[1],
+ (unsigned)cdims[2], (unsigned)cdims[3]);
+ printf(" Log of dataset dimensions (oldest first):\n");
for (i = 0; i < ndim_sets; i++)
- HDprintf(" Iteration %-3u: ( %2u, %2u, %2u, %2u )\n", i, (unsigned)dim_log[i][0],
- (unsigned)dim_log[i][1], (unsigned)dim_log[i][2], (unsigned)dim_log[i][3]);
+ printf(" Iteration %-3u: ( %2u, %2u, %2u, %2u )\n", i, (unsigned)dim_log[i][0],
+ (unsigned)dim_log[i][1], (unsigned)dim_log[i][2], (unsigned)dim_log[i][3]);
if (j >= 0)
- HDprintf(" First incorrect value read: ( %d, %d, %d, %d )\n", j, k, l, m);
+ printf(" First incorrect value read: ( %d, %d, %d, %d )\n", j, k, l, m);
} /* end test_random_rank4_dump */
diff --git a/test/stab.c b/test/stab.c
index dcd2791..779d4bb 100644
--- a/test/stab.c
+++ b/test/stab.c
@@ -136,7 +136,7 @@ test_misc(hid_t fcpl, hid_t fapl, hbool_t new_format)
if (HDstrcmp(comment, "hello world") != 0) {
H5_FAILED();
HDputs(" Read the wrong comment string from the group.");
- HDprintf(" got: \"%s\"\n ans: \"hello world\"\n", comment);
+ printf(" got: \"%s\"\n ans: \"hello world\"\n", comment);
TEST_ERROR;
}
if (H5Gclose(g1) < 0)
diff --git a/test/swmr.c b/test/swmr.c
index 43392b6..63da6b2 100644
--- a/test/swmr.c
+++ b/test/swmr.c
@@ -7743,7 +7743,7 @@ main(void)
*/
driver = HDgetenv(HDF5_DRIVER);
if (!H5FD__supports_swmr_test(driver)) {
- HDprintf("This VFD does not support SWMR I/O\n");
+ printf("This VFD does not support SWMR I/O\n");
return EXIT_SUCCESS;
}
@@ -7760,7 +7760,7 @@ main(void)
/* Check if file locking is enabled on this file system */
if (use_file_locking)
if (h5_check_if_file_locking_enabled(&file_locking_enabled) < 0) {
- HDprintf("Error when determining if file locks are enabled\n");
+ printf("Error when determining if file locks are enabled\n");
return EXIT_FAILURE;
}
@@ -7847,7 +7847,7 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All tests passed.\n");
+ printf("All tests passed.\n");
h5_cleanup(FILENAME, fapl);
@@ -7855,7 +7855,7 @@ main(void)
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d SWMR TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d SWMR TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
return EXIT_FAILURE;
} /* end main() */
diff --git a/test/swmr_addrem_writer.c b/test/swmr_addrem_writer.c
index 4681d4f..2a41dc4 100644
--- a/test/swmr_addrem_writer.c
+++ b/test/swmr_addrem_writer.c
@@ -95,7 +95,7 @@ open_skeleton(const char *filename, unsigned verbose)
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening datasets\n");
+ fprintf(stderr, "Opening datasets\n");
/* Open the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -250,7 +250,7 @@ addrem_records(hid_t fid, unsigned verbose, unsigned long nops, unsigned long fl
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing datasets\n");
+ fprintf(stderr, "Closing datasets\n");
/* Close the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -264,20 +264,20 @@ addrem_records(hid_t fid, unsigned verbose, unsigned long nops, unsigned long fl
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_addrem_writer [-q] [-f <# of operations between flushing\n");
- HDprintf(" file contents>] [-r <random seed>] <# of operations>\n");
- HDprintf("\n");
- HDprintf("<# of operations between flushing file contents> should be 0 (for\n");
- HDprintf("no flushing) or between 1 and (<# of operations> - 1).\n");
- HDprintf("\n");
- HDprintf("<# of operations> must be specified.\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given), flushing every 1000 operations\n");
- HDprintf("('-f 1000'), and will generate a random seed (no -r given).\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_addrem_writer [-q] [-f <# of operations between flushing\n");
+ printf(" file contents>] [-r <random seed>] <# of operations>\n");
+ printf("\n");
+ printf("<# of operations between flushing file contents> should be 0 (for\n");
+ printf("no flushing) or between 1 and (<# of operations> - 1).\n");
+ printf("\n");
+ printf("<# of operations> must be specified.\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given), flushing every 1000 operations\n");
+ printf("('-f 1000'), and will generate a random seed (no -r given).\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
}
@@ -348,9 +348,9 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose) {
- HDfprintf(stderr, "Parameters:\n");
- HDfprintf(stderr, "\t# of operations between flushes = %ld\n", flush_count);
- HDfprintf(stderr, "\t# of operations = %ld\n", nops);
+ fprintf(stderr, "Parameters:\n");
+ fprintf(stderr, "\t# of operations between flushes = %ld\n", flush_count);
+ fprintf(stderr, "\t# of operations = %ld\n", nops);
} /* end if */
/* Set the random seed */
@@ -361,11 +361,11 @@ main(int argc, char *argv[])
} /* end if */
HDsrandom(random_seed);
/* ALWAYS emit the random seed for possible debugging */
- HDfprintf(stderr, "Using writer random seed: %u\n", random_seed);
+ fprintf(stderr, "Using writer random seed: %u\n", random_seed);
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Generating symbol names\n");
+ fprintf(stderr, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0)
@@ -373,11 +373,11 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening skeleton file: %s\n", FILENAME);
+ fprintf(stderr, "Opening skeleton file: %s\n", FILENAME);
/* Open file skeleton */
if ((fid = open_skeleton(FILENAME, verbose)) < 0) {
- HDfprintf(stderr, "Error opening skeleton file!\n");
+ fprintf(stderr, "Error opening skeleton file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
@@ -386,31 +386,31 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Adding and removing records\n");
+ fprintf(stderr, "Adding and removing records\n");
/* Grow and shrink datasets */
if (addrem_records(fid, verbose, (unsigned long)nops, (unsigned long)flush_count) < 0) {
- HDfprintf(stderr, "Error adding and removing records from datasets!\n");
+ fprintf(stderr, "Error adding and removing records from datasets!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Releasing symbols\n");
+ fprintf(stderr, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing objects\n");
+ fprintf(stderr, "Closing objects\n");
/* Close objects opened */
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Error closing file!\n");
+ fprintf(stderr, "Error closing file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_common.c b/test/swmr_common.c
index 0143cf8..173dea8 100644
--- a/test/swmr_common.c
+++ b/test/swmr_common.c
@@ -275,12 +275,12 @@ print_metadata_retries_info(hid_t fid)
if (NULL == info.retries[i])
continue;
- HDfprintf(stderr, "Metadata read retries for item %u:\n", i);
+ fprintf(stderr, "Metadata read retries for item %u:\n", i);
power = 1;
for (j = 0; j < info.nbins; j++) {
if (info.retries[i][j])
- HDfprintf(stderr, "\t# of retries for %u - %u retries: %u\n", power, (power * 10) - 1,
- info.retries[i][j]);
+ fprintf(stderr, "\t# of retries for %u - %u retries: %u\n", power, (power * 10) - 1,
+ info.retries[i][j]);
power *= 10;
} /* end for */
} /* end for */
diff --git a/test/swmr_generator.c b/test/swmr_generator.c
index d8d4adc..9b8a689 100644
--- a/test/swmr_generator.c
+++ b/test/swmr_generator.c
@@ -124,7 +124,7 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t swmr_write, int comp
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Creating file\n");
+ fprintf(stderr, "Creating file\n");
/* Create the file */
if ((fid = H5Fcreate(filename, H5F_ACC_TRUNC | (swmr_write ? H5F_ACC_SWMR_WRITE : 0), fcpl, fapl)) < 0)
@@ -177,7 +177,7 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t swmr_write, int comp
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Creating datasets\n");
+ fprintf(stderr, "Creating datasets\n");
/* Create the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -218,7 +218,7 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t swmr_write, int comp
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing objects\n");
+ fprintf(stderr, "Closing objects\n");
/* Close everything */
if (H5Pclose(dcpl) < 0)
@@ -236,23 +236,23 @@ gen_skeleton(const char *filename, hbool_t verbose, hbool_t swmr_write, int comp
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_generator [-q] [-s] [-c <deflate compression level>]\n");
- HDprintf(" [-i <index type>] [-r <random seed>]\n");
- HDprintf("\n");
- HDprintf("NOTE: The random seed option is only used by the sparse test. Other\n");
- HDprintf(" tests specify the random seed as a reader/writer option.\n");
- HDprintf("\n");
- HDprintf("<deflate compression level> should be -1 (for no compression) or 0-9\n");
- HDprintf("\n");
- HDprintf("<index type> should be b2 or ea\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given), no SWMR_WRITE mode (no '-s' given) no\n");
- HDprintf("compression ('-c -1'), v1 b-tree indexing (-i b1), and will generate a random\n");
- HDprintf("seed (no -r given).\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_generator [-q] [-s] [-c <deflate compression level>]\n");
+ printf(" [-i <index type>] [-r <random seed>]\n");
+ printf("\n");
+ printf("NOTE: The random seed option is only used by the sparse test. Other\n");
+ printf(" tests specify the random seed as a reader/writer option.\n");
+ printf("\n");
+ printf("<deflate compression level> should be -1 (for no compression) or 0-9\n");
+ printf("\n");
+ printf("<index type> should be b2 or ea\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given), no SWMR_WRITE mode (no '-s' given) no\n");
+ printf("compression ('-c -1'), v1 b-tree indexing (-i b1), and will generate a random\n");
+ printf("seed (no -r given).\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
} /* end usage() */
@@ -323,10 +323,10 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose) {
- HDfprintf(stderr, "Parameters:\n");
- HDfprintf(stderr, "\tswmr writes %s\n", swmr_write ? "on" : "off");
- HDfprintf(stderr, "\tcompression level = %d\n", comp_level);
- HDfprintf(stderr, "\tindex type = %s\n", index_type);
+ fprintf(stderr, "Parameters:\n");
+ fprintf(stderr, "\tswmr writes %s\n", swmr_write ? "on" : "off");
+ fprintf(stderr, "\tcompression level = %d\n", comp_level);
+ fprintf(stderr, "\tindex type = %s\n", index_type);
} /* end if */
/* Set the random seed */
@@ -338,15 +338,15 @@ main(int argc, char *argv[])
} /* end if */
HDsrandom(random_seed);
/* ALWAYS emit the random seed for possible debugging */
- HDfprintf(stderr, "Using generator random seed (used in sparse test only): %u\n", random_seed);
+ fprintf(stderr, "Using generator random seed (used in sparse test only): %u\n", random_seed);
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Generating skeleton file: %s\n", FILENAME);
+ fprintf(stderr, "Generating skeleton file: %s\n", FILENAME);
/* Generate file skeleton */
if (gen_skeleton(FILENAME, verbose, swmr_write, comp_level, index_type, random_seed) < 0) {
- HDfprintf(stderr, "Error generating skeleton file!\n");
+ fprintf(stderr, "Error generating skeleton file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_reader.c b/test/swmr_reader.c
index 47a1288..c293b49 100644
--- a/test/swmr_reader.c
+++ b/test/swmr_reader.c
@@ -105,7 +105,7 @@ check_dataset(hid_t fid, hbool_t verbose, FILE *verbose_file, const char *sym_na
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Symbol = '%s', # of records = %lld\n", sym_name, (long long)snpoints);
+ fprintf(verbose_file, "Symbol = '%s', # of records = %lld\n", sym_name, (long long)snpoints);
/* Check if there are records for symbol */
if (snpoints > 0) {
@@ -126,12 +126,12 @@ check_dataset(hid_t fid, hbool_t verbose, FILE *verbose_file, const char *sym_na
HDgettimeofday(&tv, NULL);
if (verbose) {
- HDfprintf(verbose_file, "*** ERROR ***\n");
- HDfprintf(verbose_file, "Incorrect record value!\n");
- HDfprintf(verbose_file,
- "Time = %llu.%llu, Symbol = '%s', # of records = %lld, record->rec_id = %llu\n",
- (unsigned long long)tv.tv_sec, (unsigned long long)tv.tv_usec, sym_name,
- (long long)snpoints, (unsigned long long)record->rec_id);
+ fprintf(verbose_file, "*** ERROR ***\n");
+ fprintf(verbose_file, "Incorrect record value!\n");
+ fprintf(verbose_file,
+ "Time = %llu.%llu, Symbol = '%s', # of records = %lld, record->rec_id = %llu\n",
+ (unsigned long long)tv.tv_sec, (unsigned long long)tv.tv_usec, sym_name,
+ (long long)snpoints, (unsigned long long)record->rec_id);
} /* end if */
return -1;
} /* end if */
@@ -214,7 +214,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Choosing datasets\n");
+ fprintf(verbose_file, "Choosing datasets\n");
/* Allocate space for 'common' datasets, if any */
if (ncommon > 0) {
@@ -233,7 +233,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Common symbol #%u = '%s'\n", v, symbol_info[0][offset].name);
+ fprintf(verbose_file, "Common symbol #%u = '%s'\n", v, symbol_info[0][offset].name);
} /* end for */
} /* end if */
@@ -254,7 +254,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Random symbol #%u = '%s'\n", v, sym->name);
+ fprintf(verbose_file, "Random symbol #%u = '%s'\n", v, sym->name);
} /* end for */
} /* end if */
@@ -264,7 +264,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Reading records\n");
+ fprintf(verbose_file, "Reading records\n");
/* Get the starting time */
start_time = HDtime(NULL);
@@ -288,7 +288,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Opening file: %s\n", filename);
+ fprintf(verbose_file, "Opening file: %s\n", filename);
/* Open the file */
if ((fid = H5Fopen(filename, H5F_ACC_RDONLY | H5F_ACC_SWMR_READ, fapl)) < 0)
@@ -298,7 +298,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
if (ncommon > 0) {
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Checking common symbols\n");
+ fprintf(verbose_file, "Checking common symbols\n");
/* Iterate over common datasets */
for (v = 0; v < ncommon; v++) {
@@ -313,7 +313,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
if (nrandom > 0) {
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Checking random symbols\n");
+ fprintf(verbose_file, "Checking random symbols\n");
/* Iterate over random datasets */
for (v = 0; v < nrandom; v++) {
@@ -326,7 +326,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Closing file\n");
+ fprintf(verbose_file, "Closing file\n");
/* Close the file */
if (H5Fclose(fid) < 0)
@@ -349,7 +349,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Closing datasets\n");
+ fprintf(verbose_file, "Closing datasets\n");
/* Close 'random' datasets, if any */
if (nrandom > 0) {
@@ -369,19 +369,19 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_reader [-q] [-s <# of seconds to sleep between polling>]\n");
- HDprintf(" [-h <# of common symbols to poll>] [-l <# of random symbols to poll>]\n");
- HDprintf(" [-r <random seed>] <# of seconds to test>\n");
- HDprintf("\n");
- HDprintf("<# of seconds to test> must be specified.\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given), 1 second between polling ('-s 1'),\n");
- HDprintf("5 common symbols to poll ('-h 5'), 10 random symbols to poll ('-l 10'),\n");
- HDprintf("and will generate a random seed (no -r given).\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_reader [-q] [-s <# of seconds to sleep between polling>]\n");
+ printf(" [-h <# of common symbols to poll>] [-l <# of random symbols to poll>]\n");
+ printf(" [-r <random seed>] <# of seconds to test>\n");
+ printf("\n");
+ printf("<# of seconds to test> must be specified.\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given), 1 second between polling ('-s 1'),\n");
+ printf("5 common symbols to poll ('-h 5'), 10 random symbols to poll ('-l 10'),\n");
+ printf("and will generate a random seed (no -r given).\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
}
@@ -483,30 +483,30 @@ main(int argc, char *argv[])
HDsnprintf(verbose_name, sizeof(verbose_name), "swmr_reader.out.%u", random_seed);
if (NULL == (verbose_file = HDfopen(verbose_name, "w"))) {
- HDfprintf(stderr, "Can't open verbose output file!\n");
+ fprintf(stderr, "Can't open verbose output file!\n");
HDexit(EXIT_FAILURE);
}
} /* end if */
/* Emit informational message */
if (verbose) {
- HDfprintf(verbose_file, "Parameters:\n");
- HDfprintf(verbose_file, "\t# of seconds between polling = %d\n", poll_time);
- HDfprintf(verbose_file, "\t# of common symbols to poll = %d\n", ncommon);
- HDfprintf(verbose_file, "\t# of random symbols to poll = %d\n", nrandom);
- HDfprintf(verbose_file, "\t# of seconds to test = %ld\n", nseconds);
+ fprintf(verbose_file, "Parameters:\n");
+ fprintf(verbose_file, "\t# of seconds between polling = %d\n", poll_time);
+ fprintf(verbose_file, "\t# of common symbols to poll = %d\n", ncommon);
+ fprintf(verbose_file, "\t# of random symbols to poll = %d\n", nrandom);
+ fprintf(verbose_file, "\t# of seconds to test = %ld\n", nseconds);
} /* end if */
/* ALWAYS emit the random seed for possible debugging */
- HDfprintf(stdout, "Using reader random seed: %u\n", random_seed);
+ fprintf(stdout, "Using reader random seed: %u\n", random_seed);
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Generating symbol names\n");
+ fprintf(verbose_file, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0) {
- HDfprintf(stderr, "Error generating symbol names!\n");
+ fprintf(stderr, "Error generating symbol names!\n");
HDexit(EXIT_FAILURE);
} /* end if */
@@ -517,27 +517,27 @@ main(int argc, char *argv[])
/* Reading records from datasets */
if (read_records(FILENAME, verbose, verbose_file, random_seed, (unsigned long)nseconds,
(unsigned)poll_time, (unsigned)ncommon, (unsigned)nrandom) < 0) {
- HDfprintf(stderr, "Error reading records from datasets (random_seed = %u)!\n", random_seed);
+ fprintf(stderr, "Error reading records from datasets (random_seed = %u)!\n", random_seed);
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Releasing symbols\n");
+ fprintf(verbose_file, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Closing objects\n");
+ fprintf(verbose_file, "Closing objects\n");
/* Close objects created */
if (H5Tclose(symbol_tid) < 0) {
- HDfprintf(stderr, "Error closing symbol datatype!\n");
+ fprintf(stderr, "Error closing symbol datatype!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_remove_reader.c b/test/swmr_remove_reader.c
index eca81ad..cc525c8 100644
--- a/test/swmr_remove_reader.c
+++ b/test/swmr_remove_reader.c
@@ -102,7 +102,7 @@ check_dataset(hid_t fid, unsigned verbose, const char *sym_name, symbol_t *recor
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Symbol = '%s', # of records = %lld\n", sym_name, (long long)snpoints);
+ fprintf(stderr, "Symbol = '%s', # of records = %lld\n", sym_name, (long long)snpoints);
/* Check if there are records for symbol */
if (snpoints > 0) {
@@ -131,10 +131,10 @@ check_dataset(hid_t fid, unsigned verbose, const char *sym_name, symbol_t *recor
* chunk may be deleted before the object header has the updated
* dimensions */
if (record->rec_id != start[1] && record->rec_id != (uint64_t)0) {
- HDfprintf(stderr, "*** ERROR ***\n");
- HDfprintf(stderr, "Incorrect record value!\n");
- HDfprintf(stderr, "Symbol = '%s', # of records = %lld, record->rec_id = %llx\n", sym_name,
- (long long)snpoints, (unsigned long long)record->rec_id);
+ fprintf(stderr, "*** ERROR ***\n");
+ fprintf(stderr, "Incorrect record value!\n");
+ fprintf(stderr, "Symbol = '%s', # of records = %lld, record->rec_id = %llx\n", sym_name,
+ (long long)snpoints, (unsigned long long)record->rec_id);
return -1;
} /* end if */
} /* end if */
@@ -209,7 +209,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Choosing datasets\n");
+ fprintf(stderr, "Choosing datasets\n");
/* Allocate space for 'common' datasets, if any */
if (ncommon > 0) {
@@ -228,7 +228,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Common symbol #%u = '%s'\n", v, symbol_info[0][offset].name);
+ fprintf(stderr, "Common symbol #%u = '%s'\n", v, symbol_info[0][offset].name);
} /* end for */
} /* end if */
@@ -249,7 +249,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Random symbol #%u = '%s'\n", v, sym->name);
+ fprintf(stderr, "Random symbol #%u = '%s'\n", v, sym->name);
} /* end for */
} /* end if */
@@ -259,7 +259,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Reading records\n");
+ fprintf(stderr, "Reading records\n");
/* Get the starting time */
start_time = HDtime(NULL);
@@ -274,7 +274,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening file: %s\n", filename);
+ fprintf(stderr, "Opening file: %s\n", filename);
/* Open the file */
if ((fid = H5Fopen(filename, H5F_ACC_RDONLY | H5F_ACC_SWMR_READ, fapl)) < 0)
@@ -284,7 +284,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
if (ncommon > 0) {
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Checking common symbols\n");
+ fprintf(stderr, "Checking common symbols\n");
/* Iterate over common datasets */
for (v = 0; v < ncommon; v++) {
@@ -299,7 +299,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
if (nrandom > 0) {
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Checking random symbols\n");
+ fprintf(stderr, "Checking random symbols\n");
/* Iterate over random datasets */
for (v = 0; v < nrandom; v++) {
@@ -312,7 +312,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing file\n");
+ fprintf(stderr, "Closing file\n");
/* Close the file */
if (H5Fclose(fid) < 0)
@@ -335,7 +335,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing datasets\n");
+ fprintf(stderr, "Closing datasets\n");
/* Close 'random' datasets, if any */
if (nrandom > 0) {
@@ -355,17 +355,17 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, uns
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_remove_reader [-q] [-s <# of seconds to sleep between\n");
- HDprintf(" polling>] [-h <# of common symbols to poll>] [-l <# of random symbols\n");
- HDprintf(" to poll>] [-r <random seed>] <# of seconds to test>\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given), 1 second between polling ('-s 1'),\n");
- HDprintf("5 common symbols to poll ('-h 5'), 10 random symbols to poll ('-l 10'),\n");
- HDprintf("and will generate a random seed (no -r given).\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_remove_reader [-q] [-s <# of seconds to sleep between\n");
+ printf(" polling>] [-h <# of common symbols to poll>] [-l <# of random symbols\n");
+ printf(" to poll>] [-r <random seed>] <# of seconds to test>\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given), 1 second between polling ('-s 1'),\n");
+ printf("5 common symbols to poll ('-h 5'), 10 random symbols to poll ('-l 10'),\n");
+ printf("and will generate a random seed (no -r given).\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
}
@@ -453,11 +453,11 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose) {
- HDfprintf(stderr, "Parameters:\n");
- HDfprintf(stderr, "\t# of seconds between polling = %d\n", poll_time);
- HDfprintf(stderr, "\t# of common symbols to poll = %d\n", ncommon);
- HDfprintf(stderr, "\t# of random symbols to poll = %d\n", nrandom);
- HDfprintf(stderr, "\t# of seconds to test = %ld\n", nseconds);
+ fprintf(stderr, "Parameters:\n");
+ fprintf(stderr, "\t# of seconds between polling = %d\n", poll_time);
+ fprintf(stderr, "\t# of common symbols to poll = %d\n", ncommon);
+ fprintf(stderr, "\t# of random symbols to poll = %d\n", nrandom);
+ fprintf(stderr, "\t# of seconds to test = %ld\n", nseconds);
} /* end if */
/* Set the random seed */
@@ -468,15 +468,15 @@ main(int argc, char *argv[])
} /* end if */
HDsrandom(random_seed);
/* ALWAYS emit the random seed for possible debugging */
- HDfprintf(stderr, "Using reader random seed: %u\n", random_seed);
+ fprintf(stderr, "Using reader random seed: %u\n", random_seed);
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Generating symbol names\n");
+ fprintf(stderr, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0) {
- HDfprintf(stderr, "Error generating symbol names!\n");
+ fprintf(stderr, "Error generating symbol names!\n");
HDexit(EXIT_FAILURE);
} /* end if */
@@ -487,27 +487,27 @@ main(int argc, char *argv[])
/* Reading records from datasets */
if (read_records(FILENAME, verbose, (unsigned long)nseconds, (unsigned)poll_time, (unsigned)ncommon,
(unsigned)nrandom) < 0) {
- HDfprintf(stderr, "Error reading records from datasets!\n");
+ fprintf(stderr, "Error reading records from datasets!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Releasing symbols\n");
+ fprintf(stderr, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing objects\n");
+ fprintf(stderr, "Closing objects\n");
/* Close objects created */
if (H5Tclose(symbol_tid) < 0) {
- HDfprintf(stderr, "Error closing symbol datatype!\n");
+ fprintf(stderr, "Error closing symbol datatype!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_remove_writer.c b/test/swmr_remove_writer.c
index d383e54..3e989f8 100644
--- a/test/swmr_remove_writer.c
+++ b/test/swmr_remove_writer.c
@@ -97,7 +97,7 @@ open_skeleton(const char *filename, unsigned verbose, unsigned old)
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening datasets\n");
+ fprintf(stderr, "Opening datasets\n");
/* Open the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -186,7 +186,7 @@ remove_records(hid_t fid, unsigned verbose, unsigned long nshrinks, unsigned lon
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing datasets\n");
+ fprintf(stderr, "Closing datasets\n");
/* Close the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -200,18 +200,18 @@ remove_records(hid_t fid, unsigned verbose, unsigned long nshrinks, unsigned lon
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_remove_writer [-q] [-o] [-f <# of shrinks between flushing\n");
- HDprintf(" file contents>] [-r <random seed>] <# of shrinks>\n");
- HDprintf("\n");
- HDprintf("<# of shrinks between flushing file contents> should be 0 (for no\n");
- HDprintf("flushing) or between 1 and (<# of shrinks> - 1)\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given), latest format when opening file (no '-o' given),\n");
- HDprintf("flushing every 1000 shrinks ('-f 1000'), and will generate a random seed (no -r given).\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_remove_writer [-q] [-o] [-f <# of shrinks between flushing\n");
+ printf(" file contents>] [-r <random seed>] <# of shrinks>\n");
+ printf("\n");
+ printf("<# of shrinks between flushing file contents> should be 0 (for no\n");
+ printf("flushing) or between 1 and (<# of shrinks> - 1)\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given), latest format when opening file (no '-o' given),\n");
+ printf("flushing every 1000 shrinks ('-f 1000'), and will generate a random seed (no -r given).\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
}
@@ -286,9 +286,9 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose) {
- HDfprintf(stderr, "Parameters:\n");
- HDfprintf(stderr, "\t# of shrinks between flushes = %ld\n", flush_count);
- HDfprintf(stderr, "\t# of shrinks = %ld\n", nshrinks);
+ fprintf(stderr, "Parameters:\n");
+ fprintf(stderr, "\t# of shrinks between flushes = %ld\n", flush_count);
+ fprintf(stderr, "\t# of shrinks = %ld\n", nshrinks);
} /* end if */
/* Set the random seed */
@@ -299,11 +299,11 @@ main(int argc, char *argv[])
} /* end if */
HDsrandom(random_seed);
/* ALWAYS emit the random seed for possible debugging */
- HDfprintf(stderr, "Using writer random seed: %u\n", random_seed);
+ fprintf(stderr, "Using writer random seed: %u\n", random_seed);
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Generating symbol names\n");
+ fprintf(stderr, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0)
@@ -311,11 +311,11 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening skeleton file: %s\n", FILENAME);
+ fprintf(stderr, "Opening skeleton file: %s\n", FILENAME);
/* Open file skeleton */
if ((fid = open_skeleton(FILENAME, verbose, old)) < 0) {
- HDfprintf(stderr, "Error opening skeleton file!\n");
+ fprintf(stderr, "Error opening skeleton file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
@@ -324,31 +324,31 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Removing records\n");
+ fprintf(stderr, "Removing records\n");
/* Remove records from datasets */
if (remove_records(fid, verbose, (unsigned long)nshrinks, (unsigned long)flush_count) < 0) {
- HDfprintf(stderr, "Error removing records from datasets!\n");
+ fprintf(stderr, "Error removing records from datasets!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Releasing symbols\n");
+ fprintf(stderr, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing objects\n");
+ fprintf(stderr, "Closing objects\n");
/* Close objects opened */
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Error closing file!\n");
+ fprintf(stderr, "Error closing file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_sparse_reader.c b/test/swmr_sparse_reader.c
index ff55a5b..b26ee4a 100644
--- a/test/swmr_sparse_reader.c
+++ b/test/swmr_sparse_reader.c
@@ -112,8 +112,8 @@ check_dataset(hid_t fid, unsigned verbose, const symbol_info_t *symbol, symbol_t
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Symbol = '%s', location = %" PRIuMAX ",%" PRIuMAX "\n", symbol->name,
- (uintmax_t)start[0], (uintmax_t)start[1]);
+ fprintf(stderr, "Symbol = '%s', location = %" PRIuMAX ",%" PRIuMAX "\n", symbol->name,
+ (uintmax_t)start[0], (uintmax_t)start[1]);
/* Read record from dataset */
record->rec_id = UINT64_MAX;
@@ -122,11 +122,10 @@ check_dataset(hid_t fid, unsigned verbose, const symbol_info_t *symbol, symbol_t
/* Verify record value */
if (record->rec_id != start[1]) {
- HDfprintf(stderr, "*** ERROR ***\n");
- HDfprintf(stderr, "Incorrect record value!\n");
- HDfprintf(stderr,
- "Symbol = '%s', location = %" PRIuMAX ",%" PRIuMAX ", record->rec_id = %" PRIu64 "\n",
- symbol->name, (uintmax_t)start[0], (uintmax_t)start[1], record->rec_id);
+ fprintf(stderr, "*** ERROR ***\n");
+ fprintf(stderr, "Incorrect record value!\n");
+ fprintf(stderr, "Symbol = '%s', location = %" PRIuMAX ",%" PRIuMAX ", record->rec_id = %" PRIu64 "\n",
+ symbol->name, (uintmax_t)start[0], (uintmax_t)start[1], record->rec_id);
return -1;
} /* end if */
@@ -193,7 +192,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening file: %s\n", filename);
+ fprintf(stderr, "Opening file: %s\n", filename);
/* Open the file */
if ((fid = H5Fopen(filename, H5F_ACC_RDONLY | H5F_ACC_SWMR_READ, fapl)) < 0)
@@ -218,7 +217,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Reading records\n");
+ fprintf(stderr, "Reading records\n");
/* Get the starting time */
start_time = HDtime(NULL);
@@ -259,7 +258,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Check for timeout */
if (HDtime(NULL) >= (time_t)(start_time + (time_t)TIMEOUT)) {
- HDfprintf(stderr, "Reader timed out\n");
+ fprintf(stderr, "Reader timed out\n");
return -1;
} /* end if */
@@ -268,7 +267,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Retrieve and print the collection of metadata read retries */
if (print_metadata_retries_info(fid) < 0)
- HDfprintf(stderr, "Warning: could not obtain metadata retries info\n");
+ fprintf(stderr, "Warning: could not obtain metadata retries info\n");
/* Reopen the file */
if (H5Fclose(fid) < 0)
@@ -280,7 +279,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Checking dataset %lu\n", u);
+ fprintf(stderr, "Checking dataset %lu\n", u);
/* Check dataset */
if (check_dataset(fid, verbose, symbol, &record, mem_sid) < 0)
@@ -292,11 +291,11 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
if (iter_to_reopen == 0) {
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Reopening file: %s\n", filename);
+ fprintf(stderr, "Reopening file: %s\n", filename);
/* Retrieve and print the collection of metadata read retries */
if (print_metadata_retries_info(fid) < 0)
- HDfprintf(stderr, "Warning: could not obtain metadata retries info\n");
+ fprintf(stderr, "Warning: could not obtain metadata retries info\n");
/* Reopen the file */
if (H5Fclose(fid) < 0)
@@ -309,7 +308,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
/* Retrieve and print the collection of metadata read retries */
if (print_metadata_retries_info(fid) < 0)
- HDfprintf(stderr, "Warning: could not obtain metadata retries info\n");
+ fprintf(stderr, "Warning: could not obtain metadata retries info\n");
/* Close file */
if (H5Fclose(fid) < 0)
@@ -325,18 +324,18 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, uns
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_sparse_reader [-q] [-s <# of seconds to wait for writer>]\n");
- HDprintf(" [-n <# of reads between reopens>] <# of records>\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given), 1 second wait ('-s 1') and 1 read\n");
- HDprintf("between reopens ('-r 1')\n");
- HDprintf("\n");
- HDprintf("Note that the # of records *must* be the same as that supplied to\n");
- HDprintf("swmr_sparse_writer\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_sparse_reader [-q] [-s <# of seconds to wait for writer>]\n");
+ printf(" [-n <# of reads between reopens>] <# of records>\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given), 1 second wait ('-s 1') and 1 read\n");
+ printf("between reopens ('-r 1')\n");
+ printf("\n");
+ printf("Note that the # of records *must* be the same as that supplied to\n");
+ printf("swmr_sparse_writer\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
} /* end usage() */
@@ -397,19 +396,19 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose) {
- HDfprintf(stderr, "Parameters:\n");
- HDfprintf(stderr, "\t# of seconds between polling = %d\n", poll_time);
- HDfprintf(stderr, "\t# of reads between reopens = %d\n", reopen_count);
- HDfprintf(stderr, "\t# of records to read = %ld\n", nrecords);
+ fprintf(stderr, "Parameters:\n");
+ fprintf(stderr, "\t# of seconds between polling = %d\n", poll_time);
+ fprintf(stderr, "\t# of reads between reopens = %d\n", reopen_count);
+ fprintf(stderr, "\t# of records to read = %ld\n", nrecords);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Generating symbol names\n");
+ fprintf(stderr, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0) {
- HDfprintf(stderr, "Error generating symbol names!\n");
+ fprintf(stderr, "Error generating symbol names!\n");
HDexit(EXIT_FAILURE);
} /* end if */
@@ -420,27 +419,27 @@ main(int argc, char *argv[])
/* Reading records from datasets */
if (read_records(FILENAME, verbose, (unsigned long)nrecords, (unsigned)poll_time,
(unsigned)reopen_count) < 0) {
- HDfprintf(stderr, "Error reading records from datasets!\n");
+ fprintf(stderr, "Error reading records from datasets!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Releasing symbols\n");
+ fprintf(stderr, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing objects\n");
+ fprintf(stderr, "Closing objects\n");
/* Close objects created */
if (H5Tclose(symbol_tid) < 0) {
- HDfprintf(stderr, "Error closing symbol datatype!\n");
+ fprintf(stderr, "Error closing symbol datatype!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_sparse_writer.c b/test/swmr_sparse_writer.c
index e8937e0..b3c471d 100644
--- a/test/swmr_sparse_writer.c
+++ b/test/swmr_sparse_writer.c
@@ -93,7 +93,7 @@ open_skeleton(const char *filename, unsigned verbose)
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening datasets\n");
+ fprintf(stderr, "Opening datasets\n");
/* Seed the random number generator with the attribute in the file */
if ((aid = H5Aopen(fid, "seed", H5P_DEFAULT)) < 0)
@@ -287,7 +287,7 @@ add_records(hid_t fid, unsigned verbose, unsigned long nrecords, unsigned long f
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing datasets\n");
+ fprintf(stderr, "Closing datasets\n");
/* Close the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -301,18 +301,18 @@ add_records(hid_t fid, unsigned verbose, unsigned long nrecords, unsigned long f
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_sparse_writer [-q] [-f <# of records to write between\n");
- HDprintf(" flushing file contents>] <# of records>\n");
- HDprintf("\n");
- HDprintf("<# of records to write between flushing file contents> should be 0\n");
- HDprintf("(for no flushing) or between 1 and (<# of records> - 1)\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given) and flushing every 1000 records\n");
- HDprintf("('-f 1000')\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_sparse_writer [-q] [-f <# of records to write between\n");
+ printf(" flushing file contents>] <# of records>\n");
+ printf("\n");
+ printf("<# of records to write between flushing file contents> should be 0\n");
+ printf("(for no flushing) or between 1 and (<# of records> - 1)\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given) and flushing every 1000 records\n");
+ printf("('-f 1000')\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
}
@@ -369,14 +369,14 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose) {
- HDfprintf(stderr, "Parameters:\n");
- HDfprintf(stderr, "\t# of records between flushes = %ld\n", flush_count);
- HDfprintf(stderr, "\t# of records to write = %ld\n", nrecords);
+ fprintf(stderr, "Parameters:\n");
+ fprintf(stderr, "\t# of records between flushes = %ld\n", flush_count);
+ fprintf(stderr, "\t# of records to write = %ld\n", nrecords);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Generating symbol names\n");
+ fprintf(stderr, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0)
@@ -384,11 +384,11 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Opening skeleton file: %s\n", FILENAME);
+ fprintf(stderr, "Opening skeleton file: %s\n", FILENAME);
/* Open file skeleton */
if ((fid = open_skeleton(FILENAME, verbose)) < 0) {
- HDfprintf(stderr, "Error opening skeleton file!\n");
+ fprintf(stderr, "Error opening skeleton file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
@@ -397,31 +397,31 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Adding records\n");
+ fprintf(stderr, "Adding records\n");
/* Append records to datasets */
if (add_records(fid, verbose, (unsigned long)nrecords, (unsigned long)flush_count) < 0) {
- HDfprintf(stderr, "Error appending records to datasets!\n");
+ fprintf(stderr, "Error appending records to datasets!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Releasing symbols\n");
+ fprintf(stderr, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(stderr, "Closing objects\n");
+ fprintf(stderr, "Closing objects\n");
/* Close objects opened */
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Error closing file!\n");
+ fprintf(stderr, "Error closing file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_start_write.c b/test/swmr_start_write.c
index 40014fb..1568214 100644
--- a/test/swmr_start_write.c
+++ b/test/swmr_start_write.c
@@ -87,7 +87,7 @@ create_file(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Creating file without SWMR access\n");
+ fprintf(verbose_file, "Creating file without SWMR access\n");
/* Create the file */
if ((fid = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl)) < 0)
@@ -174,7 +174,7 @@ create_datasets(hid_t fid, int comp_level, hbool_t verbose, FILE *verbose_file,
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Creating datasets\n");
+ fprintf(verbose_file, "Creating datasets\n");
/* Create the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -306,7 +306,7 @@ add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecor
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Closing datasets\n");
+ fprintf(verbose_file, "Closing datasets\n");
/* Close the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -320,26 +320,26 @@ add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecor
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_start_write [-f <# of records to write between flushing file contents>]\n");
- HDprintf(" [-i <index type>] [-c <deflate compression level>]\n");
- HDprintf(" [-r <random seed>] [-q] <# of records>\n");
- HDprintf("\n");
- HDprintf("<# of records to write between flushing file contents> should be 0\n");
- HDprintf("(for no flushing) or between 1 and (<# of records> - 1).\n");
- HDprintf("\n");
- HDprintf("<index type> should be b2 or ea\n");
- HDprintf("\n");
- HDprintf("<deflate compression level> should be -1 (for no compression) or 0-9\n");
- HDprintf("\n");
- HDprintf("<# of records> must be specified.\n");
- HDprintf("\n");
- HDprintf("Defaults to flushing every 10000 records ('-f 10000'),\n");
- HDprintf("v1 b-tree indexing (-i b1), compression ('-c -1'),\n");
- HDprintf("will generate a random seed (no -r given), and verbose (no '-q' given)\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_start_write [-f <# of records to write between flushing file contents>]\n");
+ printf(" [-i <index type>] [-c <deflate compression level>]\n");
+ printf(" [-r <random seed>] [-q] <# of records>\n");
+ printf("\n");
+ printf("<# of records to write between flushing file contents> should be 0\n");
+ printf("(for no flushing) or between 1 and (<# of records> - 1).\n");
+ printf("\n");
+ printf("<index type> should be b2 or ea\n");
+ printf("\n");
+ printf("<deflate compression level> should be -1 (for no compression) or 0-9\n");
+ printf("\n");
+ printf("<# of records> must be specified.\n");
+ printf("\n");
+ printf("Defaults to flushing every 10000 records ('-f 10000'),\n");
+ printf("v1 b-tree indexing (-i b1), compression ('-c -1'),\n");
+ printf("will generate a random seed (no -r given), and verbose (no '-q' given)\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
} /* usage() */
@@ -450,32 +450,32 @@ main(int argc, char *argv[])
HDsnprintf(verbose_name, sizeof(verbose_name), "swmr_writer.out.%u", random_seed);
if (NULL == (verbose_file = HDfopen(verbose_name, "w"))) {
- HDfprintf(stderr, "Can't open verbose output file!\n");
+ fprintf(stderr, "Can't open verbose output file!\n");
HDexit(EXIT_FAILURE);
}
} /* end if */
/* Emit informational message */
if (verbose) {
- HDfprintf(verbose_file, "Parameters:\n");
- HDfprintf(verbose_file, "\tindex type = %s\n", index_type);
- HDfprintf(verbose_file, "\tcompression level = %d\n", comp_level);
- HDfprintf(verbose_file, "\t# of records between flushes = %ld\n", flush_count);
- HDfprintf(verbose_file, "\t# of records to write = %ld\n", nrecords);
+ fprintf(verbose_file, "Parameters:\n");
+ fprintf(verbose_file, "\tindex type = %s\n", index_type);
+ fprintf(verbose_file, "\tcompression level = %d\n", comp_level);
+ fprintf(verbose_file, "\t# of records between flushes = %ld\n", flush_count);
+ fprintf(verbose_file, "\t# of records to write = %ld\n", nrecords);
} /* end if */
/* ALWAYS emit the random seed for possible debugging */
- HDfprintf(stdout, "Using writer random seed: %u\n", random_seed);
+ fprintf(stdout, "Using writer random seed: %u\n", random_seed);
/* Create the test file */
if ((fid = create_file(FILENAME, verbose, verbose_file, random_seed)) < 0) {
- HDfprintf(stderr, "Error creating the file...\n");
+ fprintf(stderr, "Error creating the file...\n");
HDexit(EXIT_FAILURE);
}
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Generating symbol names\n");
+ fprintf(verbose_file, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0)
@@ -483,13 +483,13 @@ main(int argc, char *argv[])
/* Create the datasets in the file */
if (create_datasets(fid, comp_level, verbose, verbose_file, index_type) < 0) {
- HDfprintf(stderr, "Error creating datasets...\n");
+ fprintf(stderr, "Error creating datasets...\n");
HDexit(EXIT_FAILURE);
}
/* Enable SWMR writing mode */
if (H5Fstart_swmr_write(fid) < 0) {
- HDfprintf(stderr, "Error starting SWMR writing mode...\n");
+ fprintf(stderr, "Error starting SWMR writing mode...\n");
HDexit(EXIT_FAILURE);
}
@@ -498,31 +498,31 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Adding records\n");
+ fprintf(verbose_file, "Adding records\n");
/* Append records to datasets */
if (add_records(fid, verbose, verbose_file, (unsigned long)nrecords, (unsigned long)flush_count) < 0) {
- HDfprintf(stderr, "Error appending records to datasets!\n");
+ fprintf(stderr, "Error appending records to datasets!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Releasing symbols\n");
+ fprintf(verbose_file, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Closing the file\n");
+ fprintf(verbose_file, "Closing the file\n");
/* Close objects opened */
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Error closing file!\n");
+ fprintf(stderr, "Error closing file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/swmr_writer.c b/test/swmr_writer.c
index 3b86dea..fa24880 100644
--- a/test/swmr_writer.c
+++ b/test/swmr_writer.c
@@ -105,7 +105,7 @@ open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file, unsigne
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Opening datasets\n");
+ fprintf(verbose_file, "Opening datasets\n");
/* Open the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -242,7 +242,7 @@ add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecor
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Closing datasets\n");
+ fprintf(verbose_file, "Closing datasets\n");
/* Close the datasets */
for (u = 0; u < NLEVELS; u++)
@@ -256,20 +256,20 @@ add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecor
static void
usage(void)
{
- HDprintf("\n");
- HDprintf("Usage error!\n");
- HDprintf("\n");
- HDprintf("Usage: swmr_writer [-q] [-o] [-f <# of records to write between flushing\n");
- HDprintf(" file contents>] [-r <random seed>] <# of records>\n");
- HDprintf("\n");
- HDprintf("<# of records to write between flushing file contents> should be 0\n");
- HDprintf("(for no flushing) or between 1 and (<# of records> - 1).\n");
- HDprintf("\n");
- HDprintf("<# of records> must be specified.\n");
- HDprintf("\n");
- HDprintf("Defaults to verbose (no '-q' given), latest format when opening file (no '-o' given),\n");
- HDprintf("flushing every 10000 records ('-f 10000'), and will generate a random seed (no -r given).\n");
- HDprintf("\n");
+ printf("\n");
+ printf("Usage error!\n");
+ printf("\n");
+ printf("Usage: swmr_writer [-q] [-o] [-f <# of records to write between flushing\n");
+ printf(" file contents>] [-r <random seed>] <# of records>\n");
+ printf("\n");
+ printf("<# of records to write between flushing file contents> should be 0\n");
+ printf("(for no flushing) or between 1 and (<# of records> - 1).\n");
+ printf("\n");
+ printf("<# of records> must be specified.\n");
+ printf("\n");
+ printf("Defaults to verbose (no '-q' given), latest format when opening file (no '-o' given),\n");
+ printf("flushing every 10000 records ('-f 10000'), and will generate a random seed (no -r given).\n");
+ printf("\n");
HDexit(EXIT_FAILURE);
}
@@ -358,24 +358,24 @@ main(int argc, char *argv[])
HDsnprintf(verbose_name, sizeof(verbose_name), "swmr_writer.out.%u", random_seed);
if (NULL == (verbose_file = HDfopen(verbose_name, "w"))) {
- HDfprintf(stderr, "Can't open verbose output file!\n");
+ fprintf(stderr, "Can't open verbose output file!\n");
HDexit(EXIT_FAILURE);
}
} /* end if */
/* Emit informational message */
if (verbose) {
- HDfprintf(verbose_file, "Parameters:\n");
- HDfprintf(verbose_file, "\t# of records between flushes = %ld\n", flush_count);
- HDfprintf(verbose_file, "\t# of records to write = %ld\n", nrecords);
+ fprintf(verbose_file, "Parameters:\n");
+ fprintf(verbose_file, "\t# of records between flushes = %ld\n", flush_count);
+ fprintf(verbose_file, "\t# of records to write = %ld\n", nrecords);
} /* end if */
/* ALWAYS emit the random seed for possible debugging */
- HDfprintf(stdout, "Using writer random seed: %u\n", random_seed);
+ fprintf(stdout, "Using writer random seed: %u\n", random_seed);
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Generating symbol names\n");
+ fprintf(verbose_file, "Generating symbol names\n");
/* Generate dataset names */
if (generate_symbols() < 0)
@@ -383,11 +383,11 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Opening skeleton file: %s\n", FILENAME);
+ fprintf(verbose_file, "Opening skeleton file: %s\n", FILENAME);
/* Open file skeleton */
if ((fid = open_skeleton(FILENAME, verbose, verbose_file, random_seed, old)) < 0) {
- HDfprintf(stderr, "Error opening skeleton file!\n");
+ fprintf(stderr, "Error opening skeleton file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
@@ -396,31 +396,31 @@ main(int argc, char *argv[])
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Adding records\n");
+ fprintf(verbose_file, "Adding records\n");
/* Append records to datasets */
if (add_records(fid, verbose, verbose_file, (unsigned long)nrecords, (unsigned long)flush_count) < 0) {
- HDfprintf(stderr, "Error appending records to datasets!\n");
+ fprintf(stderr, "Error appending records to datasets!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Releasing symbols\n");
+ fprintf(verbose_file, "Releasing symbols\n");
/* Clean up the symbols */
if (shutdown_symbols() < 0) {
- HDfprintf(stderr, "Error releasing symbols!\n");
+ fprintf(stderr, "Error releasing symbols!\n");
HDexit(EXIT_FAILURE);
} /* end if */
/* Emit informational message */
if (verbose)
- HDfprintf(verbose_file, "Closing objects\n");
+ fprintf(verbose_file, "Closing objects\n");
/* Close objects opened */
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Error closing file!\n");
+ fprintf(stderr, "Error closing file!\n");
HDexit(EXIT_FAILURE);
} /* end if */
diff --git a/test/tarray.c b/test/tarray.c
index 7f4cec4..9602b41 100644
--- a/test/tarray.c
+++ b/test/tarray.c
@@ -1937,7 +1937,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;
}
@@ -2193,7 +2193,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() */
diff --git a/test/tattr.c b/test/tattr.c
index d38aaa7..b0442f6 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -919,10 +919,10 @@ test_attr_compound_read(hid_t fapl)
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);
+ 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);
@@ -1063,8 +1063,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);
diff --git a/test/tcheck_version.c b/test/tcheck_version.c
index f14c61c..8bcebab 100644
--- a/test/tcheck_version.c
+++ b/test/tcheck_version.c
@@ -45,13 +45,13 @@ static unsigned release = H5_VERS_RELEASE;
void
showhelp(void)
{
- HDprintf("Usage: " progname " [-h] [-t<vers>]\n");
- HDprintf("\t-h\tShow this page and version information\n");
- HDprintf("\t-t<vers>: Test by changing (adding 1 to) the <vers> to trigger\n");
- HDprintf("\t\t the warning. <vers> can be:\n");
- HDprintf("\t\t\tM for Major version number (%d)\n", H5_VERS_MAJOR);
- HDprintf("\t\t\tm for Minor version number (%d)\n", H5_VERS_MINOR);
- HDprintf("\t\t\tr for Release number (%d)\n", H5_VERS_RELEASE);
+ printf("Usage: " progname " [-h] [-t<vers>]\n");
+ printf("\t-h\tShow this page and version information\n");
+ printf("\t-t<vers>: Test by changing (adding 1 to) the <vers> to trigger\n");
+ printf("\t\t the warning. <vers> can be:\n");
+ printf("\t\t\tM for Major version number (%d)\n", H5_VERS_MAJOR);
+ printf("\t\t\tm for Minor version number (%d)\n", H5_VERS_MINOR);
+ printf("\t\t\tr for Release number (%d)\n", H5_VERS_RELEASE);
}
void
@@ -62,7 +62,7 @@ parse(int ac, char **av)
while (--ac > 0) {
pt = *(++av);
if (*pt != '-') {
- HDfprintf(stderr, "Unknown option(%s). Aborted.\n", *av);
+ fprintf(stderr, "Unknown option(%s). Aborted.\n", *av);
HDexit(EXIT_FAILURE);
}
else {
@@ -79,7 +79,7 @@ parse(int ac, char **av)
release++;
break;
default:
- HDfprintf(stderr, "Unknown -v parameter (%s). Aborted.\n", *av);
+ fprintf(stderr, "Unknown -v parameter (%s). Aborted.\n", *av);
HDexit(EXIT_FAILURE);
}
break;
@@ -87,7 +87,7 @@ parse(int ac, char **av)
showhelp();
HDexit(EXIT_SUCCESS);
default:
- HDfprintf(stderr, "Unknown option(%s). Aborted.\n", *av);
+ fprintf(stderr, "Unknown option(%s). Aborted.\n", *av);
HDexit(EXIT_FAILURE);
}
}
diff --git a/test/testframe.c b/test/testframe.c
index b0fb7d8..ea5cc18 100644
--- a/test/testframe.c
+++ b/test/testframe.c
@@ -72,11 +72,11 @@ AddTest(const char *TheName, void (*TheCall)(void), void (*Cleanup)(void), const
{
/* Sanity checking */
if (HDstrlen(TheDescr) >= MAXTESTDESC) {
- HDprintf("Test description ('%s') too long, increase MAXTESTDESC(%d).\n", TheDescr, MAXTESTDESC);
+ printf("Test description ('%s') too long, increase MAXTESTDESC(%d).\n", TheDescr, MAXTESTDESC);
HDexit(EXIT_FAILURE);
} /* end if */
if (HDstrlen(TheName) >= MAXTESTNAME) {
- HDprintf("Test name too long, increase MAXTESTNAME(%d).\n", MAXTESTNAME);
+ printf("Test name too long, increase MAXTESTNAME(%d).\n", MAXTESTNAME);
HDexit(EXIT_FAILURE);
} /* end if */
@@ -87,8 +87,8 @@ AddTest(const char *TheName, void (*TheCall)(void), void (*Cleanup)(void), const
/* Reallocate array */
if (NULL == (newTest = (TestStruct *)HDrealloc(Test, newAlloc * sizeof(TestStruct)))) {
- HDprintf("Out of memory for tests, Index = %u, TestAlloc = %u, newAlloc = %u\n", Index, TestAlloc,
- newAlloc);
+ printf("Out of memory for tests, Index = %u, TestAlloc = %u, newAlloc = %u\n", Index, TestAlloc,
+ newAlloc);
HDexit(EXIT_FAILURE);
} /* end if */
@@ -624,7 +624,7 @@ SetTest(const char *testname, int action)
break;
default:
/* error */
- HDprintf("*** ERROR: Unknown action (%d) for SetTest\n", action);
+ printf("*** ERROR: Unknown action (%d) for SetTest\n", action);
break;
}
}
diff --git a/test/testmeta.c b/test/testmeta.c
index d844c2e..1d843a4 100644
--- a/test/testmeta.c
+++ b/test/testmeta.c
@@ -101,7 +101,7 @@ main(void)
for (j = 0; j < NDATAOBJECTS; j++) {
/* Removed print statement as it would lock system resources on Windows */
/*
- * HDprintf("\rWriting Object #%d of %d", j+1, NDATAOBJECTS);
+ * printf("\rWriting Object #%d of %d", j+1, NDATAOBJECTS);
* HDfflush(stdout);
*/
floatval = (float)j;
@@ -110,7 +110,7 @@ main(void)
HDsnprintf(name, sizeof(name), "/DataArray/%06d", j);
group_id = H5Gcreate2(file_id, name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
if (group_id < 0) {
- HDfprintf(stderr, "Failed to create DataArray group.\n");
+ fprintf(stderr, "Failed to create DataArray group.\n");
status = H5Fclose(file_id);
return -1;
}
@@ -127,7 +127,7 @@ main(void)
dataset_id = H5Dcreate2(group_id, name, H5T_NATIVE_FLOAT, dataspace_id, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT);
if (dataset_id < 0) {
- HDfprintf(stderr, "Failed to create DataArray dataset.\n");
+ fprintf(stderr, "Failed to create DataArray dataset.\n");
status = H5Fclose(file_id);
return -1;
}
@@ -135,7 +135,7 @@ main(void)
/* Write the data array data */
status = H5Dwrite(dataset_id, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, H5P_DEFAULT, data);
if (status < 0) {
- HDfprintf(stderr, "Failed to write DataArray dataset.\n");
+ fprintf(stderr, "Failed to write DataArray dataset.\n");
status = H5Fclose(file_id);
return -1;
}
@@ -148,7 +148,7 @@ main(void)
/* Open NumDataObj dataset */
dataset_id = H5Dopen2(file_id, "/NumDataObj", H5P_DEFAULT);
if (dataset_id < 0) {
- HDfprintf(stderr, "Failed to open NumDataObj dataset.\n");
+ fprintf(stderr, "Failed to open NumDataObj dataset.\n");
status = H5Fclose(file_id);
return -1;
}
@@ -157,7 +157,7 @@ main(void)
numdataobj = j + 1;
status = H5Dwrite(dataset_id, H5T_NATIVE_UINT, H5S_ALL, H5S_ALL, H5P_DEFAULT, &numdataobj);
if (status < 0) {
- HDfprintf(stderr, "Failed to write NumDataObj dataset.\n");
+ fprintf(stderr, "Failed to write NumDataObj dataset.\n");
status = H5Fclose(file_id);
return -1;
}
@@ -172,7 +172,7 @@ main(void)
HDsnprintf(name, sizeof(name), "/ExtArray%06d", i);
dataset_id = H5Dopen2(file_id, name, H5P_DEFAULT);
if (dataset_id < 0) {
- HDfprintf(stderr, "Failed to open ExtArray dataset.\n");
+ fprintf(stderr, "Failed to open ExtArray dataset.\n");
status = H5Fclose(file_id);
return -1;
} /* end if */
@@ -181,7 +181,7 @@ main(void)
dims[0] = (hsize_t)j + 1;
status = H5Dset_extent(dataset_id, dims);
if (status < 0) {
- HDfprintf(stderr, "Failed to extend DataArray dataset.\n");
+ fprintf(stderr, "Failed to extend DataArray dataset.\n");
status = H5Fclose(file_id);
return -1;
} /* end if */
@@ -198,7 +198,7 @@ main(void)
status = H5Sselect_hyperslab(dataspace_id, H5S_SELECT_SET, start, stride, count, NULL);
status = H5Dwrite(dataset_id, type_id, memspace_id, dataspace_id, H5P_DEFAULT, &floatval);
if (status < 0) {
- HDfprintf(stderr, "Failed to write DataArray dataset.\n");
+ fprintf(stderr, "Failed to write DataArray dataset.\n");
status = H5Fclose(file_id);
return -1;
}
@@ -214,7 +214,7 @@ main(void)
/* Close the file */
status = H5Fclose(file_id);
- HDprintf("\n");
+ printf("\n");
return 0;
}
diff --git a/test/tfile.c b/test/tfile.c
index fca33ab..9da1c9b 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -5631,7 +5631,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/tgenprop.c b/test/tgenprop.c
index 7bfd590..3955bb9 100644
--- a/test/tgenprop.c
+++ b/test/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,8 +796,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_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);
@@ -808,8 +808,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__);
/* 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);
@@ -1253,8 +1253,8 @@ 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);
@@ -1268,8 +1268,8 @@ 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");
diff --git a/test/th5s.c b/test/th5s.c
index 8717e85..5a43e60 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -209,7 +209,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);
}
/* Verify that incorrect dimensions don't work */
@@ -710,7 +710,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]);
}
}
}
@@ -731,7 +731,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]);
}
}
}
@@ -804,7 +804,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]);
}
}
@@ -829,8 +829,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]);
}
}
}
@@ -853,7 +853,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]);
}
}
@@ -901,7 +901,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]);
}
}
@@ -944,7 +944,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]);
}
}
}
@@ -975,7 +975,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]);
}
}
}
@@ -996,7 +996,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]);
}
}
}
@@ -1056,8 +1056,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]);
}
}
}
@@ -1143,7 +1143,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]);
}
}
}
@@ -1180,7 +1180,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]);
}
}
}
@@ -2461,10 +2461,10 @@ 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);
+ 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 */
diff --git a/test/thread_id.c b/test/thread_id.c
index c0614f4..ebe4a79 100644
--- a/test/thread_id.c
+++ b/test/thread_id.c
@@ -34,7 +34,7 @@ my_errx(int code, const char *fmt, ...)
{
va_list ap;
- (void)HDfprintf(stderr, "thread_id: ");
+ (void)fprintf(stderr, "thread_id: ");
va_start(ap, fmt);
(void)HDvfprintf(stderr, fmt, ap);
va_end(ap);
@@ -176,11 +176,11 @@ my_err(int code, const char *fmt, ...)
va_list ap;
int errno_copy = errno;
- (void)HDfprintf(stderr, "thread_id: ");
+ (void)fprintf(stderr, "thread_id: ");
va_start(ap, fmt);
(void)HDvfprintf(stderr, fmt, ap);
va_end(ap);
- (void)HDfprintf(stderr, ": %s\n", HDstrerror(errno_copy));
+ (void)fprintf(stderr, ": %s\n", HDstrerror(errno_copy));
HDexit(code);
}
@@ -318,7 +318,7 @@ main(void)
int
main(void)
{
- HDfprintf(stderr, "not implemented in this configuration.\n");
+ fprintf(stderr, "not implemented in this configuration.\n");
return EXIT_SUCCESS;
}
#endif /*H5_HAVE_THREADSAFE && !H5_HAVE_WIN_THREADS*/
diff --git a/test/timer.c b/test/timer.c
index 9254596..d271f41 100644
--- a/test/timer.c
+++ b/test/timer.c
@@ -143,7 +143,7 @@ test_timer_system_user(void)
*/
if (timer.initial.system < 0.0 || timer.initial.user < 0.0) {
SKIPPED();
- HDprintf("NOTE: No suitable way to get system/user times on this platform.\n");
+ printf("NOTE: No suitable way to get system/user times on this platform.\n");
return 0;
}
@@ -380,7 +380,7 @@ main(void)
h5_reset();
- HDprintf("Testing platform-independent timer functionality.\n");
+ printf("Testing platform-independent timer functionality.\n");
nerrors += test_time_formatting() < 0 ? 1 : 0;
nerrors += test_timer_system_user() < 0 ? 1 : 0;
@@ -388,12 +388,11 @@ main(void)
nerrors += test_timer_functionality() < 0 ? 1 : 0;
if (nerrors) {
- HDprintf("***** %d platform-independent timer TEST%s FAILED! *****\n", nerrors,
- nerrors > 1 ? "S" : "");
+ printf("***** %d platform-independent timer TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
return 1;
}
else {
- HDprintf("All platform-independent timer tests passed.\n");
+ printf("All platform-independent timer tests passed.\n");
return 0;
}
}
diff --git a/test/titerate.c b/test/titerate.c
index 458be8e..3b6ecc7 100644
--- a/test/titerate.c
+++ b/test/titerate.c
@@ -108,7 +108,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() */
@@ -397,7 +397,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() */
@@ -1024,7 +1024,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/tmisc.c b/test/tmisc.c
index 76aed7b..8d4e417 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -996,16 +996,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]
@@ -1810,7 +1810,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;
}
@@ -3713,7 +3713,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;
}
@@ -5009,7 +5009,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;
}
@@ -5270,7 +5270,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;
}
@@ -5494,7 +5494,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;
}
@@ -5785,7 +5785,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;
}
@@ -6084,7 +6084,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/trefer.c b/test/trefer.c
index e1cee21..b725b90 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -3259,7 +3259,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]);
@@ -3278,7 +3278,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);
@@ -3297,7 +3297,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);
@@ -3313,7 +3313,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);
@@ -3335,7 +3335,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]);
@@ -3351,7 +3351,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);
@@ -3371,7 +3371,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++) {
@@ -3383,7 +3383,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);
@@ -3417,7 +3417,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);
@@ -3463,7 +3463,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);
@@ -3485,7 +3485,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);
@@ -3509,7 +3509,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);
diff --git a/test/trefer_shutdown.c b/test/trefer_shutdown.c
index 50bdb26..118d660 100644
--- a/test/trefer_shutdown.c
+++ b/test/trefer_shutdown.c
@@ -10,39 +10,39 @@ main(int argc, char **argv)
int i;
if ((fid = H5Fcreate("HDFFV-10992.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
- HDfprintf(stderr, "H5Fcreate failed\n");
+ fprintf(stderr, "H5Fcreate failed\n");
return 1;
}
if ((sid = H5Screate(H5S_SCALAR)) < 0) {
- HDfprintf(stderr, "H5Screate failed\n");
+ fprintf(stderr, "H5Screate failed\n");
return 1;
}
/* Create a dataset of object references */
if ((did = H5Dcreate2(fid, "dset", H5T_STD_REF, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
- HDfprintf(stderr, "H5Dcreate failed\n");
+ fprintf(stderr, "H5Dcreate failed\n");
return 1;
}
for (i = 0; i < 100; i++) {
/* Create reference to the root group */
if (H5Rcreate_object(fid, "/dset", H5P_DEFAULT, &write_ref) < 0) {
- HDfprintf(stderr, "H5Rcreate_object failed\n");
+ fprintf(stderr, "H5Rcreate_object failed\n");
return 1;
}
}
/* Write reference to dataset */
if (H5Dwrite(did, H5T_STD_REF, H5S_ALL, H5S_ALL, H5P_DEFAULT, &write_ref) < 0) {
- HDfprintf(stderr, "H5Dwrite failed\n");
+ fprintf(stderr, "H5Dwrite failed\n");
return 1;
}
for (i = 0; i < 500; i++) {
/* Read reference back into different reference buffer */
if (H5Dread(did, H5T_STD_REF, H5S_ALL, H5S_ALL, H5P_DEFAULT, &read_ref) < 0) {
- HDfprintf(stderr, "H5Dread failed\n");
+ fprintf(stderr, "H5Dread failed\n");
return 1;
}
}
@@ -55,27 +55,27 @@ main(int argc, char **argv)
*/
#if 0
if (H5Rdestroy(&write_ref) < 0) {
- HDfprintf(stderr, "H5Rdestroy on reference write buffer failed\n");
+ fprintf(stderr, "H5Rdestroy on reference write buffer failed\n");
return 1;
}
if (H5Rdestroy(&read_ref) < 0) {
- HDfprintf(stderr, "H5Rdestroy on reference read buffer failed\n");
+ fprintf(stderr, "H5Rdestroy on reference read buffer failed\n");
return 1;
}
#endif
if (H5Sclose(sid) < 0) {
- HDfprintf(stderr, "H5Sclose failed\n");
+ fprintf(stderr, "H5Sclose failed\n");
return 1;
}
if (H5Dclose(did) < 0) {
- HDfprintf(stderr, "H5Dclose failed\n");
+ fprintf(stderr, "H5Dclose failed\n");
return 1;
}
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "H5Fclose failed\n");
+ fprintf(stderr, "H5Fclose failed\n");
return 1;
}
diff --git a/test/tselect.c b/test/tselect.c
index 8fc6c65..f55f5c3 100644
--- a/test/tselect.c
+++ b/test/tselect.c
@@ -1389,10 +1389,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 */
@@ -1834,14 +1834,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 */
@@ -5305,10 +5305,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 */
@@ -5784,14 +5784,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 */
@@ -5925,14 +5925,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 */
@@ -6064,14 +6064,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 */
@@ -6251,14 +6251,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 {
diff --git a/test/tsohm.c b/test/tsohm.c
index e8de093..27dafce 100644
--- a/test/tsohm.c
+++ b/test/tsohm.c
@@ -615,13 +615,13 @@ size1_helper(hid_t file, const char *filename, hid_t fapl_id, hbool_t test_file_
if (0 > H5Dread((dset_id), (dtype_id), H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata)) { \
H5_FAILED(); \
AT(); \
- HDprintf("Can't read data\n"); \
+ printf("Can't read data\n"); \
goto error; \
} \
if ((rdata.i1 != wdata.i1) || (rdata.i2 != wdata.i2) || HDstrcmp(rdata.str, wdata.str) != 0) { \
H5_FAILED(); \
AT(); \
- HDprintf("incorrect read data\n"); \
+ printf("incorrect read data\n"); \
goto error; \
} \
} /* TSOHM_S1H_VERIFY_DATA() definition */
@@ -1524,21 +1524,21 @@ static void
size2_dump_struct(const char *name, size2_helper_struct *sizes)
{
HDputs(name);
- HDprintf(" empty size: %llu\n", (unsigned long long)sizes->empty_size);
- HDprintf(" first dataset: %llu \tdelta: %llu\n", (unsigned long long)sizes->first_dset,
- (unsigned long long)(sizes->first_dset - sizes->empty_size));
- HDprintf("second dataset: %llu \tdelta: %llu\n", (unsigned long long)sizes->second_dset,
- (unsigned long long)(sizes->second_dset - sizes->first_dset));
- HDprintf(" dsets 1: %llu \tdelta: %llu\n", (unsigned long long)sizes->dsets1,
- (unsigned long long)(sizes->dsets1 - sizes->second_dset));
- HDprintf(" dsets 2: %llu \tdelta: %llu\n", (unsigned long long)sizes->dsets2,
- (unsigned long long)(sizes->dsets2 - sizes->dsets1));
- HDprintf(" interleaved: %llu \tdelta: %llu\n", (unsigned long long)sizes->interleaved,
- (unsigned long long)(sizes->interleaved - sizes->dsets2));
- HDprintf(" attributes: %llu \tdelta: %llu\n", (unsigned long long)sizes->attrs1,
- (unsigned long long)(sizes->attrs1 - sizes->interleaved));
- HDprintf(" attributes 2: %llu \tdelta: %llu\n", (unsigned long long)sizes->attrs2,
- (unsigned long long)(sizes->attrs2 - sizes->attrs1));
+ printf(" empty size: %llu\n", (unsigned long long)sizes->empty_size);
+ printf(" first dataset: %llu \tdelta: %llu\n", (unsigned long long)sizes->first_dset,
+ (unsigned long long)(sizes->first_dset - sizes->empty_size));
+ printf("second dataset: %llu \tdelta: %llu\n", (unsigned long long)sizes->second_dset,
+ (unsigned long long)(sizes->second_dset - sizes->first_dset));
+ printf(" dsets 1: %llu \tdelta: %llu\n", (unsigned long long)sizes->dsets1,
+ (unsigned long long)(sizes->dsets1 - sizes->second_dset));
+ printf(" dsets 2: %llu \tdelta: %llu\n", (unsigned long long)sizes->dsets2,
+ (unsigned long long)(sizes->dsets2 - sizes->dsets1));
+ printf(" interleaved: %llu \tdelta: %llu\n", (unsigned long long)sizes->interleaved,
+ (unsigned long long)(sizes->interleaved - sizes->dsets2));
+ printf(" attributes: %llu \tdelta: %llu\n", (unsigned long long)sizes->attrs1,
+ (unsigned long long)(sizes->attrs1 - sizes->interleaved));
+ printf(" attributes 2: %llu \tdelta: %llu\n", (unsigned long long)sizes->attrs2,
+ (unsigned long long)(sizes->attrs2 - sizes->attrs1));
} /* size2_dump_struct */
#endif /* NOT_NOW */
@@ -3279,7 +3279,7 @@ test_sohm_extlink(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/ttime.c b/test/ttime.c
index 81c5015..bd31873 100644
--- a/test/ttime.c
+++ b/test/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/ttsafe.c b/test/ttsafe.c
index 761a3b3..cea1e84 100644
--- a/test/ttsafe.c
+++ b/test/ttsafe.c
@@ -113,7 +113,7 @@ main(int argc, char *argv[])
#else /* H5_HAVE_THREADSAFE */
- HDprintf("Most thread-safety tests skipped because THREADSAFE not enabled\n");
+ printf("Most thread-safety tests skipped because THREADSAFE not enabled\n");
#endif /* H5_HAVE_THREADSAFE */
diff --git a/test/ttsafe_error.c b/test/ttsafe_error.c
index 8e01c66..5cc408b 100644
--- a/test/ttsafe_error.c
+++ b/test/ttsafe_error.c
@@ -136,7 +136,7 @@ tts_error(void)
if (error_flag_g) {
TestErrPrintf(
"At least one thread reported a value that was different from the expected value\n");
- HDprintf(
+ printf(
"(Update the expected_g[] array in tts_error for this test if the error stack changed!)\n");
}
@@ -158,7 +158,7 @@ tts_error(void)
CHECK(status, FAIL, "H5Fclose");
} /* end if */
else
- HDprintf("Non-native VOL connector used, skipping test\n");
+ printf("Non-native VOL connector used, skipping test\n");
status = H5Idec_ref(vol_id);
CHECK(status, FAIL, "H5Idec_ref");
@@ -245,15 +245,15 @@ walk_error_callback(unsigned n, const H5E_error2_t *err_desc, void H5_ATTR_UNUSE
}
/* Unexpected error stack entry, print some info and set flag */
- HDfprintf(stderr, "Unexpected error stack entry!\n");
- HDfprintf(stderr, "Stack entry: %d\n", n);
- HDfprintf(stderr,
- "Actual: maj_num = %" PRIxHID ", min_num = %" PRIxHID
- ", line = %u, func = '%s', file = '%s', desc = '%s'\n",
- err_desc->maj_num, err_desc->min_num, err_desc->line, err_desc->func_name, err_desc->file_name,
- err_desc->desc);
- HDfprintf(stderr, "Expected: maj_num = %" PRIxHID ", min_num = %" PRIxHID "\n", expected_g[n].maj_num,
- expected_g[n].min_num);
+ fprintf(stderr, "Unexpected error stack entry!\n");
+ fprintf(stderr, "Stack entry: %d\n", n);
+ fprintf(stderr,
+ "Actual: maj_num = %" PRIxHID ", min_num = %" PRIxHID
+ ", line = %u, func = '%s', file = '%s', desc = '%s'\n",
+ err_desc->maj_num, err_desc->min_num, err_desc->line, err_desc->func_name, err_desc->file_name,
+ err_desc->desc);
+ fprintf(stderr, "Expected: maj_num = %" PRIxHID ", min_num = %" PRIxHID "\n", expected_g[n].maj_num,
+ expected_g[n].min_num);
error_flag_g = -1;
return SUCCEED;
diff --git a/test/tunicode.c b/test/tunicode.c
index 7bc4c68..114c79c 100644
--- a/test/tunicode.c
+++ b/test/tunicode.c
@@ -779,15 +779,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.
diff --git a/test/twriteorder.c b/test/twriteorder.c
index dd608c7..5f47a95 100644
--- a/test/twriteorder.c
+++ b/test/twriteorder.c
@@ -104,15 +104,15 @@ part_t launch_g;
void
usage(const char *prog)
{
- HDfprintf(stderr, "usage: %s [OPTIONS]\n", prog);
- HDfprintf(stderr, " OPTIONS\n");
- HDfprintf(stderr, " -h Print a usage message and exit\n");
- HDfprintf(stderr, " -l w|r launch writer or reader only. [default: launch both]\n");
- HDfprintf(stderr, " -b N Block size [default: %d]\n", BLOCKSIZE_DFT);
- HDfprintf(stderr, " -p N Partition size [default: %d]\n", PARTITION_DFT);
- HDfprintf(stderr, " -n N Number of linked blocks [default: %d]\n", NLINKEDBLOCKS_DFT);
- HDfprintf(stderr, " where N is an integer value\n");
- HDfprintf(stderr, "\n");
+ fprintf(stderr, "usage: %s [OPTIONS]\n", prog);
+ fprintf(stderr, " OPTIONS\n");
+ fprintf(stderr, " -h Print a usage message and exit\n");
+ fprintf(stderr, " -l w|r launch writer or reader only. [default: launch both]\n");
+ fprintf(stderr, " -b N Block size [default: %d]\n", BLOCKSIZE_DFT);
+ fprintf(stderr, " -p N Partition size [default: %d]\n", PARTITION_DFT);
+ fprintf(stderr, " -n N Number of linked blocks [default: %d]\n", NLINKEDBLOCKS_DFT);
+ fprintf(stderr, " where N is an integer value\n");
+ fprintf(stderr, "\n");
}
/* Setup test parameters by parsing command line options.
@@ -140,21 +140,21 @@ parse_option(int argc, char *const argv[])
break;
case 'b': /* number of planes to write/read */
if ((blocksize_g = HDatoi(optarg)) <= 0) {
- HDfprintf(stderr, "bad blocksize %s, must be a positive integer\n", optarg);
+ fprintf(stderr, "bad blocksize %s, must be a positive integer\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};
break;
case 'n': /* number of planes to write/read */
if ((nlinkedblock_g = HDatoi(optarg)) < 2) {
- HDfprintf(stderr, "bad number of linked blocks %s, must be greater than 1.\n", optarg);
+ fprintf(stderr, "bad number of linked blocks %s, must be greater than 1.\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};
break;
case 'p': /* number of planes to write/read */
if ((part_size_g = HDatoi(optarg)) <= 0) {
- HDfprintf(stderr, "bad partition size %s, must be a positive integer\n", optarg);
+ fprintf(stderr, "bad partition size %s, must be a positive integer\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};
@@ -168,28 +168,28 @@ parse_option(int argc, char *const argv[])
launch_g = UC_WRITER;
break;
default:
- HDfprintf(stderr, "launch value(%c) should be w or r only.\n", *optarg);
+ fprintf(stderr, "launch value(%c) should be w or r only.\n", *optarg);
usage(progname_g);
Hgoto_error(-1);
break;
} /* end inner switch */
- HDprintf("launch = %d\n", launch_g);
+ printf("launch = %d\n", launch_g);
break;
case '?':
- HDfprintf(stderr, "getopt returned '%c'.\n", c);
+ fprintf(stderr, "getopt returned '%c'.\n", c);
usage(progname_g);
Hgoto_error(-1);
default:
- HDfprintf(stderr, "getopt returned unexpected value.\n");
- HDfprintf(stderr, "Unexpected value is %d\n", c);
+ fprintf(stderr, "getopt returned unexpected value.\n");
+ fprintf(stderr, "Unexpected value is %d\n", c);
Hgoto_error(-1);
} /* end outer switch */
} /* end while */
/* verify partition size must be >= blocksize */
if (part_size_g < blocksize_g) {
- HDfprintf(stderr, "Blocksize %d should not be bigger than partition size %d\n", blocksize_g,
- part_size_g);
+ fprintf(stderr, "Blocksize %d should not be bigger than partition size %d\n", blocksize_g,
+ part_size_g);
Hgoto_error(-1);
}
@@ -216,10 +216,10 @@ setup_parameters(int argc, char *const argv[])
}
/* show parameters and return */
- HDprintf("blocksize = %ld\n", (long)blocksize_g);
- HDprintf("part_size = %ld\n", (long)part_size_g);
- HDprintf("nlinkedblock = %ld\n", (long)nlinkedblock_g);
- HDprintf("launch = %d\n", launch_g);
+ printf("blocksize = %ld\n", (long)blocksize_g);
+ printf("part_size = %ld\n", (long)part_size_g);
+ printf("nlinkedblock = %ld\n", (long)nlinkedblock_g);
+ printf("launch = %d\n", launch_g);
return 0;
}
@@ -237,13 +237,13 @@ create_wo_file(void)
/* Create the data file */
if ((write_fd_g = HDopen(DATAFILE, O_RDWR | O_TRUNC | O_CREAT, H5_POSIX_CREATE_MODE_RW)) < 0) {
- HDprintf("WRITER: error from open\n");
+ printf("WRITER: error from open\n");
return -1;
}
blkaddr = 0;
/* write it to partition 0 */
if ((bytes_wrote = HDwrite(write_fd_g, &blkaddr, (size_t)SIZE_BLKADDR)) != SIZE_BLKADDR) {
- HDprintf("blkaddr write failed\n");
+ printf("blkaddr write failed\n");
return -1;
}
@@ -275,7 +275,7 @@ write_wo_file(void)
/* write the block */
HDlseek(write_fd_g, (HDoff_t)blkaddr, SEEK_SET);
if ((bytes_wrote = HDwrite(write_fd_g, buffer, (size_t)blocksize_g)) != blocksize_g) {
- HDprintf("blkaddr write failed in partition %d\n", i);
+ printf("blkaddr write failed in partition %d\n", i);
return -1;
}
@@ -287,7 +287,7 @@ write_wo_file(void)
HDlseek(write_fd_g, (HDoff_t)0, SEEK_SET);
if ((bytes_wrote = HDwrite(write_fd_g, &blkaddr_old, (size_t)sizeof(blkaddr_old))) !=
sizeof(blkaddr_old)) {
- HDprintf("blkaddr write failed in partition %d\n", 0);
+ printf("blkaddr write failed in partition %d\n", 0);
return -1;
}
@@ -305,7 +305,7 @@ read_wo_file(void)
/* Open the data file */
if ((read_fd = HDopen(DATAFILE, O_RDONLY)) < 0) {
- HDprintf("READER: error from open\n");
+ printf("READER: error from open\n");
return -1;
}
@@ -313,7 +313,7 @@ read_wo_file(void)
while (blkaddr == 0) {
HDlseek(read_fd, (HDoff_t)0, SEEK_SET);
if ((bytes_read = HDread(read_fd, &blkaddr, (size_t)sizeof(blkaddr))) != sizeof(blkaddr)) {
- HDprintf("blkaddr read failed in partition %d\n", 0);
+ printf("blkaddr read failed in partition %d\n", 0);
return -1;
}
}
@@ -322,7 +322,7 @@ read_wo_file(void)
while (blkaddr != 0) {
HDlseek(read_fd, (HDoff_t)blkaddr, SEEK_SET);
if ((bytes_read = HDread(read_fd, buffer, (size_t)blocksize_g)) != blocksize_g) {
- HDprintf("blkaddr read failed in partition %d\n", 0);
+ printf("blkaddr read failed in partition %d\n", 0);
return -1;
}
@@ -366,13 +366,13 @@ main(int argc, char *argv[])
/* Create file */
/* ============*/
if (launch_g != UC_READER) {
- HDprintf("Creating skeleton data file for test...\n");
+ printf("Creating skeleton data file for test...\n");
if (create_wo_file() < 0) {
- HDfprintf(stderr, "***encounter error\n");
+ fprintf(stderr, "***encounter error\n");
Hgoto_error(1);
}
else
- HDprintf("File created.\n");
+ printf("File created.\n");
}
/* flush output before possible fork */
HDfflush(stdout);
@@ -392,9 +392,9 @@ main(int argc, char *argv[])
if (launch_g != UC_WRITER) {
/* child process launch the reader */
if (0 == childpid) {
- HDprintf("%d: launch reader process\n", mypid);
+ printf("%d: launch reader process\n", mypid);
if (read_wo_file() < 0) {
- HDfprintf(stderr, "read_wo_file encountered error\n");
+ fprintf(stderr, "read_wo_file encountered error\n");
HDexit(EXIT_FAILURE);
}
@@ -409,7 +409,7 @@ main(int argc, char *argv[])
/* ============= */
/* this process continues to launch the writer */
if (write_wo_file() < 0) {
- HDfprintf(stderr, "write_wo_file encountered error\n");
+ fprintf(stderr, "write_wo_file encountered error\n");
Hgoto_error(1);
}
@@ -423,12 +423,12 @@ main(int argc, char *argv[])
}
if (WIFEXITED(child_status)) {
if ((child_ret_value = WEXITSTATUS(child_status)) != 0) {
- HDprintf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
+ printf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
Hgoto_error(2);
}
}
else {
- HDprintf("%d: child process terminated abnormally\n", mypid);
+ printf("%d: child process terminated abnormally\n", mypid);
Hgoto_error(2);
}
}
@@ -436,10 +436,10 @@ main(int argc, char *argv[])
done:
/* Print result and exit */
if (ret_value != 0) {
- HDprintf("Error(s) encountered\n");
+ printf("Error(s) encountered\n");
}
else {
- HDprintf("All passed\n");
+ printf("All passed\n");
}
return ret_value;
@@ -450,7 +450,7 @@ done:
int
main(void)
{
- HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ fprintf(stderr, "Non-POSIX platform. Skipping.\n");
return EXIT_SUCCESS;
} /* end main() */
diff --git a/test/unlink.c b/test/unlink.c
index a8fe2d8..68cc0ec 100644
--- a/test/unlink.c
+++ b/test/unlink.c
@@ -1490,12 +1490,12 @@ test_create_unlink(const char *msg, hid_t fapl)
HDsnprintf(groupname, sizeof(groupname), "%s %u", GROUPNAME, u);
if ((group = H5Gcreate2(file, groupname, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) {
H5_FAILED();
- HDprintf("group %s creation failed\n", groupname);
+ printf("group %s creation failed\n", groupname);
goto error;
} /* end if */
if (H5Gclose(group) < 0) {
H5_FAILED();
- HDprintf("closing group %s failed\n", groupname);
+ printf("closing group %s failed\n", groupname);
goto error;
} /* end if */
} /* end for */
@@ -1505,7 +1505,7 @@ test_create_unlink(const char *msg, hid_t fapl)
HDsnprintf(groupname, sizeof(groupname), "%s %u", GROUPNAME, u);
if (H5Ldelete(file, groupname, H5P_DEFAULT) < 0) {
H5_FAILED();
- HDprintf("Unlinking group %s failed\n", groupname);
+ printf("Unlinking group %s failed\n", groupname);
goto error;
} /* end if */
} /* end for */
@@ -3022,12 +3022,12 @@ main(void)
/* Get FAPL cache settings */
if (H5Pget_cache(fapl_small_mdc, &mdc_nelmts, &rdcc_nelmts, &rdcc_nbytes, &rdcc_w0) < 0)
- HDprintf("H5Pget_cache failed\n");
+ printf("H5Pget_cache failed\n");
/* Change FAPL cache settings */
mdc_nelmts = 1;
if (H5Pset_cache(fapl_small_mdc, mdc_nelmts, rdcc_nelmts, rdcc_nbytes, rdcc_w0) < 0)
- HDprintf("H5Pset_cache failed\n");
+ printf("H5Pset_cache failed\n");
/* Test creating & unlinking lots of objects with a 1-element metadata cache FAPL */
nerrors += test_create_unlink("create and unlink large number of objects with small cache",
@@ -3075,7 +3075,7 @@ main(void)
nerrors += (h5_verify_cached_stabs(FILENAME, fapl) < 0 ? 1 : 0);
if (nerrors) {
- HDprintf("***** %d FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d FAILURE%s! *****\n", nerrors, 1 == nerrors ? "" : "S");
HDexit(EXIT_FAILURE);
}
diff --git a/test/unregister.c b/test/unregister.c
index 5338b09..3e7b3b7 100644
--- a/test/unregister.c
+++ b/test/unregister.c
@@ -155,7 +155,7 @@ test_unregister_filters(hid_t fapl_id)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Should not be able to unregister filter\n", __LINE__);
+ printf(" Line %d: Should not be able to unregister filter\n", __LINE__);
goto error;
}
@@ -206,7 +206,7 @@ test_unregister_filters(hid_t fapl_id)
H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
- HDprintf(" Line %d: Should not be able to unregister filter\n", __LINE__);
+ printf(" Line %d: Should not be able to unregister filter\n", __LINE__);
goto error;
}
@@ -298,7 +298,7 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All filter unregistration tests passed.\n");
+ printf("All filter unregistration tests passed.\n");
/* Pop API context */
if (api_ctx_pushed && H5CX_pop(FALSE) < 0)
@@ -309,7 +309,7 @@ main(void)
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d FILTER UNREGISTRATION TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d FILTER UNREGISTRATION TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
if (api_ctx_pushed)
H5CX_pop(FALSE);
diff --git a/test/use_append_chunk.c b/test/use_append_chunk.c
index 8b02faa..71b8019 100644
--- a/test/use_append_chunk.c
+++ b/test/use_append_chunk.c
@@ -141,25 +141,25 @@ main(int argc, char *argv[])
/* Create file */
/* =========== */
if (UC_opts.launch != UC_READER) {
- HDprintf("Creating skeleton data file for test...\n");
+ printf("Creating skeleton data file for test...\n");
if ((UC_opts.fapl_id = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't create creation FAPL\n");
+ fprintf(stderr, "can't create creation FAPL\n");
Hgoto_error(1);
}
if (H5Pset_libver_bounds(UC_opts.fapl_id, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set creation FAPL libver bounds\n");
+ fprintf(stderr, "can't set creation FAPL libver bounds\n");
Hgoto_error(1);
}
if (create_uc_file(&UC_opts) < 0) {
- HDfprintf(stderr, "***encounter error\n");
+ fprintf(stderr, "***encounter error\n");
Hgoto_error(1);
}
else {
- HDprintf("File created.\n");
+ printf("File created.\n");
}
/* Close FAPL to prevent issues with forking later */
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close creation FAPL\n");
+ fprintf(stderr, "can't close creation FAPL\n");
Hgoto_error(1);
}
UC_opts.fapl_id = H5I_INVALID_HID;
@@ -182,17 +182,17 @@ main(int argc, char *argv[])
if (UC_opts.launch != UC_WRITER) {
/* child process launch the reader */
if (0 == childpid) {
- HDprintf("%d: launch reader process\n", mypid);
+ printf("%d: launch reader process\n", mypid);
if ((UC_opts.fapl_id = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't create read FAPL\n");
+ fprintf(stderr, "can't create read FAPL\n");
HDexit(EXIT_FAILURE);
}
if (read_uc_file(send_wait, &UC_opts) < 0) {
- HDfprintf(stderr, "read_uc_file encountered error\n");
+ fprintf(stderr, "read_uc_file encountered error\n");
HDexit(EXIT_FAILURE);
}
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close read FAPL\n");
+ fprintf(stderr, "can't close read FAPL\n");
HDexit(EXIT_FAILURE);
}
HDexit(EXIT_SUCCESS);
@@ -203,38 +203,38 @@ main(int argc, char *argv[])
/* launch writer */
/* ============= */
/* this process continues to launch the writer */
- HDprintf("%d: continue as the writer process\n", mypid);
+ printf("%d: continue as the writer process\n", mypid);
if ((fapl = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't create write FAPL\n");
+ fprintf(stderr, "can't create write FAPL\n");
Hgoto_error(1);
}
if (UC_opts.use_swmr) {
if (H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set write FAPL libver bounds\n");
+ fprintf(stderr, "can't set write FAPL libver bounds\n");
Hgoto_error(1);
}
}
if ((fid = H5Fopen(UC_opts.filename, H5F_ACC_RDWR | (UC_opts.use_swmr ? H5F_ACC_SWMR_WRITE : 0), fapl)) <
0) {
- HDfprintf(stderr, "H5Fopen failed\n");
+ fprintf(stderr, "H5Fopen failed\n");
Hgoto_error(1);
}
if (write_uc_file(send_wait, fid, &UC_opts) < 0) {
- HDfprintf(stderr, "write_uc_file encountered error\n");
+ fprintf(stderr, "write_uc_file encountered error\n");
Hgoto_error(1);
}
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Failed to close write\n");
+ fprintf(stderr, "Failed to close write\n");
Hgoto_error(1);
}
if (H5Pclose(fapl) < 0) {
- HDfprintf(stderr, "can't close write FAPL\n");
+ fprintf(stderr, "can't close write FAPL\n");
Hgoto_error(1);
}
@@ -249,22 +249,22 @@ main(int argc, char *argv[])
if (WIFEXITED(child_status)) {
if ((child_ret_value = WEXITSTATUS(child_status)) != 0) {
- HDprintf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
+ printf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
Hgoto_error(2);
}
}
else {
- HDprintf("%d: child process terminated abnormally\n", mypid);
+ printf("%d: child process terminated abnormally\n", mypid);
Hgoto_error(2);
}
}
done:
if (ret_value != 0) {
- HDprintf("Error(s) encountered\n");
+ printf("Error(s) encountered\n");
}
else {
- HDprintf("All passed\n");
+ printf("All passed\n");
}
return (ret_value);
@@ -275,7 +275,7 @@ done:
int
main(void)
{
- HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ fprintf(stderr, "Non-POSIX platform. Skipping.\n");
return EXIT_SUCCESS;
} /* end main() */
diff --git a/test/use_append_chunk_mirror.c b/test/use_append_chunk_mirror.c
index fbc4452..f9019a5 100644
--- a/test/use_append_chunk_mirror.c
+++ b/test/use_append_chunk_mirror.c
@@ -174,7 +174,7 @@ main(int argc, char *argv[])
HDstrncpy(mirr_fa.remote_ip, SERVER_IP, H5FD_MIRROR_MAX_IP_LEN);
if (NULL == (split_fa = HDcalloc(1, sizeof(H5FD_splitter_vfd_config_t)))) {
- HDfprintf(stderr, "can't allocate memory for splitter config\n");
+ fprintf(stderr, "can't allocate memory for splitter config\n");
Hgoto_error(1);
}
@@ -201,16 +201,16 @@ main(int argc, char *argv[])
/* Create file */
/* =========== */
if (UC_opts.launch != UC_READER) {
- HDprintf("Creating skeleton data file for test...\n");
+ printf("Creating skeleton data file for test...\n");
/* Prepare mirror child driver */
mirr_fapl_id = H5Pcreate(H5P_FILE_ACCESS);
if (mirr_fapl_id == H5I_INVALID_HID) {
- HDfprintf(stderr, "can't create creation mirror FAPL\n");
+ fprintf(stderr, "can't create creation mirror FAPL\n");
Hgoto_error(1);
}
if (H5Pset_fapl_mirror(mirr_fapl_id, &mirr_fa) < 0) {
- HDfprintf(stderr, "can't set creation mirror FAPL\n");
+ fprintf(stderr, "can't set creation mirror FAPL\n");
H5Eprint2(H5E_DEFAULT, stdout);
Hgoto_error(1);
}
@@ -220,37 +220,37 @@ main(int argc, char *argv[])
split_fa->rw_fapl_id = H5P_DEFAULT;
UC_opts.fapl_id = H5Pcreate(H5P_FILE_ACCESS);
if (UC_opts.fapl_id == H5I_INVALID_HID) {
- HDfprintf(stderr, "can't create creation FAPL\n");
+ fprintf(stderr, "can't create creation FAPL\n");
Hgoto_error(1);
}
if (H5Pset_fapl_splitter(UC_opts.fapl_id, split_fa) < 0) {
- HDfprintf(stderr, "can't set creation FAPL\n");
+ fprintf(stderr, "can't set creation FAPL\n");
H5Eprint2(H5E_DEFAULT, stdout);
Hgoto_error(1);
}
if (H5Pset_libver_bounds(UC_opts.fapl_id, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set creation FAPL libver bounds\n");
+ fprintf(stderr, "can't set creation FAPL libver bounds\n");
Hgoto_error(1);
}
/* Create file */
if (create_uc_file(&UC_opts) < 0) {
- HDfprintf(stderr, "***encounter error\n");
+ fprintf(stderr, "***encounter error\n");
Hgoto_error(1);
}
else {
- HDprintf("File created.\n");
+ printf("File created.\n");
}
/* Close FAPLs to prevent issues with forking later */
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close creation FAPL\n");
+ fprintf(stderr, "can't close creation FAPL\n");
Hgoto_error(1);
}
UC_opts.fapl_id = H5I_INVALID_HID;
if (H5Pclose(mirr_fapl_id) < 0) {
- HDfprintf(stderr, "can't close creation mirror FAPL\n");
+ fprintf(stderr, "can't close creation mirror FAPL\n");
Hgoto_error(1);
}
mirr_fapl_id = H5I_INVALID_HID;
@@ -274,11 +274,11 @@ main(int argc, char *argv[])
/* child process -- launch the reader */
/* reader only opens the one file -- separate reader needed for mirrored file 'shinano.h5' */
if (0 == childpid) {
- HDprintf("%d: launch reader process\n", mypid);
+ printf("%d: launch reader process\n", mypid);
UC_opts.fapl_id = H5P_DEFAULT;
if (read_uc_file(send_wait, &UC_opts) < 0) {
- HDfprintf(stderr, "read_uc_file encountered error (%d)\n", mypid);
+ fprintf(stderr, "read_uc_file encountered error (%d)\n", mypid);
HDexit(1);
}
@@ -290,16 +290,16 @@ main(int argc, char *argv[])
/* launch writer */
/* ============= */
/* this process continues to launch the writer */
- HDprintf("%d: continue as the writer process\n", mypid);
+ printf("%d: continue as the writer process\n", mypid);
/* Prepare mirror child driver */
mirr_fapl_id = H5Pcreate(H5P_FILE_ACCESS);
if (mirr_fapl_id == H5I_INVALID_HID) {
- HDfprintf(stderr, "can't create creation mirror FAPL\n");
+ fprintf(stderr, "can't create creation mirror FAPL\n");
Hgoto_error(1);
}
if (H5Pset_fapl_mirror(mirr_fapl_id, &mirr_fa) < 0) {
- HDfprintf(stderr, "can't set creation mirror FAPL\n");
+ fprintf(stderr, "can't set creation mirror FAPL\n");
H5Eprint2(H5E_DEFAULT, stdout);
Hgoto_error(1);
}
@@ -309,45 +309,45 @@ main(int argc, char *argv[])
split_fa->rw_fapl_id = H5P_DEFAULT;
UC_opts.fapl_id = H5Pcreate(H5P_FILE_ACCESS);
if (UC_opts.fapl_id == H5I_INVALID_HID) {
- HDfprintf(stderr, "can't create creation FAPL\n");
+ fprintf(stderr, "can't create creation FAPL\n");
Hgoto_error(1);
}
if (H5Pset_fapl_splitter(UC_opts.fapl_id, split_fa) < 0) {
- HDfprintf(stderr, "can't set creation FAPL\n");
+ fprintf(stderr, "can't set creation FAPL\n");
H5Eprint2(H5E_DEFAULT, stdout);
Hgoto_error(1);
}
if (UC_opts.use_swmr) {
if (H5Pset_libver_bounds(UC_opts.fapl_id, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set write FAPL libver bounds\n");
+ fprintf(stderr, "can't set write FAPL libver bounds\n");
Hgoto_error(1);
}
}
if ((fid = H5Fopen(UC_opts.filename, H5F_ACC_RDWR | (UC_opts.use_swmr ? H5F_ACC_SWMR_WRITE : 0),
UC_opts.fapl_id)) < 0) {
- HDfprintf(stderr, "H5Fopen failed\n");
+ fprintf(stderr, "H5Fopen failed\n");
Hgoto_error(1);
}
if (write_uc_file(send_wait, fid, &UC_opts) < 0) {
- HDfprintf(stderr, "write_uc_file encountered error\n");
+ fprintf(stderr, "write_uc_file encountered error\n");
Hgoto_error(1);
}
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Failed to close write\n");
+ fprintf(stderr, "Failed to close write\n");
Hgoto_error(1);
}
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close write FAPL\n");
+ fprintf(stderr, "can't close write FAPL\n");
Hgoto_error(1);
}
if (H5Pclose(mirr_fapl_id) < 0) {
- HDfprintf(stderr, "can't close write mirror FAPL\n");
+ fprintf(stderr, "can't close write mirror FAPL\n");
Hgoto_error(1);
}
@@ -362,12 +362,12 @@ main(int argc, char *argv[])
if (WIFEXITED(child_status)) {
if ((child_ret_value = WEXITSTATUS(child_status)) != 0) {
- HDprintf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
+ printf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
Hgoto_error(2);
}
}
else {
- HDprintf("%d: child process terminated abnormally\n", mypid);
+ printf("%d: child process terminated abnormally\n", mypid);
Hgoto_error(2);
}
}
@@ -376,10 +376,10 @@ done:
HDfree(split_fa);
if (ret_value != 0) {
- HDprintf("Error(s) encountered\n");
+ printf("Error(s) encountered\n");
}
else {
- HDprintf("All passed\n");
+ printf("All passed\n");
}
return ret_value;
@@ -390,7 +390,7 @@ done:
int
main(void)
{
- HDfprintf(stderr, "Mirror VFD is not built. Skipping.\n");
+ fprintf(stderr, "Mirror VFD is not built. Skipping.\n");
return EXIT_SUCCESS;
} /* end main() */
@@ -401,7 +401,7 @@ main(void)
int
main(void)
{
- HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ fprintf(stderr, "Non-POSIX platform. Skipping.\n");
return EXIT_SUCCESS;
} /* end main() */
diff --git a/test/use_append_mchunks.c b/test/use_append_mchunks.c
index ff9625e..ed56ca3 100644
--- a/test/use_append_mchunks.c
+++ b/test/use_append_mchunks.c
@@ -135,25 +135,25 @@ main(int argc, char *argv[])
/* Create file */
/* =========== */
if (UC_opts.launch != UC_READER) {
- HDprintf("Creating skeleton data file for test...\n");
+ printf("Creating skeleton data file for test...\n");
if ((UC_opts.fapl_id = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't create creation FAPL\n");
+ fprintf(stderr, "can't create creation FAPL\n");
Hgoto_error(1);
}
if (H5Pset_libver_bounds(UC_opts.fapl_id, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set creation FAPL libver bounds\n");
+ fprintf(stderr, "can't set creation FAPL libver bounds\n");
Hgoto_error(1);
}
if (create_uc_file(&UC_opts) < 0) {
- HDfprintf(stderr, "***encounter error\n");
+ fprintf(stderr, "***encounter error\n");
Hgoto_error(1);
}
else {
- HDprintf("File created.\n");
+ printf("File created.\n");
}
/* Close FAPL to prevent issues with forking later */
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close creation FAPL\n");
+ fprintf(stderr, "can't close creation FAPL\n");
Hgoto_error(1);
}
UC_opts.fapl_id = H5I_INVALID_HID;
@@ -176,17 +176,17 @@ main(int argc, char *argv[])
if (UC_opts.launch != UC_WRITER) {
/* child process launch the reader */
if (0 == childpid) {
- HDprintf("%d: launch reader process\n", mypid);
+ printf("%d: launch reader process\n", mypid);
if ((UC_opts.fapl_id = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't create read FAPL\n");
+ fprintf(stderr, "can't create read FAPL\n");
HDexit(EXIT_FAILURE);
}
if (read_uc_file(send_wait, &UC_opts) < 0) {
- HDfprintf(stderr, "read_uc_file encountered error\n");
+ fprintf(stderr, "read_uc_file encountered error\n");
HDexit(EXIT_FAILURE);
}
if (H5Pclose(UC_opts.fapl_id) < 0) {
- HDfprintf(stderr, "can't close read FAPL\n");
+ fprintf(stderr, "can't close read FAPL\n");
HDexit(EXIT_FAILURE);
}
HDexit(EXIT_SUCCESS);
@@ -197,39 +197,39 @@ main(int argc, char *argv[])
/* launch writer */
/* ============= */
/* this process continues to launch the writer */
- HDprintf("%d: continue as the writer process\n", mypid);
+ printf("%d: continue as the writer process\n", mypid);
/* Set the file access property list */
if ((fapl = h5_fileaccess()) < 0) {
- HDfprintf(stderr, "can't get write FAPL\n");
+ fprintf(stderr, "can't get write FAPL\n");
Hgoto_error(1);
}
if (UC_opts.use_swmr) {
if (H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) {
- HDfprintf(stderr, "can't set write FAPL libver bounds\n");
+ fprintf(stderr, "can't set write FAPL libver bounds\n");
Hgoto_error(1);
}
}
if ((fid = H5Fopen(UC_opts.filename, H5F_ACC_RDWR | (UC_opts.use_swmr ? H5F_ACC_SWMR_WRITE : 0), fapl)) <
0) {
- HDfprintf(stderr, "H5Fopen failed\n");
+ fprintf(stderr, "H5Fopen failed\n");
Hgoto_error(1);
}
if (write_uc_file(send_wait, fid, &UC_opts) < 0) {
- HDfprintf(stderr, "write_uc_file encountered error\n");
+ fprintf(stderr, "write_uc_file encountered error\n");
Hgoto_error(1);
}
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Failed to close file id\n");
+ fprintf(stderr, "Failed to close file id\n");
Hgoto_error(1);
}
if (H5Pclose(fapl) < 0) {
- HDfprintf(stderr, "can't close write FAPL\n");
+ fprintf(stderr, "can't close write FAPL\n");
Hgoto_error(1);
}
@@ -244,22 +244,22 @@ main(int argc, char *argv[])
if (WIFEXITED(child_status)) {
if ((child_ret_value = WEXITSTATUS(child_status)) != 0) {
- HDprintf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
+ printf("%d: child process exited with non-zero code (%d)\n", mypid, child_ret_value);
Hgoto_error(1);
}
}
else {
- HDprintf("%d: child process terminated abnormally\n", mypid);
+ printf("%d: child process terminated abnormally\n", mypid);
Hgoto_error(2);
}
}
done:
if (ret_value != 0) {
- HDprintf("Error(s) encountered\n");
+ printf("Error(s) encountered\n");
}
else {
- HDprintf("All passed\n");
+ printf("All passed\n");
}
return (ret_value);
@@ -270,7 +270,7 @@ done:
int
main(void)
{
- HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ fprintf(stderr, "Non-POSIX platform. Skipping.\n");
return EXIT_SUCCESS;
} /* end main() */
diff --git a/test/use_common.c b/test/use_common.c
index 7b5df53..f97c875 100644
--- a/test/use_common.c
+++ b/test/use_common.c
@@ -27,18 +27,18 @@
void
usage(const char *prog)
{
- HDfprintf(stderr, "usage: %s [OPTIONS]\n", prog);
- HDfprintf(stderr, " OPTIONS\n");
- HDfprintf(stderr, " -h, --help Print a usage message and exit\n");
- HDfprintf(stderr, " -f FN Test file name [default: %s.h5]\n", prog);
- HDfprintf(stderr,
- " -i N, --iteration=N Number of iterations to repeat the whole thing. [default: 1]\n");
- HDfprintf(stderr, " -l w|r launch writer or reader only. [default: launch both]\n");
- HDfprintf(stderr, " -n N, --nplanes=N Number of planes to write/read. [default: 1000]\n");
- HDfprintf(stderr, " -s N, --swmr=N Use SWMR mode (0: no, non-0: yes) default is yes\n");
- HDfprintf(stderr, " -z N, --chunksize=N Chunk size [default: %d]\n", Chunksize_DFT);
- HDfprintf(stderr, " -y N, --chunkplanes=N Number of planes per chunk [default: 1]\n");
- HDfprintf(stderr, "\n");
+ fprintf(stderr, "usage: %s [OPTIONS]\n", prog);
+ fprintf(stderr, " OPTIONS\n");
+ fprintf(stderr, " -h, --help Print a usage message and exit\n");
+ fprintf(stderr, " -f FN Test file name [default: %s.h5]\n", prog);
+ fprintf(stderr,
+ " -i N, --iteration=N Number of iterations to repeat the whole thing. [default: 1]\n");
+ fprintf(stderr, " -l w|r launch writer or reader only. [default: launch both]\n");
+ fprintf(stderr, " -n N, --nplanes=N Number of planes to write/read. [default: 1000]\n");
+ fprintf(stderr, " -s N, --swmr=N Use SWMR mode (0: no, non-0: yes) default is yes\n");
+ fprintf(stderr, " -z N, --chunksize=N Chunk size [default: %d]\n", Chunksize_DFT);
+ fprintf(stderr, " -y N, --chunkplanes=N Number of planes per chunk [default: 1]\n");
+ fprintf(stderr, "\n");
} /* end usage() */
/* ----------------------------------------------------------------------------
@@ -73,7 +73,7 @@ parse_option(int argc, char *const argv[], options_t *opts)
break;
case 'i': /* iterations */
if ((opts->iterations = HDatoi(optarg)) <= 0) {
- HDfprintf(stderr, "bad iterations number %s, must be a positive integer\n", optarg);
+ fprintf(stderr, "bad iterations number %s, must be a positive integer\n", optarg);
usage(opts->progname);
Hgoto_error(-1);
}
@@ -87,7 +87,7 @@ parse_option(int argc, char *const argv[], options_t *opts)
opts->launch = UC_WRITER;
break;
default:
- HDfprintf(stderr, "launch value(%c) should be w or r only.\n", *optarg);
+ fprintf(stderr, "launch value(%c) should be w or r only.\n", *optarg);
usage(opts->progname);
Hgoto_error(-1);
break;
@@ -95,7 +95,7 @@ parse_option(int argc, char *const argv[], options_t *opts)
break;
case 'n': /* number of planes to write/read */
if ((opts->nplanes = HDstrtoul(optarg, NULL, 0)) <= 0) {
- HDfprintf(stderr, "bad number of planes %s, must be a positive integer\n", optarg);
+ fprintf(stderr, "bad number of planes %s, must be a positive integer\n", optarg);
usage(opts->progname);
Hgoto_error(-1);
}
@@ -103,7 +103,7 @@ parse_option(int argc, char *const argv[], options_t *opts)
case 's': /* use swmr file open mode */
use_swmr = HDatoi(optarg);
if (use_swmr != 0 && use_swmr != 1) {
- HDfprintf(stderr, "swmr value should be 0(no) or 1(yes)\n");
+ fprintf(stderr, "swmr value should be 0(no) or 1(yes)\n");
usage(opts->progname);
Hgoto_error(-1);
}
@@ -111,25 +111,25 @@ parse_option(int argc, char *const argv[], options_t *opts)
break;
case 'y': /* Number of planes per chunk */
if ((opts->chunkplanes = HDstrtoul(optarg, NULL, 0)) <= 0) {
- HDfprintf(stderr, "bad number of planes per chunk %s, must be a positive integer\n",
- optarg);
+ fprintf(stderr, "bad number of planes per chunk %s, must be a positive integer\n",
+ optarg);
usage(opts->progname);
Hgoto_error(-1);
}
break;
case 'z': /* size of chunk=(z,z) */
if ((opts->chunksize = HDstrtoull(optarg, NULL, 0)) <= 0) {
- HDfprintf(stderr, "bad chunksize %s, must be a positive integer\n", optarg);
+ fprintf(stderr, "bad chunksize %s, must be a positive integer\n", optarg);
usage(opts->progname);
Hgoto_error(-1);
}
break;
case '?':
- HDfprintf(stderr, "getopt returned '%c'.\n", c);
+ fprintf(stderr, "getopt returned '%c'.\n", c);
Hgoto_error(-1);
default:
- HDfprintf(stderr, "getopt returned unexpected value.\n");
- HDfprintf(stderr, "Unexpected value is %d\n", c);
+ fprintf(stderr, "getopt returned unexpected value.\n");
+ fprintf(stderr, "Unexpected value is %d\n", c);
Hgoto_error(-1);
} /* end switch (argument symbol) */
} /* end while (there are still arguments) */
@@ -138,7 +138,7 @@ parse_option(int argc, char *const argv[], options_t *opts)
if (!opts->filename) {
/* default data file name is <progname>.h5 */
if ((opts->filename = (char *)HDmalloc(HDstrlen(opts->progname) + 4)) == NULL) {
- HDfprintf(stderr, "malloc: failed\n");
+ fprintf(stderr, "malloc: failed\n");
Hgoto_error(-1);
}
HDstrcpy(opts->filename, opts->progname);
@@ -156,31 +156,31 @@ done:
void
show_parameters(options_t *opts)
{
- HDprintf("===Parameters used:===\n");
- HDprintf("chunk dims=(%llu, %llu, %llu)\n", (unsigned long long)opts->chunkdims[0],
- (unsigned long long)opts->chunkdims[1], (unsigned long long)opts->chunkdims[2]);
- HDprintf("dataset max dims=(%llu, %llu, %llu)\n", (unsigned long long)opts->max_dims[0],
- (unsigned long long)opts->max_dims[1], (unsigned long long)opts->max_dims[2]);
- HDprintf("number of planes to write=%llu\n", (unsigned long long)opts->nplanes);
- HDprintf("using SWMR mode=%s\n", opts->use_swmr ? "yes(1)" : "no(0)");
- HDprintf("data filename=%s\n", opts->filename);
- HDprintf("launch part=");
+ printf("===Parameters used:===\n");
+ printf("chunk dims=(%llu, %llu, %llu)\n", (unsigned long long)opts->chunkdims[0],
+ (unsigned long long)opts->chunkdims[1], (unsigned long long)opts->chunkdims[2]);
+ printf("dataset max dims=(%llu, %llu, %llu)\n", (unsigned long long)opts->max_dims[0],
+ (unsigned long long)opts->max_dims[1], (unsigned long long)opts->max_dims[2]);
+ printf("number of planes to write=%llu\n", (unsigned long long)opts->nplanes);
+ printf("using SWMR mode=%s\n", opts->use_swmr ? "yes(1)" : "no(0)");
+ printf("data filename=%s\n", opts->filename);
+ printf("launch part=");
switch (opts->launch) {
case UC_READWRITE:
- HDprintf("Reader/Writer\n");
+ printf("Reader/Writer\n");
break;
case UC_WRITER:
- HDprintf("Writer\n");
+ printf("Writer\n");
break;
case UC_READER:
- HDprintf("Reader\n");
+ printf("Reader\n");
break;
default:
/* should not happen */
- HDprintf("Illegal part(%d)\n", opts->launch);
+ printf("Illegal part(%d)\n", opts->launch);
}
- HDprintf("number of iterations=%d (not used yet)\n", opts->iterations);
- HDprintf("===Parameters shown===\n");
+ printf("number of iterations=%d (not used yet)\n", opts->iterations);
+ printf("===Parameters shown===\n");
} /* end show_parameters() */
/* ----------------------------------------------------------------------------
@@ -230,7 +230,7 @@ create_uc_file(options_t *opts)
if (H5Dget_chunk_index_type(dsid, &idx_type) < 0)
return -1;
if (idx_type == H5D_CHUNK_IDX_BTREE) {
- HDfprintf(stderr, "ERROR: Chunk index is version 1 B-tree: aborting.\n");
+ fprintf(stderr, "ERROR: Chunk index is version 1 B-tree: aborting.\n");
return -1;
}
@@ -280,29 +280,29 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
/* Open the dataset of the program name */
if ((dsid = H5Dopen2(file_id, opts->progname, H5P_DEFAULT)) < 0) {
- HDfprintf(stderr, "H5Dopen2 failed\n");
+ fprintf(stderr, "H5Dopen2 failed\n");
return -1;
}
/* Find chunksize used */
if ((dcpl = H5Dget_create_plist(dsid)) < 0) {
- HDfprintf(stderr, "H5Dget_create_plist failed\n");
+ fprintf(stderr, "H5Dget_create_plist failed\n");
return -1;
}
if (H5D_CHUNKED != H5Pget_layout(dcpl)) {
- HDfprintf(stderr, "storage layout is not chunked\n");
+ fprintf(stderr, "storage layout is not chunked\n");
return -1;
}
if ((rank = H5Pget_chunk(dcpl, 3, chunk_dims)) != 3) {
- HDfprintf(stderr, "storage rank is not 3\n");
+ fprintf(stderr, "storage rank is not 3\n");
return -1;
}
/* verify chunk_dims against set parameters */
if (chunk_dims[0] != opts->chunkdims[0] || chunk_dims[1] != cz || chunk_dims[2] != cz) {
- HDfprintf(stderr, "chunk size is not as expected. Got dims=(%llu,%llu,%llu)\n",
- (unsigned long long)chunk_dims[0], (unsigned long long)chunk_dims[1],
- (unsigned long long)chunk_dims[2]);
+ fprintf(stderr, "chunk size is not as expected. Got dims=(%llu,%llu,%llu)\n",
+ (unsigned long long)chunk_dims[0], (unsigned long long)chunk_dims[1],
+ (unsigned long long)chunk_dims[2]);
return -1;
}
@@ -311,7 +311,7 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
memdims[1] = opts->dims[1];
memdims[2] = opts->dims[2];
if ((buffer = (UC_CTYPE *)HDmalloc((size_t)memdims[1] * (size_t)memdims[2] * sizeof(UC_CTYPE))) == NULL) {
- HDfprintf(stderr, "malloc: failed\n");
+ fprintf(stderr, "malloc: failed\n");
return -1;
}
@@ -321,28 +321,28 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
f_sid = H5Dget_space(dsid); /* Get filespace handle first. */
rank = H5Sget_simple_extent_ndims(f_sid);
if (rank != UC_RANK) {
- HDfprintf(stderr, "rank(%d) of dataset does not match\n", rank);
+ fprintf(stderr, "rank(%d) of dataset does not match\n", rank);
HDfree(buffer);
return -1;
}
if (H5Sget_simple_extent_dims(f_sid, dims, NULL) < 0) {
- HDfprintf(stderr, "H5Sget_simple_extent_dims got error\n");
+ fprintf(stderr, "H5Sget_simple_extent_dims got error\n");
HDfree(buffer);
return -1;
}
- HDprintf("dataset rank %d, dimensions %llu x %llu x %llu\n", rank, (unsigned long long)(dims[0]),
- (unsigned long long)(dims[1]), (unsigned long long)(dims[2]));
+ printf("dataset rank %d, dimensions %llu x %llu x %llu\n", rank, (unsigned long long)(dims[0]),
+ (unsigned long long)(dims[1]), (unsigned long long)(dims[2]));
/* verify that file space dims are as expected and are consistent with memory space dims */
if (dims[0] != 0 || dims[1] != memdims[1] || dims[2] != memdims[2]) {
- HDfprintf(stderr, "dataset is not empty. Got dims=(%llu,%llu,%llu)\n", (unsigned long long)dims[0],
- (unsigned long long)dims[1], (unsigned long long)dims[2]);
+ fprintf(stderr, "dataset is not empty. Got dims=(%llu,%llu,%llu)\n", (unsigned long long)dims[0],
+ (unsigned long long)dims[1], (unsigned long long)dims[2]);
HDfree(buffer);
return -1;
}
/* setup mem-space for buffer */
if ((m_sid = H5Screate_simple(rank, memdims, NULL)) < 0) {
- HDfprintf(stderr, "H5Screate_simple for memory failed\n");
+ fprintf(stderr, "H5Screate_simple for memory failed\n");
HDfree(buffer);
return -1;
}
@@ -363,7 +363,7 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
/* Cork the dataset's metadata in the cache, if SWMR is enabled */
if (opts->use_swmr) {
if (H5Odisable_mdc_flushes(dsid) < 0) {
- HDfprintf(stderr, "H5Odisable_mdc_flushes failed\n");
+ fprintf(stderr, "H5Odisable_mdc_flushes failed\n");
HDfree(buffer);
return -1;
}
@@ -372,14 +372,14 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
/* extend the dataset by one for new plane */
dims[0] = i + 1;
if (H5Dset_extent(dsid, dims) < 0) {
- HDfprintf(stderr, "H5Dset_extent failed\n");
+ fprintf(stderr, "H5Dset_extent failed\n");
HDfree(buffer);
return -1;
}
/* Get the dataset's dataspace */
if ((f_sid = H5Dget_space(dsid)) < 0) {
- HDfprintf(stderr, "H5Dset_extent failed\n");
+ fprintf(stderr, "H5Dset_extent failed\n");
HDfree(buffer);
return -1;
}
@@ -387,14 +387,14 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
start[0] = i;
/* Choose the next plane to write */
if (H5Sselect_hyperslab(f_sid, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
- HDfprintf(stderr, "Failed H5Sselect_hyperslab\n");
+ fprintf(stderr, "Failed H5Sselect_hyperslab\n");
HDfree(buffer);
return -1;
}
/* Write plane to the dataset */
if (H5Dwrite(dsid, UC_DATATYPE, m_sid, f_sid, H5P_DEFAULT, buffer) < 0) {
- HDfprintf(stderr, "Failed H5Dwrite\n");
+ fprintf(stderr, "Failed H5Dwrite\n");
HDfree(buffer);
return -1;
}
@@ -402,7 +402,7 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
/* Uncork the dataset's metadata from the cache, if SWMR is enabled */
if (opts->use_swmr) {
if (H5Oenable_mdc_flushes(dsid) < 0) {
- HDfprintf(stderr, "H5Oenable_mdc_flushes failed\n");
+ fprintf(stderr, "H5Oenable_mdc_flushes failed\n");
HDfree(buffer);
return -1;
}
@@ -410,7 +410,7 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
/* flush file to make the just written plane available. */
if (H5Dflush(dsid) < 0) {
- HDfprintf(stderr, "Failed to H5Fflush file\n");
+ fprintf(stderr, "Failed to H5Fflush file\n");
HDfree(buffer);
return -1;
}
@@ -419,15 +419,15 @@ write_uc_file(hbool_t tosend, hid_t file_id, options_t *opts)
/* Done writing. Free/Close all resources including data file */
HDfree(buffer);
if (H5Dclose(dsid) < 0) {
- HDfprintf(stderr, "Failed to close datasete\n");
+ fprintf(stderr, "Failed to close datasete\n");
return -1;
}
if (H5Sclose(m_sid) < 0) {
- HDfprintf(stderr, "Failed to close memory space\n");
+ fprintf(stderr, "Failed to close memory space\n");
return -1;
}
if (H5Sclose(f_sid) < 0) {
- HDfprintf(stderr, "Failed to close file space\n");
+ fprintf(stderr, "Failed to close file space\n");
return -1;
}
@@ -466,19 +466,19 @@ read_uc_file(hbool_t towait, options_t *opts)
/* Before reading, wait for the message that H5Fopen is complete--file lock is released */
if (towait && h5_wait_message(WRITER_MESSAGE) < 0) {
- HDfprintf(stderr, "Cannot find writer message file...failed\n");
+ fprintf(stderr, "Cannot find writer message file...failed\n");
return -1;
}
- HDfprintf(stderr, "Opening to read %s\n", opts->filename);
+ fprintf(stderr, "Opening to read %s\n", opts->filename);
if ((fid = H5Fopen(opts->filename, H5F_ACC_RDONLY | (opts->use_swmr ? H5F_ACC_SWMR_READ : 0),
opts->fapl_id)) < 0) {
- HDfprintf(stderr, "H5Fopen failed\n");
+ fprintf(stderr, "H5Fopen failed\n");
return -1;
}
if ((dsid = H5Dopen2(fid, opts->progname, H5P_DEFAULT)) < 0) {
- HDfprintf(stderr, "H5Dopen2 failed\n");
+ fprintf(stderr, "H5Dopen2 failed\n");
return -1;
}
@@ -487,7 +487,7 @@ read_uc_file(hbool_t towait, options_t *opts)
memdims[1] = opts->dims[1];
memdims[2] = opts->dims[2];
if ((buffer = (UC_CTYPE *)HDmalloc((size_t)memdims[1] * (size_t)memdims[2] * sizeof(UC_CTYPE))) == NULL) {
- HDfprintf(stderr, "malloc: failed\n");
+ fprintf(stderr, "malloc: failed\n");
return -1;
}
@@ -498,30 +498,30 @@ read_uc_file(hbool_t towait, options_t *opts)
f_sid = H5Dget_space(dsid); /* Get filespace handle first. */
rank = H5Sget_simple_extent_ndims(f_sid);
if (rank != UC_RANK) {
- HDfprintf(stderr, "rank(%d) of dataset does not match\n", rank);
+ fprintf(stderr, "rank(%d) of dataset does not match\n", rank);
HDfree(buffer);
return -1;
}
if (H5Sget_simple_extent_dims(f_sid, dims, NULL) < 0) {
- HDfprintf(stderr, "H5Sget_simple_extent_dims got error\n");
+ fprintf(stderr, "H5Sget_simple_extent_dims got error\n");
HDfree(buffer);
return -1;
}
- HDprintf("dataset rank %d, dimensions %llu x %llu x %llu\n", rank, (unsigned long long)(dims[0]),
- (unsigned long long)(dims[1]), (unsigned long long)(dims[2]));
+ printf("dataset rank %d, dimensions %llu x %llu x %llu\n", rank, (unsigned long long)(dims[0]),
+ (unsigned long long)(dims[1]), (unsigned long long)(dims[2]));
/* verify that file space dims are as expected and are consistent with memory space dims */
if (dims[1] != memdims[1] || dims[2] != memdims[2]) {
- HDfprintf(stderr, "dataset dimension is not as expected. Got dims=(%llu,%llu,%llu)\n",
- (unsigned long long)dims[0], (unsigned long long)dims[1], (unsigned long long)dims[2]);
- HDfprintf(stderr, "But memdims=(%llu,%llu,%llu)\n", (unsigned long long)memdims[0],
- (unsigned long long)memdims[1], (unsigned long long)memdims[2]);
+ fprintf(stderr, "dataset dimension is not as expected. Got dims=(%llu,%llu,%llu)\n",
+ (unsigned long long)dims[0], (unsigned long long)dims[1], (unsigned long long)dims[2]);
+ fprintf(stderr, "But memdims=(%llu,%llu,%llu)\n", (unsigned long long)memdims[0],
+ (unsigned long long)memdims[1], (unsigned long long)memdims[2]);
HDfree(buffer);
return -1;
}
/* Setup mem-space for buffer */
if ((m_sid = H5Screate_simple(rank, memdims, NULL)) < 0) {
- HDfprintf(stderr, "H5Screate_simple for memory failed\n");
+ fprintf(stderr, "H5Screate_simple for memory failed\n");
HDfree(buffer);
return -1;
}
@@ -537,24 +537,24 @@ read_uc_file(hbool_t towait, options_t *opts)
if (nplanes_seen < dims[0]) {
if (loops_waiting_for_plane) {
/* end the previous message */
- HDprintf("\n");
+ printf("\n");
loops_waiting_for_plane = 0;
}
- HDprintf("reading planes %llu to %llu\n", (unsigned long long)nplanes_seen,
- (unsigned long long)dims[0]);
+ printf("reading planes %llu to %llu\n", (unsigned long long)nplanes_seen,
+ (unsigned long long)dims[0]);
}
else {
if (loops_waiting_for_plane) {
- HDprintf(".");
+ printf(".");
if (loops_waiting_for_plane >= 30) {
- HDfprintf(stderr, "waited too long for new plane, quit.\n");
+ fprintf(stderr, "waited too long for new plane, quit.\n");
HDfree(buffer);
return -1;
}
}
else {
/* print mesg only the first time; dots still no new plane */
- HDprintf("waiting for new planes to read ");
+ printf("waiting for new planes to read ");
}
loops_waiting_for_plane++;
/* pause for a second */
@@ -565,7 +565,7 @@ read_uc_file(hbool_t towait, options_t *opts)
/* read planes between last old nplanes and current extent */
/* Get the dataset's dataspace */
if ((f_sid = H5Dget_space(dsid)) < 0) {
- HDfprintf(stderr, "H5Dget_space failed\n");
+ fprintf(stderr, "H5Dget_space failed\n");
HDfree(buffer);
return -1;
}
@@ -573,14 +573,14 @@ read_uc_file(hbool_t towait, options_t *opts)
start[0] = nplane;
/* Choose the next plane to read */
if (H5Sselect_hyperslab(f_sid, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
- HDfprintf(stderr, "H5Sselect_hyperslab failed\n");
+ fprintf(stderr, "H5Sselect_hyperslab failed\n");
HDfree(buffer);
return -1;
}
/* Read the plane from the dataset */
if (H5Dread(dsid, UC_DATATYPE, m_sid, f_sid, H5P_DEFAULT, buffer) < 0) {
- HDfprintf(stderr, "H5Dread failed\n");
+ fprintf(stderr, "H5Dread failed\n");
HDfree(buffer);
return -1;
}
@@ -592,17 +592,17 @@ read_uc_file(hbool_t towait, options_t *opts)
for (k = 0; k < dims[2]; k++) {
if ((hsize_t)*bufptr++ != nplane) {
if (++nerrs < ErrorReportMax) {
- HDfprintf(stderr, "found error %llu plane(%llu,%llu), expected %llu, got %d\n",
- (unsigned long long)nplane, (unsigned long long)j,
- (unsigned long long)k, (unsigned long long)nplane, (int)*(bufptr - 1));
+ fprintf(stderr, "found error %llu plane(%llu,%llu), expected %llu, got %d\n",
+ (unsigned long long)nplane, (unsigned long long)j, (unsigned long long)k,
+ (unsigned long long)nplane, (int)*(bufptr - 1));
} /* end if should print error */
} /* end if value mismatch */
} /* end for plane second dimension */
} /* end for plane first dimension */
if (nerrs) {
nreadererr++;
- HDfprintf(stderr, "found %d unexpected values in plane %llu\n", nerrs,
- (unsigned long long)nplane);
+ fprintf(stderr, "found %d unexpected values in plane %llu\n", nerrs,
+ (unsigned long long)nplane);
}
} /* end for each plane added since last read */
@@ -612,14 +612,14 @@ read_uc_file(hbool_t towait, options_t *opts)
H5Drefresh(dsid);
f_sid = H5Dget_space(dsid); /* Get filespace handle first. */
if (H5Sget_simple_extent_dims(f_sid, dims, NULL) < 0) {
- HDfprintf(stderr, "H5Sget_simple_extent_dims got error\n");
+ fprintf(stderr, "H5Sget_simple_extent_dims got error\n");
HDfree(buffer);
return -1;
}
} /* end while (expecting more planes to read) */
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "H5Fclose failed\n");
+ fprintf(stderr, "H5Fclose failed\n");
HDfree(buffer);
return -1;
}
diff --git a/test/use_disable_mdc_flushes.c b/test/use_disable_mdc_flushes.c
index 04319ab..6d4a051 100644
--- a/test/use_disable_mdc_flushes.c
+++ b/test/use_disable_mdc_flushes.c
@@ -70,15 +70,15 @@ static int setup_parameters(int argc, char *const argv[]);
static void
usage(const char *prog)
{
- HDfprintf(stderr, "usage: %s [OPTIONS]\n", prog);
- HDfprintf(stderr, " OPTIONS\n");
- HDfprintf(stderr, " -h Print a usage message and exit\n");
- HDfprintf(stderr, " -f FN Test file name [default: %s.h5]\n", prog);
- HDfprintf(stderr, " -n N Number of planes to write. [default: 1000]\n");
- HDfprintf(stderr, " -s N Use SWMR mode (0: no, non-0: yes) default is yes\n");
- HDfprintf(stderr, " -z N Chunk size [default: %d]\n", Chunksize_DFT);
- HDfprintf(stderr, " -y N Number of planes per chunk [default: 1]\n");
- HDfprintf(stderr, "\n");
+ fprintf(stderr, "usage: %s [OPTIONS]\n", prog);
+ fprintf(stderr, " OPTIONS\n");
+ fprintf(stderr, " -h Print a usage message and exit\n");
+ fprintf(stderr, " -f FN Test file name [default: %s.h5]\n", prog);
+ fprintf(stderr, " -n N Number of planes to write. [default: 1000]\n");
+ fprintf(stderr, " -s N Use SWMR mode (0: no, non-0: yes) default is yes\n");
+ fprintf(stderr, " -z N Chunk size [default: %d]\n", Chunksize_DFT);
+ fprintf(stderr, " -y N Number of planes per chunk [default: 1]\n");
+ fprintf(stderr, "\n");
} /* usage() */
/*
@@ -109,39 +109,39 @@ parse_option(int argc, char *const argv[])
break;
case 'n': /* number of planes to write/read */
if ((nplanes_g = (hsize_t)HDatoi(optarg)) <= 0) {
- HDfprintf(stderr, "bad number of planes %s, must be a positive integer\n", optarg);
+ fprintf(stderr, "bad number of planes %s, must be a positive integer\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};
break;
case 's': /* use swmr file open mode */
if ((use_swmr_g = HDatoi(optarg)) < 0) {
- HDfprintf(stderr, "swmr value should be 0(no) or 1(yes)\n");
+ fprintf(stderr, "swmr value should be 0(no) or 1(yes)\n");
usage(progname_g);
Hgoto_error(-1);
};
break;
case 'y': /* Number of planes per chunk */
if ((chunkplanes_g = HDatoi(optarg)) <= 0) {
- HDfprintf(stderr, "bad number of planes per chunk %s, must be a positive integer\n",
- optarg);
+ fprintf(stderr, "bad number of planes per chunk %s, must be a positive integer\n",
+ optarg);
usage(progname_g);
Hgoto_error(-1);
};
break;
case 'z': /* size of chunk=(z,z) */
if ((chunksize_g = HDatoi(optarg)) <= 0) {
- HDfprintf(stderr, "bad chunksize %s, must be a positive integer\n", optarg);
+ fprintf(stderr, "bad chunksize %s, must be a positive integer\n", optarg);
usage(progname_g);
Hgoto_error(-1);
};
break;
case '?':
- HDfprintf(stderr, "getopt returned '%c'.\n", c);
+ fprintf(stderr, "getopt returned '%c'.\n", c);
Hgoto_error(-1);
default:
- HDfprintf(stderr, "getopt returned unexpected value.\n");
- HDfprintf(stderr, "Unexpected value is %d\n", c);
+ fprintf(stderr, "getopt returned unexpected value.\n");
+ fprintf(stderr, "Unexpected value is %d\n", c);
Hgoto_error(-1);
}
}
@@ -150,7 +150,7 @@ parse_option(int argc, char *const argv[])
if (!filename_g) {
/* default data file name is <progname>.h5 */
if ((filename_g = (char *)HDmalloc(HDstrlen(progname_g) + 4)) == NULL) {
- HDfprintf(stderr, "malloc: failed\n");
+ fprintf(stderr, "malloc: failed\n");
Hgoto_error(-1);
};
HDstrcpy(filename_g, progname_g);
@@ -166,15 +166,15 @@ done:
static void
show_parameters(void)
{
- HDprintf("===Parameters used:===\n");
- HDprintf("chunk dims=(%llu, %llu, %llu)\n", (unsigned long long)chunkdims_g[0],
- (unsigned long long)chunkdims_g[1], (unsigned long long)chunkdims_g[2]);
- HDprintf("dataset max dims=(%llu, %llu, %llu)\n", (unsigned long long)max_dims_g[0],
- (unsigned long long)max_dims_g[1], (unsigned long long)max_dims_g[2]);
- HDprintf("number of planes to write=%llu\n", (unsigned long long)nplanes_g);
- HDprintf("using SWMR mode=%s\n", use_swmr_g ? "yes(1)" : "no(0)");
- HDprintf("data filename=%s\n", filename_g);
- HDprintf("===Parameters shown===\n");
+ printf("===Parameters used:===\n");
+ printf("chunk dims=(%llu, %llu, %llu)\n", (unsigned long long)chunkdims_g[0],
+ (unsigned long long)chunkdims_g[1], (unsigned long long)chunkdims_g[2]);
+ printf("dataset max dims=(%llu, %llu, %llu)\n", (unsigned long long)max_dims_g[0],
+ (unsigned long long)max_dims_g[1], (unsigned long long)max_dims_g[2]);
+ printf("number of planes to write=%llu\n", (unsigned long long)nplanes_g);
+ printf("using SWMR mode=%s\n", use_swmr_g ? "yes(1)" : "no(0)");
+ printf("data filename=%s\n", filename_g);
+ printf("===Parameters shown===\n");
} /* show_parameters() */
/*
@@ -263,7 +263,7 @@ create_file(void)
if (H5D__layout_idx_type_test(dsid, &idx_type) < 0)
return -1;
if (idx_type == H5D_CHUNK_IDX_BTREE) {
- HDfprintf(stderr, "ERROR: Chunk index is version 1 B-tree: aborting.\n");
+ fprintf(stderr, "ERROR: Chunk index is version 1 B-tree: aborting.\n");
return -1;
}
@@ -320,51 +320,51 @@ write_file(void)
if (H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0)
return -1;
if ((fid = H5Fopen(name, H5F_ACC_RDWR | (use_swmr_g ? H5F_ACC_SWMR_WRITE : 0), fapl)) < 0) {
- HDfprintf(stderr, "H5Fopen failed\n");
+ fprintf(stderr, "H5Fopen failed\n");
return -1;
}
/* Open the dataset of the program name */
if ((dsid = H5Dopen2(fid, progname_g, H5P_DEFAULT)) < 0) {
- HDfprintf(stderr, "H5Dopen2 failed\n");
+ fprintf(stderr, "H5Dopen2 failed\n");
return -1;
}
/* Disabled mdc flushed for the dataset */
if (H5Odisable_mdc_flushes(dsid) < 0) {
- HDfprintf(stderr, "H5Odisable_mdc_flushes failed\n");
+ fprintf(stderr, "H5Odisable_mdc_flushes failed\n");
return -1;
}
/* Get mdc disabled status of the dataset */
if (H5Oare_mdc_flushes_disabled(dsid, &disabled) < 0) {
- HDfprintf(stderr, "H5Oare_mdc_flushes_disabled failed\n");
+ fprintf(stderr, "H5Oare_mdc_flushes_disabled failed\n");
return -1;
}
else if (disabled)
- HDprintf("Dataset has disabled mdc flushes.\n");
+ printf("Dataset has disabled mdc flushes.\n");
else
- HDprintf("Dataset should have disabled its mdc flushes.\n");
+ printf("Dataset should have disabled its mdc flushes.\n");
/* Find chunksize used */
if ((dcpl = H5Dget_create_plist(dsid)) < 0) {
- HDfprintf(stderr, "H5Dget_create_plist failed\n");
+ fprintf(stderr, "H5Dget_create_plist failed\n");
return -1;
}
if (H5D_CHUNKED != H5Pget_layout(dcpl)) {
- HDfprintf(stderr, "storage layout is not chunked\n");
+ fprintf(stderr, "storage layout is not chunked\n");
return -1;
}
if ((rank = H5Pget_chunk(dcpl, 3, chunk_dims)) != 3) {
- HDfprintf(stderr, "storage rank is not 3\n");
+ fprintf(stderr, "storage rank is not 3\n");
return -1;
}
/* verify chunk_dims against set parameters */
if (chunk_dims[0] != chunkdims_g[0] || chunk_dims[1] != cz || chunk_dims[2] != cz) {
- HDfprintf(stderr, "chunk size is not as expected. Got dims=(%llu,%llu,%llu)\n",
- (unsigned long long)chunk_dims[0], (unsigned long long)chunk_dims[1],
- (unsigned long long)chunk_dims[2]);
+ fprintf(stderr, "chunk size is not as expected. Got dims=(%llu,%llu,%llu)\n",
+ (unsigned long long)chunk_dims[0], (unsigned long long)chunk_dims[1],
+ (unsigned long long)chunk_dims[2]);
return -1;
}
@@ -373,7 +373,7 @@ write_file(void)
memdims[1] = dims_g[1];
memdims[2] = dims_g[2];
if ((buffer = (UC_CTYPE *)HDmalloc((size_t)memdims[1] * (size_t)memdims[2] * sizeof(UC_CTYPE))) == NULL) {
- HDfprintf(stderr, "malloc: failed\n");
+ fprintf(stderr, "malloc: failed\n");
return -1;
};
@@ -383,25 +383,25 @@ write_file(void)
f_sid = H5Dget_space(dsid); /* Get filespace handle first. */
rank = H5Sget_simple_extent_ndims(f_sid);
if (rank != UC_RANK) {
- HDfprintf(stderr, "rank(%d) of dataset does not match\n", rank);
+ fprintf(stderr, "rank(%d) of dataset does not match\n", rank);
return -1;
}
if (H5Sget_simple_extent_dims(f_sid, dims, NULL) < 0) {
- HDfprintf(stderr, "H5Sget_simple_extent_dims got error\n");
+ fprintf(stderr, "H5Sget_simple_extent_dims got error\n");
return -1;
}
- HDprintf("dataset rank %d, dimensions %llu x %llu x %llu\n", rank, (unsigned long long)(dims[0]),
- (unsigned long long)(dims[1]), (unsigned long long)(dims[2]));
+ printf("dataset rank %d, dimensions %llu x %llu x %llu\n", rank, (unsigned long long)(dims[0]),
+ (unsigned long long)(dims[1]), (unsigned long long)(dims[2]));
/* verify that file space dims are as expected and are consistent with memory space dims */
if (dims[0] != 0 || dims[1] != memdims[1] || dims[2] != memdims[2]) {
- HDfprintf(stderr, "dataset is not empty. Got dims=(%llu,%llu,%llu)\n", (unsigned long long)dims[0],
- (unsigned long long)dims[1], (unsigned long long)dims[2]);
+ fprintf(stderr, "dataset is not empty. Got dims=(%llu,%llu,%llu)\n", (unsigned long long)dims[0],
+ (unsigned long long)dims[1], (unsigned long long)dims[2]);
return -1;
}
/* setup mem-space for buffer */
if ((m_sid = H5Screate_simple(rank, memdims, NULL)) < 0) {
- HDfprintf(stderr, "H5Screate_simple for memory failed\n");
+ fprintf(stderr, "H5Screate_simple for memory failed\n");
return -1;
};
@@ -415,7 +415,7 @@ write_file(void)
for (j = 0; j < dims[1]; j++)
for (k = 0; k < dims[2]; k++) {
if (i > SHRT_MAX) {
- HDfprintf(stderr, "rank(%d) of dataset overflow\n", rank);
+ fprintf(stderr, "rank(%d) of dataset overflow\n", rank);
return -1;
}
*bufptr++ = (short)i;
@@ -424,40 +424,40 @@ write_file(void)
/* extend the dataset by one for new plane */
dims[0] = i + 1;
if (H5Dset_extent(dsid, dims) < 0) {
- HDfprintf(stderr, "H5Dset_extent failed\n");
+ fprintf(stderr, "H5Dset_extent failed\n");
return -1;
}
/* Get the dataset's dataspace */
if ((f_sid = H5Dget_space(dsid)) < 0) {
- HDfprintf(stderr, "H5Dset_extent failed\n");
+ fprintf(stderr, "H5Dset_extent failed\n");
return -1;
}
start[0] = i;
/* Choose the next plane to write */
if (H5Sselect_hyperslab(f_sid, H5S_SELECT_SET, start, NULL, count, NULL) < 0) {
- HDfprintf(stderr, "Failed H5Sselect_hyperslab\n");
+ fprintf(stderr, "Failed H5Sselect_hyperslab\n");
return -1;
}
/* Write plane to the dataset */
if (H5Dwrite(dsid, UC_DATATYPE, m_sid, f_sid, H5P_DEFAULT, buffer) < 0) {
- HDfprintf(stderr, "Failed H5Dwrite\n");
+ fprintf(stderr, "Failed H5Dwrite\n");
return -1;
}
/* Flush the dataset for every "chunkplanes_g" planes */
if (!((i + 1) % (hsize_t)chunkplanes_g)) {
if (H5Dflush(dsid) < 0) {
- HDfprintf(stderr, "Failed to H5Dflush dataset\n");
+ fprintf(stderr, "Failed to H5Dflush dataset\n");
return -1;
}
}
}
if (H5Dflush(dsid) < 0) {
- HDfprintf(stderr, "Failed to H5Dflush dataset\n");
+ fprintf(stderr, "Failed to H5Dflush dataset\n");
return -1;
}
@@ -465,7 +465,7 @@ write_file(void)
/* Closing the dataset later will enable mdc flushes automatically if this is not done */
if (disabled)
if (H5Oenable_mdc_flushes(dsid) < 0) {
- HDfprintf(stderr, "Failed to H5Oenable_mdc_flushes\n");
+ fprintf(stderr, "Failed to H5Oenable_mdc_flushes\n");
return -1;
}
@@ -473,23 +473,23 @@ write_file(void)
HDfree(buffer);
if (H5Dclose(dsid) < 0) {
- HDfprintf(stderr, "Failed to close datasete\n");
+ fprintf(stderr, "Failed to close datasete\n");
return -1;
}
if (H5Sclose(m_sid) < 0) {
- HDfprintf(stderr, "Failed to close memory space\n");
+ fprintf(stderr, "Failed to close memory space\n");
return -1;
}
if (H5Sclose(f_sid) < 0) {
- HDfprintf(stderr, "Failed to close file space\n");
+ fprintf(stderr, "Failed to close file space\n");
return -1;
}
if (H5Pclose(fapl) < 0) {
- HDfprintf(stderr, "Failed to property list\n");
+ fprintf(stderr, "Failed to property list\n");
return -1;
}
if (H5Fclose(fid) < 0) {
- HDfprintf(stderr, "Failed to close file id\n");
+ fprintf(stderr, "Failed to close file id\n");
return -1;
}
@@ -513,26 +513,26 @@ main(int argc, char *argv[])
/* ============*/
/* Create file */
/* ============*/
- HDprintf("Creating skeleton data file for testing H5Odisable_mdc_flushes()...\n");
+ printf("Creating skeleton data file for testing H5Odisable_mdc_flushes()...\n");
if (create_file() < 0) {
- HDfprintf(stderr, "***encounter error\n");
+ fprintf(stderr, "***encounter error\n");
Hgoto_error(1);
} /* end if */
else
- HDprintf("File created.\n");
+ printf("File created.\n");
- HDprintf("writing to the file\n");
+ printf("writing to the file\n");
if (write_file() < 0) {
- HDfprintf(stderr, "write_file encountered error\n");
+ fprintf(stderr, "write_file encountered error\n");
Hgoto_error(1);
}
done:
/* Print result and exit */
if (ret_value != 0)
- HDprintf("Error(s) encountered\n");
+ printf("Error(s) encountered\n");
else
- HDprintf("All passed\n");
+ printf("All passed\n");
return (ret_value);
}
@@ -542,7 +542,7 @@ done:
int
main(void)
{
- HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ fprintf(stderr, "Non-POSIX platform. Skipping.\n");
HDexit(EXIT_SUCCESS);
} /* end main() */
diff --git a/test/vds.c b/test/vds.c
index c006673..e678e88 100644
--- a/test/vds.c
+++ b/test/vds.c
@@ -55,7 +55,7 @@ static const char *FILENAME[] = {"vds_virt_0", "vds_virt_1", "vds_src_0", "vds_
/* Print config directly to output */
#define PRINT_CONFIG(...) \
do { \
- HDprintf("Config: " __VA_ARGS__); \
+ printf("Config: " __VA_ARGS__); \
HDputs(""); \
} while (0)
@@ -80,11 +80,11 @@ char vds_test_str_g[128] = "";
/* Replacement for TEST_ERROR for non-verbose output */
#define TEST_ERROR_SUPPRESSED \
do { \
- HDprintf("Failed config: %s\nFailed test: %s\n", vds_config_str_g, vds_test_str_g); \
+ printf("Failed config: %s\nFailed test: %s\n", vds_config_str_g, vds_test_str_g); \
TEST_ERROR; \
} while (0)
-/* Replacement for HDprintf for printing configuration for non-verbose output */
+/* Replacement for printf for printing configuration for non-verbose output */
#define PRINT_CONFIG(...) \
do { \
HDsnprintf(vds_config_str_g, sizeof(vds_config_str_g), __VA_ARGS__); \
@@ -426,9 +426,8 @@ test_api_get_ex_dcpl(test_api_config_t config, hid_t fapl, hid_t dcpl, hid_t *ex
TEST_ERROR;
if (config == TEST_API_REOPEN_FILE) {
if (ninfo.meta_size.obj.heap_size != exp_meta_size) {
- HDprintf("VDS metadata size: %llu Expected: %llu\n",
- (long long unsigned)ninfo.meta_size.obj.heap_size,
- (long long unsigned)exp_meta_size);
+ printf("VDS metadata size: %llu Expected: %llu\n",
+ (long long unsigned)ninfo.meta_size.obj.heap_size, (long long unsigned)exp_meta_size);
TEST_ERROR;
}
}
@@ -12437,13 +12436,13 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All virtual dataset tests passed.\n");
+ printf("All virtual dataset tests passed.\n");
h5_cleanup(FILENAME, fapl);
return EXIT_SUCCESS;
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d VIRTUAL DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d VIRTUAL DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
return EXIT_FAILURE;
} /* end main() */
diff --git a/test/vds_env.c b/test/vds_env.c
index bb95d03..ff3cea6 100644
--- a/test/vds_env.c
+++ b/test/vds_env.c
@@ -383,9 +383,9 @@ main(void)
HDputs(msg);
for (bit_config = 0; bit_config < TEST_IO_NTESTS; bit_config++) {
- HDprintf("Config: %s%s%s\n", bit_config & TEST_IO_CLOSE_SRC ? "closed source dataset, " : "",
- bit_config & TEST_IO_DIFFERENT_FILE ? "different source file" : "same source file",
- bit_config & TEST_IO_REOPEN_VIRT ? ", reopen virtual file" : "");
+ printf("Config: %s%s%s\n", bit_config & TEST_IO_CLOSE_SRC ? "closed source dataset, " : "",
+ bit_config & TEST_IO_DIFFERENT_FILE ? "different source file" : "same source file",
+ bit_config & TEST_IO_REOPEN_VIRT ? ", reopen virtual file" : "");
nerrors += test_vds_prefix_second(bit_config, fapl);
}
@@ -400,13 +400,13 @@ main(void)
if (nerrors)
goto error;
- HDprintf("All virtual dataset tests passed.\n");
+ printf("All virtual dataset tests passed.\n");
h5_cleanup(FILENAME, fapl);
return EXIT_SUCCESS;
error:
nerrors = MAX(1, nerrors);
- HDprintf("***** %d VIRTUAL DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
+ printf("***** %d VIRTUAL DATASET TEST%s FAILED! *****\n", nerrors, 1 == nerrors ? "" : "S");
return EXIT_FAILURE;
} /* end main() */
diff --git a/test/vds_swmr_reader.c b/test/vds_swmr_reader.c
index 5752d02..109af6d 100644
--- a/test/vds_swmr_reader.c
+++ b/test/vds_swmr_reader.c
@@ -119,7 +119,7 @@ main(void)
HDfree(buffer);
- HDfprintf(stderr, "SWMR reader exited successfully\n");
+ fprintf(stderr, "SWMR reader exited successfully\n");
return EXIT_SUCCESS;
error:
@@ -141,7 +141,7 @@ error:
HDfree(buffer);
- HDfprintf(stderr, "ERROR: SWMR reader exited with errors\n");
+ fprintf(stderr, "ERROR: SWMR reader exited with errors\n");
return EXIT_FAILURE;
} /* end main */
diff --git a/test/vds_swmr_writer.c b/test/vds_swmr_writer.c
index 33f2a86..2617497 100644
--- a/test/vds_swmr_writer.c
+++ b/test/vds_swmr_writer.c
@@ -43,7 +43,7 @@ main(int argc, char *argv[])
* This is an integer index into the FILE_NAMES array.
*/
if (argc != 2) {
- HDfprintf(stderr, "ERROR: Must pass the source file number on the command line.\n");
+ fprintf(stderr, "ERROR: Must pass the source file number on the command line.\n");
return EXIT_FAILURE;
}
@@ -134,7 +134,7 @@ main(int argc, char *argv[])
TEST_ERROR;
HDfree(buffer);
- HDfprintf(stderr, "SWMR writer exited successfully\n");
+ fprintf(stderr, "SWMR writer exited successfully\n");
return EXIT_SUCCESS;
error:
@@ -156,7 +156,7 @@ error:
}
H5E_END_TRY
- HDfprintf(stderr, "ERROR: SWMR writer exited with errors\n");
+ fprintf(stderr, "ERROR: SWMR writer exited with errors\n");
return EXIT_FAILURE;
} /* end main */
diff --git a/test/vfd.c b/test/vfd.c
index adacd5e..e28a7c1 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -81,9 +81,9 @@ static int __k;
do { \
for (__k = 0; __k < (size); __k++) { \
if (__k % 16 == 0) { \
- HDprintf("\n%04x", __k); \
+ printf("\n%04x", __k); \
} \
- HDprintf((__k % 4 == 0) ? " %02X" : " %02X", (unsigned char)(buf)[__k]); \
+ printf((__k % 4 == 0) ? " %02X" : " %02X", (unsigned char)(buf)[__k]); \
} \
} while (0) /* end #define HEXPRINT() */
@@ -532,8 +532,8 @@ test_core(void)
for (j = 0; j < CORE_DSET_DIM2; j++)
if (*pr++ != *pw++) {
H5_FAILED();
- HDprintf(" Read different values than written in data set.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written in data set.\n");
+ printf(" At index %d,%d\n", i, j);
TEST_ERROR;
} /* end if */
@@ -600,8 +600,8 @@ test_core(void)
for (j = 0; j < CORE_DSET_DIM2; j++)
if (*pw++ != *pr++) {
H5_FAILED();
- HDprintf(" Read different values than written in data set.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written in data set.\n");
+ printf(" At index %d,%d\n", i, j);
TEST_ERROR;
} /* end if */
@@ -753,7 +753,7 @@ test_direct(void)
if (file < 0) {
H5Pclose(fapl);
SKIPPED();
- HDprintf(" Probably the file system doesn't support Direct I/O\n");
+ printf(" Probably the file system doesn't support Direct I/O\n");
return 0;
}
@@ -833,8 +833,8 @@ test_direct(void)
for (j = 0; j < DSET1_DIM2; j++)
if (*p1++ != *p2++) {
H5_FAILED();
- HDprintf(" Read different values than written in data set 1.\n");
- HDprintf(" At index %d,%d\n", i, j);
+ printf(" Read different values than written in data set 1.\n");
+ printf(" At index %d,%d\n", i, j);
TEST_ERROR;
} /* end if */
@@ -866,8 +866,8 @@ test_direct(void)
for (i = 0; i < DSET2_DIM; i++)
if (wdata2[i] != rdata2[i]) {
H5_FAILED();
- HDprintf(" Read different values than written in data set 2.\n");
- HDprintf(" At index %d\n", i);
+ printf(" Read different values than written in data set 2.\n");
+ printf(" At index %d\n", i);
TEST_ERROR;
} /* end if */
@@ -2386,7 +2386,7 @@ error:
do { \
H5_FAILED(); \
AT(); \
- HDfprintf(stderr, mesg); \
+ fprintf(stderr, mesg); \
H5Eprint2(H5E_DEFAULT, stderr); \
HDfflush(stderr); \
ret_value = -1; \
@@ -2443,7 +2443,7 @@ compare_splitter_config_info(hid_t fapl_id, H5FD_splitter_vfd_config_t *info)
}
if ((HDstrlen(info->wo_path) != HDstrlen(fetched_info->wo_path)) ||
HDstrncmp(info->wo_path, fetched_info->wo_path, H5FD_SPLITTER_PATH_MAX) != 0) {
- HDfprintf(stderr, "MISMATCH: '%s' :: '%s'\n", info->wo_path, fetched_info->wo_path);
+ fprintf(stderr, "MISMATCH: '%s' :: '%s'\n", info->wo_path, fetched_info->wo_path);
HEXPRINT(H5FD_SPLITTER_PATH_MAX, info->wo_path);
HEXPRINT(H5FD_SPLITTER_PATH_MAX, fetched_info->wo_path);
SPLITTER_TEST_FAULT("Write-Only file path mismatch\n");
@@ -3417,7 +3417,7 @@ test_splitter(void)
if (!driver_is_splitter_compatible(child_fapl_id)) {
SKIPPED();
- HDprintf(" given driver is not Splitter W/O compatible.\n");
+ printf(" given driver is not Splitter W/O compatible.\n");
return 0;
}
@@ -3502,7 +3502,7 @@ setup_rand(void)
seed = predefined_seed;
- HDfprintf(stdout, "\n%s: predefined_seed = %d.\n\n", __func__, seed);
+ fprintf(stdout, "\n%s: predefined_seed = %d.\n\n", __func__, seed);
HDfflush(stdout);
HDsrand(seed);
@@ -3511,14 +3511,14 @@ setup_rand(void)
if (HDgettimeofday(&tv, NULL) != 0) {
- HDfprintf(stdout, "\n%s: gettimeofday() failed -- srand() not called.\n\n", __func__);
+ fprintf(stdout, "\n%s: gettimeofday() failed -- srand() not called.\n\n", __func__);
HDfflush(stdout);
}
else {
seed = (unsigned)tv.tv_usec;
- HDfprintf(stdout, "\n%s: seed = %d.\n\n", __func__, seed);
+ fprintf(stdout, "\n%s: seed = %d.\n\n", __func__, seed);
HDfflush(stdout);
HDsrand(seed);
@@ -4081,7 +4081,7 @@ test_vector_io__setup_v(uint32_t count, H5FD_mem_t types[], haddr_t addrs[], siz
if ((NULL == temp_buf) || (NULL == read_bufs[i])) {
- HDfprintf(stderr, "%s: can't malloc read / write bufs.\n", __func__);
+ fprintf(stderr, "%s: can't malloc read / write bufs.\n", __func__);
result = FALSE;
break;
}
@@ -4218,7 +4218,7 @@ test_vector_io__setup_fixed_size_v(uint32_t count, H5FD_mem_t types[], haddr_t a
if ((NULL == temp_buf) || (NULL == read_bufs[i])) {
- HDfprintf(stderr, "%s: can't malloc read / write bufs.\n", __func__);
+ fprintf(stderr, "%s: can't malloc read / write bufs.\n", __func__);
result = FALSE;
break;
}
@@ -4305,7 +4305,7 @@ test_vector_io__read_v_indiv(H5FD_t *lf, uint32_t count, H5FD_mem_t types[], had
if (verbose) {
- HDfprintf(stdout, "%s: H5FDread() failed on entry %d.\n", __func__, i);
+ fprintf(stdout, "%s: H5FDread() failed on entry %d.\n", __func__, i);
}
result = FALSE;
break;
@@ -4356,7 +4356,7 @@ test_vector_io__write_v_indiv(H5FD_t *lf, uint32_t count, H5FD_mem_t types[], ha
if (verbose) {
- HDfprintf(stdout, "%s: HDwrite() failed on entry %d.\n", __func__, i);
+ fprintf(stdout, "%s: HDwrite() failed on entry %d.\n", __func__, i);
}
result = FALSE;
break;
@@ -4420,10 +4420,10 @@ test_vector_io__verify_v(uint32_t count, H5FD_mem_t types[], size_t sizes[], con
if (verbose) {
- HDfprintf(stdout, "\n\nread/write buf mismatch in vector/entry");
- HDfprintf(stdout, "\"%s\"/%u at offset %llu/%llu w/r = %c/%c type = %s\n\n", name,
- (unsigned)i, (long long unsigned)j, (long long unsigned)size, w_buf[j],
- r_buf[j], mem_type_names[type]);
+ fprintf(stdout, "\n\nread/write buf mismatch in vector/entry");
+ fprintf(stdout, "\"%s\"/%u at offset %llu/%llu w/r = %c/%c type = %s\n\n", name,
+ (unsigned)i, (long long unsigned)j, (long long unsigned)size, w_buf[j], r_buf[j],
+ mem_type_names[type]);
}
}
j++;
@@ -4467,7 +4467,7 @@ test_vector_io__dump_test_vectors(uint32_t count, H5FD_mem_t types[], haddr_t ad
const char *w_buf;
char *r_buf;
- HDfprintf(stdout, "\n\nDumping test vector \"%s\" of length %d\n\n", name, count);
+ fprintf(stdout, "\n\nDumping test vector \"%s\" of length %d\n\n", name, count);
for (i = 0; i < count; i++) {
@@ -4488,12 +4488,12 @@ test_vector_io__dump_test_vectors(uint32_t count, H5FD_mem_t types[], haddr_t ad
r_buf = NULL;
}
- HDfprintf(stdout, "%u: addr/len = %llu/%llu, type = %s, w_buf = \"%s\"\n", (unsigned)i,
- (long long unsigned)(addrs[i]), (long long unsigned)(size), mem_type_names[type], w_buf);
+ fprintf(stdout, "%u: addr/len = %llu/%llu, type = %s, w_buf = \"%s\"\n", (unsigned)i,
+ (long long unsigned)(addrs[i]), (long long unsigned)(size), mem_type_names[type], w_buf);
if (r_buf) {
- HDfprintf(stdout, " r_buf = \"%s\"\n", r_buf);
+ fprintf(stdout, " r_buf = \"%s\"\n", r_buf);
}
}
@@ -4609,7 +4609,7 @@ test_vector_io(const char *vfd_name)
}
else {
- HDfprintf(stdout, "un-supported VFD\n");
+ fprintf(stdout, "un-supported VFD\n");
TEST_ERROR;
}
@@ -5049,15 +5049,15 @@ test_selection_io_read_verify(H5FD_t *lf, H5FD_mem_t type, uint32_t count, hid_t
if (rbufs[i][j] != erbufs[i][j]) {
H5_FAILED();
AT();
- HDprintf("data read from file does not match expected values at mapping array location %d\n",
- i);
- HDprintf("expected data: \n");
+ printf("data read from file does not match expected values at mapping array location %d\n",
+ i);
+ printf("expected data: \n");
for (j = 0; j < SEL_IO_DIM0 * SEL_IO_DIM1; j++) {
printf("%6d", erbufs[i][j]);
if (!((j + 1) % SEL_IO_DIM1))
printf("\n");
}
- HDprintf("read data: \n");
+ printf("read data: \n");
for (j = 0; j < SEL_IO_DIM0 * SEL_IO_DIM1; j++) {
printf("%6d", rbufs[i][j]);
if (!((j + 1) % SEL_IO_DIM1))
@@ -5148,7 +5148,7 @@ test_selection_io(const char *vfd_name)
}
else {
- HDfprintf(stdout, "un-supported VFD\n");
+ fprintf(stdout, "un-supported VFD\n");
TEST_ERROR;
}
@@ -5953,13 +5953,13 @@ main(void)
*/
env_h5_drvr = HDgetenv(HDF5_DRIVER);
if (env_h5_drvr) {
- HDprintf(" -- SKIPPED VFD tests because %s is set -- \n", HDF5_DRIVER);
+ printf(" -- SKIPPED VFD tests because %s is set -- \n", HDF5_DRIVER);
HDexit(EXIT_SUCCESS);
}
h5_reset();
- HDprintf("Testing basic Virtual File Driver functionality.\n");
+ printf("Testing basic Virtual File Driver functionality.\n");
setup_rand();
@@ -5983,11 +5983,11 @@ main(void)
nerrors += test_ctl() < 0 ? 1 : 0;
if (nerrors) {
- HDprintf("***** %d Virtual File Driver TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d Virtual File Driver TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
return EXIT_FAILURE;
}
- HDprintf("All Virtual File Driver tests passed.\n");
+ printf("All Virtual File Driver tests passed.\n");
return EXIT_SUCCESS;
} /* end main() */
diff --git a/test/vfd_plugin.c b/test/vfd_plugin.c
index e722405..60148aa 100644
--- a/test/vfd_plugin.c
+++ b/test/vfd_plugin.c
@@ -429,7 +429,7 @@ main(void)
nerrors += (test_env_var() < 0) ? 1 : 0;
if (nerrors) {
- HDprintf("***** %d VFD plugin TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d VFD plugin TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
HDexit(EXIT_FAILURE);
}
diff --git a/test/vol.c b/test/vol.c
index 1690614..551abd1 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -579,7 +579,7 @@ fake_vol_info_to_str(const void *info, char **str)
/* Verify the info is correct before continuing */
if (val != INT_MAX) {
- HDprintf("The value of info (%d) is incorrect\n", val);
+ printf("The value of info (%d) is incorrect\n", val);
return FAIL;
}
@@ -2345,7 +2345,7 @@ test_get_vol_name(void)
/* Skip the connectors other than the native and pass_through connector */
if (HDstrcmp(conn_env_str, "native") && HDstrcmp(conn_env_str, "pass_through")) {
SKIPPED();
- HDprintf(" only test the native or internal pass_through connector\n");
+ printf(" only test the native or internal pass_through connector\n");
return SUCCEED;
}
@@ -2655,7 +2655,7 @@ main(void)
nerrors += test_query_optional() < 0 ? 1 : 0;
if (nerrors) {
- HDprintf("***** %d Virtual Object Layer TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d Virtual Object Layer TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
HDexit(EXIT_FAILURE);
}
diff --git a/test/vol_plugin.c b/test/vol_plugin.c
index 4b8d263..d3ff4fd 100644
--- a/test/vol_plugin.c
+++ b/test/vol_plugin.c
@@ -342,7 +342,7 @@ main(void)
nerrors += test_getters() < 0 ? 1 : 0;
if (nerrors) {
- HDprintf("***** %d VOL connector plugin TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
+ printf("***** %d VOL connector plugin TEST%s FAILED! *****\n", nerrors, nerrors > 1 ? "S" : "");
HDexit(EXIT_FAILURE);
}