summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cmpd_dset.c1
-rw-r--r--test/dsets.c7
-rw-r--r--test/dtypes.c2
3 files changed, 7 insertions, 3 deletions
diff --git a/test/cmpd_dset.c b/test/cmpd_dset.c
index dc2231b..489d8f4 100644
--- a/test/cmpd_dset.c
+++ b/test/cmpd_dset.c
@@ -397,7 +397,6 @@ STEP 8: Read middle third hyperslab into memory array.\n");
/* Create memory data space */
s8_m_sid = H5Pcreate_simple (2, h_size);
assert (s8_m_sid>=0);
- }
/* Read the dataset */
s8 = calloc (h_size[0]*h_size[1], sizeof(s1_t));
diff --git a/test/dsets.c b/test/dsets.c
index edb951d..58bfc4c 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -366,6 +366,9 @@ main(void)
herr_t status;
intn nerrors = 0;
+ status = H5open ();
+ assert (status>=0);
+
unlink("dataset.h5");
file = H5Fcreate("dataset.h5", H5ACC_DEFAULT, H5C_DEFAULT, H5C_DEFAULT);
assert(file >= 0);
@@ -391,5 +394,9 @@ main(void)
exit(1);
}
printf("All dataset tests passed.\n");
+
+ status = H5close ();
+ assert (status>=0);
+
exit(0);
}
diff --git a/test/dtypes.c b/test/dtypes.c
index 056734f..707fe29 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -215,8 +215,6 @@ main(void)
herr_t status;
intn nerrors = 0;
- H5init();
-
status = test_classes();
nerrors += status < 0 ? 1 : 0;