summaryrefslogtreecommitdiffstats
path: root/test/cross_read.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 20:43:30 (GMT)
committerGitHub <noreply@github.com>2023-07-27 20:43:30 (GMT)
commit1e91d96fa02466ffe451319bdac1005f84dc7993 (patch)
tree4de04ef502c313dfd766497b20235188761146c0 /test/cross_read.c
parent95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff)
downloadhdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'test/cross_read.c')
-rw-r--r--test/cross_read.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/cross_read.c b/test/cross_read.c
index c1073cb..05ff7ca 100644
--- a/test/cross_read.c
+++ b/test/cross_read.c
@@ -90,7 +90,7 @@ check_data_i(const char *dsetname, hid_t fid)
for (i = 0; i < NY; i++)
data_in[NX][i] = -2;
/* Output */
- HDmemset(data_out, 0, (NX + 1) * NY * sizeof(long long));
+ memset(data_out, 0, (NX + 1) * NY * sizeof(long long));
/* Read data from hyperslab in the file into the hyperslab in
* memory and display.
@@ -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 */
@@ -164,7 +164,7 @@ check_data_f(const char *dsetname, hid_t fid)
for (i = 0; i < NY; i++)
data_in[NX][i] = -2.2;
/* Output */
- HDmemset(data_out, 0, (NX + 1) * NY * sizeof(double));
+ memset(data_out, 0, (NX + 1) * NY * sizeof(double));
/* Read data from hyperslab in the file into the hyperslab in
* memory and display.
@@ -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 */
@@ -364,11 +364,11 @@ main(void)
*/
if (h5_driver_is_default_vfd_compatible(H5P_DEFAULT, &driver_is_default_compatible) < 0) {
HDputs(" -- couldn't check if VFD is compatible with default VFD --");
- HDexit(EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
}
if (!driver_is_default_compatible) {
HDputs(" -- SKIPPED for incompatible VFD --");
- HDexit(EXIT_SUCCESS);
+ exit(EXIT_SUCCESS);
}
HDputs("\n");
@@ -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() */