summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2021-01-07 22:16:00 (GMT)
committerGitHub <noreply@github.com>2021-01-07 22:16:00 (GMT)
commite3b7d68826b5ce54518220d80dfb723f04c7b486 (patch)
tree043401e2221af79b80dcf11c3991674217f1a7ac /test
parent3ae45182b5f728fbe0fc25cf1fd8db5b1e014d4a (diff)
downloadhdf5-e3b7d68826b5ce54518220d80dfb723f04c7b486.zip
hdf5-e3b7d68826b5ce54518220d80dfb723f04c7b486.tar.gz
hdf5-e3b7d68826b5ce54518220d80dfb723f04c7b486.tar.bz2
Reformat source (#244)
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c4
-rw-r--r--test/links.c12
-rw-r--r--test/tfile.c8
-rw-r--r--test/titerate.c6
-rw-r--r--test/vol.c4
5 files changed, 17 insertions, 17 deletions
diff --git a/test/dsets.c b/test/dsets.c
index e7527a8..4f1cfff 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -7740,9 +7740,9 @@ error:
static H5_ATTR_CONST long
gcd(long l0, long r0)
{
- long magnitude, remainder;
+ long magnitude, remainder;
hbool_t negative = ((l0 < 0) != (r0 < 0));
- long l = HDlabs(l0), r = HDlabs(r0);
+ long l = HDlabs(l0), r = HDlabs(r0);
do {
if (l < r) {
diff --git a/test/links.c b/test/links.c
index 784a8eb..cb01007 100644
--- a/test/links.c
+++ b/test/links.c
@@ -631,7 +631,7 @@ cklinks(hid_t fapl, hbool_t new_format)
if ((file = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0)
FAIL_STACK_ERROR
-//! [H5Otoken_cmp_snip]
+ //! [H5Otoken_cmp_snip]
/* Hard link */
if (H5Oget_info_by_name3(file, "d1", &oinfo1, H5O_INFO_BASIC, H5P_DEFAULT) < 0)
@@ -644,7 +644,7 @@ cklinks(hid_t fapl, hbool_t new_format)
TEST_ERROR
} /* end if */
-//! [H5Otoken_cmp_snip]
+ //! [H5Otoken_cmp_snip]
if (H5Otoken_cmp(file, &oinfo1.token, &oinfo2.token, &token_cmp) < 0)
FAIL_STACK_ERROR
@@ -15799,7 +15799,7 @@ obj_visit(hid_t fapl, hbool_t new_format)
if ((fid = build_visit_file(fapl)) < 0)
TEST_ERROR
-//! [H5Ovisit3_snip]
+ //! [H5Ovisit3_snip]
/* Visit all the objects reachable from the root group (with file ID) */
udata.idx = 0;
@@ -15807,7 +15807,7 @@ obj_visit(hid_t fapl, hbool_t new_format)
if (H5Ovisit3(fid, H5_INDEX_NAME, H5_ITER_INC, visit_obj_cb, &udata, H5O_INFO_BASIC) < 0)
FAIL_STACK_ERROR
-//! [H5Ovisit3_snip]
+ //! [H5Ovisit3_snip]
/* Visit all the objects reachable from the root group (with group ID) */
if ((gid = H5Gopen2(fid, "/", H5P_DEFAULT)) < 0)
@@ -15880,7 +15880,7 @@ obj_visit_by_name(hid_t fapl, hbool_t new_format)
if ((fid = build_visit_file(fapl)) < 0)
TEST_ERROR
-//! [H5Ovisit_by_name3_snip]
+ //! [H5Ovisit_by_name3_snip]
/* Visit all the objects reachable from the root group (with file ID) */
udata.idx = 0;
@@ -15889,7 +15889,7 @@ obj_visit_by_name(hid_t fapl, hbool_t new_format)
H5P_DEFAULT) < 0)
FAIL_STACK_ERROR
-//! [H5Ovisit_by_name3_snip]
+ //! [H5Ovisit_by_name3_snip]
/* Visit all the objects reachable from the root group (with group ID) */
if ((gid = H5Gopen2(fid, "/", H5P_DEFAULT)) < 0)
diff --git a/test/tfile.c b/test/tfile.c
index 9a94a7d..ed071d6 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -5182,11 +5182,11 @@ test_libver_bounds_real(H5F_libver_t libver_create, unsigned oh_vers_create, H5F
group = H5Gcreate2(file, "/G1", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
CHECK(group, FAIL, "H5Gcreate");
-//! [H5Oget_native_info_snip]
+ //! [H5Oget_native_info_snip]
ret = H5Oget_native_info(group, &ninfo, H5O_NATIVE_INFO_HDR);
-//! [H5Oget_native_info_snip]
+ //! [H5Oget_native_info_snip]
CHECK(ret, FAIL, "H5Oget_native)info");
VERIFY(ninfo.hdr.version, oh_vers_mod, "H5Oget_native_info");
@@ -5208,14 +5208,14 @@ test_libver_bounds_real(H5F_libver_t libver_create, unsigned oh_vers_create, H5F
ret = H5Gclose(group);
CHECK(ret, FAIL, "H5Gclose");
-//! [H5Oget_native_info_by_name_snip]
+ //! [H5Oget_native_info_by_name_snip]
/*
* Make sure the root group still has the correct object header version
*/
ret = H5Oget_native_info_by_name(file, "/", &ninfo, H5O_NATIVE_INFO_HDR, H5P_DEFAULT);
-//! [H5Oget_native_info_by_name_snip]
+ //! [H5Oget_native_info_by_name_snip]
CHECK(ret, FAIL, "H5Oget_native_info_by_name");
VERIFY(ninfo.hdr.version, oh_vers_create, "H5Oget_native_info_by_name");
diff --git a/test/titerate.c b/test/titerate.c
index d0e7ca7..a39757e 100644
--- a/test/titerate.c
+++ b/test/titerate.c
@@ -53,7 +53,7 @@ typedef struct {
#define CORRUPTED_ATNAMELEN_FILE "memleak_H5O_dtype_decode_helper_H5Odtype.h5"
#define DSET_NAME "image"
typedef struct searched_err_t {
- char message[256];
+ char message[256];
hbool_t found;
} searched_err_t;
@@ -218,13 +218,13 @@ test_iter_group(hid_t fapl, hbool_t new_format)
dataset_name, (size_t)NAMELEN, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Lget_name_by_idx");
-//! [H5Oget_info_by_idx3_snip]
+ //! [H5Oget_info_by_idx3_snip]
ret = H5Oget_info_by_idx3(root_group, ".", H5_INDEX_NAME, H5_ITER_INC, (hsize_t)i, &oinfo,
H5O_INFO_BASIC, H5P_DEFAULT);
CHECK(ret, FAIL, "H5Oget_info_by_idx");
-//! [H5Oget_info_by_idx3_snip]
+ //! [H5Oget_info_by_idx3_snip]
} /* end for */
diff --git a/test/vol.c b/test/vol.c
index 53c760c..49c854f 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -950,13 +950,13 @@ test_basic_object_operation(void)
if (H5Oget_info3(fid, &object_info, H5O_INFO_ALL) < 0)
TEST_ERROR;
-//! [H5Oget_info_by_name3_snip]
+ //! [H5Oget_info_by_name3_snip]
/* H5Oget_info_by_name */
if (H5Oget_info_by_name3(fid, NATIVE_VOL_TEST_GROUP_NAME, &object_info, H5O_INFO_ALL, H5P_DEFAULT) < 0)
TEST_ERROR;
-//! [H5Oget_info_by_name3_snip]
+ //! [H5Oget_info_by_name3_snip]
/* H5Oexists_by_name */
if (H5Oexists_by_name(fid, NATIVE_VOL_TEST_GROUP_NAME, H5P_DEFAULT) != TRUE)