summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-08-18 17:14:43 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-08-18 17:14:43 (GMT)
commitd27a31461c69001551b1168c3ca44b591f4cb82b (patch)
treebac2fc1ea06c6ab1052c0eab083c87769ac79c3f /test/dsets.c
parentd9b9ed853d6b5d53935efad83d932f58ef0a5ac3 (diff)
downloadhdf5-d27a31461c69001551b1168c3ca44b591f4cb82b.zip
hdf5-d27a31461c69001551b1168c3ca44b591f4cb82b.tar.gz
hdf5-d27a31461c69001551b1168c3ca44b591f4cb82b.tar.bz2
[svn-r601] Changes since 19980814
---------------------- ./src/H5Fistore.c Fixed a bug that caused the wrong number of chunk offsets to be read or written from the file. ./src/H5Z.c Fixed a memory bug. ./test/dtypes.c Removed redundant tests. ./bin/snapshot Removed Perl code from a shell script. Oops :-) ./src/H5D.c Removed cvs merge conflicts. ./src/H5Omtime.c Fixed a typo in the Irix5.3 code. ./src/H5S.c Fixed a memory leak. ./src/H5Shyper.c Fixed a bad call to malloc() that didn't allocate enough memory. Reordered a comparison to eliminate an array bounds read error.
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c26
1 files changed, 22 insertions, 4 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 1a66600..7171b18 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -372,6 +372,9 @@ bogus(unsigned int __unused__ flags, size_t __unused__ cd_nelmts,
const unsigned int __unused__ cd_values[], size_t nbytes,
size_t __unused__ *buf_size, void __unused__ **buf)
{
+#if 0
+ abort();
+#endif
return nbytes;
}
@@ -777,9 +780,11 @@ cleanup(void)
int
main(void)
{
- hid_t file, grp;
- herr_t status;
- int nerrors = 0;
+ hid_t file, grp, fapl;
+ herr_t status;
+ int nerrors=0, mdc_nelmts;
+ size_t rdcc_nbytes;
+ double rdcc_w0;
status = H5open ();
assert (status>=0);
@@ -787,9 +792,22 @@ main(void)
/* Automatic error reporting to standard output */
H5Eset_auto (display_error_cb, NULL);
+ /* Create the file */
+ fapl = H5Pcreate(H5P_FILE_ACCESS);
+ assert(fapl>=0);
+
+#if 1
+ /* Turn off raw data cache */
+ status = H5Pget_cache(fapl, &mdc_nelmts, &rdcc_nbytes, &rdcc_w0);
+ assert(status>=0);
+ status = H5Pset_cache(fapl, mdc_nelmts, 0, rdcc_w0);
+ assert(status>=0);
+#endif
+
file = H5Fcreate(TEST_FILE_NAME, H5F_ACC_TRUNC|H5F_ACC_DEBUG,
- H5P_DEFAULT, H5P_DEFAULT);
+ H5P_DEFAULT, fapl);
assert(file >= 0);
+ H5Pclose(fapl);
/* Cause the library to emit initial messages */
grp = H5Gcreate (file, "emit diagnostics", 0);