summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c44
1 files changed, 22 insertions, 22 deletions
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);