summaryrefslogtreecommitdiffstats
path: root/test/tverbounds18.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tverbounds18.c')
-rw-r--r--test/tverbounds18.c92
1 files changed, 48 insertions, 44 deletions
diff --git a/test/tverbounds18.c b/test/tverbounds18.c
index 2ae87c1..0b501cb 100644
--- a/test/tverbounds18.c
+++ b/test/tverbounds18.c
@@ -6,30 +6,30 @@
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the COPYING file, which can be found at the root of the source code *
- * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
+ * distribution tree, or in https://www.hdfgroup.org/licenses. *
* If you do not have access to either file, you may request a copy from *
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/***********************************************************
-*
-* Test program: tverbounds18
-*
-* Test 1.8 compatibility with version bounds
-*
-* Description
-* ===========
-* This file tests the compatibility in the files generated
-* by gen_bounds.c in HDF5 1.10.2:
-* - bounds_earliest_latest.h5
-* - bounds_earliest_v18.h5
-* - bounds_latest_latest.h5
-* - bounds_v18_latest.h5
-* - bounds_v18_v18.h5
-*
-* Oct 30, 2017
-*
-*************************************************************/
+ *
+ * Test program: tverbounds18
+ *
+ * Test 1.8 compatibility with version bounds
+ *
+ * Description
+ * ===========
+ * This file tests the compatibility in the files generated
+ * by gen_bounds.c in HDF5 1.10.2:
+ * - bounds_earliest_latest.h5
+ * - bounds_earliest_v18.h5
+ * - bounds_latest_latest.h5
+ * - bounds_v18_latest.h5
+ * - bounds_v18_v18.h5
+ *
+ * Oct 30, 2017
+ *
+ *************************************************************/
#include "h5test.h"
#include "H5srcdir.h"
@@ -46,10 +46,11 @@
*
***********************************************************************/
#define FILENAME_E_L "bounds_earliest_latest.h5"
-static void test_earliest_latest(void)
+static void
+test_earliest_latest(void)
{
- hid_t fid = FAIL; /* File ID */
- hid_t dset = FAIL; /* Dataset ID */
+ hid_t fid = FAIL; /* File ID */
+ hid_t dset = FAIL; /* Dataset ID */
herr_t ret; /* Return value */
/* Test file name must have correct path when srcdir is used */
@@ -76,9 +77,8 @@ static void test_earliest_latest(void)
*/
/* Open the dataset */
- H5E_BEGIN_TRY {
- dset = H5Dopen2(fid, "DS_chunked_layout_4", H5P_DEFAULT);
- } H5E_END_TRY;
+ H5E_BEGIN_TRY { dset = H5Dopen2(fid, "DS_chunked_layout_4", H5P_DEFAULT); }
+ H5E_END_TRY;
VERIFY(dset, FAIL, "H5Dopen2");
/* Close the file */
@@ -96,10 +96,11 @@ static void test_earliest_latest(void)
***********************************************************************/
#define FILENAME_E_18 "bounds_earliest_v18.h5"
-static void test_earliest_v18(void)
+static void
+test_earliest_v18(void)
{
- hid_t fid = FAIL; /* File ID */
- hid_t dset = FAIL; /* Dataset ID */
+ hid_t fid = FAIL; /* File ID */
+ hid_t dset = FAIL; /* Dataset ID */
herr_t ret; /* Return value */
/* Test file name must have correct path when srcdir is used */
@@ -135,17 +136,17 @@ static void test_earliest_v18(void)
***********************************************************************/
#define FILENAME_L_L "bounds_latest_latest.h5"
-static void test_latest_latest(void)
+static void
+test_latest_latest(void)
{
- hid_t fid = FAIL; /* File ID */
+ hid_t fid = FAIL; /* File ID */
/* Test file name must have correct path when srcdir is used */
const char *testfile = H5_get_srcdir_filename(FILENAME_L_L);
/* Opening the file of latest version bounds should fail with HDF5 1.8. */
- H5E_BEGIN_TRY {
- fid = H5Fopen(testfile, H5F_ACC_RDWR, H5P_DEFAULT);
- } H5E_END_TRY;
+ H5E_BEGIN_TRY { fid = H5Fopen(testfile, H5F_ACC_RDWR, H5P_DEFAULT); }
+ H5E_END_TRY;
VERIFY(fid, FAIL, "H5Fopen file with latest version bounds");
}
@@ -159,10 +160,11 @@ static void test_latest_latest(void)
***********************************************************************/
#define FILENAME_18_L "bounds_v18_latest.h5"
-static void test_v18_latest(void)
+static void
+test_v18_latest(void)
{
- hid_t fid = FAIL; /* File ID */
- hid_t dset = FAIL; /* Dataset ID */
+ hid_t fid = FAIL; /* File ID */
+ hid_t dset = FAIL; /* Dataset ID */
herr_t ret; /* Return value */
/* Test file name must have correct path when srcdir is used */
@@ -200,10 +202,11 @@ static void test_v18_latest(void)
***********************************************************************/
#define FILENAME_18_18 "bounds_v18_v18.h5"
-static void test_v18_v18(void)
+static void
+test_v18_v18(void)
{
- hid_t fid = FAIL; /* File ID */
- hid_t dset = FAIL; /* Dataset ID */
+ hid_t fid = FAIL; /* File ID */
+ hid_t dset = FAIL; /* Dataset ID */
herr_t ret; /* Return value */
/* Test file name must have correct path when srcdir is used */
@@ -230,9 +233,8 @@ static void test_v18_v18(void)
*/
/* Open the dataset */
- H5E_BEGIN_TRY {
- dset = H5Dopen2(fid, "DS_chunked_layout_4", H5P_DEFAULT);
- } H5E_END_TRY;
+ H5E_BEGIN_TRY { dset = H5Dopen2(fid, "DS_chunked_layout_4", H5P_DEFAULT); }
+ H5E_END_TRY;
VERIFY(dset, FAIL, "H5Dopen2");
/* Close the file */
@@ -245,7 +247,8 @@ static void test_v18_v18(void)
** Main routine to test library version bounds with HDF5 1.8 library.
**
*************************************************************************/
-void test_verbounds_18(void)
+void
+test_verbounds_18(void)
{
/* Output message about test being performed */
MESSAGE(5, ("Testing Compatibility of Version Bounds with 1.8\n"));
@@ -275,6 +278,7 @@ void test_verbounds_18(void)
*
*-------------------------------------------------------------------------
*/
-void cleanup_verbounds_18(void)
+void
+cleanup_verbounds_18(void)
{
}