summaryrefslogtreecommitdiffstats
path: root/test/dtypes.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 15:31:32 (GMT)
committerGitHub <noreply@github.com>2023-06-28 15:31:32 (GMT)
commit187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98 (patch)
treebaffa167d0796786241aef6b0ce76d4adec3b66e /test/dtypes.c
parent7a44581a84778a1346a2fd5b6cca7d9db905a321 (diff)
downloadhdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.zip
hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.gz
hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.bz2
Rename HD(f)printf() to (f)printf() (#3194)
Diffstat (limited to 'test/dtypes.c')
-rw-r--r--test/dtypes.c654
1 files changed, 327 insertions, 327 deletions
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;
}