summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-01-30 19:25:44 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-01-30 19:25:44 (GMT)
commitb227b388533896337f436f01763ad26def14844c (patch)
tree4771c187539c0f8bd36572914b63b0137fde2ea8 /test
parent0a7b2071a0589bef1abf8fd1b2f7cd470312d7f9 (diff)
downloadhdf5-b227b388533896337f436f01763ad26def14844c.zip
hdf5-b227b388533896337f436f01763ad26def14844c.tar.gz
hdf5-b227b388533896337f436f01763ad26def14844c.tar.bz2
[svn-r204] Changes since 19980129
---------------------- ./RELEASE Added Library functions that I missed the first time. ./html/Datasets.html Added an example for Elena's question about how to read a single member of a compound data type so it becomes an array of that member in memory. ./src/H5Pprivate.h Fixed the prototype for H5P_get_hyperslab() to match the definition. ./src/H5Psimp.c Oops, added the kludge back in for the offset argument, which is still an `intn' instead of a `size_t'. ./src/H5.c ./src/H5public.h ./src/H5F.c ./src/H5T.c ./src/H5Tpublic.h Changed H5init() to H5open() and added an H5close() to fit our create/open/close paradigm. The H5open() happens automatically on the first call to the HDF5 library. The H5close() happens automatically on exit() (unless the app turns off that feature). H5close() closes all datasets and files and releases all resources used by the library. ./test/dsets.c Added calls to H5open() and H5close() to test them. ./test/dtypes.c Removed call to H5init() since we no longer need it there. ./src/H5Fstdio.c Changed the PABLO_MASK to the right value. Thanks Kim.
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;