summaryrefslogtreecommitdiffstats
path: root/test/tid.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2021-03-17 15:25:39 (GMT)
committerGitHub <noreply@github.com>2021-03-17 15:25:39 (GMT)
commitc6e4e535469beaa3418b34863d455c8f17ade3f5 (patch)
tree11c5cf08959881ee6cff2df81b1d9f873ddd3dcf /test/tid.c
parentf6d919a2ab0034a1ee76ca2d5f59f4d8114c4952 (diff)
downloadhdf5-c6e4e535469beaa3418b34863d455c8f17ade3f5.zip
hdf5-c6e4e535469beaa3418b34863d455c8f17ade3f5.tar.gz
hdf5-c6e4e535469beaa3418b34863d455c8f17ade3f5.tar.bz2
Update clang config (#473)
* Update clang config to put H5E_BEGIN_TRY / H5E_END_TRY on separate lines, empty C++ methods on separate lines, understand that ALL_MEMBERS / UNIQUE_MEMBERS are foreach macros, and properly skip the 'config' directory in the find command without emiting a warning * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/tid.c')
-rw-r--r--test/tid.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/test/tid.c b/test/tid.c
index 7b5fff2..662064f 100644
--- a/test/tid.c
+++ b/test/tid.c
@@ -856,7 +856,10 @@ test_remove_clear_type(void)
error:
/* Cleanup. For simplicity, just destroy the types and ignore errors. */
- H5E_BEGIN_TRY { H5Idestroy_type(obj_type); }
+ H5E_BEGIN_TRY
+ {
+ H5Idestroy_type(obj_type);
+ }
H5E_END_TRY
HDfree(obj_list.objects);
@@ -995,19 +998,28 @@ test_future_ids(void)
/* Test basic error conditions */
fake_future_obj = 0;
- H5E_BEGIN_TRY { future_id = H5Iregister_future(obj_type, &fake_future_obj, NULL, NULL); }
+ H5E_BEGIN_TRY
+ {
+ future_id = H5Iregister_future(obj_type, &fake_future_obj, NULL, NULL);
+ }
H5E_END_TRY
VERIFY(future_id, H5I_INVALID_HID, "H5Iregister_future");
if (H5I_INVALID_HID != future_id)
goto error;
- H5E_BEGIN_TRY { future_id = H5Iregister_future(obj_type, &fake_future_obj, realize_future_cb, NULL); }
+ H5E_BEGIN_TRY
+ {
+ future_id = H5Iregister_future(obj_type, &fake_future_obj, realize_future_cb, NULL);
+ }
H5E_END_TRY
VERIFY(future_id, H5I_INVALID_HID, "H5Iregister_future");
if (H5I_INVALID_HID != future_id)
goto error;
- H5E_BEGIN_TRY { future_id = H5Iregister_future(obj_type, &fake_future_obj, NULL, discard_future_cb); }
+ H5E_BEGIN_TRY
+ {
+ future_id = H5Iregister_future(obj_type, &fake_future_obj, NULL, discard_future_cb);
+ }
H5E_END_TRY
VERIFY(future_id, H5I_INVALID_HID, "H5Iregister_future");
if (H5I_INVALID_HID != future_id)
@@ -1349,7 +1361,10 @@ test_future_ids(void)
error:
/* Cleanup. For simplicity, just destroy the types and ignore errors. */
- H5E_BEGIN_TRY { H5Idestroy_type(obj_type); }
+ H5E_BEGIN_TRY
+ {
+ H5Idestroy_type(obj_type);
+ }
H5E_END_TRY
return -1;