summaryrefslogtreecommitdiffstats
path: root/test/filter_plugin.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/filter_plugin.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/filter_plugin.c')
-rw-r--r--test/filter_plugin.c30
1 files changed, 24 insertions, 6 deletions
diff --git a/test/filter_plugin.c b/test/filter_plugin.c
index 254011c..276141a 100644
--- a/test/filter_plugin.c
+++ b/test/filter_plugin.c
@@ -566,7 +566,10 @@ test_dataset_write_with_filters(hid_t fid)
error:
/* Clean up objects used for this test */
- H5E_BEGIN_TRY { H5Pclose(dcpl_id); }
+ H5E_BEGIN_TRY
+ {
+ H5Pclose(dcpl_id);
+ }
H5E_END_TRY
return FAIL;
@@ -703,7 +706,10 @@ test_dataset_read_with_filters(hid_t fid)
error:
/* Clean up objects used for this test */
- H5E_BEGIN_TRY { H5Dclose(did); }
+ H5E_BEGIN_TRY
+ {
+ H5Dclose(did);
+ }
H5E_END_TRY
return FAIL;
@@ -728,7 +734,10 @@ ensure_data_read_fails(hid_t did)
TEST_ERROR;
/* Read the dataset back (should fail) */
- H5E_BEGIN_TRY { ret = H5Dread(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, *check); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Dread(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, *check);
+ }
H5E_END_TRY
if (ret >= 0)
TEST_ERROR;
@@ -998,7 +1007,10 @@ test_path_api_calls(void)
TESTING(" remove (index 0 in empty table)");
/* Try to remove index zero in an empty list (SHOULD FAIL) */
- H5E_BEGIN_TRY { ret = H5PLremove(0); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5PLremove(0);
+ }
H5E_END_TRY
if (ret >= 0)
TEST_ERROR;
@@ -1029,7 +1041,10 @@ test_path_api_calls(void)
TESTING(" remove (index too high)");
/* Try to remove a path where the index is beyond the table capacity (SHOULD FAIL) */
- H5E_BEGIN_TRY { ret = H5PLremove(n_starting_paths); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5PLremove(n_starting_paths);
+ }
H5E_END_TRY
if (ret >= 0)
@@ -1087,7 +1102,10 @@ test_path_api_calls(void)
TESTING(" get (index too high)");
/* Get path at the last + 1 index (SHOULD FAIL) */
- H5E_BEGIN_TRY { path_len = H5PLget(n_starting_paths, NULL, 0); }
+ H5E_BEGIN_TRY
+ {
+ path_len = H5PLget(n_starting_paths, NULL, 0);
+ }
H5E_END_TRY
if (path_len > 0)
TEST_ERROR;