summaryrefslogtreecommitdiffstats
path: root/test/filenotclosed.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-05-06 00:02:46 (GMT)
committerGitHub <noreply@github.com>2022-05-06 00:02:46 (GMT)
commit89f8f843532835662e4c649aad368b7c7cae7006 (patch)
tree03e47f49e74b8b03416a4f963476f1ffcb03a465 /test/filenotclosed.c
parent0566defd2c7b48fd3b07e5d626f8069c1131f917 (diff)
downloadhdf5-89f8f843532835662e4c649aad368b7c7cae7006.zip
hdf5-89f8f843532835662e4c649aad368b7c7cae7006.tar.gz
hdf5-89f8f843532835662e4c649aad368b7c7cae7006.tar.bz2
Onion VFD: Sync with develop. (#1732)
* Sync with develop. h5dump is broken, so I can't test the tools. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/filenotclosed.c')
-rw-r--r--test/filenotclosed.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/filenotclosed.c b/test/filenotclosed.c
index 58edc06..89fc4f5 100644
--- a/test/filenotclosed.c
+++ b/test/filenotclosed.c
@@ -88,51 +88,51 @@ main(void)
/* To exit from the file for SIGABRT signal */
if (HDsignal(SIGABRT, catch_signal) == SIG_ERR)
- TEST_ERROR
+ TEST_ERROR;
fapl = h5_fileaccess();
h5_fixname(FILENAME, fapl, filename, sizeof(filename));
/* Set to latest format */
if (H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create the file */
if ((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create the dcpl and set the chunk size */
if ((dcpl = H5Pcreate(H5P_DATASET_CREATE)) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (H5Pset_chunk(dcpl, 1, chunk_dim) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create the dataspace */
if ((sid = H5Screate_simple(1, cur_dim, max_dim)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create the dataset */
if ((did = H5Dcreate2(fid, DATASET_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Write to the dataset */
if (H5Dwrite(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the dataset */
if (H5Dclose(did) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the dataspace */
if (H5Sclose(sid) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the property lists */
if (H5Pclose(dcpl) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (H5Pclose(fapl) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* The file is not closed. */
/* The library will call H5_term_library to shut down the library. */